IPinfo API

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

Overview

IPinfo is a free, no-auth-required IP geolocation and network intelligence API that returns rich data about any IP address including location, organization, ASN, and timezone. The free tier supports up to 50,000 requests per month without an API token, making it one of the best options for getting started with IP lookups. It is widely used in fraud detection, analytics, and content personalization.

Beginner Tip

You can use IPinfo without any API token for up to 50,000 requests per month. For your own IP, simply call https://ipinfo.io/json with no IP address specified.

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
178 ms (median of 3) · fastest 177 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 queried IP address
city City associated with the IP address
region State or region associated with the IP
country Two-letter ISO country code
org Organization or ISP that owns the IP, prefixed by ASN (e.g., AS15169 Google LLC)
timezone IANA timezone string for the IP location (e.g., America/Chicago)

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.

Rate limit exceeded (429) More than 50,000 requests made per month without an API token
Sign up for a free account at ipinfo.io to get a token with higher limits, then add ?token=YOUR_TOKEN to requests
bogon field is true with unexpected location data The IP address is a reserved or private IP (bogon)
Private IPs (10.x.x.x, 192.168.x.x, etc.) return bogon:true with no geolocation; test with a real public IP
org field not present Organization data may not be available for all IP ranges
This is normal for some IP blocks; check the asn field instead or sign up for a plan with ASN data

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 20/30
Consistency 20/20
Security 20/20
Browser access 15/15
Transparency 8/15
Endpoint Response Time 178ms

Fully tested on Aug 10, 2026

Technical Specifications

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

Related Tags

Similar APIs

View All →