Access L402-Protected API
access_l402Fetch URLs behind L402 paywalls by automatically paying Lightning invoices and retrying with proof of payment, returning the response data.
Instructions
Fetch a URL that may be behind an L402 (Lightning-gated) paywall. Automatically pays the invoice and retries with proof of payment. Returns the response data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to fetch (may return 402 with Lightning invoice) | |
| body | No | Request body (for POST/PUT) | |
| method | No | HTTP method (default GET) | |
| headers | No | Additional request headers | |
| maxSats | No | Maximum sats to auto-pay (safety limit) | |
| nostrPubkey | No | Your Nostr pubkey hex for trust discounts (X-Nostr-Pubkey header) |