Payments
Find a pay-per-call API
Find a pay-per-call API for a job in the x402 Bazaar: what it returns, what it costs per call, which network it settles on, and whether it is worth paying for. Pays nothing.
Payments · For your bots
Call an API that charges per request with x402: set the most it is worth, let the app plan and simulate the payment, pay inside the rules, and report the receipt with the answer.
In Lobstack: Skills › Library › Add
Download LobstackThe job needs one answer from a service that charges per request over x402, and the bot has a wallet (wallet_status says so).
Read wallet_status first: the balance, today's spend, the rules. If the call would not fit, say so before trying it.
Decide what the answer is worth and call paid_fetch with that as max_usdc, and a why the person can read on an approval card. Never set max_usdc higher to get past a refusal.
The app reads the seller's price from its 402 answer, simulates the payment and checks the rules. Inside the allowance it pays; above it the person approves the plan they are shown.
Report the answer, then the receipt: the price paid, verified or not, and the transaction link. Only "verified" means it was paid as planned.
A refusal or a mismatch is reported as one, with the reason. Never retry a call the rules refused, and never invent a transaction hash.
One call per question: cache what came back rather than paying twice.
---name: x402-paid-calldescription: "Call an API that charges per request with x402: set the most it is worth, let the app plan and simulate the payment, pay inside the rules, and report the receipt with the answer."metadata: title: "Pay for an API call with x402" category: payments tags: [x402, payments]--- ## When to use this The job needs one answer from a service that charges per request over x402,and the bot has a wallet (wallet_status says so). ## How 1. Read wallet_status first: the balance, today's spend, the rules. If the call would not fit, say so before trying it.2. Decide what the answer is worth and call paid_fetch with that as max_usdc, and a why the person can read on an approval card. Never set max_usdc higher to get past a refusal.3. The app reads the seller's price from its 402 answer, simulates the payment and checks the rules. Inside the allowance it pays; above it the person approves the plan they are shown.4. Report the answer, then the receipt: the price paid, verified or not, and the transaction link. Only "verified" means it was paid as planned.5. A refusal or a mismatch is reported as one, with the reason. Never retry a call the rules refused, and never invent a transaction hash. One call per question: cache what came back rather than paying twice.