~ / endpoints / Knowledge Graph API

Bing Knowledge Graph Scraper API

Our Bing knowledge graph scraper reads the answer box and the right-rail entity panel Bing shows for a query, returning the answer, secondary value, entity title, attributes, image, and official website as JSON on the same call that fetches the organic results.

Get a free API keyFull endpoint list
1,000
free requests / mo
2.6s
median response
JSON
structured output
1
call for the panel
the wall

Why Bing makes Bing Knowledge Graph data hard

The answer box and entity panel are where Bing puts the direct facts, but there is no API for them and Bing gates most of the entity card behind client-side hydration. The fact-style answer box server-renders on measurement and quick-fact queries; the full knowledge panel renders only when Bing chooses to. We parse whichever is present and return it as clean JSON, never failing the call over a missing block.

kickoff

The Bing Knowledge Graph Scraper API, one request away

cURL
curl "https://api.bingscraperapi.com/api/v1/bing/search?q=how+tall+is+mount+everest&api_key=$API_KEY"
Python
import requests

BASE = "https://api.bingscraperapi.com"
API_KEY = "YOUR_API_KEY"

data = requests.get(
    f"{BASE}/api/v1/bing/search",
    params={"q": "how tall is mount everest", "api_key": API_KEY},
    timeout=30,
).json()

# The featured answer / fact box (present on quick-fact queries).
box = data.get("answer_box")
if box:
    print("answer:", box["answer"])

# The right-rail entity panel (present when Bing renders it).
kg = data.get("knowledge_graph")
if kg:
    print(kg["title"], "-", kg.get("type"))
    for k, v in kg.get("attributes", {}).items():
        print("  ", k, ":", v)
accepted params

Parameters

ParameterRequiredDefaultNotes
qrequired-The query or entity name, e.g. how tall is mount everest or mount everest. This drives which answer box and panel Bing shows.
urloptional-A full bing.com/search URL to parse instead of building one from q. Pass q or url.
countryoptionalUSTwo-letter market region, e.g. GB or DE. Sets mkt=en-XX so the panel is the stable national one. Defaults to US.
countoptional10Number of organic results to request alongside the blocks, 1 to 50. Defaults to 10.
api_keyrequired-Your API key, passed as a query parameter. Get one free at signup.
the payload

Fields returned by the Bing Knowledge Graph Scraper API

200 OK
{
  "query": "how tall is mount everest",
  "engine": "bing",
  "results_count": 8,
  "answer_box": {
    "type": "answer",
    "answer": "8,849 m / 29,032 ft",
    "title": "Deep dive into how tall is mount eve…"
  },
  "knowledge_graph": {
    "title": "Mount Everest",
    "type": "Mountain",
    "description": "Earth's highest mountain above sea level, on the China-Nepal border.",
    "attributes": {
      "Elevation": "8,849 m",
      "First ascent": "May 29, 1953",
      "Mountain range": "Himalayas, Mahalangur Himal"
    },
    "image": "https://www.bing.com/th?id=...",
    "website": "https://whc.unesco.org/en/list/120",
    "source": "bing"
  }
}
FieldTypeDescription
answer_boxobjectThe featured answer or fact box. Present on quick-fact queries; omitted otherwise.
answer_box.answerstringThe direct answer text, e.g. a fact-table value like 8,849 m / 29,032 ft.
answer_box.secondarystringA secondary focus value when Bing shows one alongside the main answer.
answer_box.titlestringThe label or heading Bing prints above the answer.
knowledge_graphobjectThe right-rail entity panel. Present only when Bing server-renders it for the query.
knowledge_graph.titlestringThe entity name, e.g. Mount Everest.
knowledge_graph.typestringThe entity type or subtitle, e.g. Mountain.
knowledge_graph.attributesobjectLabel-value pairs from the panel's fact table, e.g. Elevation, First ascent.
knowledge_graph.websitestringThe entity's official website, decoded from Bing's redirect, when shown.
workflows

What this data is good for

>

Answer and fact capture

Read the answer_box on quick-fact queries to pull the direct answer Bing surfaces, useful for FAQ datasets and grounding an assistant.
>

Entity enrichment

When Bing renders the panel, harvest the entity title, type, attributes, image, and website to enrich a record with structured facts.
>

Featured-snippet monitoring

Track whether Bing shows an answer box for your target queries and what it says, so you can see when your content is or is not the cited answer.
>

Knowledge base building

Collect attribute tables across a set of entities to seed a structured knowledge base without hand-copying panel facts.
>

Brand and entity checks

Query your brand or product and inspect the panel Bing builds for it, so you can spot wrong attributes or a missing official website link.
>

Assistant grounding

Feed the answer and entity attributes, with the cited website, into a chat feature so it answers factual queries with a source.
under the hood

Why our Bing Knowledge Graph Scraper API is reliable

One call returns the organic results plus the answer box and, when Bing renders it, the entity knowledge panel, each parsed into clean JSON with the official website decoded from Bing's redirect. Every parser is defensive, so a missing block returns nothing rather than erroring, and the request runs through rotating proxies with anti-bot handling and retries at a 2.6s median.

*

Answer box parsed

The featured answer or fact-table box returns type, answer, optional secondary value, and title on quick-fact queries.
*

Entity panel when present

The knowledge_graph object returns title, type, description, an attribute table, image, and website whenever Bing server-renders the panel.
*

Blocks on the organic call

You do not call a separate endpoint. The answer box and panel attach to the same bing/search response as the organic results.
*

Decoded website link

The entity's official website is unwrapped from Bing's ck/a redirect to the real URL rather than a tracking link.
*

Defensive, never fails on a block

A missing answer box or panel returns nothing and never throws, so enrichment never breaks the core response.
*

Anti-bot and proxy rotation

Requests escalate through datacenter and residential proxy tiers with anti-bot handling if a block is detected.
weigh it up

Choosing between the Bing Knowledge Graph Scraper API and the Bing API

Our APIDIY (requests / headless)Bing Web Search API (Azure)
Answer boxParsed on fact queriesYou write the selectorSome answers via computation
Entity panelReturned when Bing renders itYou parse the entity cardEntities via a separate API
AvailabilityLive and maintainedDepends on your setupClosed to new customers, sunsetting
Website linkDecoded to the real URLYou decode ck/a redirects yourselfClean URLs
SetupAPI key onlyProxies, headless browser, parsersAzure account and resource keys
DeliveryOn the organic call, no extra requestExtra parsing per blockSeparate response fields
price

Straightforward pricing

PlanPriceBest for
Free1,000 requestsTesting and small jobs
Pro$0.60 / 1kProduction workloads
Pay-as-you-go$0.90 / 1kSpiky or one-off volume

Median response 2.6s. You only pay for successful requests.

FAQ

What is a Bing knowledge graph scraper?

A Bing knowledge graph scraper reads the answer box and the right-rail entity panel Bing shows for a query and returns them in a structured format. Our API returns the answer box with its direct answer on quick-fact queries, and when Bing renders the entity panel it returns the title, type, description, attribute table, image, and official website as JSON, on the same call as the organic results.

Does every query return a knowledge panel?

No. Bing gates most of the entity card behind client-side hydration and server-renders the full panel only when it chooses to, so the knowledge_graph object is present on some queries and omitted on others. The fact-style answer box renders more reliably on measurement and quick-fact queries. Our parser returns whichever block Bing serves and never fails the request over a missing one.

What is the difference between the answer box and the knowledge graph?

The answer box is the direct answer Bing prints for a factual query, for example a height or a date, returned in the answer_box object. The knowledge graph is the right-rail entity panel with a title, type, description, and an attribute table, returned in the knowledge_graph object. A query can trigger one, both, or neither, and our endpoint returns whatever Bing renders.

Which queries reliably return an answer box?

Measurement and quick-fact queries are the most reliable, for example how tall, how far, when did, or a unit conversion. Bing server-renders these as a fact table, which our parser reads into answer_box. Broader or ambiguous queries may return no answer box, in which case the field is simply omitted and you fall back to the organic results.

Is the entity website a real link?

Yes. When the panel includes an official website, our scraper decodes it from Bing's ck/a redirect wrapper and returns the real destination URL in knowledge_graph.website, so it points straight at the entity's site rather than a bing.com tracking link.

How do I get the answer box and panel in one request?

Call the bing/search endpoint with your query. The same response carries the organic results plus the answer_box and, when present, the knowledge_graph object. You read the fields you need. There is no separate endpoint or extra request for the panel, and each call counts as one request against your plan.

Build with knowledge graph api data
Begin free with 1,000 requests, no credit card.
Get a free API key Full endpoint list