apay_request
Access paid APIs without manual payment: send HTTP requests; for 402 responses, automatically sign cryptographic payments within budget limits to unlock data.
Instructions
Make an HTTP request (GET, POST, etc.) to any API or website. If the endpoint returns an HTTP 402 Payment Required challenge, A-Pay automatically signs the cryptographic payment authorization within your budget limits and unlocks the data in <25ms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Target endpoint URL to fetch or query | |
| method | No | HTTP request method (default: GET) | GET |
| headers | No | Optional additional HTTP headers | |
| json_body | No | Optional JSON payload for POST/PUT requests |