Bitcoin Intelligence API · Lightning Network · L402

Market data.
Pay in sats.

8 endpoints covering price, mempool, on-chain data, derivatives, AI-powered signals and more. No subscription. No registration. No API key. Just pay per call in satoshis.

8
Endpoints
BTC / USD
Fear & Greed
L402
Protocol
BTC/USD
FEES
BLOCK
F&G
RSI 1D
TREND
BTC/USD
FEES
BLOCK
F&G
RSI 1D
TREND

Eight endpoints.
Real intelligence.

Every endpoint returns structured JSON optimized for both humans and AI agents.

GET
/v1/price
Real-time BTC price with RSI, 50/200-day moving averages, MACD bias and trend direction.
RSIMACDMA
GET
/v1/mempool
Mempool status with optimal fees for 10min, 30min and 1h confirmation windows. Last block data.
FeesBlocks
GET
/v1/tx/:txid
Transaction lookup by TXID. Returns status, confirmations, fee rate, inputs, outputs and block time.
ConfirmedPending
GET
/v1/onchain
Fear & Greed index with 7-day history, BTC dominance, circulating supply, hash rate and market phase detection.
Fear&GreedHashrate
GET
/v1/derivatives
Perpetuals data: funding rate, open interest trend, long/short ratio, leverage risk assessment.
FundingOIL/S
GET
/v1/news
AI-generated daily crypto news summary. Sentiment score, top 3 events and market impact analysis. Cached 6h.
AISentimentCached 6h
GET
/v1/signal
9-factor BUY/SELL/HOLD signal with confluence score, Pi Cycle Top, multi-timeframe RSI and ATR-based trade setup.
AIPi CycleATR
GET ★
/v1/summary
Everything in one call. Market score 0–100, AI executive summary, risk matrix, key levels, bot-ready flat fields.
All-in-oneBot-readyRisk matrix
Live Demo

Try it.
No signup required.

Real-time data from the live API. Every call hits satsapi.dev directly.

Select endpoint
3
sats / call
≈ 0.002€
Response
// Select an endpoint and execute...
Integration

Three lines.
Any language.

Standard REST. If you can fetch JSON, you can use SatsAPI. Full docs →

// 1. Call the endpoint const res = await fetch('https://satsapi.dev/v1/signal'); // 2. If 402 Payment Required, pay the Lightning invoice if (res.status === 402) { const invoice = res.headers.get('WWW-Authenticate'); await wallet.pay(invoice); // instant Lightning payment // 3. Repeat request with payment token const data = await (await fetch('https://satsapi.dev/v1/signal')).json(); console.log(data.data.signal); // "BUY" | "SELL" | "HOLD" }
import requests # 1. Call the endpoint r = requests.get("https://satsapi.dev/v1/summary") # 2. If 402, pay the Lightning invoice if r.status_code == 402: invoice = r.headers["WWW-Authenticate"] wallet.pay(invoice) # 3. Repeat request data = requests.get("https://satsapi.dev/v1/summary").json() print(data["data"]["bot_ready"]["signal"]) # "HOLD"
# Price — 3 sats curl https://satsapi.dev/v1/price # Full summary — 200 sats curl https://satsapi.dev/v1/summary # Transaction lookup curl https://satsapi.dev/v1/tx/TXID_HERE # Response: HTTP 402 + Lightning invoice in WWW-Authenticate header # Pay invoice → repeat request → receive JSON
// LangChain / AutoGPT tool definition const tool = { name: "bitcoin_market_intelligence", description: "BTC signal, price levels, risk matrix. Returns bot_ready object.", async call() { const data = await satsApiCall("/v1/summary"); return data.bot_ready; // { signal:"HOLD", confluence:52, market_score:59, // price_usd:84200, fear_greed:28, support:79400 } } }; // Pays automatically via L402 — no human needed // Compatible with: lnget · Aperture · LNC · WebLN
Protocol

How L402 works.

The Lightning Network 402 protocol enables pay-per-call APIs without accounts, cards or subscriptions.

Make the request
Call any endpoint like a standard REST API. The server responds with HTTP 402 and a Lightning invoice in the header.
Pay the invoice
Your Lightning wallet (or agent) pays the invoice in milliseconds. No redirects. No waiting. No account needed.
Receive the data
The server verifies payment and returns the full JSON response. The entire cycle takes under one second.
Bots pay automatically
AI agents using lnget or WebLN complete the payment loop without human intervention. True autonomous API consumption.
AI Agents

Built for bots.

Every response includes a bot_ready object — flat, typed, zero parsing required.

Native Lightning payments
Agents pay via L402 without human involvement. Compatible with lnget, Aperture, LNC and WebLN. No API key management.
Flat bot_ready fields
if (data.signal === 'BUY' && data.confluence > 65) — that's it. No nested parsing, no normalization.
Structured for LLM context
The executive_summary field provides analyst-grade narrative ready to inject directly into an LLM prompt for downstream reasoning.
Predictable rate limits
Clear per-endpoint limits returned in headers. Your agent always knows how fast it can call. No surprise 429s mid-strategy.
Pricing

Pay exactly
what you use.

No monthly fees. No tiers. No surprises. Each call costs a fixed number of satoshis, settled instantly on Lightning.

/v1/price
3
sats / call
≈ 0.002€
/v1/mempool + /v1/tx
2
sats / call
≈ 0.002€
/v1/onchain + derivatives
15
sats / call
≈ 0.012€
/v1/news
50
sats / call
≈ 0.040€
/v1/signal
150
sats / call
≈ 0.120€
/v1/summary ★
200
sats / call
≈ 0.160€
vs. Glassnode Pro: $29/month ($0.97/day)
vs. CryptoQuant: $20/month ($0.67/day)
SatsAPI at 500 calls/day avg mix: ~$0.12/day ($3.60/month)
1,000 calls/day · avg 55 sats/call55,000 sats/day
BTC at $84,000≈ $46.20 / day
Monthly revenue estimate≈ $1,386 / month
Hosting cost (Railway)−$5 / month
Net at 1,000 calls/day≈ $1,381 / month in BTC