# GEDX402 Browser Scrape

> GEDX402 Browser Scrape is a paid API for AI agents from browser.gedx402.com, paid per call via x402, $0.06/call, status unknown (last checked 2026-09-15).

Headless browser scraping of a URL or raw HTML using CSS selectors, returning extracted element content as structured data

## Facts

- Endpoint: GET https://browser.gedx402.com/v1/browser/scrape
- Price: $0.06/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-browser-scrape-baac2bf7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xnBXqeuTznTyiO5rmm9QQ

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 gedx402-browser-scrape-baac2bf7
```

Example prompt: Scrape the URL https://example.com/products and extract all elements matching the CSS selector '.product-title' so I can see the list of product names on that page.

## When to prefer this

Choose this endpoint when you need to scrape a live URL or render raw HTML and extract specific elements via CSS selectors, without managing API keys — especially useful for pay-per-call crypto-native workflows using USDC on Base, Polygon, Arbitrum, World, or Solana.

## Known failure modes

- Invalid or unreachable URL returns an error or empty result
- CSS selector matches no elements — returns empty array
- Payment failure (insufficient USDC balance or unsupported chain) blocks the request
- JavaScript-heavy pages may not fully render if gotoOptions are not configured correctly
- Raw HTML provided without a valid selector may return unprocessed content

## How this service works

x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.

## Output

Returns a JSON object containing the scraped HTML or extracted element content matching the provided CSS selector or elements array from the rendered page.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "HTTPS URL to load (required unless html is set)."
  },
  "html": {
   "type": "string",
   "description": "Raw HTML to render instead of fetching a URL."
  },
  "prompt": {
   "type": "string",
   "description": "Natural-language extraction prompt (for /json)."
  },
  "elements": {
   "type": "array",
   "items": {
    "type": "object"
   },
   "description": "Scrape selectors (for /scrape)."
  },
  "selector": {
   "type": "string",
   "description": "CSS selector for element capture or scrape."
  },
  "viewport": {
   "type": "object",
   "description": "Browser viewport width/height/deviceScaleFactor."
  },
  "pdfOptions": {
   "type": "object",
   "description": "PDF print options."
  },
  "gotoOptions": {
   "type": "object",
   "description": "Puppeteer goto options (e.g. waitUntil: networkidle0)."
  },
  "response_format": {
   "type": "object",
   "description": "JSON schema for structured /json extraction."
  },
  "screenshotOptions": {
   "type": "object",
   "description": "fullPage, type, omitBackground, etc."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "html": "<html>...</html>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-browser-scrape-baac2bf7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from browser.gedx402.com](https://www.zero.xyz/host/browser.gedx402.com/llms.txt)
