↑ ↓ to move ↵ to open

Web Search

web.search

Return ranked web results (title, URL, snippet, summary, date, authority) for a query, with language, freshness and include or exclude domain filters.

At a glance

Endpoint ID
web.search
Price
2 credits per call; failed calls are free
Runs for up to
30 seconds
Request
POST /execute
Run an endpoint
MCP tool when pinned
web__search
Pin tools
OpenAPI
openapi.json
Download

Request

Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.

curl --request POST \  --url https://data.upscrape.com/execute \  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \  --header "Content-Type: application/json" \  --header "Prefer: wait=30" \  --data '{  "capability": "web.search",  "input": {    "freshness": "last_week",    "language": "en",    "limit": 10,    "query": "web scraping api"  }}'

Input

FieldTypeRequiredWhat it doesExample
query string yes The search query, including any provider operators such as site: or quoted phrases. Up to 128 characters including filters. web scraping api
exclude_domains array<string> no Domains to exclude from the results, such as competitor.com. At most 20.
freshness string no Restrict results to pages published in a recency window. Defaults to any. Allowed values: any, last_24_hours, last_week, last_month, last_year. last_week
include_domains array<string> no Only return results from these domains, such as reddit.com. At most 20.
language string no Result language as an ISO 639-1 code, optionally with a region (for example en, en-gb, ja). en
limit integer no Maximum results to return, 1 to 50. Defaults to 10. From 1 to 50. 10

Response

A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.

This is results[0].data from a real run:

results[0].data
{  "observed_at": "2026-11-30T00:00:00Z",  "source": "web",  "results": [    {      "title": "ScrapingBee - The Best Web Scraping API",      "date": "2026-11-27T00:00:00+00:00",      "authority": 3,      "domain": "scrapingbee.com",      "position": 1,      "rerank_score": 2.4,      "snippet": "ScrapingBee is a web scraping API that handles headless browsers and proxies for you.",      "summary": "ScrapingBee is a managed web scraping API with JavaScript rendering and rotating proxies. It is aimed at teams that need page data without …",      "url": "https://www.scrapingbee.com/"    },    {      "title": "Firecrawl | Web Data API for AI Agents",      "date": "2026-11-26T00:00:00+00:00",      "authority": 3,      "domain": "firecrawl.dev",      "position": 2,      "rerank_score": 2.1,      "snippet": "Firecrawl turns any website into clean, LLM-ready data with a single API call.",      "summary": "Firecrawl converts pages and sites into Markdown or structured data for AI applications. It combines scraping, crawling and extraction behi…",      "url": "https://www.firecrawl.dev/"    }  ]}

Fields

FieldTypeExample
results[].title string ScrapingBee - The Best Web Scraping API
results[].date string 2026-11-27T00:00:00+00:00
results[].authority integer 3
results[].domain string scrapingbee.com
results[].position integer 1
results[].rerank_score number 2.4
results[].snippet string ScrapingBee is a web scraping API that handles headless browser…
results[].summary string ScrapingBee is a managed web scraping API with JavaScript rende…
results[].url string https://www.scrapingbee.com/
observed_at string 2026-11-30T00:00:00Z
results array 2 records
source string web

If a call fails

A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.

Something missing or unclear? Ask the team that builds the Web Search endpoints.