---
title: "Run a Web Search"
method: GET
path: "/"
---

# Run a Web Search

`GET /`

Search Diffbot's Web Index

## Query parameters

- `text` string, required
- `size` number
- `maxTokens` number

## Response `200`

Successful response

- object
  - `query` string[]
  - `search_results` object[]
    - `score` number — Represents the confidence of the result from 0 (lowest) to highest (1). 3 decimal places of precision.
    - `pageUrl` string — URL of the page.
    - `title` string — Title of the page.
    - `content` string — A spliced chunk highlight from the original full page contents.
  - `timeMs` integer — Time taken for retrieval, reranking, and response generation.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.net/diffbot/apis/web-search.md) · [All operations](https://skmtc.net/diffbot/apis/web-search/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/diffbot/web-search/versions/8b88d7dabe63/schema)
