IP Address Details API

⭐ Beginner's Pick Geocoding / No Auth Required Beginner HTTPS
Free to Use Varies (check documentation)

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.

Available Data

IP address details
latitude and longitude
city and country
timezone
ISP information
IP address information

Example Response

JSON Response
{
  "ip": "203.0.113.42",
  "city": "San Francisco",
  "region": "California",
  "country_code": "US",
  "latitude": 37.7749,
  "longitude": -122.4194,
  "timezone": "America/Los_Angeles",
  "isp": "Example ISP"
}

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

const url = "https://ipinfo.io/";
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

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.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 20/20
🔒 Security 15/15
🛠 Developer XP 20/20
✓ Reliability 15/15
Response Time 186ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Geocoding
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →