SerpBase
Back to Blog

Google Image Pack API: Get the Image Strip from Google Search as JSON

The row of images inside Google's web results comes back as inline_images: title, page link, site and thumbnail. Ten desktop searches checked, six had one.

November 30, 2026
By SerpBase Team3 min read

Short answer: the image pack — the row of images Google puts inside the normal web results — comes back as inline_images from /google/search. Each image has a title, the page it links to, the site name and a thumbnail URL. In our tests it appeared on the desktop layout, so send "device":"desktop".

The request

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

This is an ordinary Google search at 1 credit. You do not need the separate image search endpoint to see what the image pack holds.

What came back

We ran ten desktop searches on 1 December 2026. Six returned an image pack:

QueryImagesBlock on the page (position)
golden retriever45
tesla model 344
eiffel tower33
stripe34
lakers33
lakers game28

The other four (github, amazon, new york times, real madrid) had no image pack that day.

Two of the four "golden retriever" images:

"inline_images": [
  {
    "rank": 1,
    "position": 5,
    "title": "Golden Retriever | VIRIDEA",
    "link": "https://www.viridea.it/consigli/golden-retriever/",
    "source": "viridea.it",
    "display_link": "www.viridea.it",
    "thumbnail_url": "https://www.viridea.it/wp-content/uploads/2008/04/Golden-Retriever.jpg"
  },
  {
    "rank": 2,
    "position": 5,
    "title": "Golden Retriever Dog Breed & Adoption Info | Petfinder",
    "link": "https://www.petfinder.com/dogs-and-puppies/breeds/golden-retriever/",
    "source": "petfinder.com",
    "thumbnail_url": "https://consumer-cms.petfinder.com/sites/default/files/images/content/Golden%20Retriever%201.jpg"
  }
]

rank is the order inside the pack; position is where the whole pack sits among the blocks of the results page (1 is the top). For "eiffel tower" the pack was block 3, above most organic results.

The phone-layout answers we got for "golden retriever", "lakers", "github" and "airbnb" had no inline_images.

Python: which sites own the image pack

import requests

r = requests.post(
    "https://api.serpbase.dev/google/search",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={"q": "tesla model 3", "gl": "us", "hl": "en", "device": "desktop"},
    timeout=60,
).json()
if r["status"] != 0:
    raise SystemExit(r.get("error"))

pack = r.get("inline_images", [])
if not pack:
    print("no image pack on this page")
for img in pack:
    print(img["rank"], img.get("source"), img["link"])
print("pack is block", pack[0]["position"] if pack else None)

Things that trip people up

  • It is optional. Google shows the pack only for some queries, and the field is left out when it is missing. Treat absence as "no pack", not as an error.
  • The thumbnail is often the full image on the publisher's site. When the page names the original, thumbnail_url points there; otherwise it is Google's own thumbnail. Linking to an image does not give you rights to reuse it.
  • For many images, use image search. The pack holds 2–4 images; Google Images returns up to 100 per request.
  • Track it like a ranking. For image SEO, record whether your domain is in inline_images and at which rank, next to your organic position.

Related

Cost and docs

A Google search is 1 credit, whatever modules the page has. Failed requests are not charged, and new accounts get 500 free credits.