### Example GeoIP API Response in JSON Source: https://geoip.sh/json/89.187.165 This JSON object illustrates the structure of a successful response from the geoip.sh API. It contains comprehensive details for the IP address '89.187.165.1', including its location in Zurich, Switzerland, ASN details, and postal code. This format is useful for developers integrating with the GeoIP service to understand the data fields they can expect. ```json { "ip": "89.187.165.1", "city": { "geoname_id": 2657896, "names": "Zurich" }, "continent": { "code": "EU", "geoname_id": 6255148, "names": "Europe" }, "country": { "geoname_id": 2658434, "iso_code": "CH", "names": "Switzerland" }, "location": { "accuracy_radius": 20, "latitude": 47.3643, "longitude": 8.5437, "time_zone": "Europe/Zurich" }, "postal": { "code": "8042" }, "registered_country": { "geoname_id": 3077311, "is_in_european_union": true, "iso_code": "CZ", "names": "Czechia" }, "subdivisions": [ { "geoname_id": 2657895, "iso_code": "ZH", "names": "Zurich" } ], "asn": { "autonomous_system_number": 60068, "autonomous_system_organization": "Datacamp Limited" }, "lookup": { "provided_by": "geoip.sh" } } ``` -------------------------------- ### GeoIP.sh API Endpoints Source: https://geoip.sh/index The GeoIP.sh service is accessed by making a simple HTTP GET request to one of the available endpoints. By default, the service returns data for the IP making the request. To query a specific IP address, append it as a path parameter to the URL. ```APIDOC ## Endpoints | Endpoint | Description | |----------------|-----------------------------------------------------------------------------| | /json | Returns response in JSON for the calling IP. | | /csv | Returns response in CSV for the calling IP. | | /json/{ip} | Returns response in JSON for the specified IP. | | /csv/{ip} | Returns response in CSV for the specified IP. | | /json/{lang} | Returns a localized JSON response for the calling IP. | | /csv/{lang} | Returns a localized CSV response for the calling IP. | | /json/{lang}/{ip} | Returns a localized JSON response for the specified IP. | | /csv/{lang}/{ip} | Returns a localized CSV response for the specified IP. | ## Path Parameters - `{ip}`: The IP address to look up. Example: `89.187.165.1` - `{lang}`: The language code for localization. Supported codes: `de`, `es`, `fr`, `ru`, `cn`, `jp`, `br`. ## Examples - Get JSON for a specific IP: `https://geoip.sh/json/89.187.165.1` - Get CSV for a specific IP: `https://geoip.sh/csv/89.187.165.1` - Get localized JSON for a specific IP: `https://geoip.sh/json/de/89.187.165.1` ``` -------------------------------- ### GeoIP Lookup Response Schema Source: https://geoip.sh/csv/89.187.165 This document outlines the schema for the data returned by a GeoIP lookup. It lists all possible fields, such as geographical location details (city, country, continent), ASN information, and timezone for the queried IP address. The example row shows data for the IP 89.187.165.1. ```APIDOC Fields: - ip - city_geoname_id - city_names - continent_code - continent_geoname_id - continent_names - country_geoname_id - country_iso_code - country_names - location_accuracy_radius - location_latitude - location_longitude - location_time_zone - postal_code - registered_country_geoname_id - registered_country_is_in_european_union - registered_country_iso_code - registered_country_names - subdivisions - asn_autonomous_system_number - asn_autonomous_system_organization - lookup_provided_by ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.