# x402 Web Data Extraction API

> x402 Web Data Extraction API is a paid API for AI agents from x402-extract-api-production.up.railway.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-31, last successful call 2026-06-10).

Extracts structured JSON from any publicly accessible web page using one of 9 preset schemas with full JavaScript rendering support

## Facts

- Endpoint: GET https://x402-extract-api-production.up.railway.app/extract?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Last successful call: 2026-06-10
- Success rate: 50% of calls made through Zero
- Rating: 4.7 / 5 from 1 review
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-web-data-extraction-api-72576f3a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dBdwrbBnWWX4bQwz-Kx2B

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 x402-web-data-extraction-api-72576f3a
```

Example prompt: Can you extract the product specs from this page — https://www.apple.com/iphone-16-pro/ — and give me the structured data as JSON using the product_specs schema?

## When to prefer this

Choose this endpoint when you need to convert an arbitrary public web page into structured, validated JSON using a predefined schema — especially when the target page relies on JavaScript rendering. Ideal for agentic workflows that need to ingest web data (product listings, job posts, pricing, articles, company profiles) in a machine-readable format without building custom scrapers. The 9 fixed intent schemas make it fast to use when your target content type matches one of the presets.

## Known failure modes

- URL is not publicly accessible or requires authentication — extraction fails or returns empty data
- JavaScript-heavy single-page apps may timeout or render incompletely
- Requested intent schema does not match the content type of the page — returns poorly populated or empty fields
- Rate limiting or blocking by target website returns an error
- Invalid or malformed URL parameter causes a 400-level error
- Target page content has changed and no longer contains expected fields

## How this service works

Extract structured JSON from any web page. 9 preset schemas (product_specs, company_info, article_summary, pricing, job_listing, reviews, contact_extraction, structured_table, social_profile) with full JS rendering. Pass ?url=...&intent=... to get clean, validated data ready for analysis.

## Output

A validated JSON object containing structured data matching the requested intent schema (e.g. product specs, pricing tiers, article summary, job details, contacts, reviews, social profile, or table rows), extracted from the fully JS-rendered version of the target web page.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "url": "https://www.wikipedia.org/wiki/Machine_learning",
   "intent": "article_summary"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url",
      "intent"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Publicly accessible URL to extract data from."
      },
      "intent": {
       "enum": [
        "product_specs",
        "company_info",
        "article_summary",
        "pricing",
        "job_listing",
        "reviews",
        "contact_extraction",
        "structured_table",
        "social_profile"
       ],
       "type": "string",
       "description": "Extraction type: product_specs, company_info, article_summary, pricing, job_listing, reviews, contact_extraction, structured_table, or social_profile."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-web-data-extraction-api-72576f3a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-extract-api-production.up.railway.app](https://www.zero.xyz/host/x402-extract-api-production.up.railway.app/llms.txt)
