find_images
Find a page’s images, best first: the largest, most prominent content images, each at its largest known original URL, with its size when known. Leaves out SVGs, images in the site’s header, nav or footer, and images known to be under 100 pixels on a side, such as icons and tracking pixels. Use when you need a page’s main image or its photos. Do not use to find pictures of a subject across the web (use search_images), or for where an image appears (use search_by_image). Defaults to kernel. Set provider to choose another supported provider; Fieldwork never switches providers after an error.
/api/v1/tools/find_imagesAuthorizationBearer token · headerrequiredA Fieldwork gateway key, issued per agent by the operator. Send it as Authorization: Bearer <key>.
application/jsonproviderstringkerneltimeoutintegerMaximum wait in milliseconds. Resume a returned jobId to collect a long job.
urlstring<uri>requiredThe page's full URL, including https://.
limitintegerThe most images to return. Leave out for every image found.
renderstringauto (the default) reads the page's HTML and renders it in a browser only when that leaves no image or no clear best one; never only reads the HTML; always renders, which finds images JavaScript loads and measures real sizes, and is slower.
autoneveralwaysmaxCharactersintegerShared long-text budget for this call; defaults to 20000. Never sent to the provider.
timeoutintegerMaximum wait in milliseconds. Resume a returned jobId to collect a long job.
urlstring<uri>requiredThe page's full URL, including https://.
limitintegerThe most images to return. Leave out for every image found.
renderstringauto (the default) reads the page's HTML and renders it in a browser only when that leaves no image or no clear best one; never only reads the HTML; always renders, which finds images JavaScript loads and measures real sizes, and is slower.
autoneveralwaysmaxCharactersintegerShared long-text budget for this call; defaults to 20000. Never sent to the provider.
timeoutintegerMaximum wait in milliseconds. Resume a returned jobId to collect a long job.
providerstringrequiredThe provider that ran the call and its normalized result.
providerstringrequiredkernelrequestIdstringrequiredresultobjectrequiredShow propertiesHide properties
imagesobject[]requiredThe page's images, best first.
Show propertiesHide properties
objectheightnumbermeasuredbooleanrequiredTrue when width and height were measured from loaded pixels; false when the page declared them or the CDN's URL names them.
scorenumberrequiredHow good the image is; higher is better.
sourcesstring[]requiredWhere the page names the image, such as og:image, img or srcset, and lcp when it was the rendered page's largest contentful paint.
urlstringrequiredvariantsstring[]requiredThe image's other URLs, such as the page's own and smaller sizes.
verifiedbooleanrequiredFalse when a CDN pattern built url and nothing loaded it; the page's own URL is then first in variants.
widthnumbermetaobjectRequest details from the provider: its request id, what it charged and any warnings.
Show propertiesHide properties
requestIdstringusageobjectShow propertiesHide properties
costUsdnumbercreditsnumberunitsobjectwarningsstring[]renderErrorobjectWhy the render failed, when render was auto and the images are the read's instead.
Show propertiesHide properties
codestringrequiredmessagestringrequiredrenderedbooleanrequiredWhether the page was rendered in a browser.
truncatedobject[]One entry for each cut text field; absent when nothing was cut.
Show propertiesHide properties
objectlengthintegerrequiredOriginal character length.
pathstringrequiredshownintegerrequiredCharacters shown before the inline cut note.
A refusal or a failed call. Branch on error.code; never parse the message.
errorobjectrequiredShow propertiesHide properties
codestringrequiredAbortedInvalidRequestJobFailedNotAFileNotFoundProviderErrorRateLimitedTimeoutTooLargeUnauthorizedUnsupportedjobIdstringA job that was already started. Pass it as resume instead of repeating the call.
messagestringrequiredproviderstringretryAfternumberSeconds to wait.
retryablebooleanrequiredWhether repeating the same call can succeed.
requestIdstring