Skip to content

IPinfo API: Get IP location

Finds the public location and network operator of an IPv4 or IPv6 address. Private and reserved addresses have no public location.

ipinfo.io (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by IPinfo.

Inputs

Values from the run on Oct 23, 2026, shown under Output.

Ip Address, requiredip_address

Public IPv4 or IPv6 address, for example 8.8.8.8.

8.8.8.8

Output

From a run on Oct 23, 2026.
{  "city": "Mountain View",  "region": "California",  "hostname": "dns.google",  "latitude": 38.0088,  "longitude": -122.1175,  "time_zone": "America/Los_Angeles",  "ip_address": "8.8.8.8",  "ipinfo_link": "https://ipinfo.io/8.8.8.8",  "postal_code": "94043",  "country_code": "US",  "country_name": "United States",  "organization": "Google LLC",  "network_number": "AS15169"}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
ipinfo.io/get_ip_location
Returns
city, region, country, postal code, time zone, organization, AS number, coordinates

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method ipinfo.io/get_ip_location with the inputs above.

Ask your agent

  • Where is the IP address 8.8.8.8 located? I need the city and country.
  • Look up the network operator and AS number for 1.1.1.1 on ipinfo.io.
  • What timezone and postal code belong to the public IP 203.0.113.45?
  • Find the coordinates and region for 2001:4860:4860::8888 please.
  • Which organization owns the IP 185.199.108.153, and what city is it in?

See more

  • Looks up a UK postcode on Postcodes.io, including its location, administrative areas and whether it is still in use. Retired postcodes return location and retirement year only.

    postcodes.io/get_postcode
  • Matches a US street address and returns its city or place, county, state, ZIP code, census tract, congressional and state legislative districts, coordinates and FIPS codes. Districts follow the Census Geocoder's current geography vintage and may differ from sitting representation.

    census.gov/get_address_details
  • Finds postal codes, place names and coordinates for a town and state or region in a country covered by Zippopotam.us.

    zippopotam.us/search_postal_codes
  • Looks up the places, regions and coordinates for a postal code in a supported country on Zippopotam.us.

    zippopotam.us/get_postal_code
  • Finds map coordinates and address details for an address or place on OpenStreetMap, optionally restricted to a country.

    openstreetmap.org/get_coordinates
  • Looks up a public Google Maps place by name and location and returns its profile: address, rating, hours, phone, website and photos.

    google.com/get_place
  • Gets AirNow current air quality, pollutant readings and today's and tomorrow's forecasts for a US city or ZIP code, or a covered Canadian or Mexican city.

    airnow.gov/get_air_quality
  • Lists UK postcodes nearest to a postcode or named place, with distance, ward, council and coordinates. For places sharing a name, a city or town is preferred.

    postcodes.io/list_nearby_postcodes