Copied to clipboard!

Bing Knowledge Graph API

Code examples
Daily build status

For some requests, Bing search includes a "Knowledge Graph" block, typically on the right side. SerpApi is able to extract and make sense of this information.

Knowledge Graph for "PewDiePie"


Bing page structure:

Zoom In

Bing Knowledge Graph PewDiePie
SerpApi JSON structure:
{
. . .
"knowledge_graph": {
    "type": "TVShow",
    "title": "PewDiePie",
    "subtitle": "Swedish Youtuber",
    "description": "Felix Arvid Ulf Kjellberg, better known online as PewDiePie, is a Swedish YouTuber, actor, comedian and gamer–commentator, best known for his YouTube video content, which mainly consists of Let's Play co…Felix Arvid Ulf Kjellberg, better known online as PewDiePie, is a Swedish YouTuber, actor, comedian and gamer–commentator, best known for his YouTube video content, which mainly consists of Let's Play commentaries, vlogs, and comedic formatted shows.",
    "website": "https://www.youtube.com/user/PewDiePie",
    "interesting_stories": {
      "title": "Interesting stories",
      "links": [
        {
          "title": "\nWhat I Don't Understand About PewDiePie\n",
          "href": "https://www.forbes.com/sites/danidiplacido/2019/03/31/what-i-dont-understand-about-pewdiepie/#b8de39742d5a"
        },
        ...
      ]
    },
    "movies_and_tv_shows": {
      "title": "Movies and TV shows",
      "lists": [
        [
          {
            "text": "Scare PewDiePie",
            "links": [
              "/search?q=scare+pewdiepie+tv+show&filters=ufn%3a%22scare+pewdiepie+tv+show%22+sid%3a%22d6f14e1b-ffc9-2814-d7f2-38377e50e6f4%22+catguid%3a%22e66f4449-9246-370f-c913-8bfb46f02abf_df879f25%22+segment%3a%22generic.carousel%22&FORM=SNAPST"
            ],
            "paragraphs": [
              "Scare PewDiePie"
            ]
          },
          ...
        ]
      ],
      "links": [
        {
          "title": "Scare PewDiePie",
          "href": "/search?q=scare+pewdiepie+tv+show&filters=ufn%3a%22scare+pewdiepie+tv+show%22+sid%3a%22d6f14e1b-ffc9-2814-d7f2-38377e50e6f4%22+catguid%3a%22e66f4449-9246-370f-c913-8bfb46f02abf_df879f25%22+segment%3a%22generic.carousel%22&FORM=SNAPST",
          "image": {
            "title": "Scare PewDiePie",
            "alt": "Scare PewDiePie",
            "src": "https://bing.com/th?id=AMMS_36e9edfbcf03c7dbb859998d4bfc6527&w=75&h=110&c=7&rs=1&qlt=80&cdv=1&pid=16.1"
          }
        },
        ...
      ]
    },
    "timeline": {
      "title": "Timeline",
      "table": [
        [
          "2011:",
          "He then went on to pursue a degree in industrial economics and technology management at Chalmers University of Technology, but left the university in 2011."
        ],
        [
          "2013:",
          "PewDiePie was awarded Shorty Award for Gaming in 2013."
        ],
        ...
      ]
    },
    "people_also_search_for": {
      "title": "People also search for",
      "lists": [ ... ],
      "links": [ ... ]
    }
  },
  ...
}

Possible Field Values


Top-level Knowledge Graph Parameters

These top-level parameters typically exist across all knowledge graphs, but in some instances may be undefined.

Name
Required
Description

type

Required

The type of this knowledge graph. Can be one of many String combinations, e.g. "TVShow" or "SocialActive".

title

Optional

The title of this knowledge graph.

subtitle

Optional

The subtitle of this knowledge graph.

description

Optional

A description for this knowledge graph.

website

Optional

The main website for this knowledge graph.

image

Optional

An image representing this knowledge graph.

Additional parameters

Additional parameters might exist depending on the type of knowledge graph returned. For example, a knowledge graph type of "TVShow" wll have the movies_and_tv_shows parameter in the result set. These are referred to as submodules and they have the following fields:

knowledge_graph.{movies_and_tv_shows, ...}
Name
Required
Description

title

Required

The identifier for this submodule, e.g. "Movies and TV shows".

subtitle

Optional

Subtitle for this submodule.

table

Optional

Tabular data represented as a list of rows containing column data.

lists

Optional

Lists of list data for this submodule.

slide

Optional

Image slideshow data for this submodule.

links

Optional

Flat list of links in this submodule.

formatted

Optional

Submodule-specific formatted content.