Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

ipify Geolocation API

Resolve an IP, domain, or email to a country, region, city, and ISP.

ipify Geolocation API is one of 3 APIs that ipify publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 6 JSON Schema definitions.

Tagged areas include Geolocation. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, pricing, authentication docs, and 6 JSON Schemas.

This API exposes 3 operations across 3 paths, and defines 6 schemas. It is described by OpenAPI 3.0.3, at version 2.0.0.

Requests are made against 2 base URLs: https://geo.ipify.org/api/v2, https://geo.ipify.org.

3 operations 3 paths 6 schemas 3 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
2.0.0
Base URL
https://api.ipify.org
Authentication
API Key
License
Resource Areas
1

Authentication & Security 1

ipify Geolocation API declares 1 security scheme for authenticating requests. An API key is passed in the query as apiKey (ApiKeyQuery).

  • ApiKeyQuery — Personal API key issued by WhoisXML API for the ipify Geolocation product. Passed as the apiKey query parameter on every request.

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 3 GET. Each is listed below with its method, path, parameters, and response codes.

Geolocation 3

Resolve an IP, domain, or email to a country, region, city, and ISP.

GET
/country
ipify Get Country-Level Geolocation
getCountryLocation 6 params → 200400401403422429
GET
/country,city
ipify Get Country and City Geolocation
getCountryCityLocation 6 params → 200400401403422429
GET
/country,city,vpndeprecated
ipify Get Country, City, and VPN Geolocation
getCountryCityVpnLocation 6 params → 200400401403422429

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are Location (8 properties), GeolocationVpnResponse (6 properties), AutonomousSystem (5 properties), GeolocationResponse (5 properties). Each schema is shown below with its type and property counts.

GeolocationResponse
object
Geolocation, ISP, and AS lookup result for an IP, domain, or email.
5 properties 2 required
Location
object
Country + region + city + postal code + lat/lng + timezone block.
8 properties
AutonomousSystem
object
Autonomous System (AS) profile for the IP.
5 properties
ProxyBlock
object
Deprecated proxy/VPN detection block — always returns false.
3 properties
GeolocationVpnResponse
object
Geolocation result including the deprecated VPN/proxy block.
6 properties 2 required
ErrorResponse
object
Generic error envelope returned for non-2xx responses.
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

ipify-geolocation-api-openapi.yml Raw ↑

Other APIs ipify publishes across the network.

ipify Account API
ipify IP Address API