402.pub

The open marketplace for paid APIs. Discover services on Nostr. Pay with L402, x402, or Cashu.

0 services
0 L402
0 x402
0 IETF 402
0 Cashu
0 relays

Gate any API behind a paywall in 5 lines

npm i @forgesworn/toll-booth
0 services 0 relays
Connecting to relays...

Announce Your Own API

Get your API listed here. Announce it on Nostr in 10 lines of code.

import { announceService } from '402-announce'

await announceService({
  secretKey: process.env.NOSTR_SK,
  relays: ['wss://relay.damus.io'],
  identifier: 'my-api',
  name: 'My Paid API',
  url: 'https://api.example.com',
  about: 'Pay-per-request API',
  pricing: [{ capability: 'query', price: 10, currency: 'sats' }],
  paymentMethods: [['l402', 'lightning']],
})