# AgentReader Credits Purchase

> AgentReader Credits Purchase is a paid API for AI agents from agentreader.xyz, paid per call via x402, $1/call, status unknown (last checked 2026-10-24).

Purchase a bundle of AgentReader API credits (500 or 5000) using USDC via x402 payment to enable web-page and PDF extraction calls

## Facts

- Endpoint: POST https://agentreader.xyz/v1/credits/buy?utm_source=zero.xyz
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentreader-credits-purchase-d0d09e96
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7_Vsl1rVDGkCkb0kou6JE

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 agentreader-credits-purchase-d0d09e96 -d '<json body>'
```

Example prompt: Buy me 500 AgentReader credits so I can start converting web pages and PDFs to Markdown — pay with USDC.

## When to prefer this

Use this endpoint when an agent or developer needs to fund an AgentReader account before making web-page or PDF extraction calls. This is the required first step if the free tier is exhausted or an API key is needed. Choose the 500-credit bundle for light or trial usage and the 5000-credit bundle for high-volume pipelines. Prefer this over alternatives when you specifically need USDC-based crypto payments via x402 and want programmatic, on-chain verifiable credit purchases.

## Known failure modes

- Invalid bundle value (not 500 or 5000) — returns validation error
- Insufficient USDC balance or failed x402 payment — returns payment error
- Malformed or missing x402 payment header — returns 402 Payment Required
- Network or blockchain transaction failure — returns error with no credits added
- Rate limiting or account issues — returns 4xx error

## How this service works

REST API and MCP server that turns web pages, JS apps and PDFs into clean Markdown or structured JSON. Free tier, then USDC pay-per-use via x402.

## Output

Returns a JSON object confirming the purchase: ok flag (true), number of credits added, the API key (ar_...) to use for subsequent extraction calls, updated total credits balance, and the on-chain transaction hash for the USDC payment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bundle": {
   "enum": [
    500,
    5000
   ],
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "added": 500,
  "apiKey": "ar_...",
  "credits": 500,
  "transaction": "0x..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentreader-credits-purchase-d0d09e96/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentreader.xyz](https://www.zero.xyz/host/agentreader.xyz/llms.txt)
