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:
| Field | What it holds |
|---|---|
position | Order on the page, starting at 1 |
title | The caption Google shows under the image |
image_url | The original, full-size image |
thumbnail_url | Google's small preview |
link | The page the image sits on |
source, domain | Site 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_urlbelongs to someone else's server. It can be slow, gone, or refuse hotlinking. Fall back tothumbnail_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; pinglandhlwhen 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.
- Parameters and the full response: Google Images docs
- Try it in the browser: Google Images
- Credit packs: pricing