Learn how to integrate and use APIs from the APIHub 402 marketplace
To use APIs on APIHub 402, you'll need a Web3 wallet with cryptocurrency. We support:
Explore our marketplace to find the perfect API for your needs:
Integration is simple with our x402 client library:
import { X402Client } from '@apihub402/client'
const client = new X402Client({
walletAddress: '0x...',
privateKey: process.env.PRIVATE_KEY
})
const response = await client.call({
apiId: 'weather-api-123',
endpoint: '/forecast',
params: { city: 'San Francisco' }
})
console.log(response.data)When you make an API call, the x402 protocol automatically:
Pay only for the API calls you make. No monthly fees, no unused credits.
No signup forms or approval processes. Connect your wallet and start using APIs immediately.
See exactly what each API call costs before you make it. No hidden fees or surprises.
All payments are processed on-chain with cryptographic verification for maximum security.
Explore our marketplace and find the perfect API for your project