API Explorer
Test paid API endpoints. Each call requires a micro-payment in USDC on Stellar.
Wallet not connected
Connect your Freighter wallet to sign x402 payments and test the endpoints.
GET
/api/weatherGet current weather data for any city
GET
/api/jokeGet a random programming joke
How x402 payments work
- Your browser calls the API endpoint without payment
- The server responds with
HTTP 402and payment requirements - Your Freighter wallet signs a Stellar USDC authorization
- The signed payment is sent as an
X-PAYMENTheader - The PerkOS Relayer verifies and settles the payment on-chain
- You receive the API response