Google Images API
To scrape Google Images results with SerpApi, create a search with these parameters:
tbm
Required
Parameter must be set to isch
. (I.e., tbm=isch
)
ijn
Optional
Parameter defines the page number to get. It must be an integer greater than or equal to 0.
chips
Optional
Parameter enables to filter image search. It's a string provided by Google as suggested search, like: red apple. Chips are provided under the section: suggested_searches
when ijn = 0
. Both chips
value and link
to SerpApi is provided for each suggested search.
The images are fetched by batch of 100 images per searches. In order to retrieve the first 300 images, 3 searches would be needed.
As an example, to get the first 300 images for the search "Apple":
SerpApi Google Images JSON
{
...
"images_results": [
{
"position": "Integer - Image index",
"thumbnail": "String - Google Thumbnail URL (cache)",
"original": "String - Original Image URL (full resolution)",
"title": "String - Short Image Description",
"link": "String - Link to the page providing the image",
"source": "String - Original Domain Name"
},
"suggested_searches": [
{
"name": "String - suggested searches name",
"link": "String - Google search link original",
"chips": "String - Google chips parameter value",
"serpapi_link": "String - Link to SerpApi to fetch the suggested searches",
"thumbnail": "String - URL or base64 encoded image thumbnail displayed by Google"
},
...
]
...
}
Images Results for "Apple"
Images Advanced Filter Search
Google Images provides a way to filter by size, image type, and more. This information is encoded in the tbs
parameter. E.g., tbs=itp:photos,isz:l
selects only large photos.
SerpApi search examples:
- https://serpapi.com/playground?q=apple&tbm=isch&ijn=0&tbs=itp:photos,isz:l
- https://serpapi.com/playground?q=apple&tbm=isch&ijn=1&tbs=itp:photos,isz:l
To build your own tbs
parameter, you can use the regular Google Images and copy the value of the field tbs
from the url:

- Enable Tools dropdown on the right
- Select the image filters you want to use
Your browser URL should contains somthing like: ...&tbs=itp:photos,isz:l...
. You can use this value directly on SerpApi.