Google Images API
Google's Images tab as JSON: about 100 pictures a page, each with the original file, its width and height, Google's thumbnail and the page it is on. Filtered by size, color, type, license or shape, as the tab's own tools do.
About 100 pictures a call
A page of the Images tab holds about 100 pictures on the desktop and 50 on a phone. Narrow it with size, color, type, license and aspect.
curl -G https://api.serpbit.com/v1/images \ -H "Authorization: Bearer $SERPBIT_API_KEY" \ --data-urlencode "q=eiffel tower" \ --data-urlencode "size=large" { "images": [{ "position": 1, "title": "Eiffel Tower - Wikipedia", "url": "https://en.wikipedia.org/wiki/Eiffel_Tower", "original": "https://upload.wikimedia.org/…/Tour_Eiffel.jpg", "original_width": 330, "original_height": 550 }], "pages": [{ "page": 1, "results": 100 }] }
What comes back
The pictures
Title, the page each one is on and its site, in Google's order.
The file itself
originalwith its width and height, and Google'sthumbnail.The tab's filters
Size, color or black and white, photo or clip art, Creative Commons or commercial license, tall or wide.
Products in pictures
A picture sold as a product carries its store, price and
product_idfor Shopping.From where you ask
glandhlfor a country and language,devicefor the phone's page.
The same call in Python and JavaScript
Large pictures under a Creative Commons license, with each file and its size. The clients read the key from SERPBIT_API_KEY and retry a failed call without billing it twice. Any HTTP client works too.
# pip install serpbit from serpbit import Serpbit sb = Serpbit() # reads SERPBIT_API_KEY answer = sb.images("eiffel tower", size="large", license="creative_commons") for im in answer["images"]: print(im["position"], im["title"], im["original"], im.get("original_width"), im.get("original_height")) # pictures that are products, with their store and price for im in answer["images"]: if "product" in im: print(im["product"].get("store"), im["product"].get("extracted_price"))
// npm install serpbit import Serpbit from "serpbit"; const sb = new Serpbit(); // reads SERPBIT_API_KEY const answer = await sb.images("eiffel tower", { size: "large", license: "creative_commons" }); for (const im of answer.images) { console.log(im.position, im.title, im.original, im.original_width, im.original_height); } // pictures that are products, with their store and price for (const im of answer.images.filter((im) => im.product)) { console.log(im.product.store, im.product.extracted_price); }
Response fields
The main fields of a picture. Most are left out when Google shows nothing for them. The reference has every parameter.
| Field | Type | What it holds |
|---|---|---|
| images[] | array | The pictures, in Google's order: about 100 a page, 50 on a phone. |
| position, page | integer | The picture's place, counted on across pages, and the page it is on. |
| title | string | The picture's title, as Google shows it. |
| url | string | The page the picture is on. |
| source | string | The site, as Google names it: "Wikipedia". |
| original | string | The picture itself, on its site. |
| original_width, original_height | integer | The picture's size. |
| thumbnail | string | Google's copy, with thumbnail_width and thumbnail_height. |
| file_size | string | As Google writes it: "552KB". |
| image_id | string | Google's id of the picture, the same on every page and search that shows it. |
| product | object | For a picture sold as a product: title, store, extracted_price, currency, rating and product_id. |
| suggested_searches[] | array | Google's chips over the first page, each a name and the q it asks: "Drawing" asks "eiffel tower drawing". |
| pagination.next_start | integer or null | Where the next page starts; null when Google has no more. |
| meta.credits | integer | The credits the call spent. |
| request_id | string | The call's id, to quote to support. |
What it is used for
Find pictures you may reuse
license=creative_commons keeps what Google marks with that license. Each picture's url is the page to check the license on.
Follow one picture's rank
image_id stays the same on every search that shows the picture. Keep its position for your keywords to see it move.
Collect pictures for a catalog
Narrow by size, type and aspect, then keep original with its width and height.
Find products in pictures
A picture's product names its store and price. Give its product_id to the Shopping API for every store's offer.
What 1,000 cost
2 credits a page of about 100 pictures, on the same key and credits as every other API. A call that fails is free, and so is the same call again within the hour.
| Plan | Price a month | Pages a month | Per 1,000 |
|---|---|---|---|
| Free | $0 | 500 | free |
| Starter | $25 | 12,500 | $2.00 |
| Developer | $75 | 50,000 | $1.50 |
| Production | $150 | 150,000 | $1.00 |
| Scale | $350 | 400,000 | $0.88 |
In US dollars before tax. All plans and credit packs are on the pricing page.
Questions
Why 2 credits a page?
A page of pictures is about 100 results and costs us about twice a search page to fetch, so it is priced at 2 credits.
Can I find pictures I may reuse?
license=creative_commons or license=commercial keeps what Google marks with that license. Check the license on the picture's own page before using it.
Can I get the full-size picture?
Yes: original is the file on the site that has it, with original_width and original_height.
Does a reverse image search work?
No. The API searches by text, as the Images tab's search box does.
Can an AI agent use it?
Yes. Our MCP server has it as the google_images tool: add https://api.serpbit.com/mcp as a connector in Claude, ChatGPT or Cursor and sign in.
Is Serpbit part of Google?
No. Serpbit is not affiliated with Google; Google is a trademark of Google LLC.
Start with 1,000 free credits.
Every month. No card.