🤖 For agents & developers

Call these APIs from your agent

Every service here is a standard HTTP endpoint. No API keys, no sign-up, no subscription — and no wallet needed to start: 70 of them serve one free call a day if you ask for it with ?free=1, and a prepaid credit token covers the rest with nothing but an HTTP header. AI and metered services are always paid — each entry in the catalogue says which it is under freeTier. Pay per call in USDC over x402 only if you want to.

🟦 Works with Base MCP & the Base agent economy

x402 is a first-class payment rail for Base agents — the same one Base MCP uses. Drop the x402-bazaar-mcp server into any MCP client (or call the HTTP endpoints directly) and your agent gets onchain data + AI reports it can pay for per-call, right alongside its Base Account actions. No keys held, gasless for the payer.

⚡ Quickstart — 30 seconds

Fastest path: add the MCP server to Claude Code (or any MCP client). No key, no wallet, no config — it runs on the free tier as-is:

claude mcp add x402-bazaar -- npx -y x402-bazaar-mcp

Nothing to install at all? The same server is hosted at https://402.com.tr/mcp (Streamable HTTP, one tool per service) — paste that URL into any connector field. It is also listed on Smithery.

When you want more than the daily free call, add either a credit token (no wallet) or a wallet key — same command, one extra flag:

claude mcp add x402-bazaar -e X402_CREDIT_TOKEN=ck_… -- npx -y x402-bazaar-mcp
claude mcp add x402-bazaar -e AGENT_PRIVATE_KEY=0x… -- npx -y x402-bazaar-mcp

Or call a free-tier endpoint directly over HTTP — one free call per service per day, no wallet. The flag is required: without it you get the 402 challenge, which is deliberate so an unpaid probe always sees the price rather than an answer.

curl "https://402.com.tr/api/x402/safe-to-send?address=0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed&free=1"
# or, same thing:  -H "x-402-free: 1"

Paying from code (no MCP)? The whole x402 flow is ~10 lines — the SDK handles the 402, signs a USDC payment and retries automatically:

import { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY);
const client = new x402Client();
client.register("eip155:8453", new ExactEvmScheme(account));
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://402.com.tr/api/x402/token-risk?address=0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed");
console.log(await res.json()); // verdict + flags — paid in USDC on Base, automatically

The example above is token-risk, which has no free tier — it settles a payment on the first call, like every AI and metered service. On a free-tier service, once the daily call is used ?free=1 returns a teaser preview plus an HTTP 402; wire the payment and your agent pays a few cents in USDC per call, gasless on Base.

1. Discover services (machine-readable)

Crawl the catalog for every endpoint, price, and input schema:

GET https://402.com.tr/.well-known/x402
GET https://402.com.tr/api/catalog

2. Call an endpoint with x402

Hit the endpoint, get a 402, pay, and the SDK retries automatically. Example with @x402/fetch:

import { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY); // holds USDC on Base
const client = new x402Client();
client.register("eip155:8453", new ExactEvmScheme(account));
const fetchWithPay = wrapFetchWithPayment(fetch, client);

// Example: Token Risk Check ($0.03)
const res = await fetchWithPay(
  "https://402.com.tr/api/x402/token-risk?address=..."
);
console.log(await res.json());

The agent wallet needs only USDC on Base — gas is paid by the facilitator (x402 is gasless for the payer).

2b. Or prepay credits — no signature per call

Pay once with x402 on buy-credits (tier = 0.25, 1, 5 or 20 USD) and get a bearer token. Later calls send it as a header and debit the balance — no wallet, no signing, no settlement latency per call:

// one-time (needs a wallet): pay the pack via x402
const buy = await fetchWithPay("https://402.com.tr/api/x402/buy-credits?tier=1");
const { data } = await buy.json(); // data.creditToken = "ck_…" — shown ONCE, store it

// every later call: just a header, no wallet involved
const res = await fetch(
  "https://402.com.tr/api/x402/token-risk?address=0x4ed4…efed",
  { headers: { "x-credit-token": "ck_…" } }
); // response header x-credit-balance = remaining cents

One settlement mints the pack ($5 and $20 tiers carry a bonus); after that the agent runs walletless. Balance lasts 180 days.

3. Use as MCP tools (easiest)

Every service appears as a tool via the published x402-bazaar-mcp package — the same config works everywhere. No code to write:

Claude DesktopCursorClineWindsurfVS CodeClaude CodeCoinbase AgentKit
{
  "mcpServers": {
    "x402-bazaar": {
      "command": "npx",
      "args": ["-y", "x402-bazaar-mcp"],
      "env": { "X402_CREDIT_TOKEN": "ck_YOUR_CREDIT_TOKEN" }
    }
  }
}

Add to your client's MCP config (per-host file paths in the README), restart, and the tools appear. With no env at all it runs on the free tier; set X402_CREDIT_TOKEN (from buy-credits, recommended) or AGENT_PRIVATE_KEY(Base wallet with USDC — the key never leaves your machine) for paid calls. Also on the official MCP Registry & Smithery.

Once bound, tell your agent to bind these first: pre_trade_gate (any token), b20_gate (Base-native B20 tokens, one of a 30-tool suite), sign_guard (before signing a tx).

Holding tokenized equities? b20_safetycovers all 13 of Coinbase's on Base and answers “is this the real one” from the transfer-policy administrator on chain instead of a hardcoded address list — a lookalike can copy the ticker, the name and a 0xb200… vanity address, but not the policy admin. It reports holder-eligibility gating and gated mint as the regulated shape they are, not as danger.

Prefer to build your own? See the examples folder for a direct @x402/fetch caller and a custom AgentKit action.

Available services

🛡️ Token Risk Check
/api/x402/token-risk
$0.03
🚦 Pre-Trade Gate
/api/x402/pre-trade-gate
$0.10
✍️ Sign Guard
/api/x402/sign-guard
$0.06
🔑 Spend Permission Auditor
/api/x402/spend-audit
$0.05
🛡️ Agent Wallet Audit
/api/x402/agent-wallet-audit
$0.06
🎭 7702 Delegation Check
/api/x402/wallet-delegation
$0.03
🛒 Commerce Escrow Status
/api/x402/commerce-escrow
$0.04
🕴️ Payment Operator Audit
/api/x402/commerce-operator-audit
$0.05
🏦 Morpho Position Health
/api/x402/morpho-health
$0.04
🗄️ Morpho Vault Risk
/api/x402/morpho-vault
$0.05
⚔️ Morpho Liquidation Feed
/api/x402/morpho-liquidatable
$0.06
Gas Sponsor Check
/api/x402/gas-payer
$0.05
🛢️ Paymaster Check
/api/x402/paymaster-check
$0.05
🔐 Safe Multisig Check
/api/x402/safe-check
$0.04
🌱 First Funder
/api/x402/first-funder
$0.04
🌉 Fresh Bridge Check
/api/x402/fresh-bridge
$0.04
🛡️ Safe to Send
/api/x402/safe-to-send
$0.01
🪪 Address Trust
/api/x402/address-trust
$0.03
🏷️ Basename Profile
/api/x402/basename-profile
$0.02
🐋 Whale Flow
/api/x402/whale-flow
$0.04
📋 Watchlist Diff
/api/x402/watchlist-diff
$0.06
🔎 Address Intelligence
/api/x402/address-intel
$0.02
Gas Oracle
/api/x402/gas-oracle
$0.01
🆕 B20 Token Safety
/api/x402/b20-safety
$0.04
🚦 B20 Pre-Trade Gate
/api/x402/b20-gate
$0.10
🚦 B20 Transfer Preflight
/api/x402/b20-transfer-preflight
$0.04
🛡️ B20 Portfolio Guard
/api/x402/b20-portfolio
$0.06
👑 B20 Control Audit
/api/x402/b20-control
$0.05
🔫 B20 Seizure History
/api/x402/b20-seizure-history
$0.05
🕵️ B20 Authenticity Check
/api/x402/b20-authenticity
$0.02
🩺 B20 Config Audit
/api/x402/b20-config-audit
$0.05
📋 B20 Policy Members
/api/x402/b20-policy-members
$0.05
🧬 B20 Genesis Audit
/api/x402/b20-genesis-audit
$0.04
🖨️ B20 Mint Watch
/api/x402/b20-mint-watch
$0.03
📉 B20 Rebase History
/api/x402/b20-rebase-history
$0.03
⚖️ B20 Peg Check
/api/x402/b20-peg
$0.03
📚 B20 Due-Diligence Dossier
/api/x402/b20-dossier
$0.75
🧾 B20 Memo Tracker
/api/x402/b20-memo
$0.03
🏦 B20 Supply Guard
/api/x402/b20-supply
$0.04
🪪 B20 Metadata Integrity
/api/x402/b20-metadata
$0.04
🖊️ B20 Permit Inspector
/api/x402/b20-permit
$0.03
🗝️ B20 Policy Admin Watch
/api/x402/b20-policy-admin
$0.04
🎫 B20 Access Type
/api/x402/b20-access-type
$0.03
📢 B20 Announcements
/api/x402/b20-announcements
$0.03
💵 B20 Stablecoin Profile
/api/x402/b20-stablecoin
$0.03
🌉 Base Withdrawal Finalizer
/api/x402/base-withdrawal
$0.04
📡 B20 Launch Radar
/api/x402/b20-launch-radar
$0.01
👁️ B20 Policy Watch
/api/x402/b20-policy-watch
$0.03
🚨 B20 Guard
/api/x402/b20-guard
$0.05
🪪 B20 Token Info
/api/x402/b20-info
$0.02
🧊 B20 Freeze Check
/api/x402/b20-freeze-check
$0.03
📊 Tokenized Stock Position
/api/x402/stock-position
$0.03
🔄 B20 Rebase Tracker
/api/x402/b20-rebase
$0.02
🗂️ B20 Batch Safety
/api/x402/b20-batch
$0.08
💲 Token Price
/api/x402/token-price
$0.02
🔍 TX Decode
/api/x402/tx-decode
$0.02
🚪 Exit Liquidity Check
/api/x402/exit-liquidity
$0.02
🔒 Sellability Check
/api/x402/sellability
$0.08
🧬 Holder Forensics
/api/x402/holder-forensics
$0.03
🔀 Proxy / Upgrade Detector
/api/x402/proxy-check
$0.03
⚠️ Contract Danger Scanner
/api/x402/contract-danger
$0.04
🔐 LP Lock Details
/api/x402/lp-lock
$0.02
🕵️ Deployer Reputation
/api/x402/deployer-rep
$0.04
🧭 Swap Route + Safety
/api/x402/swap-route
$0.03
📆 Token Unlock Calendar
/api/x402/token-unlock
$0.02
🎭 Volume Authenticity Check
/api/x402/volume-check
$0.02
🩺 Position Health Check
/api/x402/position-health
$0.04
⚖️ Token Compare
/api/x402/token-compare
$0.05
✂️ Revoke Calldata Builder
/api/x402/revoke-builder
$0.02
🧹 Approval Exposure + Revoke Advisor
/api/x402/approval-advisor
$0.05
📋 Portfolio Risk Scan
/api/x402/portfolio-scan
$0.15
🚨 Rug Early-Warning Monitor
/api/x402/rug-monitor
$0.10
🏛️ Deep Due-Diligence
/api/x402/deep-dd
$0.75
💼 Wallet Token Portfolio
/api/x402/wallet-tokens
$0.02
🔥 Trending Tokens on Base
/api/x402/trending-tokens
$0.01
🔔 Token Price Alert
/api/x402/price-alert
$0.05
📄 Contract ABI Lookup
/api/x402/contract-abi
$0.02
🧩 4-Byte Selector Decoder
/api/x402/decode-selector
$0.01
🏷️ Basename Resolver
/api/x402/basename
$0.01
🏊 Token Pools
/api/x402/token-pools
$0.02
🔤 ENS Resolver
/api/x402/ens-resolve
$0.01
🔣 Function Selector Encoder
/api/x402/encode-selector
$0.01
⚖️ Sanctions Check
/api/x402/sanctions
$0.02
👥 Token Holder Distribution
/api/x402/holders
$0.02
🧾 Batch Token Prices
/api/x402/multi-price
$0.02
🧾 Compliance Check
/api/x402/compliance-check
$0.03
⚖️ Batch Sanctions Screening
/api/x402/sanctions-batch
$0.03
💧 DEX Pair Info
/api/x402/pair-info
$0.02
📉 Rug Probability Score
/api/x402/rug-score
$0.03
🗂️ Batch Token Risk Scan
/api/x402/batch-risk
$0.08
📊 Token Momentum
/api/x402/token-momentum
$0.02
🪪 Token Info & Socials
/api/x402/token-info
$0.01
⛓️ Base Chain Status
/api/x402/chain-status
$0.01
🆕 New Token Scanner
/api/x402/new-tokens
$0.01
🖼️ NFT Floor Price
/api/x402/nft-floor
$0.02
💰 Full Wallet Portfolio
/api/x402/wallet-portfolio
$0.02
🏦 Wallet Net Worth
/api/x402/wallet-networth
$0.02
🕰️ Wallet Age & Activity
/api/x402/wallet-summary
$0.03
📜 Wallet Activity
/api/x402/wallet-activity
$0.03
🔓 Token Approval Risk
/api/x402/token-approvals
$0.02
🔁 Token Transfer History
/api/x402/token-transfers
$0.03
🖼️ Wallet NFT Holdings
/api/x402/wallet-nfts
$0.02
🧠 AI Wallet Report
/api/x402/ai-wallet-report
$0.06
🔬 AI Token Report
/api/x402/ai-token-report
$0.12
🗞️ AI Market Brief
/api/x402/ai-market-brief
$0.05
🛡️ AI Wallet Security Audit
/api/x402/ai-wallet-security
$0.06
💬 AI Transaction Explainer
/api/x402/ai-tx-explain
$0.04
📜 AI Contract Risk Explainer
/api/x402/ai-contract-risk
$0.04
🧠 AI Summarize
/api/x402/ai-summarize
$0.03
🗂️ AI Extract
/api/x402/ai-extract
$0.05
🌐 URL to Text
/api/x402/url-extract
$0.002
🧩 URL to JSON
/api/x402/url-to-json
$0.01
🔎 Web Search
/api/x402/web-search
$0.01
🧠 Exa Search
/api/x402/exa-search
$0.01
📄 Exa Contents
/api/x402/exa-contents
$0.002
📚 Batch Page Reader
/api/x402/web-extract
$0.01
⚖️ OFAC Name Screening
/api/x402/sanctions-name
$0.05
✉️ Email Verify
/api/x402/email-verify
$0.02
🌍 Domain Check
/api/x402/domain-check
$0.02
🤝 Counterparty Check
/api/x402/counterparty-check
$0.12
🧱 Base Block
/api/x402/base-block
$0.002
📄 Base Transaction
/api/x402/base-tx
$0.002
🧾 Base Receipt
/api/x402/base-receipt
$0.002
🔢 Address Nonce
/api/x402/base-nonce
$0.002
🪙 Token Balance
/api/x402/token-balance
$0.002
📦 Token Supply
/api/x402/token-supply
$0.002
🔖 Contract Identity
/api/x402/contract-info
$0.002
🏦 Fiat Onramp Quote
/api/x402/onramp-quote
$0.03
🌍 Fiat Rails by Country
/api/x402/onramp-coverage
$0.02
💱 FX Convert
/api/x402/fx-convert
$0.002
🏦 IBAN Check
/api/x402/iban-check
$0.002
📞 Phone Check
/api/x402/phone-check
$0.002
🧾 EU VAT Check
/api/x402/vat-check
$0.002
📅 Business Days
/api/x402/business-days
$0.002
📉 Inflation Adjust
/api/x402/inflation-adjust
$0.002
🏛️ Company LEI
/api/x402/company-lei
$0.005
🏦 BIC / SWIFT Check
/api/x402/bic-check
$0.002
💳 Card BIN Check
/api/x402/bin-check
$0.002
🇪🇺 SEPA Creditor ID
/api/x402/sepa-creditor
$0.002
🧾 Tax ID Check
/api/x402/tax-id-check
$0.002
📫 Address Check
/api/x402/address-check
$0.002
📍 Geocode
/api/x402/geocode
$0.01
📦 Tracking Detect
/api/x402/tracking-detect
$0.002
🛃 HS Code Suggest
/api/x402/hs-code
$0.005
🔒 SSL Cert Check
/api/x402/ssl-check
$0.01
⚠️ Password Breach Check
/api/x402/breach-check
$0.005
🔗 URL Risk
/api/x402/url-risk
$0.002
🧾 Receipt Parse
/api/x402/receipt-parse
$0.01
🗓️ Meeting Slots
/api/x402/meeting-slots
$0.002
🎌 Holiday Calendar
/api/x402/holiday-calendar
$0.002
QR Encode
/api/x402/qr-encode
$0.002
🏷️ UPC / EAN Lookup
/api/x402/upc-lookup
$0.01
📘 Settlement Ledger Line
/api/x402/settlement-line
$0.005
📊 Bank CSV Normalize
/api/x402/bank-csv
$0.01
🔀 Format Convert
/api/x402/file-convert
$0.005
📄 Publish Page
/api/x402/file-publish
$0.01
📦 Agent File Slot
/api/x402/file-slot
$0.005
🗃️ AI Extract Batch
/api/x402/ai-extract-batch
$0.10
🌐 AI Translate
/api/x402/ai-translate
$0.03
🔐 Secure Token
/api/x402/secure-token
$0.01
🎟️ Prepaid Credits
/api/x402/buy-credits
$5.00