# Aile Web Scrape via AI Model Exchange

> Aile Web Scrape via AI Model Exchange is a paid API for AI agents from api.aile.sh, paid per call via x402, $0.00304/call, status unknown (last checked 2026-10-12).

Scrapes a URL and returns markdown content by routing the request through a rented AI model (e.g. Firecrawl) via the Aile token-metered exchange, settling payment in USDC on Solana.

## Facts

- Endpoint: POST https://api.aile.sh/v1/scrape?utm_source=zero.xyz
- Price: $0.00304/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aile-web-scrape-via-ai-model-exchange-8cc1d33a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_urW7psJ5eUKZe0c1RW8cS

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 aile-web-scrape-via-ai-model-exchange-8cc1d33a -d '<json body>'
```

Example prompt: Can you scrape https://example.com/article and give me the main content as markdown using the firecrawl/scrape model?

## When to prefer this

Choose this endpoint when you need pay-per-call web scraping without managing your own Firecrawl subscription, and want per-call USDC micropayment settlement. Ideal for agents that scrape intermittently and want access to premium scraping models (Firecrawl and others) via a neutral exchange without long-term API key commitments.

## Known failure modes

- Invalid or unreachable URL returns an error or empty markdown
- Model identifier not found or not available via GET /v1/models causes a 404 or model error
- PDF pages exceed max_pdf_pages limit, truncating content
- Insufficient USDC balance causes payment failure and request rejection
- Timeout if wait_for exceeds page load time, returning partial content
- Country code not recognized returns a validation error

## How this service works

Rent trusted AI models priced per token; lend idle subscriptions and API keys. A live, metered market that settles every call in USDC on Solana.

## Output

Returns a JSON object with the scraped URL, the model used, an object type label ('scrape'), the full page content rendered as markdown, and metadata including the page title.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url",
  "model"
 ],
 "properties": {
  "url": {
   "type": "string",
   "description": "http(s), at most 2048 characters."
  },
  "model": {
   "type": "string",
   "description": "`<provider>/<model>`, e.g. `firecrawl/scrape`. GET /v1/models?output_modalities=text lists what is servable, with prices."
  },
  "mobile": {
   "type": "boolean"
  },
  "country": {
   "type": "string",
   "description": "Two-letter code."
  },
  "formats": {
   "type": "array"
  },
  "wait_for": {
   "type": "integer"
  },
  "max_pdf_pages": {
   "type": "integer",
   "description": "PDF pages to parse. On x402 you pay 1 + this many webpages whatever is read; omit it to pay for one webpage with no PDF parsing."
  },
  "only_main_content": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "url": "https://…",
 "model": "firecrawl/scrape",
 "object": "scrape",
 "markdown": "# …",
 "metadata": {
  "title": "…"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aile-web-scrape-via-ai-model-exchange-8cc1d33a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aile.sh](https://www.zero.xyz/host/api.aile.sh/llms.txt)
