Google Places API with X402 Gasless Payments
Access real Google Places data with automatic micropayments. The X402 protocol handles everything - no gas fees, no API keys, just seamless location data via CDP facilitator.
Live API Demo
The API Pricing Problem
Traditional API pricing models are broken. We built X402 to fix them.
Traditional API Issues
High minimum commitments
$200+/month minimums
Complex billing
Multiple tiers, overages, hidden fees
Unused quotas
Pay for searches you don't use
API key management
Security risks, rotation complexity
Payment friction
Credit cards, invoicing, approvals
Our Solution
X402 Protocol
$0.01 USDC per search via Base network
Zero gas fees
CDP facilitator covers all transaction costs
EIP-712 signatures
Secure wallet-based authentication
Production ready
Live at places-api.x402hub.xyz
Claude Code MCP
Native integration for AI assistants
Get location data in 3 simple steps
X402 Places API makes micropayments seamless. Just make a request and we handle the rest.
Make API Request
Send a standard HTTP POST request to our text-search endpoint
// Using x402-fetch wrapper
const response = await fetchWithPayment(
'https://places-api.x402hub.xyz/api/places/text-search',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
query: 'coffee shops',
location: '37.7749,-122.4194',
radius: 2000
})
}
);X402 Payment Flow
CDP facilitator processes EIP-712 signature for gasless payment on Base network
// Automatic payment flow:
// 1. Server returns 402 Payment Required
// 2. Client creates EIP-712 signature
// 3. CDP facilitator verifies and executes
// 4. Request retried with X-Payment header
// All gas fees paid by facilitator ✨Receive Data
Get Google Places data with payment metadata included in response
{
"results": [{
"place_id": "ChIJN1t_tDeuEmsRUsoyG83frY4",
"name": "Blue Bottle Coffee",
"formatted_address": "66 Mint St, San Francisco",
"rating": 4.3,
"geometry": { "location": { "lat": 37.7749, "lng": -122.4194 }}
}],
"metadata": {
"cost": "$0.01",
"protocol": "x402 v1.0",
"payment_method": "gasless_micropayment"
}
}Why Choose X402 Places API?
Built for developers who want simple, transparent, and cost-effective location data access.
X402 Protocol
$0.01 USDC per search
Transparent micropayments via Base network
Gasless transactions
CDP facilitator covers all gas fees
EIP-712 signatures
Secure payment authorization standard
No API keys needed
Wallet-based authentication only
Developer Experience
Claude Code MCP
Native integration with Claude Code
x402-fetch/axios
Drop-in wrappers for automatic payments
Standard REST API
Simple POST endpoint with JSON
Complete documentation
Full API reference and examples
Production Ready
Live on Base mainnet
Production deployment at places-api.x402hub.xyz
Vercel serverless
Scalable edge deployment
Google Places API
Real authenticated Google data
Service discovery
X402 /.well-known/x402 endpoint
Network & Security
Base network
Mainnet and Sepolia testnet support
USDC payments
EIP-3009 transferWithAuthorization
Facilitator verified
CDP facilitator validation
Anti-replay protection
Secure signature validation
Claude Code Ready
MCP server available
Places-x402-Mcp on GitHub
Natural language
Query places with simple text
Automatic payments
MCP handles X402 flow
Session persistence
Maintains payment state
Monitoring & Health
/health endpoint
API health and status checks
/api/info
Service metadata and capabilities
Payment metadata
Cost and protocol info in responses
Error handling
Clear 402 payment flow responses
True Pay-Per-Use Pricing
$0.01 USDC per search. Zero gas fees. Zero setup costs. Zero monthly minimums. Pay only for what you use.
X402 Places API
Pay-per-use model