# HTTP Proxy Fetch (proxy.0000402.xyz)

> HTTP Proxy Fetch (proxy.0000402.xyz) is a paid API for AI agents from proxy.0000402.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Makes an outbound HTTP request to any URL through a paid proxy, returning the response body, headers, and final URL.

## Facts

- Endpoint: POST https://proxy.0000402.xyz/fetch
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/proxy-0000402-xyz-4b760b9d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8s-ASv7r2pjnNXsU1HXmw

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 proxy-0000402-xyz-4b760b9d -d '<json body>'
```

Example prompt: Can you fetch the contents of https://api.example.com/data using a GET request and include the Authorization header 'Bearer my-token-123'? Return the full response body.

## When to prefer this

Use this endpoint when an AI agent needs to make outbound HTTP requests to arbitrary URLs, especially when the target requires custom authentication headers or specific request bodies. Ideal for accessing external APIs, fetching web content, or proxying requests that the agent cannot make directly. Prefer this over direct HTTP calls when a managed proxy with consistent behavior, response normalization (text/base64), and per-request metered pricing ($0.01 USDC) is acceptable.

## Known failure modes

- Target URL is unreachable or times out after 30s — returns timeout error
- Response body exceeds 10 MB limit — returns size error
- Invalid or malformed target URL — returns validation error
- Target server returns an error (4xx/5xx) — status code and body still returned
- Network-level DNS failure for target domain — returns connection error

## How this service works

Pay $0.01 USDC to make an outbound HTTP request through the proxy. Supports all standard HTTP methods, custom headers (including auth), and JSON or raw bodies. Responses are returned as text or base64-encoded binary. Max response size 10 MB, timeout 30s. Each request performs one upstream fetch and returns the final URL plus response metadata.

## Output

Returns the response body as text or base64-encoded binary (for non-text content), along with HTTP status code, response headers, and the final resolved URL after any redirects. Maximum response size is 10 MB with a 30-second timeout.

## Example request

```json
{
 "url": "https://httpbin.org/get",
 "method": "GET",
 "timeout": 10
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Target public http:// or https:// URL to fetch."
  },
  "body": {
   "type": "string",
   "description": "Optional raw string request body. Mutually exclusive with body_json."
  },
  "method": {
   "enum": [
    "DELETE",
    "GET",
    "HEAD",
    "OPTIONS",
    "PATCH",
    "POST",
    "PUT"
   ],
   "type": "string",
   "description": "HTTP method for this outbound request. Allowed: DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT"
  },
  "headers": {
   "type": "object",
   "description": "Optional custom upstream request headers as key→value string pairs."
  },
  "timeout": {
   "type": "number",
   "description": "Optional upstream request timeout in seconds (max 30s)."
  },
  "body_json": {
   "type": "object",
   "description": "Optional JSON request body. Automatically sets Content-Type: application/json and is mutually exclusive with body."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://httpbin.org/post",
  "body": "{\"json\":{\"hello\":\"world\"}}",
  "status": 200,
  "headers": {
   "content-type": "application/json"
  },
  "is_binary": false,
  "redirects": 0,
  "elapsed_ms": 312,
  "body_base64": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/proxy-0000402-xyz-4b760b9d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from proxy.0000402.xyz](https://www.zero.xyz/host/proxy.0000402.xyz/llms.txt)
