SerpBase
Back to Blog

Google Image Search API: Get Google Images Results as JSON

Google has no dedicated image search API. One POST returns up to 100 Google Images results as JSON: full-size image URL, thumbnail, source page. Tested example.

November 24, 2026
By SerpBase Team2 min read

Short answer: POST a query to /google/image/search and you get Google Images results as JSON — up to 100 images per request, each with the full-size image URL, a thumbnail, the page it came from and the source name.

Google does not offer a dedicated image search API. The usual workarounds are scraping Google Images yourself, which means handling a JavaScript-heavy page and blocks, or using an API that does that part and returns clean JSON.

The request

curl -X POST 'https://api.serpbase.dev/google/image/search' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -d '{"q":"red panda","gl":"us","hl":"en"}'

q is the search, gl the country and hl the language. Send page for the next set.

What comes back

We ran this request on 24 November 2026. It returned 100 images in 3.0 seconds. Every item in images has these fields:

FieldWhat it holds
positionOrder on the page, starting at 1
titleThe caption Google shows under the image
image_urlThe original, full-size image
thumbnail_urlGoogle's small preview
linkThe page the image sits on
source, domainSite name and host, e.g. SAFE Worldwide, safeworldwide.org

Python: download the first ten images

import requests

r = requests.post(
    "https://api.serpbase.dev/google/image/search",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={"q": "red panda", "gl": "us", "hl": "en"},
    timeout=30,
).json()

if r["status"] != 0:
    raise SystemExit(r.get("error"))

for img in r["images"][:10]:
    data = requests.get(img["image_url"], timeout=30).content
    open(f"{img['position']:02d}.jpg", "wb").write(data)
    print(img["position"], img["source"], img["link"])

Things that trip people up

  • image_url belongs to someone else's server. It can be slow, gone, or refuse hotlinking. Fall back to thumbnail_url, which Google hosts.
  • Licences are not in the result. A search result tells you where an image is, not whether you may reuse it. Check the source page in link.
  • Results differ by country. The same query with gl: "jp" returns a different set; pin gl and hl when you compare runs.

What people build with it

Product image lookups for catalogues, visual checks of what ranks for a brand name, datasets for classification models (subject to each image's licence), and image pickers inside content tools.

Cost and limits

Each request costs 1 credit. Requests that fail are not charged. The response is always HTTP 200 with a status field: 0 means success, anything else comes with an error string, so check status rather than the HTTP code. New accounts get 500 free credits without a card.