The First x402 Payment API

Pay per request with USDC. No subscriptions, no credit cards. Just instant micropayments for AI agents and developers.

Why x402?

⚡ Instant Payments

Pay per request, no subscriptions. Perfect for AI agents making autonomous payments.

💰 Micropayments

Pay from $0.0015 per request (typical $0.015, range $0.0015–$0.15 by endpoint). QR code endpoint free. No minimums, no commitments.

🤖 AI Agent Ready

Native x402 support means AI agents can pay automatically without human intervention.

🌐 No Account Required

Just pay and use. No registration, no credit cards, no KYC.

API Endpoints

Market Data

GET /v1/market/price/:symbol
$0.0075
GET /v1/market/ohlcv/:symbol
$0.015
GET /v1/market/trending
$0.0075

AI Tools

POST /v1/ai/summarize
$0.006
POST /v1/ai/sentiment
$0.006
POST /v1/ai/translate
$0.03
POST /v1/ai/code-review
$0.075

Crypto Analytics

GET /v1/crypto/wallet-score/:address
$0.075
GET /v1/crypto/token-analysis/:address
$0.15
GET /v1/crypto/whale-alerts
$0.03

Data doors

37 official-source feeds under /v1/data/* (33 paid at $0.0015-$0.05 USDC via x402 or MPP, 4 free). Every response carries source, observed_at (the upstream's own timestamp), cadence and a stale flag. Free catalog: GET /v1/data. Synced 2026-10-19.

Stablecoins and crypto (DefiLlama, alternative.me)

GET /v1/data/crypto/fear-greed
$0.003
GET /v1/data/crypto/hacks
$0.0075
GET /v1/data/stablecoins/peg
$0.0075
GET /v1/data/stablecoins/supply
$0.0075

Energy (EIA, ENTSO-E)

GET /v1/data/energy/crude-imports
$0.0075
GET /v1/data/energy/electricity-retail/{state}
$0.0075
GET /v1/data/energy/natgas
$0.0075
GET /v1/data/energy/nuclear-outages
$0.0075
GET /v1/data/energy/oil
$0.0075
GET /v1/data/energy/steo-forecast
$0.0075
GET /v1/data/energy/us-energy-overview
$0.0075
GET /v1/data/energy/us-grid
$0.0075

Company verification and signals (VIES, PRH, GLEIF, Companies House)

GET /v1/data/company/profile/{country}/{id}
$0.015
GET /v1/data/company/signals/{country}/{id}
$0.03
GET /v1/data/company/vat/{vatId}
$0.0075
GET /v1/data/company/verify/{vatId}
$0.05

FX (ECB)

GET /v1/data/fx/ecb
$0.003
GET /v1/data/fx/pair/{base}/{quote}
$0.003

Macro (Treasury, BLS, Eurostat, NY Fed, FDIC)

GET /v1/data/macro/bank-failures
$0.003
GET /v1/data/macro/inflation/{region}
$0.0075
GET /v1/data/macro/rates
$0.0075
GET /v1/data/macro/recession
$0.0075
GET /v1/data/macro/us-debt
$0.003

World risk (NASA, NOAA, USGS, WHO, prediction markets)

GET /v1/data/risk/agi
FREE
GET /v1/data/risk/ai-extinction
FREE
GET /v1/data/risk/asteroids
$0.0015
GET /v1/data/risk/board
FREE
GET /v1/data/risk/climate
$0.0015
GET /v1/data/risk/doomsday-clock
FREE
GET /v1/data/risk/earthquakes
$0.0015
GET /v1/data/risk/markets
$0.0015
GET /v1/data/risk/outbreaks
$0.0015
GET /v1/data/risk/space-weather
$0.0015

Security feeds (NVD, CISA KEV, ransomware.live)

GET /v1/data/security/cve-critical
$0.0075
GET /v1/data/security/kev
$0.003
GET /v1/data/security/ransomware
$0.0075

EU public tenders (TED)

GET /v1/data/tenders/eu/{country}/{cpv}
$0.02

Utilities

POST /v1/util/qr-code
FREE

Authentication

AsterPay uses one rule per surface. You almost never need an API key.

Surface Auth How
Free read endpoints
trust score, settlement estimate, discovery, market rates
None Plain HTTP GET. No key, no account.
Paid endpoints
deep analysis, offramp, AI tools, crypto analytics
Pay-per-call (keyless) x402 PAYMENT-SIGNATURE header, or MPP Authorization: Payment. No account.
Dashboard & merchant features
usage analytics, settlement payouts (app.asterpay.io)
API key Authorization: Bearer sk_.... Only for dashboard-bound calls — never required for the public API above.

Live payout requires KYB (handled at settlement, not at the API). Reads and per-call payments stay keyless and accountless.

Example Usage

// FREE read endpoint — no key, no payment
const est = await fetch(
  'https://x402.asterpay.io/v1/settlement/estimate?amount=100'
).then(r => r.json());
console.log(est.data.netEurAmount, est.data.estimatedSepaTime);

// PAID endpoint — easiest path is the x402 fetch wrapper, which
// auto-handles the 402 -> pay -> retry loop for you.
// npm install x402-fetch   (USDC on Base, EIP-3009, mainnet)
import { wrapFetchWithPayment } from 'x402-fetch';
import { account } from './wallet.js'; // your funded signer

const pay = wrapFetchWithPayment(fetch, account);

const data = await pay(
  'https://x402.asterpay.io/v1/agent/deep-analysis/0xYourAgentAddress'
).then(r => r.json());
// The wrapper reads the 402 challenge (x402Version 2, network eip155:8453,
// USDC asset), signs an EIP-3009 transferWithAuthorization, base64-encodes it,
// and retries with the PAYMENT-SIGNATURE header. You just get the result.

Prefer raw HTTP or another language? The full request/response shapes are in the OpenAPI 3.1 spec, the Postman collection, and the interactive docs. Every paid call also accepts MPP (Authorization: Payment) on the same URL.