Skip to content
Fieldwork
Esc
↑↓navigate↵open⌘Jpreview

search_web

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
Authorization
AuthorizationBearer token · headerrequired

A Fieldwork gateway key, issued per agent by the operator. Send it as Authorization: Bearer <key>.

Request body
requiredapplication/json
providerstring
Allowed:exafirecrawltavilyparallelbraveserpapibrowserbase
timeoutinteger

Maximum wait in milliseconds. Resume a returned jobId to collect a long job.

min 1 · max 45000
One of:
object
querystringrequired

What to search for.

limitinteger

How many results to return.

min 1 · max 20
includeDomainsstring[]

Only use results from these domains, such as example.com. Firecrawl, Parallel and Perplexity refuse includeDomains and excludeDomains together.

excludeDomainsstring[]

Leave out results from these domains, such as example.com. Firecrawl, Parallel and Perplexity refuse includeDomains and excludeDomains together.

publishedAfterstring<date>

Only pages published on or after this date, YYYY-MM-DD.

publishedBeforestring<date>

Only pages published before this date, YYYY-MM-DD.

countrystring

Localize results to this country, as a two-letter ISO code such as GB.

matches ^[A-Za-z]{2}$
contentboolean

Include each result's page text. Slower and longer; leave out to get snippets only.

maxCharsPerResultinteger

Cap on the characters of passages or excerpts returned for each result.

min 1
maxAgeinteger

Use a cached copy of the page if it is no older than this many seconds. 0 always fetches a fresh copy.

min 0
maxCharactersinteger

Shared long-text budget for this call; defaults to 20000. Never sent to the provider.

min 1 · max 200000
timeoutinteger

Maximum wait in milliseconds. Resume a returned jobId to collect a long job.

min 1 · max 45000
object
querystringrequired

What to search for.

limitinteger

How many results to return.

min 1 · max 20
includeDomainsstring[]

Only use results from these domains, such as example.com. Firecrawl, Parallel and Perplexity refuse includeDomains and excludeDomains together.

excludeDomainsstring[]

Leave out results from these domains, such as example.com. Firecrawl, Parallel and Perplexity refuse includeDomains and excludeDomains together.

publishedAfterstring<date>

Only pages published on or after this date, YYYY-MM-DD.

publishedBeforestring<date>

Only pages published before this date, YYYY-MM-DD.

countrystring

Localize results to this country, as a two-letter ISO code such as GB.

matches ^[A-Za-z]{2}$
contentboolean

Include each result's page text. Slower and longer; leave out to get snippets only.

maxCharsPerResultinteger

Cap on the characters of passages or excerpts returned for each result.

min 1
maxAgeinteger

Use a cached copy of the page if it is no older than this many seconds. 0 always fetches a fresh copy.

min 0
maxCharactersinteger

Shared long-text budget for this call; defaults to 20000. Never sent to the provider.

min 1 · max 200000
timeoutinteger

Maximum wait in milliseconds. Resume a returned jobId to collect a long job.

min 1 · max 45000
providerstringrequired
object
querystringrequired

What to search for.

limitinteger

How many results to return.

min 1 · max 20
includeDomainsstring[]

Only use results from these domains, such as example.com. Firecrawl, Parallel and Perplexity refuse includeDomains and excludeDomains together.

excludeDomainsstring[]

Leave out results from these domains, such as example.com. Firecrawl, Parallel and Perplexity refuse includeDomains and excludeDomains together.

publishedAfterstring<date>

Only pages published on or after this date, YYYY-MM-DD.

publishedBeforestring<date>

Only pages published before this date, YYYY-MM-DD.

recencystring

Only pages from the last hour, day, week, month or year. Firecrawl and SerpApi refuse it together with publishedAfter or publishedBefore.

Allowed:hourdayweekmonthyear
countrystring

Localize results to this country, as a two-letter ISO code such as GB.

matches ^[A-Za-z]{2}$
contentboolean

Include each result's page text. Slower and longer; leave out to get snippets only.

maxCharactersinteger

Shared long-text budget for this call; defaults to 20000. Never sent to the provider.

min 1 · max 200000
timeoutinteger

Maximum wait in milliseconds. Resume a returned jobId to collect a long job.

min 1 · max 45000
providerstringrequired
object
querystringrequired

What to search for.

limitinteger

How many results to return.

min 1 · max 20
includeDomainsstring[]

Only use results from these domains, such as example.com. Firecrawl, Parallel and Perplexity refuse includeDomains and excludeDomains together.

excludeDomainsstring[]

Leave out results from these domains, such as example.com. Firecrawl, Parallel and Perplexity refuse includeDomains and excludeDomains together.

publishedAfterstring<date>

Only pages published on or after this date, YYYY-MM-DD.

publishedBeforestring<date>

Only pages published before this date, YYYY-MM-DD.

recencystring

Only pages from the last day, week, month or year. Brave refuse it together with publishedAfter or publishedBefore.

Allowed:dayweekmonthyear
countrystring

Localize results to this country, as a two-letter ISO code such as GB.

matches ^[A-Za-z]{2}$
languagestring

Prefer pages in this language, as an ISO 639-1 code such as en.

contentboolean

Include each result's page text. Slower and longer; leave out to get snippets only.

chunksPerSourceinteger

Passages to return per page, 1 to 3.

min 1 · max 3
maxAgeinteger

Use a cached copy of the page if it is no older than this many seconds. 0 always fetches a fresh copy.

min 0
maxCharactersinteger

Shared long-text budget for this call; defaults to 20000. Never sent to the provider.

min 1 · max 200000
timeoutinteger

Maximum wait in milliseconds. Resume a returned jobId to collect a long job.

min 1 · max 45000
providerstringrequired
object
querystringrequired

What to search for.

limitinteger

How many results to return.

min 1 · max 20
includeDomainsstring[]

Only use results from these domains, such as example.com. Firecrawl, Parallel and Perplexity refuse includeDomains and excludeDomains together.

excludeDomainsstring[]

Leave out results from these domains, such as example.com. Firecrawl, Parallel and Perplexity refuse includeDomains and excludeDomains together.

publishedAfterstring<date>

Only pages published on or after this date, YYYY-MM-DD.

countrystring

Localize results to this country, as a two-letter ISO code such as GB.

matches ^[A-Za-z]{2}$
maxCharsPerResultinteger

Cap on the characters of passages or excerpts returned for each result.

min 1
maxCharsTotalinteger

Cap on the characters of passages or excerpts returned across all results.

min 1
maxAgeinteger

Use a cached copy of the page if it is no older than this many seconds. At least 600: Parallel cannot always fetch fresh.

min 600
maxCharactersinteger

Shared long-text budget for this call; defaults to 20000. Never sent to the provider.

min 1 · max 200000
timeoutinteger

Maximum wait in milliseconds. Resume a returned jobId to collect a long job.

min 1 · max 45000
providerstringrequired
object
querystringrequired

What to search for.

limitinteger

How many results to return.

min 1 · max 20
publishedAfterstring<date>

Only pages published on or after this date, YYYY-MM-DD.

publishedBeforestring<date>

Only pages published before this date, YYYY-MM-DD.

recencystring

Only pages from the last day, week, month or year. Brave refuse it together with publishedAfter or publishedBefore.

Allowed:dayweekmonthyear
countrystring

Localize results to this country, as a two-letter ISO code such as GB.

matches ^[A-Za-z]{2}$
languagestring

Prefer pages in this language, as an ISO 639-1 code such as en.

contentboolean

Include each result's page text. Slower and longer; leave out to get snippets only.

maxTokensinteger

Total token budget for all results' passages, 1024 to 32768. Requires content: true.

min 1024 · max 32768
maxTokensPerResultinteger

Token cap for one result's passages, 512 to 8192. Requires content: true.

min 512 · max 8192
maxCharactersinteger

Shared long-text budget for this call; defaults to 20000. Never sent to the provider.

min 1 · max 200000
timeoutinteger

Maximum wait in milliseconds. Resume a returned jobId to collect a long job.

min 1 · max 45000
providerstringrequired
object
querystringrequired

What to search for.

publishedAfterstring<date>

Only pages published on or after this date, YYYY-MM-DD.

publishedBeforestring<date>

Only pages published before this date, YYYY-MM-DD.

recencystring

Only pages from the last hour, day, week, month or year. Firecrawl and SerpApi refuse it together with publishedAfter or publishedBefore.

Allowed:hourdayweekmonthyear
countrystring

Localize results to this country, as a two-letter ISO code such as GB.

matches ^[A-Za-z]{2}$
languagestring

Prefer pages in this language, as an ISO 639-1 code such as en.

maxCharactersinteger

Shared long-text budget for this call; defaults to 20000. Never sent to the provider.

min 1 · max 200000
timeoutinteger

Maximum wait in milliseconds. Resume a returned jobId to collect a long job.

min 1 · max 45000
providerstringrequired
object
querystringrequired

What to search for.

limitinteger

How many results to return.

min 1 · max 20
maxCharactersinteger

Shared long-text budget for this call; defaults to 20000. Never sent to the provider.

min 1 · max 200000
timeoutinteger

Maximum wait in milliseconds. Resume a returned jobId to collect a long job.

min 1 · max 45000
providerstringrequired
Responses
200

The provider that ran the call and its normalized result.

providerstringrequired
Allowed:exafirecrawltavilyparallelbraveserpapibrowserbase
requestIdstringrequired
resultobjectrequired
Show properties
answerstring
imagesobject[]
Show properties
Array of object
descriptionstring
heightnumber
sourceUrlstring
thumbnailUrlstring
titlestring
urlstringrequired
widthnumber
metaobject

Request details from the provider: its request id, what it charged and any warnings.

Show properties
requestIdstring
usageobject
Show properties
costUsdnumber
creditsnumber
unitsobject
warningsstring[]
resultsobject[]required
Show properties
Array of object
authorstring
contentstring
faviconstring
imagestring
kindstring
lastUpdatedAtstring
placeobject
Show properties
addressstring
latitudenumber
longitudenumber
priceobject
Show properties
amountstring
currencystring
formattedstring
publishedAtstring
ratingnumber
reviewCountnumber
scorenumber
snippetstring
titlestring
urlstringrequired
truncatedobject[]

One entry for each cut text field; absent when nothing was cut.

Show properties
Array of object
lengthintegerrequired

Original character length.

min 0
pathstringrequired
shownintegerrequired

Characters shown before the inline cut note.

min 0
default

A refusal or a failed call. Branch on error.code; never parse the message.

errorobjectrequired
Show properties
codestringrequired
Allowed:AbortedInvalidRequestJobFailedNotAFileNotFoundProviderErrorRateLimitedTimeoutTooLargeUnauthorizedUnsupported
jobIdstring

A job that was already started. Pass it as resume instead of repeating the call.

messagestringrequired
providerstring
retryAfternumber

Seconds to wait.

retryablebooleanrequired

Whether repeating the same call can succeed.

requestIdstring
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST '/api/v1/tools/search_web' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "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
}'
Response
{
  "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
      }
    ]
  }
}

Was this page helpful?