Short answer: search for an entity on /google/search and the knowledge panel Google shows comes back as a knowledge_graph object — title, type line, description with its source, and the fact rows (born, height, owners and so on) as key/value pairs.
Google's own Knowledge Graph Search API returns an entity's name, type and a short description. It does not return the fact rows you see in the panel. Those are only on the results page, and this endpoint reads them from there.
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":"Eiffel Tower","gl":"us","hl":"en","device":"desktop"}'
What comes back
We ran these on 27 November 2026.
Eiffel Tower, desktop. title Eiffel Tower, type Tower in Paris, France, a two-sentence description with description_source Wikipedia, and nine rows in attributes: Architects, Architecture firm, Construction started (January 26, 1887), Contractor, Floors (3), Height (984′, 1,083′ to tip), Opened (May 15, 1889), Rating (4.7) and Reviews.
Marie Curie, desktop. type Polish-French physicist and chemist, a description from Wikipedia, an image_url, and seven rows: Awards, Born (November 7, 1867, Warsaw, Poland), Children, Died, Education, Parents and Spouse (Pierre Curie (m. 1895–1906)).
Eiffel Tower, mobile. The same query with "device":"mobile" returned a much smaller object: title, type and two rows (Rating and Reviews). No description.
| Field | What it holds |
|---|---|
title | Entity name as shown in the panel |
type | The line under the name |
description, description_source | The panel text and where Google took it from |
attributes | The fact rows, as an object of label → value |
image_url | The panel image, when the page carries one |
position | Where the panel sits among the page's blocks (1 = first) |
Python: fact rows for a list of entities
import time, requests
ENTITIES = ["Eiffel Tower", "Marie Curie", "Golden Gate Bridge"]
for name in ENTITIES:
r = requests.post(
"https://api.serpbase.dev/google/search",
headers={"X-API-Key": "YOUR_API_KEY"},
json={"q": name, "gl": "us", "hl": "en", "device": "desktop"},
timeout=60,
).json()
if r["status"] != 0:
print(name, "failed:", r.get("error"))
continue
kg = r.get("knowledge_graph")
if not kg:
print(name, "no knowledge panel on this page")
continue
print(kg["title"], "|", kg.get("type"))
for label, value in kg.get("attributes", {}).items():
print(" ", label, "=", value)
time.sleep(1)
Things that trip people up
- Ask for desktop. The default device is mobile, and in our test the mobile page gave two fact rows where desktop gave nine plus the description.
- The field is left out when there is no panel. Use
.get("knowledge_graph"), not["knowledge_graph"]. - Row labels are whatever Google shows for that entity. A tower has Height and Floors, a person has Born and Spouse. Do not expect a fixed schema inside
attributes. typeis the line under the name, not a category code. Forlos angeles lakersit came back as1st in Western Conference.- All values are strings as displayed, including
RatingandReviews. Convert before you compare. image_urlcan be an inlinedata:image rather than an https address. Check the prefix before you store it as a link.
Related endpoints
The same response carries People Also Ask questions and, for stock tickers, a quote card; the dedicated Google Finance endpoint goes deeper on those.
Cost and limits
Each search costs 1 credit; failed requests are not charged. The response is always HTTP 200 with a status field: 0 means success, anything else comes with an error string. Credits cost $0.25–$0.50 per 1,000 depending on the plan, and new accounts get 500 free credits without a card.
- Parameters and the full response: Google web search docs
- Try it in the browser: Google web search
- Credit packs: pricing