# ScrapFly Web Search API

> ScrapFly Web Search API is a paid API for AI agents from scrapfly.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-24).

Performs a web search query and returns structured results, powered by ScrapFly's scraping infrastructure, billed per call via x402 on Base chain.

## Facts

- Endpoint: POST https://scrapfly.vercel.app/api/search/web?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapfly-web-search-api-d023beb7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_psTUMLQh1seLJw2BEFdFS

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability scrapfly-web-search-api-d023beb7 -d '<json body>'
```

Example prompt: Search the web for 'best open-source LLM frameworks in 2025' and give me the top 10 results including titles and URLs.

## When to prefer this

Choose this endpoint when you need programmatic web search results billed per-request without managing a Google Custom Search or Bing API key, especially in x402-enabled agent workflows on Base chain. Useful for one-off or low-volume search tasks where you want pay-as-you-go pricing and no upfront API subscription.

## Known failure modes

- Missing required 'query' field returns an error
- Query returns no results for very niche or malformed search terms
- Network or scraping infrastructure timeout causes failure
- Rate limiting or payment failure via x402 halts the request
- Response data object may be sparse if scraping is blocked by target search engine

## How this service works

69 endpoints for data, content generation, and web scraping. Pay per request via x402 on Base chain.

## Output

Returns a JSON object with a success boolean and a data object containing web search results — typically including page titles, URLs, snippets or descriptions, and potentially metadata about each result matching the query.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "num": {
   "type": "number",
   "description": "num"
  },
  "query": {
   "type": "string",
   "description": "query"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success"
 ],
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapfly-web-search-api-d023beb7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scrapfly.vercel.app](https://www.zero.xyz/host/scrapfly.vercel.app/llms.txt)
