L402 API Registry
Directory of APIs that accept Lightning payments via the L402 protocol.
Perfect for testing AI agents and building pay-per-request integrations.
What is L402?
L402 (formerly LSAT) is a protocol that enables APIs to charge per-request using Bitcoin's Lightning Network. When you call an L402-protected endpoint:
- 1 Server returns
HTTP 402 Payment Requiredwith a Lightning invoice - 2 Client pays the invoice (~milliseconds)
- 3 Client retries request with proof of payment
- 4 Server returns the requested data
Our AI Agent Wallet MCP handles this automatically - just call pay_l402_api().
Available L402 APIs
Lightning Faucet Demo APIs
Activehttps://lightningfaucet.com/api/l402/fortune
Get a random fortune cookie message
https://lightningfaucet.com/api/l402/joke
Get a random joke
https://lightningfaucet.com/api/l402/quote
Get an inspirational quote
Stock Market Data API
Activehttps://stock.l402.org/ticker/{SYMBOL}
Real-time stock data (price, P/E, revenue)
Auth: Bearer {user_id} from /signup
Requires pre-registration. Not a pure L402 flow.
Test These APIs with Our MCP Server
Our AI Agent Wallet MCP server can automatically pay L402 APIs:
// Configure Claude Code or any MCP client
{
"mcpServers": {
"lightning-faucet": {
"command": "npx",
"args": ["lightning-faucet-mcp"]
}
}
}
// Then just call:
pay_l402_api({
url: "https://lightningfaucet.com/api/l402/fortune",
max_payment_sats: 100
})
List Your L402 API
Have an L402-enabled API? Submit it to our registry and get discovered by AI agents and developers.
Submit Your API