Skip to main content
Hyperbrowser supports the X402 payment protocol, enabling AI agents to programmatically pay for web powered APIs at request time using cryptocurrency. Payment is handled inline via HTTP 402 responses, allowing truly autonomous agentic workflows.

What is X402?

X402 is an open payment standard built around the HTTP 402 Payment Required status code. It enables services to charge for access to their APIs and content directly over HTTP, allowing clients to programmatically pay for resources without accounts, sessions, or credential management. When an agent makes a request to an X402 endpoint, if payment is required, the server responds with 402 Payment Required along with payment instructions. The agent can then complete the payment and retry the request. To learn more about X402 and get started, check out the X402 Documentation.

Supported Endpoints

Hyperbrowser provides X402-enabled versions of these API endpoints:

Fetch

Fetch any page and get data in the formats you choose. X402 Endpoint:
https://api.hyperbrowser.ai/x402/web/fetch
Documentation: See the Fetch API documentation for full parameter reference and examples. Query the web and get clean, structured search results. X402 Endpoint:
https://api.hyperbrowser.ai/x402/web/search
Documentation: See the Search API documentation for full parameter reference and examples.

How It Works

  1. Agent makes request: Your AI agent sends a request to an X402 endpoint (e.g., https://api.hyperbrowser.ai/x402/web/fetch)
  2. Payment required response: If payment is needed, Hyperbrowser responds with 402 Payment Required and payment instructions.
  3. Agent completes payment: The agent uses the X402 protocol to complete the cryptocurrency payment
  4. Request retry: After payment confirmation, the agent retries the original request
  5. Service delivered: Hyperbrowser processes the request and returns the results

Benefits for Agentic Workflows

  • Autonomous operation: Agents can pay for services without human intervention
  • No accounts or credentials: Access paid services without account creation or API key management
  • Cost transparency: Agents know the exact cost before committing
  • Programmable budgets: Agents can be configured with spending limits

Getting Started

To integrate X402 into your agentic workflows:
  1. Review the X402 protocol documentation
  2. Implement X402 client functionality in your agent
  3. Use Hyperbrowser’s X402 endpoints instead of standard API endpoints
  4. Configure your agent with a crypto wallet and spending parameters