BTC/USD · FEAR & GREED · MEMPOOL · DOMINANCE · PROTOCOLL402 ⚡ · MIN COST2 SATS · NETWORKMAINNET · BTC/USD · FEAR & GREED · MEMPOOL · DOMINANCE · PROTOCOLL402 ⚡ · MIN COST2 SATS · NETWORKMAINNET ·
L402 · Lightning Network · Mainnet

Bitcoin
Intelligence
API.

No subscriptions. No API keys. Pay per request with Lightning Network using the L402 protocol. Bitcoin data for developers, traders, and AI agents — starting at 2 sats.

2sats
Min cost
2Msats
Inbound liquidity
8endpoints
Available now
satsapi.dev — curl
$ curl https://satsapi.dev/v1/price

Built for AI Agents & Automation
L402 turns payment into authentication — AI agents can autonomously pay for Bitcoin data without accounts, sessions, or human intervention. Perfect for LangChain, AutoGPT, or any autonomous agent that needs real-time market data.
1B+
L402 responses/day
processed by Cloudflare

01

How it works

STEP 01 / REQUEST
Make a request

Send a GET request to any endpoint. No headers, no auth, no setup required. The server responds with HTTP 402.

# Request GET /v1/price HTTP/1.1 Host: satsapi.dev # Response: 402 "invoice": "lnbc30n1..." "amount_sats": 3 "payment_hash": "fa7f01..."
STEP 02 / PAY
Pay the invoice

Pay with any Lightning wallet — Phoenix, Alby — or programmatically using WebLN, LNC, or any Lightning library.

# WebLN (browser) await webln .sendPayment(invoice) # LNC (programmatic) await lnc.lnd.lightning .sendPaymentSync({ payment_request: invoice })
STEP 03 / RECEIVE
Get your data

Retry the request with the payment hash as query param. The server verifies proof of payment and returns the data.

# Retry with proof GET /v1/price ?payment_hash=fa7f01... # Response: 200 ✓ "price": 67284.16 "rsi_14": 49.3 "trend": "BEARISH"

02

Endpoints

Endpoint Cost Returns Type
GET/v1/price
3 sats
Price, RSI 14, MA50/200, MACD bias, 24h change & volume
live
GET/v1/mempool
2 sats
Pending transactions, fee estimates (fast/medium/slow), congestion
live
GET/v1/tx/:txid
2 sats
Transaction details, confirmations, inputs and outputs
live
GET/v1/onchain
15 sats
Fear & Greed index, BTC dominance, supply stats, hashrate, market phase
live
GET/v1/derivatives
15 sats
Funding rate, open interest, long/short ratio, leverage risk
live
GET/v1/news
50 sats
AI-analyzed Bitcoin news sentiment, top events summary (cached 6h)
AI
GET/v1/signal
150 sats
BUY/SELL/HOLD signal with confluence score, trade setup, AI reasoning
AI
GET/v1/summary ★
200 sats
Full briefing: all data aggregated + executive summary + bot_ready object
AI

03

Live demo

Select endpoint
  • GET /v1/demoFREE
  • GET /v1/price3 sats
  • GET /v1/mempool2 sats
  • GET /v1/onchain15 sats
  • GET /v1/derivatives15 sats
  • GET /v1/signal150 sats

* /v1/demo returns real data, no payment needed.
All other endpoints require Lightning payment.

Response preview
// Select an endpoint and click fetch →

04

What is L402?

L402 is a machine-native payment protocol developed by Lightning Labs that repurposes HTTP's 402 "Payment Required" status code. It enables micropayments directly in the HTTP layer — no accounts, no sessions, no billing system.

The payment hash returned after paying the Lightning invoice acts as cryptographic proof of payment. The server verifies it without any database lookup — stateless, instant, and global.

As of 2025, Cloudflare processes over 1 billion L402 responses per day. AI agents and automated systems are the fastest-growing consumers of L402 APIs — the protocol is purpose-built for machine-to-machine commerce.

L402 specification by Lightning Labs →

01
Client requests resource
Any GET to a protected endpoint, no prior setup.
GET /v1/signal HTTP/1.1
02
Server returns 402 + invoice
Lightning invoice and payment hash included in the response.
HTTP/1.1 402 Payment Required
03
Client pays Lightning invoice
Settled in milliseconds, globally, with no intermediary.
preimage = wallet.pay(invoice)
04
Client retries with proof
Server verifies cryptographic proof and returns data instantly.
GET /v1/signal?payment_hash=fa7f...