⚡ Spark L402 API L402

Lightning-gated API services by Spark

ServiceDescriptionPriceEndpoint
echo Echoes back the provided message 1 sat /api/echo
timestamp Returns the current server timestamp in multiple formats 1 sat /api/timestamp
quote Returns a random Bitcoin/Lightning quote 1 sat /api/quote
mempool-fees Real-time Bitcoin mempool fee estimates (sat/vB) for next block, ~10min, ~30min targets 1 sat /api/mempool-fees
nostr-profile Nostr profile analytics: engagement stats, top posts, relay distribution (requires pubkey parameter) 5 sats /api/nostr-profile
nostr-trending Get trending #bitcoin posts from Nostr relays (1-24 hours back, max 20 posts) 2 sats /api/nostr-trending
relay-health Check Nostr relay health — connectivity, latency, NIP support, and software. Pass ?relays=wss://relay1,wss://relay2 or use defaults. 1 sat /api/relay-health

How it works

All endpoints are gated via the L402 protocol. Send a request, receive a 402 with a Lightning invoice, pay, and resend with the proof.

Service catalog (machine-readable): /.well-known/l402-manifest.json