DuckDuckGo Knowledge Graph API

When a DuckDuckGo search contains knowledge graph, it is parsed and exist within the knowledge_graph hash in the JSON output. Knowledge graph can contain title, description, website, facts, profiles, related_topics, and more.

API Examples

Knowledge graph results overview

Knowledge graph results overview

JSON Example

{
  ...
  "knowledge_graph": {
    "title": "Bill Gates",
    "description": "William Henry Gates III is an American business magnate, software developer, investor, author, and philanthropist. He is the co-founder of Microsoft Corporation. During his career at Microsoft, Gates held the positions of chairman, chief executive officer, president and chief software architect, while also being the largest individual shareholder until May 2014. He is considered one of the best known entrepreneurs of the microcomputer revolution of the 1970s and 1980s. Gates was born and raised in Seattle, Washington. In 1975, he co-founded Microsoft with childhood friend Paul Allen in Albuquerque, New Mexico. It became the world's largest personal computer software company. Gates led the company as chairman and CEO until stepping down as CEO in January 2000, succeeded by Steve Ballmer, but he remained chairman of the board of directors and became chief software architect. During the late 1990s, he was criticized for his business tactics, which have been considered anti-competitive.",
    "website": "https://www.gatesnotes.com",
    "thumbnail": "https://duckduckgo.com/i/45eb7625.jpg",
    "facts": {
      "born": "William Henry Gates III, October 28, 1955, Seattle, Washington, U.S.",
      "education": "Harvard University (dropped out)",
      "occupation": "Software developer, investor, entrepreneur",
      "years_active": "1975–present",
      "known_for": "Co-founder of Microsoft",
      "net_worth": "US$144.7 billion (June 12, 2021)",
      "board_member_of": "Berkshire Hathaway, Microsoft (former, both)",
      "children": "3",
      "parents": "Bill Gates Sr. (father), Mary Maxwell (mother)"
    },
    "profiles": [
      {
        "name": "Wikipedia",
        "link": "https://en.wikipedia.org/wiki/Bill_Gates",
        "thumbnail": "https://duckduckgo.com/assets/icons/thirdparty/wikipedia.svg"
      },
      {
        "name": "Website",
        "link": "https://www.gatesnotes.com",
        "thumbnail": "https://duckduckgo.com/assets/icons/thirdparty/website.svg"
      },
      {
        "name": "Twitter profile",
        "link": "https://twitter.com/BillGates",
        "thumbnail": "https://duckduckgo.com/assets/icons/thirdparty/twitter.svg"
      },
      ...
    ],
    "related_topics": [
      {
        "query": "Bill Gates Category",
        "link": "https://duckduckgo.com/c/Bill_Gates"
      },
      {
        "query": "Big History Project - The Big History Project was co-founded by Bill Gates and David Christian to enable the global teaching of the subject of Big History, which is described as "the attempt to understand, in a unified way, the history of Cosmos, Earth, Life and Humanity."",
        "link": "https://duckduckgo.com/Big_History_Project"
      },
      {
        "query": "Directors of Microsoft",
        "link": "https://duckduckgo.com/c/Directors_of_Microsoft"
      },
      ...
    ]
  },
  ...
}