# Agent Deals – Find Cheapest Working x402 API

> Agent Deals – Find Cheapest Working x402 API is a paid API for AI agents from agent-deals.gm-tools.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Finds the cheapest, currently-working x402-compatible API for a given task by comparing price, uptime, and speed across thousands of paid APIs from Coinbase, PayAI, and Dexter catalogs

## Facts

- Endpoint: GET https://agent-deals.gm-tools.workers.dev/v1/best?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-deals-find-cheapest-working-x402-api-028c72e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LLjZ5T3esry8mNp5kBHPk

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 agent-deals-find-cheapest-working-x402-api-028c72e8
```

Example prompt: Find me the cheapest working API for converting text to speech — show the top 3 results, only consider services priced under $0.01 per call, and filter to Base network (eip155:8453) if possible.

## When to prefer this

Choose this endpoint when an AI agent needs to dynamically discover and select the most cost-effective x402 micropayment API for a given capability at runtime, especially when cost and uptime matter and the agent does not have a pre-hardcoded API in mind. Prefer this over manually curated lists when you want live price and uptime data, or when optimizing across the Coinbase, PayAI, and Dexter ecosystems simultaneously.

## Known failure modes

- No matching services found for the given task query
- All matching services currently show 'down' status
- max_price_usd filter too restrictive — no results in budget
- network filter eliminates all candidates
- Invalid or missing 'task' query parameter returns 400
- Service catalog temporarily unavailable — upstream aggregator error

## How this service works

Find the cheapest WORKING x402 service for a task. Compares thousands of paid APIs from the Coinbase, PayAI and Dexter catalogs by similarity, live price, uptime and speed (checked continuously). Send the header "X-Free-Tier: 1" for 20 free requests per day. /v1/check is always free.

## Output

Returns a ranked list of up to 10 working x402-compatible API endpoints matching the requested task, each with its URL, HTTP method, current status, price in USD, and uptime percentage, plus a 'typical_price_usd' benchmark and a 'saving_vs_typical_pct' showing how much cheaper the best option is than the market average.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "task"
     ],
     "properties": {
      "task": {
       "type": "string",
       "description": "What you need done, in plain words"
      },
      "limit": {
       "type": "number",
       "description": "How many results (1-10, default 5)"
      },
      "network": {
       "type": "string",
       "description": "Optional: only services accepting this network, e.g. eip155:8453"
      },
      "max_price_usd": {
       "type": "number",
       "description": "Optional: ignore services above this price per call"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "task": "current weather for a city",
  "results": [
   {
    "url": "https://example.com/weather",
    "rank": 1,
    "method": "GET",
    "status": "up",
    "price_usd": 0.001,
    "uptime_pct": 99.1
   }
  ],
  "typical_price_usd": 0.01,
  "saving_vs_typical_pct": 90
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-deals-find-cheapest-working-x402-api-028c72e8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-deals.gm-tools.workers.dev](https://www.zero.xyz/host/agent-deals.gm-tools.workers.dev/llms.txt)
