# GET /x402/recommend: $0.03 per call

Describe a job and get the best x402 services to do it: we search the whole Bazaar catalogue, then an AI compares the candidates on real buyer numbers, recent usage, price and fit, and returns the top 3 with reasons and the exact URL to call. Pass ?task=... e.g. 'check if a Base token is a rug pull'. Saves agents trial-and-error payments.

- **Price:** $0.03 in USDC, the same on Base, Solana, Polygon, Arbitrum. Failed calls are never charged.
- **Free trial:** yes, 20 free calls a day from Claude, Cursor or any MCP client ([set-up](/mcp/setup)).
- **Tier:** deep
- **Answers cached for:** 30 min
- **Data sources:** CDP Bazaar (free), our snapshot; Workers AI (metered)
- **Lane:** x402 market guide ([OpenAPI](/openapi/x402-guide.json))
- **Live health:** [status page](/status)

## Free sample

See an answer for the demo input first, free (no payment, 10 a minute): [https://aayatai.com/sample/x402-recommend](/sample/x402-recommend). It is a stored real answer when we have one, otherwise an example marked `"kind": "illustrative"`.

```bash
curl "https://aayatai.com/sample/x402-recommend"
```

## 1. See the price (free)

Call it without paying: you get `402 Payment Required` and a `PAYMENT-REQUIRED` header with the exact price and where to pay.

```bash
curl -i "https://aayatai.com/x402/recommend?task=check+whether+a+token+on+Base+is+a+honeypot+or+rug+pull"
```

## 2. Pay and call (TypeScript)

```bash
npm install @x402/fetch @x402/evm viem
```

```ts
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

// A wallet used only by your agent, holding a little USDC on Base.
const account = privateKeyToAccount(process.env.WALLET_PRIVATE_KEY as `0x${string}`);
const pay = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});

const res = await pay("https://aayatai.com/x402/recommend?task=check+whether+a+token+on+Base+is+a+honeypot+or+rug+pull");
console.log(await res.json());
```

## 3. Or as an MCP tool

```ts
// MCP server: https://aayatai.com/mcp (Streamable HTTP). With the x402 MCP client (see /start):
const result = await client.callTool("x402-recommend", {"task":"check whether a token on Base is a honeypot or rug pull"});
```

## Inputs

- `task` **(required)** (string): The job you need done, in plain words.
- `maxPrice` (number): Highest price per call in USD.
- `network` (string): Network you can pay on, e.g. eip155:8453 or solana.

Bad inputs are rejected with HTTP 400 before any payment is asked for.

## Example answer

```json
{
  "task": "check whether a token on Base is a honeypot or rug pull",
  "picks": [
    {
      "resource": "https://api.x402node.dev/chain/honeypot",
      "why": "Checks exactly for honeypots and owner traps, answered every uptime check, 23 buyers this month, $0.01.",
      "priceUsd": 0.01,
      "name": "x402node.dev chain honeypot",
      "uptime7d": 100,
      "medianMs": 410,
      "buyers30d": 23
    }
  ],
  "candidates": 18,
  "model": "@cf/mistralai/mistral-small-3.1-24b-instruct"
}
```

## Related

- [GET /tools/find](/services/find-best-tool) ($0.002): Find the best tool for a job.
- [GET /x402/find](/services/x402-find) ($0.002): Describe a job in plain English and get the best working x402 services for it, ranked: fit, real buyers (30 days), our uptime and speed checks, and price, with 
- [GET /x402/find/live](/services/x402-find-live) ($0.01): Like /x402/find, but the shortlist is re-checked right now: we send each top candidate one unpaid request and keep only those answering with a valid x402 price 
- [GET /x402/check](/services/x402-check) ($0.002): Live health check of any x402 endpoint before you pay it: is it up and answering 402, is the payment request valid, prices in USD per network, pay-to wallets, x
- [GET /x402/trends](/services/x402-trends) ($0.01): What's growing in the x402 economy: services with the biggest rise in unique buyers over the last N days, from our own daily history of the Bazaar catalogue (hi

New here? [Getting started in 60 seconds](/start). All services: [Aayat AI](/).