Call any verified data API through BitTuitive (sats or USDC)
call_routed_apiUse this when you want data from another paid API without handling its invoice: pay ONE BitTuitive invoice (sats, or the same all-in price in USDC via x402) and BitTuitive pays the upstream, calls it and returns its JSON in data plus routing (upstream, score, fee). Pass endpoint_id (from list_routable_apis) or data_type and/or q for the best pick with automatic fallback. Cost: upstream price + routing fee max(20%, 3 sats). Side effect: spends your payment on the upstream call; if every upstream fails you get a 24h credit token to pass as credit. If the result is status 'running', repeat the identical call to collect it. Pay by calling without a credential, paying the Lightning invoice or the USDC amount, then retrying with l402_credential=':' or x402_payment. One payment buys one response. Details: https://api.bittuitive.ai/pay. Example: call_routed_api(data_type="bitcoin", q="mempool fees") Informational only; not financial, investment, legal or tax advice; provided as-is, with no warranty; verify before acting. https://api.bittuitive.ai/disclaimer.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "call_routed_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Best-pick mode: keywords, e.g. 'air quality'. | |
| credit | No | 24h credit token from an earlier failed routed call (instead of paying). | |
| params | No | Optional query parameters forwarded to the upstream API. | |
| data_type | No | Best-pick mode: category. | |
| endpoint_id | No | Scoreboard id from list_routable_apis. | |
| x402_payment | No | x402 payment (USDC on Base): base64 PaymentPayload signed for accepts[0] of the payment_required result. Alternative to l402_credential; also accepted in params._meta['x402/payment']. | |
| l402_credential | No | L402 credential '<macaroon>:<preimage_hex>' from a paid invoice (or an active subscription). Omit it on the first call to receive the Lightning invoice and macaroon. |