Skip to content
OSINTtools.io

ipdata API

IP geolocation and threat API: location, ASN and company, VPN/Tor/proxy detection, blocklists and reputation scores.

Base URL
https://api.ipdata.co
Sign-in
API key
Format
REST, Bulk files
Endpoints
2

Compiled by OSINTtools.io editors from docs.ipdata.co · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

ipdata returns geolocation, ASN, currency, time zone and threat data for an IP address. Investigators use it to place an address, see who owns the network and check flags such as Tor, proxy, datacenter or known attacker.

Calls go to https://api.ipdata.co (or https://eu-api.ipdata.co for EU-only routing). The API key is sent as the api-key query parameter. The fields parameter limits the response to the fields you name. Bulk lookup of up to 100 addresses and ASN data need a paid plan.

The docs page for this reference did not state rate limits, so none are listed.

Quick start

  1. Get a key

    Create an account with ipdata and copy your api key. Where to get it

  2. Make your first request

    Geolocation and threat data for one IP address.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.ipdata.co/203.0.113.7?api-key=YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this, shortened.

    {
      "ip": "203.0.113.7",
      "is_eu": false,
      "city": "Exampleville",
      "region": "Example Region",
      "country_name": "Exampleland",
      "country_code": "EX",
      "continent_code": "EU",
      "latitude": 10.5,
      "longitude": 20.25,
      "asn": {
        "asn": "AS64496",
        "name": "Example Networks",
        "domain": "example.com",
        "route": "203.0.113.0/24",
        "type": "hosting"
      },
      "currency": {
        "code": "EXC"
      },
      "time_zone": {
        "name": "Example/Zone",
        "current_time": "2026-01-01T12:00:00+00:00"
      },
    …

Authentication

Send your API key in the api-key query parameter of every request.

The EU endpoint is https://eu-api.ipdata.co.

Get a key from ipdata

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs

Errors

StatusMeaning
400Private, reserved or malformed IP, or a bulk request that is not a valid JSON array or has more than 100 addresses
401API key missing or invalid
403Quota exceeded, paid feature used without a paid plan, or IP or domain not on the whitelist
404The requested ASN does not exist

IP lookup

Looks up a specific IP address. GET / with no address looks up the device making the request. Which field groups come back depends on your plan.

Path parameters

ipstringrequiredtakes your ip address

IP address to look up

Example: 203.0.113.7

Query parameters

fieldsstring

Comma-separated response fields to return

Example: ip,country_name,asn
callbackstring

JSONP callback function name

Example: handle
Response fields · 31Show

ipstring

The address looked up

is_euboolean

Whether the country is an EU member

countinteger

Requests made by your key in the last 24 hours

citystring

City name

regionstring

Region name

region_codestring

ISO 3166-2 region code

country_namestring

Country name

country_codestring

ISO 3166-1 alpha-2 country code

continent_namestring

Continent name

continent_codestring

Two-letter continent code

latitudenumber

Approximate latitude

longitudenumber

Approximate longitude

postalstring

Postal code

calling_codestring

International calling code

is_anycastboolean

Present only when true: anycast IP, location is the nearest instance

asnstring

Autonomous System Number

namestring

Organization that owns the ASN

domainstring

Organization website

routestring

Network prefix the IP belongs to

typestring

Usage type

codestring

ISO 4217 currency code

namestring

Timezone name

current_timestring

Current local time

is_torboolean

IP is a Tor node

is_proxyboolean

IP is a known proxy

is_datacenterboolean

IP belongs to a datacenter or cloud provider

is_known_attackerboolean

IP is a known source of malicious activity

is_known_abuserboolean

IP is a known source of abuse such as spam

is_threatboolean

True if known attacker or known abuser

is_bogonboolean

IP is a bogon

blocklists[]object

Blocklists reporting the IP, with name, website and list type

curl 'https://api.ipdata.co/203.0.113.7?api-key=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "ip": "203.0.113.7",
  "is_eu": false,
  "city": "Exampleville",
  "region": "Example Region",
  "country_name": "Exampleland",
  "country_code": "EX",
  "continent_code": "EU",
  "latitude": 10.5,
  "longitude": 20.25,
  "asn": {
    "asn": "AS64496",
    "name": "Example Networks",
    "domain": "example.com",
    "route": "203.0.113.0/24",
    "type": "hosting"
  },
  "currency": {
    "code": "EXC"
  },
  "time_zone": {
    "name": "Example/Zone",
    "current_time": "2026-01-01T12:00:00+00:00"
  },
  "threat": {
    "is_tor": false,
    "is_proxy": false,
    "is_datacenter": true,
    "is_known_attacker": false,
    "is_known_abuser": false,
    "is_threat": false,
    "is_bogon": false
  }
}
  • Takes: IP address
  • Passive: the target is not contacted
  • Cost: One request per address
  • Plan: Paid plans

Send a JSON array of IP addresses. Each address counts as one request against your quota. Only available to paid users; larger batches need support.

Response fields · 9Show

ipstring

The address looked up

country_namestring

Country name

citystring

City name

latitudenumber

Approximate latitude

longitudenumber

Approximate longitude

asnobject

ASN data

currencyobject

Currency data

time_zoneobject

Timezone data

threatobject

Threat data

curl -X POST 'https://api.ipdata.co/bulk?api-key=YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '["203.0.113.7","198.51.100.9"]'
Replace YOUR_API_KEY with your key
Response
[
  {
    "ip": "203.0.113.7",
    "country_name": "Exampleland",
    "city": "Exampleville",
    "latitude": 10.5,
    "longitude": 20.25
  }
]