Google Images Results API

The Google Images Results API allows a user to scrape images from a Google Images search results page. When SerpApi encounters image results, we add them to our JSON output as the array image_results. Head to the playground for a live and interactive demo.

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

Results for: Apple

JSON Example

{
  ...
  "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 Pagination

Images are fetched by batch of 100 images per search. To fech additional images, you need to perform the same search again, incrementing the ijn parameter for each page of results you want to retrieve. As an example, to get the first 300 images for the search "Apple":