Documentation

Everything you need to integrate and monetize APIs with x402 protocol

For Consumers

Learn how to integrate and use APIs from the marketplace

Get Started

For Providers

Learn how to list and monetize your APIs on the platform

Get Started

Introduction to x402

Understand the x402 protocol and how it enables pay-per-use API monetization with crypto micropayments

Read more →

API Integration Guide

Step-by-step guide to integrating marketplace APIs into your applications with code examples

Read more →

Authentication & Security

Learn about API keys, payment tokens, and security best practices for the platform

Read more →

Payment Processing

Understand how crypto micropayments work and how to handle payment flows in your integration

Read more →

Quick Example

// Initialize the APIHub client
import { APIHubClient } from '@apihub402/client';

const client = new APIHubClient({
  apiKey: 'your-api-key',
  paymentToken: 'your-payment-token'
});

// Make a pay-per-use API call
const response = await client.call('weather-api', {
  endpoint: '/forecast',
  params: { location: 'New York' }
});

console.log(response.data);