# Forest Gas Station x402 Discovery Search

> Forest Gas Station x402 Discovery Search is a paid API for AI agents from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Search and discover machine-payable x402 resources by query or URL, returning normalized discovery metadata for each result.

## Facts

- Endpoint: POST https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/x402/discover?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forest-gas-station-x402-discovery-search-3ba2da82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Itm3jybzzssBAfddXUwwl

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 forest-gas-station-x402-discovery-search-3ba2da82 -d '<json body>'
```

Example prompt: Search the x402 discovery index for machine-payable APIs related to 'geospatial data' and return up to 10 results with their normalized metadata.

## When to prefer this

Use this endpoint when you need to programmatically discover x402-protocol-compatible, machine-payable APIs by topic or known URL. Prefer it over generic API directories when the goal is specifically to find pay-per-call endpoints compatible with the x402 micropayment standard that an AI agent can invoke autonomously.

## Known failure modes

- Query string exceeds 256 characters — request rejected
- Limit outside 1–20 range — validation error
- Discovery URL is unreachable or malformed — returns empty or error response
- No matching x402 resources found — returns empty results list
- Network timeout or upstream index unavailability — service error

## How this service works

Search machine-payable x402 resources and normalize discovery metadata. Base mainnet USDC

## Output

Returns a list of normalized x402 resource records matching the query or discovery URL, including endpoint names, descriptions, pricing, and discovery metadata. Limit is capped at 20 results per call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "maximum": 20,
   "minimum": 1,
   "description": "Maximum number of public results to return."
  },
  "query": {
   "type": "string",
   "maxLength": 256,
   "description": "Buyer search phrase used to find relevant public resources."
  },
  "discovery_url": {
   "type": "string",
   "description": "Public discovery endpoint to query."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forest-gas-station-x402-discovery-search-3ba2da82/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run](https://www.zero.xyz/host/http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/llms.txt)
