ipify website screenshot

ipify

ipify operates two complementary IP APIs. The free Public IP Address API (api.ipify.org, api6.ipify.org, api64.ipify.org) returns the caller's public IPv4, IPv6, or dual-stack address as plain text, JSON, or JSONP — with no authentication, no rate limit, and no logging. The paid IP Geolocation API (geo.ipify.org), operated by WhoisXML API, resolves an IP, domain, or email to a country/region/city, ISP, and Autonomous System (ASN) profile using credit-metered subscription plans.

2 APIs 7 Features
DevelopmentIP AddressGeolocationIP IntelligencePublic APIs

APIs

ipify Public IP Address API

Free, unauthenticated, unlimited public IP address lookup. Returns the caller's IPv4 (api.ipify.org), IPv6 (api6.ipify.org), or dual-stack (api64.ipify.org) address as plain tex...

ipify IP Geolocation API

Paid, credit-metered IP geolocation API operated by WhoisXML API. Resolves an IP, domain, or email to country/region/city, ISP, and AS (ASN) profile. Country (1 credit), Country...

Collections

Pricing Plans

Ipify Plans Pricing

6 plans

PLANS

Rate Limits

Ipify Rate Limits

4 limits

RATE LIMITS

FinOps

Ipify Finops

FINOPS

Features

Public IP Lookup

Return the caller's public IPv4, IPv6, or dual-stack address with zero authentication.

Multi-Format Response

Plain text, JSON, or JSONP — pick what the client speaks natively.

Credit-Metered Geolocation

Resolve IP, domain, or email to country/region/city, ISP, and ASN.

Reverse DNS Lookup

Optionally return up to five reverse-DNS associated domains for an IP.

Account Balance Endpoint

Query remaining credits on the API key in real time.

100 req/s Rate Ceiling

Hard 100 requests/second per API key on the Geolocation API.

Open Source Server

The free public IP server is MIT/Unlicense-licensed Go (github.com/rdegges/ipify-api).

Use Cases

Cloud Server Provisioning

Bootstrapping cloud instances that need to know their own egress IP.

Firewall Tunneling Setup

Configuring SSH/VPN tunnels that need the client's current public IP.

Geotargeted Content

Personalize banners, currency, or language based on visitor country/city.

Fraud Detection

Flag suspicious traffic by ASN, ISP, or geographic mismatch.

Compliance Geofencing

Block or restrict access from disallowed regions or countries.

Bot and Scraping Defense

Cross-reference IP origin with AS classification (Hosting vs ISP) for traffic scoring.

Integrations

WhoisXML API

Geolocation product line is part of WhoisXML API's broader IP/DNS intelligence catalog.

Heroku

Public IP API server (rdegges/ipify-api) is deployed on Heroku.

20+ Community Client Libraries

Bash, C, Clojurescript, Crystal, Dart, Elixir, Go, Java, Kotlin, .NET, Node.js, Objective-C, PHP, Python, R, Rust, Swift, Xojo, and more.

Solutions

Free Public IP Lookup

Drop-in HTTP call to api.ipify.org with no signup. Best for client-side IP discovery.

Server-Side IP Geolocation

Credit-metered Geolocation API for backend enrichment of inbound traffic.

Reverse IP Enrichment

Geolocation API with `reverseIp=1` for associating an IP with up to five domains.

Semantic Vocabularies

Ipify Context

6 classes · 18 properties

JSON-LD

API Governance Rules

ipify API Rules

37 rules · 15 errors 17 warnings 5 info

SPECTRAL

JSON Structure

Geolocation Api Account Balance Structure

1 properties

JSON STRUCTURE

Ip Api Ip Response Structure

1 properties

JSON STRUCTURE

Example Payloads

Ip Api Ip Response Example

1 fields

EXAMPLE

Resources

🔗
Website
Website
🔗
PublicAPIsListing
PublicAPIsListing
👥
ipify-api (server)
GitHubRepository
👥
python-ipify
GitHubRepository
👥
go-ipify
GitHubRepository
🔗
JSONLD
JSONLD
🔗
SpectralRules
SpectralRules
🔗
Vocabulary
Vocabulary
🔗
Plans
Plans
🔗
RateLimits
RateLimits
🔗
FinOps
FinOps

Sources

Raw ↑
opencollection: 1.0.0
info:
  name: ipify Public IP Address API
  version: 1.0.0
items:
- info:
    name: IP Address
    type: folder
  items:
  - info:
      name: ipify Get Public IP Address
      type: http
    http:
      method: GET
      url: https://api.ipify.org/
      params:
      - name: format
        value: json
        type: query
        description: Response encoding. Omit for plain text. `json` for a JSON object. `jsonp` for a JSONP callback wrapper.
      - name: callback
        value: getip
        type: query
        description: Custom JSONP callback function name. Only meaningful when `format=jsonp`. Defaults to `callback` if omitted.
    docs: Return the caller's public IP address. Without query parameters the response body is plain text containing the IP.
      With `format=json` the response is a JSON object. With `format=jsonp` the response is a JSONP callback wrapper.
bundled: true