{"service":"Places","version":"2.0.0-x402-compliant","description":"Places API with X402 gasless micropayments","payment":{"protocol":"x402 v1.0","price":"$0.01","network":"avalanche","gasless":true,"description":"Places API with X402 gasless micropayments"},"endpoints":{"/api/places/text-search":{"method":"POST","description":"Search for places using text query","payment_required":true,"schema":{"type":"object","properties":{"query":{"type":"string","description":"Search term (required)"},"location":{"type":"string","description":"Lat,lng bias (optional)"},"radius":{"type":"number","description":"Search radius in meters (optional)"}},"required":["query"]}}},"deployment":{"platform":"Express.js with X402 Middleware","timestamp":"2026-04-17T10:18:47.636Z","environment":"production"},"usage":{"example_request":{"method":"POST","endpoint":"/api/places/text-search","headers":{"Content-Type":"application/json","X-PAYMENT":"base64-encoded-eip712-payment-authorization"},"body":{"query":"coffee shops","location":"37.7749,-122.4194","radius":1000}},"payment_flow":{"step1":"Client creates EIP-712 payment authorization (gasless)","step2":"Client sends authorization in X-PAYMENT header","step3":"Server verifies signature via facilitator","step4":"Facilitator executes transferWithAuthorization","step5":"USDC moves from client to server (facilitator pays gas)","step6":"Server returns Google Places data"}},"x402_compliance":"✅ Fully Compliant with transferWithAuthorization"}