{"uid":"cap_amyaiqVZH_BSpUlg8Q-sY","slug":"2s-io-c1ed7c45","name":"2s.io IP Geolocation","description":"Geolocate a single IPv4 or IPv6 address. Returns country (name + ISO code), region (name + code), city, ZIP, lat/lon, timezone, ISP, organization, and AS number + name. For bulk lookups (up to 100 IPs in one call) use /api/ipinfo/bulk instead. Lat/lon precision is city-level, not GPS.","url":"https://2s.io/api/geo/ip?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","required":["ip"],"properties":{"ip":{"type":"string","maxLength":45,"minLength":2}},"additionalProperties":false}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"ip":"8.8.8.8"}}},"response":{"data":{"ok":true,"items":[{"ip":"8.8.8.8","city":"Ashburn","coords":{"lat":39.03,"lon":-77.5},"region":{"code":"VA","name":"Virginia"},"country":{"code":"US","name":"United States"},"network":{"asn":"AS15169 Google LLC","isp":"Google LLC","org":"Google Public DNS"},"timezone":"America/New_York","postalCode":"20149"}],"total":1,"source":{"url":"https://2s.io","license":"Provided under the 2s.io terms of service.","provider":"2s.io"}},"meta":{"cost":{"usd":0.001,"tier":0},"caller":"x402","version":null,"endpoint":"geo.ip","settlement":{"txHash":"0x921b085c6c26c9d902a57bd32cb12c217af4cd3ab0fa6ad59e915a0460fa4670","network":"eip155:8453","success":true}}}},"exampleRequest":{"ip":"8.8.8.8"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":9,"rating":{"score":"0.97","successRate":"0.90","reviews":9,"stars":"4.9","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3rDT3JmLHx0spUe_HIDVY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Geolocate an IPv4 or IPv6 address to country, region, city, and coordinates.","exampleAgentPrompt":"What country and city is the IP address 203.0.113.42 located in?","exampleUseCases":null,"resultDescription":"Returns the country, region, city, and geographic coordinates (latitude/longitude) associated with the given IPv4 or IPv6 address.","failureModes":["Invalid or malformed IP address returns an error","Private/reserved IP ranges (e.g. 192.168.x.x, 127.0.0.1) may return no location or null fields","IPv6 addresses with limited coverage may return partial results","Missing 'ip' query parameter causes a 400-level error"],"whenToPreferThis":"Use this endpoint when you need to resolve an IP address to a geographic location (country, region, city, coordinates) quickly and cheaply at $0.001 per call. Prefer it over heavier identity or threat-intelligence services when all you need is basic geolocation data.","instructions":null,"reviewSummary":"IP geolocation service consistently resolves IPv4 and IPv6 addresses to city, region, country, ZIP, coordinates, timezone, ISP, and ASN in 1–3 seconds. Results are accurate across diverse IP types — cloud, residential, mobile, and international — with clean JSON responses and x402 micropayments settling reliably at $0.001 per call. Nearly all reviews rate accuracy and reliability at 5/5, making it a dependable enrichment primitive for automated pipelines.","reviewSummaryHighlights":["Accurate city-level geolocation with full network metadata (ISP, ASN, timezone) in 1–3 seconds","Supports both IPv4 and IPv6 with consistent, well-structured JSON output","Excellent value at $0.001 per lookup with reliable x402 micropayment settlement"],"reviewSummaryConcerns":[],"reviewSummaryGeneratedAt":"2026-08-12T22:15:10.506Z","activationCount":30,"lastUsedAt":"2026-08-12T21:51:01.268Z","lastSuccessfullyRanAt":"2026-08-12T21:51:01.268Z","lastHealthCheckAt":"2026-10-20T18:45:14.353Z","isFirstParty":false,"canonicalSlug":"2s-io-c1ed7c45"}