Google APIs · Images

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 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.

FieldTypeWhat it holds
images[]arrayThe pictures, in Google's order: about 100 a page, 50 on a phone.
position, pageintegerThe picture's place, counted on across pages, and the page it is on.
titlestringThe picture's title, as Google shows it.
urlstringThe page the picture is on.
sourcestringThe site, as Google names it: "Wikipedia".
originalstringThe picture itself, on its site.
original_width, original_heightintegerThe picture's size.
thumbnailstringGoogle's copy, with thumbnail_width and thumbnail_height.
file_sizestringAs Google writes it: "552KB".
image_idstringGoogle's id of the picture, the same on every page and search that shows it.
productobjectFor a picture sold as a product: title, store, extracted_price, currency, rating and product_id.
suggested_searches[]arrayGoogle's chips over the first page, each a name and the q it asks: "Drawing" asks "eiffel tower drawing".
pagination.next_startinteger or nullWhere the next page starts; null when Google has no more.
meta.creditsintegerThe credits the call spent.
request_idstringThe 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.

PlanPrice a monthPages a monthPer 1,000
Free$0500free
Starter$2512,500$2.00
Developer$7550,000$1.50
Production$150150,000$1.00
Scale$350400,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.