# AgentX402 Scout Extract

> AgentX402 Scout Extract is a paid API for AI agents from api.agentx402.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Fetches a URL and extracts schema-valid structured JSON from the page using a provided JSON Schema, with pay-per-success billing over x402

## Facts

- Endpoint: POST https://api.agentx402.ai/v1/scout/extract
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentx402-scout-extract-b65c2aff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-EmBFaJ6N_GWkZR3rN0rm

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 agentx402-scout-extract-b65c2aff -d '<json body>'
```

Example prompt: Pull the job title, company name, location, and salary range from this job listing page — https://example.com/jobs/senior-engineer — and return it as structured JSON matching this schema: {title, company, location, salaryMin, salaryMax}.

## When to prefer this

Choose this endpoint when you need structured, schema-validated JSON extracted from an arbitrary public web page without setting up API keys or SDKs. It is especially well-suited for agentic pipelines that need typed data from unstructured HTML pages, and for pay-per-use scenarios where you only want to be charged on successful extractions. Prefer it over generic scraping tools when you already have a well-defined output schema and want guaranteed validity of the returned data.

## Known failure modes

- Page content insufficient to produce schema-valid output — extraction fails and no payment is charged
- Target URL is inaccessible, returns 4xx/5xx, or is behind a login wall — extraction cannot proceed
- JSON Schema provided is malformed or unsatisfiable — validation will always fail
- Page content is dynamically rendered client-side JavaScript and cannot be scraped — partial or failed extraction
- Rate limiting or bot protection on the target domain blocks fetching

## How this service works

Agent-native structured extraction over x402 — send a URL and a JSON Schema, get back schema-valid JSON pulled from the page: no signup, no API key, no SDK. Pay-on-success: an extraction that can't produce schema-valid output settles nothing. Extract $0.020; prepay $1 = 10,000 credits, spent at 80% of the per-op price (20% off). Docs: https://agentx402.ai

## Output

A schema-valid JSON object whose structure matches the JSON Schema provided in the request. The response contains only fields defined in the input schema, populated from content found on the target page. If the page content cannot be resolved into schema-valid output, no payment is settled.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "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/agentx402-scout-extract-b65c2aff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentx402.ai](https://www.zero.xyz/host/api.agentx402.ai/llms.txt)
