Google Images Results API
The images are fetched by batch of 100 images per search. 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":
To build your owntbs
parameter, you can use the regular Google Images and copy the value of the field tbs
from the url:
- 1. https://serpapi.com/playground?q=Apple&engine=google_images&ijn=0
- 2. https://serpapi.com/playground?q=Apple&engine=google_images&ijn=1
- 3. https://serpapi.com/playground?q=Apple&engine=google_images&ijn=2
If you are interested in the reverse image search - head to our Reverse Image API.
API Examples
JSON structure overview
{
"images_results": [
{
"position": "Integer - Image index",
"thumbnail": "String - Google Thumbnail URL (cache)",
"related_content_id": "String - Unique ID for retrieving the Related Content of an image",
"serpapi_related_content_link": "String - Link to SerpApi to fetch the Related Content of an image",
"original": "String - Original Image URL (full resolution)",
"original_width": "Integer - Original Image width",
"original_height": "Integer - Original Image height",
"title": "String - Short Image Description",
"tag": "String - Optional tag of the image",
"link": "String - Link to the page providing the image",
"source": "String - Original Domain Name",
"is_product": "Boolean - Is the link to the page providing the image containing a product",
"in_stock": "Boolean - Is product in stock"
},
...
],
}
Results for: Apple

{
...
"shopping_results": [
{
"position": 1,
"title": "iPhone 13 20W Apple Certified USB C Fast Charger for iPhone 13/13 mini/13 Pro/13 Pro Max 12/12 mini/12 Pro/12 Pro Max/11/11 Pro/11 Pro Max/XS/XR/X/8",
"price": "$19.99",
"extracted_price": 19.99,
"link": "https://www.amazon.com/iPhone-Certified-Charger-Type-C-Lightning/dp/B09B72F9CS?source=ps-sl-shoppingads-lpcontext&ref_=fplfs&psc=1&smid=A19ZDYPFLKPVN6",
"source": "Amazon.com",
"thumbnail": "<URL to image>"
},
{
"position": 2,
"title": "Cosmic Crisp Apples - each",
"price": "$0.99",
"extracted_price": 0.99,
"link": "https://www.target.com/p/cosmic-crisp-apples-each/-/A-79154064?ref=tgt_adv_XS000000&AFID=google_pla_df_free_local&CPNG=Grocery&adgroup=266-5",
"source": "Target",
"thumbnail": "<URL to image>"
},
{
"position": 3,
"title": "Apple Watch Ultra GPS + Cellular, 49mm Titanium Case with Orange Alpine Loop - Medium",
"price": "$799.00",
"extracted_price": 799,
"link": "https://www.apple.com/us/shop/go/product/MQEU3?cid=aos-us-seo-pla",
"source": "Apple",
"thumbnail": "<URL to image>"
},
...
],
"images_results": [
{
"position": 1,
"thumbnail": "<URL to image>",
"related_content_id": "d3ZFQTJGZ1dtVUVDZk1cIixcIjZQTFZWdWJTLWdNZ2RN",
"serpapi_related_content_link": "https://serpapi.com/search.json?related_content_id=d3ZFQTJGZ1dtVUVDZk1cIixcIjZQTFZWdWJTLWdNZ2RN&engine=google_images_related_content&gl=us&hl=en&q=Apple",
"source": "New York Apple Association",
"title": "SnapDragon® - New York Apple Association",
"link": "https://www.applesfromny.com/varieties/snapdragon/",
"original": "<URL to image>",
"original_width": 2400,
"original_height": 1889,
"is_product": false
},
{
"position": 2,
"thumbnail": "<URL to image>",
"related_content_id": "a3RjeHZGNUxhWHlWWE1cIixcIkMwRVJlOXBJSHZIZmdN",
"serpapi_related_content_link": "https://serpapi.com/search.json?related_content_id=a3RjeHZGNUxhWHlWWE1cIixcIkMwRVJlOXBJSHZIZmdN&engine=google_images_related_content&gl=us&hl=en&q=Apple",
"source": "New York Apple Association",
"title": "Varieties Archive - New York Apple Association",
"link": "https://www.applesfromny.com/varieties/",
"original": "<URL to image>",
"original_width": 2400,
"original_height": 1889,
"is_product": false
},
...
],
"suggested_searches": [
{
"name": "logo",
"link": "https://www.google.com/search?q=Apple&tbm=isch&hl=en&gl=us&chips=q:apple,g_1:logo:Dj1NeBjkCX8%3D&sa=X&ved=2ahUKEwjXz6qD4tX6AhXHBFMKHZT9Dr0Q4lYoAHoECAEQIg",
"chips": "q:apple,g_1:logo:Dj1NeBjkCX8%3D",
"serpapi_link": "https://serpapi.com/search.json?chips=q%3Aapple%2Cg_1%3Alogo%3ADj1NeBjkCX8%253D&device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+Texas%2C+United+States&q=Apple&engine=google_images",
"thumbnail": "<URL to image>"
},
{
"name": "red",
"link": "https://www.google.com/search?q=Apple&tbm=isch&hl=en&gl=us&chips=q:apple,g_1:red:MbDAkgkowSA%3D&sa=X&ved=2ahUKEwjXz6qD4tX6AhXHBFMKHZT9Dr0Q4lYoAXoECAEQJA",
"chips": "q:apple,g_1:red:MbDAkgkowSA%3D",
"serpapi_link": "https://serpapi.com/search.json?chips=q%3Aapple%2Cg_1%3Ared%3AMbDAkgkowSA%253D&device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+Texas%2C+United+States&q=Apple&engine=google_images",
"thumbnail": "<URL to image>"
},
{
"name": "fruit",
"link": "https://www.google.com/search?q=Apple&tbm=isch&hl=en&gl=us&chips=q:apple,g_1:fruit:dgkQ3vyMPdk%3D&sa=X&ved=2ahUKEwjXz6qD4tX6AhXHBFMKHZT9Dr0Q4lYoAnoECAEQJg",
"chips": "q:apple,g_1:fruit:dgkQ3vyMPdk%3D",
"serpapi_link": "https://serpapi.com/search.json?chips=q%3Aapple%2Cg_1%3Afruit%3AdgkQ3vyMPdk%253D&device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+Texas%2C+United+States&q=Apple&engine=google_images",
"thumbnail": "<URL to image>"
},
...
],
...
}
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.
- • https://serpapi.com/playground?q=apple&engine=google_images&ijn=0&tbs=itp:photos,isz:l
- • https://serpapi.com/playground?q=apple&engine=google_images&ijn=1&tbs=itp:photos,isz:l
tbs
parameter, you can use the regular Google Images and copy the value of the field tbs
from the url:
- 1. Enable Tools dropdown on the right
- 2. 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.
