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:
| Query | Images | Block on the page (position) |
|---|---|---|
| golden retriever | 4 | 5 |
| tesla model 3 | 4 | 4 |
| eiffel tower | 3 | 3 |
| stripe | 3 | 4 |
| lakers | 3 | 3 |
| lakers game | 2 | 8 |
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_urlpoints 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_imagesand at whichrank, next to your organic position.
Related
- Mobile vs desktop results
- Knowledge panel, which sits beside the image pack on many entity searches
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.
- All response fields: Google Web Search docs
- Try it in the browser: Google Search API
- Credit packs: pricing