Abstract API · Schema

IPGeolocationResponse

IP geolocation response data

AvatarsCompany EnrichmentContactsCurrenciesEmail ValidationExchange RatesIBAN ValidationImage ProcessingIP GeolocationIP IntelligencePhone ValidationPublic HolidaysScreenshotsTimezonesVAT ValidationWeb Scraping

Properties

Name Type Description
ip_address string The queried IP address
city string City name
city_geoname_id integer Geonames ID for the city
region string Region or state name
region_iso_code string ISO region code
region_geoname_id integer Geonames ID for the region
postal_code string Postal or ZIP code
country string Country name
country_code string ISO 3166-1 alpha-2 country code
country_geoname_id integer Geonames ID for the country
country_is_eu boolean Whether the country is in the EU
continent string Continent name
continent_code string Continent code
continent_geoname_id integer Geonames ID for the continent
longitude number Longitude coordinate
latitude number Latitude coordinate
security object
timezone object
flag object
currency object
View JSON Schema on GitHub

JSON Schema

abstract-api-ipgeolocationresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/IPGeolocationResponse",
  "title": "IPGeolocationResponse",
  "type": "object",
  "description": "IP geolocation response data",
  "properties": {
    "ip_address": {
      "type": "string",
      "description": "The queried IP address",
      "example": "8.8.8.8"
    },
    "city": {
      "type": "string",
      "description": "City name",
      "example": "Mountain View"
    },
    "city_geoname_id": {
      "type": "integer",
      "description": "Geonames ID for the city",
      "example": 5375480
    },
    "region": {
      "type": "string",
      "description": "Region or state name",
      "example": "California"
    },
    "region_iso_code": {
      "type": "string",
      "description": "ISO region code",
      "example": "CA"
    },
    "region_geoname_id": {
      "type": "integer",
      "description": "Geonames ID for the region",
      "example": 5332921
    },
    "postal_code": {
      "type": "string",
      "description": "Postal or ZIP code",
      "example": "94043"
    },
    "country": {
      "type": "string",
      "description": "Country name",
      "example": "United States"
    },
    "country_code": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code",
      "example": "US"
    },
    "country_geoname_id": {
      "type": "integer",
      "description": "Geonames ID for the country",
      "example": 6252001
    },
    "country_is_eu": {
      "type": "boolean",
      "description": "Whether the country is in the EU",
      "example": false
    },
    "continent": {
      "type": "string",
      "description": "Continent name",
      "example": "North America"
    },
    "continent_code": {
      "type": "string",
      "description": "Continent code",
      "example": "NA"
    },
    "continent_geoname_id": {
      "type": "integer",
      "description": "Geonames ID for the continent",
      "example": 6255149
    },
    "longitude": {
      "type": "number",
      "format": "double",
      "description": "Longitude coordinate",
      "example": -122.0838
    },
    "latitude": {
      "type": "number",
      "format": "double",
      "description": "Latitude coordinate",
      "example": 37.386
    },
    "security": {
      "$ref": "#/components/schemas/SecurityInfo"
    },
    "timezone": {
      "$ref": "#/components/schemas/TimezoneInfo"
    },
    "flag": {
      "$ref": "#/components/schemas/FlagInfo"
    },
    "currency": {
      "$ref": "#/components/schemas/CurrencyInfo"
    }
  }
}