Discover/IPinfo API
live

IPinfo APIipinfo.io

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

Endpoint health
verified 2d ago
geolocate_ip
get_my_ip
2/2 passing latest checkself-healing
Endpoints
2
Updated
22d ago

What is the IPinfo 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.

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.
Call it over HTTPgrab 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'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace ipinfo-io-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.ipinfo_ip_geolocation_api import IPinfo

client = IPinfo()

# Look up a specific IP address
location = client.iplocations.get(ip="8.8.8.8")
print(location.ip, location.city, location.region, location.country)
print(location.latitude, location.longitude, location.org)

# Get the requester's own IP geolocation
my_location = client.iplocations.mine()
print(my_location.ip, my_location.city, my_location.timezone)

# Use constructible resource to refresh
google_dns = client.iplocation(ip="1.1.1.1")
refreshed = google_dns.refresh()
print(refreshed.hostname, refreshed.postal, refreshed.anycast)
All endpoints · 2 totalmissing one? ·

Look up geolocation and network data for a specific IP address. Returns city, region, country, coordinates, organization, postal code, timezone, hostname, and anycast status. The loc field contains raw latitude,longitude; latitude and longitude are parsed floats.

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 API

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.

Reliability & maintenanceVerified

The IPinfo API is a managed, monitored endpoint for ipinfo.io — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when ipinfo.io changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official ipinfo.io API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
2d ago
Latest check
2/2 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
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,000100 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 →
whatismyip.com API
Retrieve the public IP address and detailed geolocation data associated with the requesting connection, including city, country, coordinates, ISP, and timezone. Useful for connection diagnostics, geolocation verification, and understanding how a network identity appears to external services.
myip.ms API
Find detailed ownership and hosting information for any IP address or domain, including WHOIS data, website statistics, and hosting provider details. Discover your own IP information and explore rankings of top hosting companies worldwide.
geonames.org API
Search for places worldwide and get their exact coordinates, timezone information, and elevation data, or reverse lookup locations by coordinates to discover nearby areas. Access postal codes, country details, and geographic names across the globe to build location-aware applications and services.
infobel.com API
Search and retrieve business and person contact information from Infobel directories across the globe to find phone numbers, addresses, and other details. Quickly locate companies or individuals by name to build targeted contact lists or verify business information worldwide.
openweathermap.org API
Search for cities and retrieve live weather conditions and forecasts (current, minutely precipitation, hourly and daily) by coordinates or by city name.
similarweb.com API
Analyze any website's performance by retrieving detailed traffic statistics, visitor demographics, geographic distribution, competitor benchmarks, and search source data. Monitor engagement metrics and rankings to understand how websites compare in your industry and discover new competitive opportunities.
accuweather.com API
Get real-time weather conditions, multi-day forecasts, and health alerts for any location worldwide. Search cities and access detailed data including allergen information and air quality to plan your activities with confidence.
weatherforecast.com API
Get detailed 12-day weather forecasts for any location worldwide, with temperature, wind, rain, humidity, and UV index data updated three times daily. Search locations and retrieve comprehensive weather information suitable for travel planning, research, and general forecasting needs.