# 400860 Data API – Web Scrape Extract

> 400860 Data API – Web Scrape Extract is a paid API for AI agents from api.400860.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Extracts specific content from a web page using a CSS selector, returning the matched text or HTML.

## Facts

- Endpoint: POST https://api.400860.xyz/v1/scrape/extract
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/400860-data-api-web-scrape-extract-0efe39f5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9QoV2ZDJtTkvcK5mr6K7l

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 400860-data-api-web-scrape-extract-0efe39f5 -d '<json body>'
```

Example prompt: Scrape the main article text from https://example.com/post using the selector '.article-body' and limit the output to 2000 characters.

## When to prefer this

Choose this endpoint when you need to extract a specific element from a public webpage by CSS selector and want to pay per-call with no subscription. It is well-suited for agent workflows that need lightweight, targeted extraction rather than full-page crawls, especially in DeFi or Web3 contexts where x402 micropayment rails are already in use.

## Known failure modes

- Selector matches nothing on the page — returns empty result or error
- Target URL is unreachable or returns a non-200 status — request fails
- JavaScript-rendered content not accessible — static scraper may miss dynamic elements
- maxLength truncates content unexpectedly if set too low
- Rate limiting or bot protection on target site blocks the fetch
- Invalid CSS selector syntax causes a parsing error

## How this service works

x402-native paid API tools for DeFi yields, protocol TVL, AI pricing, paid MCP calls, and web scraping.

## Output

A JSON object containing the extracted content matched by the provided CSS selector on the target URL — typically text, HTML, or attribute values from the selected element(s). The response structure is flexible and may include the raw extracted string and metadata about the match.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url",
  "selector"
 ],
 "properties": {
  "url": {
   "type": "string"
  },
  "selector": {
   "type": "string"
  },
  "maxLength": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/400860-data-api-web-scrape-extract-0efe39f5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.400860.xyz](https://www.zero.xyz/host/api.400860.xyz/llms.txt)
