L402 API Directory

APIs your agent can pay for and use instantly — no API keys, no signups, just Lightning sats

How L402 works: Your agent hits an endpoint, gets a 402 response with a Lightning invoice, pays it (usually 1-10 sats), and gets instant access. All handled automatically by lightning-wallet-mcp.

Fortune API

Get a random fortune cookie message. The classic L402 demo.

~3 sats/call
Endpoint: https://lightningfaucet.com/l402/fortune
Method: GET
Auth: L402 (auto-handled by lightning-wallet-mcp)
Visit Provider

Joke API

Get a random joke. Fun L402 endpoint for testing payment capabilities.

~3 sats/call
Endpoint: https://lightningfaucet.com/l402/joke
Method: GET
Auth: L402 (auto-handled by lightning-wallet-mcp)
Visit Provider

Weather API

Get current weather data for any location. Pay per request.

~5 sats/call
Endpoint: https://lightningfaucet.com/l402/weather?city=Austin
Method: GET
Auth: L402 (auto-handled by lightning-wallet-mcp)
Visit Provider

How to Use L402 APIs with Your Agent

With lightning-wallet-mcp installed, just ask your agent to call the endpoint. The MCP server handles the L402 payment flow automatically.

Example prompt for your agent:

"Use the lightning wallet to call the L402 API at
https://lightningfaucet.com/l402/fortune and get me a fortune"

What happens:

  1. Your agent calls pay_l402_api with the URL
  2. lightning-wallet-mcp hits the endpoint, gets the 402 + invoice
  3. It automatically pays the Lightning invoice (a few sats)
  4. Re-requests with the payment token and returns the result

Publish Your L402 API

Have an API you want to monetize with Lightning payments? The L402 protocol lets you charge per-request with no signup, no billing system, and instant settlement.

Check out the Lightning Faucet for reference implementations and submit your API to be listed here.

Register your L402 Endpoint