geo
Geolocate a single IPv4 or IPv6 address.
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.
get/api/geo/ip
Request
- Base URL: https://2s.io
- URL: https://2s.io/api/geo/ip
- Auth: API key in header PAYMENT-SIGNATURE
Query parameters
ipstring required
IP.
trial1
Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.
Response
(unresolved $ref)
Changes
No recorded changes to this operation across all 1 revision of this API.