v1

latestOpenAPI 3.0.02026-07-263039205.4 KB

Run a Web Search

Search Diffbot's Web Index

get/

Query parameters

textstring required

A search query

sizenumber

Number of results to return in the search response

maxTokensnumber

Cap the search response to this value. Highlight chunks will be reduced in length equitably.

Response

Successful response

querystring[]
timeMsinteger

Time taken for retrieval, reranking, and response generation.

Example response

{
  "query": [
    "Diffbot"
  ],
  "search_results": [
    {
      "score": 0.973,
      "pageUrl": "https://www.diffbot.com/",
      "title": "Web Data for your AI",
      "content": "Imagine if your app could access the web like a structured database.\n\n Your browser does not support the video tag. \n- 50+ data fields, including categories, revenue, locations, and investments\n- Over 246M companies and non-profits in the Knowledge Graph\n- Extract and refresh orgs on demand\n\n- More than just text — entity matching, topic-level sentiment, and more\n- Over 1.6B news articles, blog posts, and press releases in the Knowledge Graph\n\n\n##  The Web is Noisy, \nDiffbot Straightens it Out \n\nThe world's largest compendium of human knowledge is buried in the code of 1.2 billion public websites. Diffbot reads it all like a human, then transforms it into usable data."
    }
  ],
  "timeMs": 154
}
All 30 operations