Yandex Knowledge Graph API

/ Home / Yandex Search API / Knowledge Graph

Section to the right of organic results is called knowledge graph. In case it is present in the search result SerpApi will parse it and provide as a part of response.

Example with text:"how i met your mother" parameter

Example with text:"how i met your mother" parameter

JSON Example

{
  "search_metadata": {
    "id": "60f6ee420852913a8364a2d7",
    "status": "Success",
    "json_endpoint": "http://serpapi.com/searches/f727618f05a07e1e/60f6ee420852913a8364a2d7.json",
    "created_at": "2021-07-20 15:39:46 UTC",
    "processed_at": "2021-07-20 15:39:46 UTC",
    "yandex_url": "https://yandex.com/search/?text=how+i+met+your+mother",
    "raw_html_file": "http://serpapi.com/searches/f727618f05a07e1e/60f6ee420852913a8364a2d7.html",
    "total_time_taken": 2.23
  },
  "search_parameters": {
    "text": "how i met your mother",
    "engine": "yandex",
    "device": "desktop"
  },
  "search_information": {
    "organic_results_state": "Results for exact spelling",
    "total_results": "17 million results found",
    "query_displayed": "how i met your mother"
  },
  "knowledge_graph": {
    "title": "How I Met Your Mother",
    "image": "https://avatars.mds.yandex.net/get-entity_search/399718/295335987/SUx168_2x",
    "description": "American sitcom, created by Craig Thomas and Carter Bays for CBS. The series, which ran from 2005 to 2014, follows the main character, Ted Mosby, and his group of friends in New York City's Manhattan. As a framing device, Ted, in the year 2030,American sitcom, created by Craig Thomas and Carter Bays for CBS. The series, which ran from 2005 to 2014, follows the main character, Ted Mosby, and his group of friends in New York City's Manhattan. As a framing device, Ted, in the year 2030,",
    "source": {
      "name": "Wikipedia",
      "link": "http://en.wikipedia.org/wiki/How I Met Your Mother"
    },
    "first_episode_date": "September 19, 2005",
    "genre": "comedy, melodrama, drama",
    "country": "USA",
    "directors": "Neil Patrick Harris, Pamela Fryman, Michael Shea, Rob Greenberg",
    "music": "John Swihart",
    "profiles": [
      {
        "name": "IMDb",
        "link": "https://www.imdb.com/title/tt0460649/"
      },
      {
        "name": "Facebook",
        "link": "http://facebook.com/HowIMetYourMotherCBS"
      },
      {
        "name": "Twitter",
        "link": "http://twitter.com/OfficialHIMYM"
      }
    ],
    "cast": [
      {
        "name": "JoshRadnor",
        "extensions": [
          "Ted Mosby"
        ],
        "link": "https://yandex.com/search/?text=Josh%20Radnor&lr=10131&noreask=1&ento=0oCgpydXcyMDgxNTc2Eg9ydXcxNjQyOTYzOnRlYW0YA0IVaG93IGkgbWV0IHlvdXIgbW90aGVy8eD3Fw",
        "image": "https://avatars.mds.yandex.net/get-entity_search/979551/293548968/S76x101Face_2x"
      },
      {
        "name": "NeilPatrickHarris",
        "extensions": [
          "BarneyStinson"
        ],
        "link": "https://yandex.com/search/?text=Neil%20Patrick%20Harris&lr=10131&noreask=1&ento=0oCgpydXcxNjIzMzg1Eg9ydXcxNjQyOTYzOnRlYW0YA0IVaG93IGkgbWV0IHlvdXIgbW90aGVyjELv6Q",
        "image": "https://avatars.mds.yandex.net/get-entity_search/127219/128326408/S76x101Face_2x"
      },
      ...
    ]
  },