V
$0.002
per call · USD Coin on Base
Generate a PNG QR code URL for payment and onboarding payloads (upstream probed live)
Endpoint
GET https://vending-machine-seven.vercel.app/api/v/qr-code4
Calls / 30d
2
Unique payers / 30d
Aug 19
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://vending-machine-seven.vercel.app/api/v/qr-code", {
method: "GET",
});
const data = await res.json();cURL
curl -X GET \
"https://vending-machine-seven.vercel.app/api/v/qr-code?data=https%3A%2F%2Fx402.org&size=256" \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"ok": true,
"png_url": "https://api.qrserver.com/v1/create-qr-code/?size=256x256&data=https%3A%2F%2Fx402.org",
"service": "qr-code"
}Payment details
Pay to
0xc648116b5debe4af7d78838aa468d07e0a9ab697Asset
USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913NetworksBase
Schemesexact
Is this your API?
Pin it to the top of Developer Tools and the homepage with a featured placement.
More from Vending Machine Seven & similar services
V
Vending Machine Seven · V FX Rate
vending-machine-seven.vercel.app
Live fiat FX rates (Frankfurter/ECB primary, open.er-api fallback) for cross-border agents
GETBaseDeveloper Tools
$0.003 / call9 calls / 30d
V
Vending Machine Seven · V Crypto Prices
vending-machine-seven.vercel.app
Live USD spot prices for crypto assets via CoinGecko simple price API
GETBaseMarket Data
$0.005 / call7 calls / 30d
V
Vending Machine Seven · V Weather
vending-machine-seven.vercel.app
Current temperature and wind for a city from Open-Meteo (live forecast data)
GETBaseData & Enrichment
$0.003 / call7 calls / 30d