Discover/ipinfo.io API
live

ipinfo.io APIipinfo.io

Look up city, region, country, coordinates, org/ASN, postal code, timezone, and hostname for any IP address via the IPinfo API.

Endpoints
2
Updated
1mo ago
Try it
IP address to look up (e.g., '8.8.8.8', '1.1.1.1').
api.parse.bot/scraper/2843baf5-37f1-4ec6-bbc0-557e9fec585d/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/2843baf5-37f1-4ec6-bbc0-557e9fec585d/geolocate_ip?ip=8.8.8.8' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 2 totalclick to expand

Look up geolocation and network data for a specific IP address. Returns city, region, country, coordinates, organization, postal code, timezone, hostname, and anycast status.

Input
ParamTypeDescription
iprequiredstringIP address to look up (e.g., '8.8.8.8', '1.1.1.1').
Response
{
  "type": "object",
  "fields": {
    "ip": "string - The queried IP address",
    "loc": "string - Latitude,longitude as comma-separated string",
    "org": "string - Organization/ASN info",
    "city": "string - City name",
    "postal": "string - Postal/zip code",
    "region": "string - Region/state name",
    "anycast": "boolean - Whether the IP is an anycast address",
    "country": "string - ISO 3166-1 alpha-2 country code",
    "hostname": "string - Reverse DNS hostname",
    "latitude": "number - Latitude coordinate parsed from loc",
    "timezone": "string - IANA timezone identifier",
    "longitude": "number - Longitude coordinate parsed from loc"
  },
  "sample": {
    "data": {
      "ip": "8.8.8.8",
      "loc": "37.4056,-122.0775",
      "org": "AS15169 Google LLC",
      "city": "Mountain View",
      "postal": "94043",
      "region": "California",
      "anycast": true,
      "country": "US",
      "hostname": "dns.google",
      "latitude": 37.4056,
      "timezone": "America/Los_Angeles",
      "longitude": -122.0775
    },
    "status": "success"
  }
}

About the ipinfo.io API

The IPinfo API exposes 2 endpoints and 10 response fields per lookup, letting you retrieve geolocation and network data for any IPv4 or IPv6 address. The geolocate_ip endpoint accepts a single ip parameter and returns city, region, country code, coordinates, organization/ASN, postal code, hostname, and anycast status. A second endpoint, get_my_ip, returns the same field set for the outbound IP of the calling request.

Endpoints

The geolocate_ip endpoint takes one required input — ip (e.g. 8.8.8.8) — and returns a flat object covering geographic and network fields: city, region, country (ISO 3166-1 alpha-2), postal, loc (latitude and longitude as a comma-separated string), latitude (pre-parsed numeric value), org (ASN and organization name), hostname (reverse DNS), and anycast (boolean indicating whether the address is an anycast IP).

The get_my_ip endpoint takes no inputs and returns the identical field set for whichever IP address is making the request. This is useful for server-side environment checks, egress IP auditing, or confirming proxy/VPN exit node details at call time.

Response Fields

org combines the ASN number and the registered organization name in a single string (e.g. AS15169 Google LLC). loc is always returned as a "lat,lon" string; latitude is the numeric latitude parsed from that string. anycast is a boolean that is true only when the queried IP belongs to an anycast range — most residential and cloud IPs will return false. country is always a two-letter ISO code, not a full country name.

Coverage and Accuracy

IPinfo maintains its own IP-to-location database. City and region accuracy varies by IP type: datacenter and ISP gateway addresses tend to resolve more precisely than residential addresses, which are often mapped to a regional aggregate point. Postal codes are included where available but may be absent for some IP ranges outside densely-mapped geographies.

Common use cases
  • Geoblock or restrict content by country code at the application layer
  • Display a localized default currency or language using country and region on page load
  • Identify datacenter vs. residential traffic by inspecting the org and anycast fields
  • Log the ISP and ASN (org) alongside user sessions for fraud or abuse analysis
  • Confirm egress IP and location for outbound API calls using get_my_ip
  • Pre-fill shipping address city, region, and postal code from city, region, and postal fields
  • Detect VPN or proxy exit nodes by cross-referencing org with known datacenter ASNs
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does IPinfo have an official developer API?+
Yes. IPinfo publishes an official REST API at https://ipinfo.io/developers. It offers both free and paid tiers with additional fields beyond the core geolocation set, including ASN detail pages and carrier data.
What does `geolocate_ip` return for the `org` field?+
It returns a combined ASN and organization string, for example AS13335 Cloudflare, Inc.. This comes from WHOIS registration data for the IP range. It reflects the network operator, not necessarily the end user's employer or ISP brand name.
Does the API return timezone data?+
Not currently. The endpoints cover city, region, country, coordinates, postal code, org/ASN, hostname, and anycast status, but timezone is not included in the current response shape. You can fork this API on Parse and revise it to add the timezone field if your use case requires it.
How accurate is city-level geolocation for residential IPs?+
City accuracy for residential broadband IPs is often at the metro or regional level rather than the exact street address. ISP gateway and datacenter IPs typically resolve more precisely. The postal field may be absent for IP ranges in countries with less complete mapping coverage.
Does the API support bulk lookups for multiple IPs in one call?+
Not currently. Each call to geolocate_ip accepts a single ip parameter. There is no batch endpoint in the current API. You can fork it on Parse and revise to add a multi-IP endpoint that iterates a list of addresses.
Page content last updated . Spec covers 2 endpoints from ipinfo.io.
Related APIs in Maps GeoSee all →
idealista.pt API
Search and filter property listings across Portugal by location, price, and size, then access detailed information about each property including its characteristics and pricing history. Monitor how property prices change over time to help you make informed decisions about buying or selling real estate.
homedepot.com API
Search and browse Home Depot's product catalog to compare pricing, check real-time availability, and review detailed product specifications. Find products across all categories, look up store locations and hours, and check fulfillment options including in-store pickup and delivery.
zocdoc.com API
Search for doctors and medical practices on Zocdoc by specialty and location. Retrieve provider profiles, accepted insurance, office locations, patient reviews, and appointment availability.
opentable.com API
Search for restaurants across the US with ratings, reviews, photos, and pricing information, plus get real-time availability and autocomplete suggestions as you type. Check reservation openings and explore detailed restaurant features to find and book your perfect dining experience.
zapimoveis.com.br API
Search and filter real estate listings across Brazil on ZAP Imóveis — the country's largest property portal. Retrieve listings for sale or rent with detailed attributes including price, location, size, bedrooms, bathrooms, parking, and amenities. Supports location autocomplete, property type discovery, and full listing detail retrieval.
immobiliare.it API
Search Italian property listings for sale or rent, browse real estate agencies, and explore price trends across Italian cities — all via immobiliare.it.
angieslist.com API
Search for home service professionals on Angi and access their detailed profiles including reviews, contact information, and photos to find the right contractor for your project. Quickly compare multiple service providers by viewing their ratings, customer feedback, and verified business details all in one place.
api.nasa.gov API
Access NASA's suite of open data APIs — including the Astronomy Picture of the Day, Near Earth Object tracking, DONKI space weather events, EPIC Earth imagery, Mars weather, the NASA Image and Video Library, the Exoplanet Archive, and EONET natural events.