U

Up · Fortune

by Up

GETBase

$0.001

per call · USD Coin on Base

Fortune cookie with unique fortune and lucky numbers for AI agents.

Endpoint

GET https://agent-treats-production.up.railway.app/api/fortune

6

Calls / 30d

4

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agent-treats-production.up.railway.app/api/fortune", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://agent-treats-production.up.railway.app/api/fortune" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "fortune": "example_fortune",
  "lucky_numbers": [
    "item1"
  ],
  "wisdom_level": "example_wisdom_level"
}

Payment details

Pay to0xbd65c2d2ac9d3df9ce77e5e2579b5b38efee36f0
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Up & similar services