{"success":true,"service":"iptozipdistance","name":"Rex Validate IP to ZIP Distance","price":"0.010000","currency":"USD","test_mode":false,"method":"POST","endpoint":"https://rexvalidate.com/api/agent/v1/ip-to-zip","required_fields":["ip","zip","idempotency_key"],"docs":"https://rexvalidate.com/agents/ip-to-zip.html","accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"10000","payTo":"0x362e811d2047e41C52639622F62fBa07521637D7","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}}],"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"ip":"8.8.8.8","zip":"10001","idempotency_key":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}},"output":{"type":"json","example":{"success":true,"service":"iptozipdistance","price":"0.010000","currency":"USD","test_mode":false,"payment_status":"settled","result":{"decision":"complete","summary":"Approximate straight-line distance between the IP ZIP location and the submitted US ZIP location.","distance_miles":12.339999999999999857891452847979962825775146484375,"ip_zipcode":"10002","zipcode":"10001","distance_type":"straight_line_zip_centroids","approximate":true}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"additionalProperties":false,"properties":{"type":{"const":"http"},"method":{"const":"POST"},"bodyType":{"const":"json"},"body":{"type":"object","additionalProperties":false,"required":["ip","zip","idempotency_key"],"properties":{"ip":{"type":"string","description":"Public IPv4 or IPv6 address; US geolocation required."},"zip":{"type":"string","pattern":"^[0-9]{5}$","description":"Five-digit US ZIP code, preserving leading zeros."},"idempotency_key":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Generate 32 random bytes as lowercase hex. Keep private and reuse only for this request."}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"const":"json"},"example":{"type":"object"}}}}}}}}