Pay-per-joke vending machine
www.x402joker.com/api/buy
Pay-per-joke vending machine: send USDC, get a fresh Claude-generated joke. Optional "theme" picks the topic.
POST
https://www.x402joker.com/api/buyUptime100% of 4 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://www.x402joker.com/api/buy", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"theme":{"description":"Optional joke theme. Omit for a surprise joke.","example":"corgis","required":false,"type":"string"}}),
});
console.log(await res.json());Example input
{
"theme": {
"description": "Optional joke theme. Omit for a surprise joke.",
"example": "corgis",
"required": false,
"type": "string"
}
}