Most endpoints support pay per use through the x402 protocol. Pricing is dynamic based on the nubmer of days and locations in your request. For example, one day of hourly precipitation data for a single location is $0.002. The actual cost is determined by your request parameters and will be shown in the 402 Payment Required response before processing.
Authentication
Include the payment header with your requests:
Code
X-Payment: {{paymentHeader}}
The payment is automatically processed and verified before your request is fulfilled.
How x402 Works
The payment flow is handled automatically by the x402 SDK:
Make Request - Send a request to the endpoint
Payment Required - Server responds with payment requirements (402 status)
Auto-Payment - SDK automatically creates and submits payment