Diffbot Knowledge Graph API

The Knowledge Graph itself — a linked graph of over 10 billion entities (organizations, people, articles, places, products, job posts and more) crawled and structured from the public web. It is reached through two contracts, the DQL API for structured search and the Enhance API for single-entity enrichment, over a shared ontology. Entities carry first-class provenance and quality fields (confidence, salience, importance, origin, nbIncomingEdges, crawlTimestamp, sources) and are classified against NACE Rev 2.1, NAICS, ISO 3166 and IAB taxonomies. The entity shapes are documented as reference pages rather than declared as schemas in the published OpenAPI.

Operations 2

GET /kg/v3/dql Query the Knowledge Graph using DQL #
GET /kg/v3/enhance Enhance a person or organization record #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/diffbot-knowledge-graph-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

diffbot-knowledge-graph-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Diffbot Crawl Knowledge Graph API
  description: Diffbot's automatic web data extraction APIs. Includes the Extract family (Analyze, Article, Product, Image, Job, Video, Discussion, Event, List, Custom), Knowledge Graph (DQL Search, Enhance, Bulk Enhance), Crawl, and Natural Language Processing endpoints. All endpoints are authenticated via a token query parameter.
  version: '1.0'
servers:
- url: https://api.diffbot.com
  description: Diffbot API
- url: https://kg.diffbot.com
  description: Diffbot Knowledge Graph
- url: https://nl.diffbot.com
  description: Diffbot Natural Language
security:
- tokenAuth: []
tags:
- name: Knowledge Graph
paths:
  /kg/v3/dql:
    get:
      tags:
      - Knowledge Graph
      summary: Query the Knowledge Graph using DQL
      operationId: dqlSearch
      parameters:
      - name: query
        in: query
        required: true
        schema:
          type: string
        description: DQL query string
      - $ref: '#/components/parameters/Token'
      responses:
        '200':
          description: Query results
  /kg/v3/enhance:
    get:
      tags:
      - Knowledge Graph
      summary: Enhance a person or organization record
      operationId: enhance
      parameters:
      - name: type
        in: query
        required: true
        schema:
          type: string
          enum:
          - Person
          - Organization
      - name: name
        in: query
        schema:
          type: string
      - $ref: '#/components/parameters/Token'
      responses:
        '200':
          description: Enhanced record
components:
  parameters:
    Token:
      name: token
      in: query
      required: true
      schema:
        type: string
  securitySchemes:
    tokenAuth:
      type: apiKey
      in: query
      name: token