# AgentProof Fetch (Testnet Staging)

> AgentProof Fetch (Testnet Staging) is a paid API for AI agents from agentproof-fetch-staging.agentproof.workers.dev, paid per call via x402, $0.005/call, status down (last checked 2026-11-22).

Fetches a public URL and returns clean markdown content with SHA-256 content hashes and an Ed25519-signed provenance receipt for verifiable web access.

## Facts

- Endpoint: POST https://agentproof-fetch-staging.agentproof.workers.dev/v1/fetch?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: down
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentproof-fetch-testnet-staging-5b00ede9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qseuxgVfU5CRH6JoRA46f

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 agentproof-fetch-testnet-staging-5b00ede9 -d '<json body>'
```

Example prompt: Can you fetch https://example.com/article and give me clean markdown of the page along with a signed provenance receipt so I can prove what it said — truncate it to 50000 characters if it's long?

## When to prefer this

Choose this endpoint when you need not just the content of a webpage but also cryptographic proof of what that content was at the time of retrieval — e.g. for legal, compliance, research, or audit scenarios where you must demonstrate the authenticity and integrity of fetched web content. If you only need raw HTML or structured data without provenance guarantees, a simpler scraping tool may suffice. Prefer this when the signed receipt itself is a deliverable.

## Known failure modes

- URL is not publicly accessible or returns a non-200 status — fetch fails with an error
- URL points to binary or non-HTML content that cannot be meaningfully converted to markdown
- max_chars below minimum (500) or above maximum (200,000) causes a validation error
- Network timeout or DNS resolution failure for the target URL
- Private or intranet URLs that are unreachable from the Cloudflare Worker environment

## How this service works

Fetch a public URL and return clean markdown with SHA-256 hashes and an Ed25519-signed provenance receipt.

## Output

Returns clean markdown text converted from the fetched webpage, a SHA-256 hash of the content, and an Ed25519-signed provenance receipt that cryptographically attests to what was fetched, when, and from where. The markdown can be truncated to between 500 and 200,000 characters via the max_chars parameter.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "maxLength": 2048,
   "description": "Public http(s) URL to fetch"
  },
  "max_chars": {
   "type": "integer",
   "default": 100000,
   "maximum": 200000,
   "minimum": 500,
   "description": "Truncate the markdown to this many characters"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentproof-fetch-testnet-staging-5b00ede9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentproof-fetch-staging.agentproof.workers.dev](https://www.zero.xyz/host/agentproof-fetch-staging.agentproof.workers.dev/llms.txt)
