~ / 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

Quickstart

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)

Response

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.

Params

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.

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

How it works

  1. Send a GET request with your target and API key.
  2. We route through residential proxies, handle anti-bot, and parse the response.
  3. You get validated JSON back, ready to use.

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.

Get knowledge graph api as JSON
Free plan, 1,000 requests. No credit card required.
Get a free API key All endpoints