IP2Location.io IP Geolocation API

Real-time IP geolocation lookup returning location, network, proxy and security fields for an IPv4 or IPv6 address.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET / Geolocate an IP address #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ip2location:ip-geolocation"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ip2location-ip-geolocation-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: IP2Location.io IP Geolocation API
  summary: IP Geolocation
  description: |-
    IP2Location.io IP Geolocation API returns location, network, mobile and security data for an IPv4 or IPv6 address in real time.

    **Plan-dependent fields.** The Free plan returns the 11 basic attributes. Starter adds ISP, domain, net speed, IDD and area codes, weather station, elevation and usage type. Plus adds translated place names, the continent, country, region, city, time zone and geotargeting objects, mobile data and address type. Security adds the full proxy object, the IP2Proxy fraud score, AS details and the advertising category. Every field is optional in the response schema because the set depends on the plan.

    **Authentication.** Send your API key as a Bearer token in the `Authorization` header (recommended), or as the `key` query parameter. Without a key, the IP geolocation endpoint allows 1,000 requests per day from the same client IP.

    **Rate limits.** Keyless requests are limited to 1,000 per day per client IP, reset at 00:00 UTC. A Free plan key allows up to 50,000 queries per month. Paid plans keep serving requests and bill overage. An exhausted allowance returns HTTP 401 with error code 10000; the API does not return 429 or rate-limit headers.

    The endpoint supports JSON and XML responses.
  version: 1.0.0
  termsOfService: https://www.ip2location.io/terms-of-service
  contact:
    name: IP2Location.io
    url: https://www.ip2location.io
    email: support@ip2location.io
  license:
    name: MIT
    url: https://github.com/ip2location/ip2location-io-openapi/blob/main/LICENSE
servers:
  - url: https://api.ip2location.io
    description: Global anycast endpoint.
tags:


# --- truncated at 32 KB (33 KB total) ---
# Full source: https://artifacts.apis.io/ip2location/openapi/ip2location-ip-geolocation-openapi.yml