---
search:
  tags:
    - search
    - POST
seo:
  description: >-
    Search the web and return a ranked list of pages with their titles,…
    Reference for the POST /api/v1/tools/search_web endpoint in the Fieldwork
    gateway API.
sidebar:
  label: search_web
  badge: POST
title: search_web
type: openapi-operation
---
Search the web and return a ranked list of pages with their titles, URLs and matching snippets. Use when you need pages about a topic, product or fact and do not have a URL yet. Do not use to read a page you already have a URL for (use read_page), for pictures of a subject (use search_images), for where an image appears (use search_by_image), or for a question that needs several sources combined into an answer (use research_question). Choose provider by query style: exa for neural/semantic queries and capped highlights; firecrawl for web search with full-page Markdown; tavily for hybrid search with chunked passages; parallel for objective-driven semantic search and char-budgeted excerpts; brave for lexical/keyword queries, search operators and token-budgeted passages (content: true); serpapi for Google/Bing SERPs and exact keyword queries; browserbase for managed web search. Defaults to exa. Set provider to choose another supported provider; Fieldwork never switches providers after an error.

`POST /api/v1/tools/search_web`

**Request body** (`application/json`, required)

- `provider` (string)
- `timeout` (integer) — Maximum wait in milliseconds. Resume a returned jobId to collect a long job.

Request body example:

```json
{
  "provider": "exa",
  "timeout": 1,
  "query": "string",
  "limit": 1,
  "includeDomains": [
    "string"
  ],
  "excludeDomains": [
    "string"
  ],
  "publishedAfter": "2019-08-24",
  "publishedBefore": "2019-08-24",
  "country": "string",
  "content": true,
  "maxCharsPerResult": 1,
  "maxAge": 0,
  "maxCharacters": 1
}
```

**Responses**

- `200` — The provider that ran the call and its normalized result.
- `default` — A refusal or a failed call. Branch on error.code; never parse the message.

Response example, 200:

```json
{
  "provider": "exa",
  "requestId": "string",
  "result": {
    "answer": "string",
    "images": [
      {
        "description": "string",
        "height": 0,
        "sourceUrl": "string",
        "thumbnailUrl": "string",
        "title": "string",
        "url": "string",
        "width": 0
      }
    ],
    "meta": {
      "requestId": "string",
      "usage": {
        "costUsd": 0,
        "credits": 0,
        "units": {
          "property1": 0,
          "property2": 0
        }
      },
      "warnings": [
        "string"
      ]
    },
    "results": [
      {
        "author": "string",
        "content": "string",
        "favicon": "string",
        "image": "string",
        "kind": "string",
        "lastUpdatedAt": "string",
        "place": {
          "address": "string",
          "latitude": 0,
          "longitude": 0
        },
        "price": {
          "amount": "string",
          "currency": "string",
          "formatted": "string"
        },
        "publishedAt": "string",
        "rating": 0,
        "reviewCount": 0,
        "score": 0,
        "snippet": "string",
        "title": "string",
        "url": "string"
      }
    ],
    "truncated": [
      {
        "length": 0,
        "path": "string",
        "shown": 0
      }
    ]
  }
}
```
