# API Recommendation: Which API to Call for a Task

> API Recommendation: Which API to Call for a Task is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-26).

Takes a plain-language task description and returns the best-matching API calls from a 320-tool catalog, with exact URLs, required inputs, pricing, and MCP tool names.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/recommend?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-api-recommendation-which-api-58885408
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OiXlx32Yo8bu5abT0WEDO

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-data-tools-revmesh2074-workers-dev-api-recommendation-which-api-58885408
```

Example prompt: Before I pay for an API call, can you look up which tool in the catalog is best for checking OFAC sanctions on a wallet address? Give me the top 2 picks with their URLs and prices.

## When to prefer this

Use this endpoint when an AI agent needs to dynamically discover which API to call for a task before spending credits — especially when the agent does not know the catalog in advance, wants to compare options by price and relevance, or needs to retrieve the exact call URL and required inputs programmatically. It is the right choice over hardcoding tool names when the task type varies at runtime or when the agent is bootstrapping a new workflow.

## Known failure modes

- Empty or vague 'need' string returns low-confidence or irrelevant picks
- 'need' exceeding 300 characters may be truncated or rejected
- 'count' outside 1–5 range may default or error
- No matching tools found returns empty picks array
- Service unavailable returns HTTP error with no picks

## How this service works

Describe a task in plain words and get the best-matching paid API calls for it from a catalog of 320 tools (web search and page reading, LLM chat, token prices and chain reads on 5 networks, sanctions and company checks, weather, finance and utilities): each pick with the exact call URL, required inputs, price, MCP tool name and whether it is in the free calls. Use when an agent needs to find which API to call before paying for one.

## Output

Returns an array of ranked API picks (up to 5), each containing: the tool name, a description of what it does, the exact call URL and HTTP method, the list of required inputs, price per call, the MCP tool name, relevance score, and a flag indicating whether it is included in the free-call allowance. Also includes the original need string, how to pay, and an MCP invocation hint.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "need"
 ],
 "properties": {
  "need": {
   "type": "string",
   "description": "The task in plain words, up to 300 characters"
  },
  "count": {
   "type": "string",
   "description": "How many picks, 1 to 5 (default 3)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mcp": {
   "type": "string"
  },
  "need": {
   "type": "string"
  },
  "picks": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "call": {
      "type": "object",
      "properties": {
       "url": {
        "type": "string"
       },
       "method": {
        "type": "string"
       }
      }
     },
     "name": {
      "type": "string"
     },
     "tool": {
      "type": "string"
     },
     "what": {
      "type": "string"
     },
     "price": {
      "type": "string"
     },
     "score": {
      "type": "number"
     },
     "mcpTool": {
      "type": "string"
     },
     "inFreeCalls": {
      "type": "boolean"
     },
     "requiredInputs": {
      "type": "array",
      "items": {}
     }
    }
   }
  },
  "method": {
   "type": "string"
  },
  "howToPay": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-api-recommendation-which-api-58885408/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
