78trust / 100
Buy
by x402joker.com in AI models & inference
x402 APIPassing, checked 1 h ago
Pay-per-joke vending machine: send USDC, get a fresh Claude-generated joke. Optional "theme" picks the topic.
POST https://www.x402joker.com/api/buy
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 350 ms typical, 504 ms slowest 5%
- Last check
- 1 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://www.x402joker.com/api/buy" \
-H "content-type: application/json" \
-d '{"theme":{"description":"Optional joke theme. Omit for a surprise joke.","example":"corgis","required":false,"type":"string"}}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwww.x402joker.com%2Fapi%2Fbuy
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"
}
}Example output
{
"joke": "I told my dog he's adopted. He didn't take it well — turns out he already knew, he just hadn't found the right moment to bring it up.",
"theme": "dogs"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 335 ms | $0.01 |
| 5 h ago | Passed | 402 | 423 ms | $0.01 |
| 8 h ago | Passed | 402 | 321 ms | $0.01 |
| 12 h ago | Passed | 402 | 332 ms | $0.01 |
| 16 h ago | Passed | 402 | 504 ms | $0.01 |
| 19 h ago | Passed | 402 | 285 ms | $0.01 |
| 24 h ago | Passed | 402 | 551 ms | $0.01 |
| 27 h ago | Passed | 402 | 349 ms | $0.01 |
| 31 h ago | Passed | 402 | 365 ms | $0.01 |
| 34 h ago | Passed | 402 | 378 ms | $0.01 |
| 37 h ago | Passed | 402 | 503 ms | $0.01 |
| 42 h ago | Passed | 402 | 350 ms | $0.01 |