IP Address Details API

Beginner's Pick Geocoding / No Auth Required Beginner HTTPS
Free to Use
79 B
Measured Score 0 50 100 Speed 19/30 Consistency 17/20 Security 20/20 Browser access 15/15 Transparency 8/15 TESTED 2026-08-10

Overview

IP Address Details (ipinfo.io) returns geolocation and network information for any IP address, including city, region, country, ISP, and organization. It is one of the most reliable IP lookup APIs and works without authentication for basic usage. Paid plans unlock higher rate limits and additional fields.

Beginner Tip

Without a token you are limited to 50,000 requests/month — sufficient for most projects. Append /json to any IP address URL like https://ipinfo.io/8.8.8.8/json for a clean JSON response.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://ipinfo.io/8.8.8.8/json
Result
HTTP 200 · application/json · 304 bytes · compressed
Response time
184 ms (median of 3) · fastest 171 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Let's Encrypt
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
ip string 8.8.8.8
hostname string dns.google
city string Mountain View
region string California
country string US
loc string 37.4056,-122.0775
org string AS15169 Google LLC
postal string 94043
timezone string America/Los_Angeles
readme string (url) https://ipinfo.io/missingauth
anycast boolean true

Captured Response

Captured from a real request to https://ipinfo.io/8.8.8.8/json on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "ip": "8.8.8.8",
  "hostname": "dns.google",
  "city": "Mountain View",
  "region": "California",
  "country": "US",
  "loc": "37.4056,-122.0775",
  "org": "AS15169 Google LLC",
  "postal": "94043",
  "timezone": "America/Los_Angeles",
  "readme": "https://ipinfo.io/missingauth",
  "anycast": true
}

Field Reference

ip The IP address that was queried.
city Estimated city associated with the IP address.
region State or region name associated with the IP.
country ISO 3166-1 alpha-2 country code, e.g. US or JP.
org Organization or ISP name for the IP, prefixed by AS number.
timezone IANA timezone string for the IP location, e.g. America/New_York.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://ipinfo.io/8.8.8.8/json";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

429 Too Many Requests You have exceeded the free tier limit of 50,000 requests per month.
Sign up for a free API token to get a higher quota, or add the token as a query parameter: ?token=YOUR_TOKEN.
Bogon IP in response The IP is a private/reserved range like 192.168.x.x or 10.x.x.x.
Only look up public IP addresses. For testing, use a public IP like 1.1.1.1.
Missing city or region fields Some IPs do not have precise geolocation data beyond the country level.
Always check for null or missing fields and provide fallback values in your application.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 19/30
Consistency 17/20
Security 20/20
Browser access 15/15
Transparency 8/15
Endpoint Response Time 184ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Geocoding
Difficulty Beginner
Endpoint last called: 2026-08-10

Similar APIs

View All →