# IPIDB > IP data provider: location, network, security flags and blacklist status of IPv4 and IPv6 addresses through one API, and the data in bulk by licence. # IPIDB key facts What IPIDB is and offers, with the current numbers. As of 25 November 2026. ## IPIDB at a glance | What it is | An IP data provider: an API and a database with the location, network and reputation of IPv4 and IPv6 addresses | | --- | --- | | Website | [ipidb.com](https://ipidb.com/), API at `https://api.ipidb.com/v1`, dashboard at [app.ipidb.com](https://app.ipidb.com/account) | | Products | IP geolocation API, IP blacklist API, MAC vendor API, database licences | | Response format | JSON over HTTPS, OpenAPI specification at [https://api.ipidb.com/openapi.json](https://api.ipidb.com/openapi.json) | | Fields per IP lookup | 42 | | IPv4 ranges | 6,094,291 | | IPv6 ranges | 306,432 | | Countries and territories | 250 | | Autonomous systems | 88,157 | | Updates | Routing data daily; location and network corrections as they are confirmed; blacklist reports as they arrive | | Free plan | 1,000 IP lookups, 1,000 blacklist checks and 1,000 MAC lookups a day, 1 request per second, no card | | Paid plans | Starter €12 a month (250,000 lookups); Pro €34 a month (1,500,000 lookups); Business €89 a month (6,000,000 lookups) | | Payments | Paddle.com as merchant of record: cards and other methods Paddle offers, VAT handled by Paddle | | Company | IPIDB, Croatia | | Contact | [support@ipidb.com](mailto:support@ipidb.com), answers within one business day | ## Data types - Location: continent, country, region, city, district, postal code, coordinates, accuracy radius in km, EU membership. - Time zone: IANA name; on paid plans also the UTC offset, daylight saving time and local time. - Network: ASN, ISP, organisation, domain, connection type; on paid plans also AS name, parent company, reverse DNS, IP range, RPKI state and anycast. - Security (paid plans): VPN with provider name, open proxy, Tor exit node, hosting range, blacklist status with confidence. - Abuse contact and country details such as calling code, currency and languages (paid plans). - MAC vendor: manufacturer of a MAC address or prefix, with multicast, local and randomised flags. ## APIs | Endpoint | Purpose | Plans | | --- | --- | --- | | `GET /v1/ip/{ip}` | Location, time zone and network of an address | All | | `POST /v1/ip/batch` | Up to 100 addresses per request, 1,000 on Business | Paid | | `GET /v1/blacklist/{ip}` | Abuse reports for an address | All | | `GET /v1/mac/{mac}` | Manufacturer of a MAC address | All | | `GET /v1/mac/search` | Prefixes registered to a company | Paid | Details are in the [documentation](https://ipidb.com/docs/) and on the [API page](https://ipidb.com/api/). ## Databases The data can be licensed for use inside your own systems. Scope, format and update schedule are agreed per licence. See [database licences](https://ipidb.com/database/). ## How the data is kept current IPIDB keeps its own database. Routing data is refreshed every day, so new and moved networks show up within a day. Location and network records are corrected when a change is confirmed, and every API answer comes from the current state of the database. Reports of wrong records are checked by hand. ## Privacy The API looks up addresses; it does not identify people. Requests are logged for billing, rate limits and abuse prevention. The [privacy policy](https://ipidb.com/privacy/) lists what is stored and for how long. ## Support E-mail [support@ipidb.com](mailto:support@ipidb.com) or the [contact form](https://ipidb.com/contact/). Billing questions go through the same address; invoices come from Paddle. ## FAQ ### Is there a free plan? Yes, 1,000 lookups a day per API, no card. ### Is IPv6 supported? Yes, on every endpoint. ### Can the data be used commercially? On paid plans, yes. ### Where is IPIDB based? In Croatia. More in the [FAQ](https://ipidb.com/faq/). --- IPIDB Key Facts | IPIDB https://ipidb.comArray/ # IP geolocation API, blacklist and MAC vendor API Three JSON APIs on one key: the location and network of any IPv4 or IPv6 address, whether an address was reported for abuse, and the manufacturer of a MAC address. [Get a free API key](https://app.ipidb.com/account?mode=signup) [Read the docs](https://ipidb.com/docs/) IPIDB answers every lookup from its own database of 6,094,291 IPv4 ranges and 306,432 IPv6 ranges across 250 countries and territories. The routing tables behind the network fields are refreshed daily. The base address is `https://api.ipidb.com/v1`, authentication is a key in the `X-API-Key` header, and every response is JSON with a `success` flag, so errors are as easy to handle as results. ## IP geolocation API `GET /v1/ip/{ip}` returns 42 fields for an address. Without an address it looks up the address the request comes from, which is how you get the location of a visitor in one call. The free plan returns the location, the time zone and the core network fields; paid plans return the same objects with more keys plus security, abuse and country data. ### Location Continent, country with its ISO code, region, city, district where known, postal code, coordinates and `accuracy_radius_km`, the radius in which the real location is expected to fall. A small radius means the city can be trusted; a large one means only the country should be. `is_eu` tells you whether the country is an EU member, which is handy for consent banners. The [article on the accuracy radius](https://ipidb.com/blog/accuracy-radius-explained/) explains how to use it. | Field | Plan | Description | | --- | --- | --- | | `location.continent` | Free | Continent | | `location.continent_code` | Free | Continent code | | `location.country` | Free | Country | | `location.country_code` | Free | ISO 3166-1 alpha-2 code | | `location.region` | Free | Region or state | | `location.city` | Free | City | | `location.district` | Free | District within the city, where known | | `location.postal_code` | Free | Postal code | | `location.latitude` | Free | Latitude of the estimated location | | `location.longitude` | Free | Longitude of the estimated location | | `location.accuracy_radius_km` | Free | Radius the location is expected to fall in | | `location.location_level` | Free | How precise the location is: city, region or country. Without a city the coordinates are the centre of the region or country | | `location.is_eu` | Free | Country is an EU member | | `location.address` | Paid | Street address of the datacenter or office, where known | ### Network The autonomous system that announces the address, the ISP, the registered organisation, its website and the connection type, such as broadband, mobile, hosting, business or education. Paid plans add the AS name, the parent company, reverse DNS, the exact block the address belongs to, the RPKI state of its route and anycast details. | Field | Plan | Description | | --- | --- | --- | | `network.asn` | Free | Autonomous system announcing the address | | `network.isp` | Free | Service provider | | `network.organization` | Free | Registered organisation | | `network.domain` | Free | Website of the provider | | `network.connection_type` | Free | isp, cable, mobile, hosting, business, education and others | | `network.asn_name` | Paid | Registered name of the AS | | `network.holding` | Paid | Parent company of the provider | | `network.usage` | Paid | What the range is used for | | `network.hostname` | Paid | Reverse DNS name | | `network.range` | Paid | The block the address belongs to | | `network.rpki` | Paid | RPKI state of the announcement | | `network.anycast` | Paid | Anycast prefix, sites and countries | ### Time zone, security and abuse The IANA time zone comes on every plan; paid plans add the current offset, daylight saving time and the local time. The security object marks VPN services by name, open proxies, Tor exit nodes, datacenter ranges and addresses on the blacklist with a confidence score. The abuse object gives the contact to report an attack to. | Field | Plan | Description | | --- | --- | --- | | `timezone.id` | Free | IANA time zone | | `timezone.utc_offset` | Paid | Current UTC offset | | `timezone.is_dst` | Paid | Daylight saving time in effect | | `timezone.current_time` | Paid | Local time (ISO 8601) | | `security.is_vpn` | Paid | Address belongs to a VPN service | | `security.vpn_provider` | Paid | Which VPN service | | `security.is_proxy` | Paid | Open proxy | | `security.is_tor` | Paid | Tor exit node | | `security.is_hosting` | Paid | Datacenter or hosting range | | `security.is_threat` | Paid | Listed on the blacklist | | `security.threat_confidence` | Paid | Blacklist confidence, 0 to 100 | | `abuse.email` | Paid | Abuse contact of the network | Add `?fields=` to receive only the paths you need, for example `?fields=location.country_code,timezone.id`. Paid plans can look up up to 100 addresses per request on Starter and Pro, and 1,000 on Business, with `POST /v1/ip/batch`. ``` curl https://api.ipidb.com/v1/ip/8.8.8.8 \ -H "X-API-Key: YOUR_API_KEY" ``` ``` import requests r = requests.get("https://api.ipidb.com/v1/ip/8.8.8.8", headers={"X-API-Key": "YOUR_API_KEY"}, timeout=10) data = r.json() if data["success"]: print(data["location"]["city"], data["network"]["isp"]) else: print(r.status_code, data["error"]["code"]) ``` ``` const r = await fetch("https://api.ipidb.com/v1/ip/8.8.8.8", { headers: { "X-API-Key": "YOUR_API_KEY" } }); const data = await r.json(); if (data.success) { console.log(data.location.city, data.network.isp); } else { console.error(r.status, data.error.code); } ``` ``` true, CURLOPT_TIMEOUT => 10, CURLOPT_HTTPHEADER => ["X-API-Key: YOUR_API_KEY"], ]); $data = json_decode(curl_exec($ch), true); if (!empty($data["success"])) { echo $data["location"]["city"], " ", $data["network"]["isp"], "\n"; } else { echo $data["error"]["code"], "\n"; } ``` ``` package main import ( "encoding/json" "fmt" "net/http" ) func main() { req, _ := http.NewRequest("GET", "https://api.ipidb.com/v1/ip/8.8.8.8", nil) req.Header.Set("X-API-Key", "YOUR_API_KEY") res, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer res.Body.Close() var data struct { Success bool `json:"success"` Location struct { City string `json:"city"` } `json:"location"` Network struct { ISP string `json:"isp"` } `json:"network"` } json.NewDecoder(res.Body).Decode(&data) fmt.Println(data.Location.City, data.Network.ISP) } ``` ## IP blacklist API `GET /v1/blacklist/{ip}` tells you whether an address was reported for brute-force attacks against logins, spam, port scanning or attacks on web applications. The answer carries the threat type, a confidence from 0 to 100 and when the address was last seen. Paid plans add the number of reports and the most recent ones, and a batch endpoint for checking many addresses at once. Typical uses are slowing down or challenging a login attempt from a reported address, scoring sign-ups, and adding context to firewall and server logs. The free plan includes 1,000 blacklist checks a day on top of the IP lookups. ``` { "success": true, "ip": "193.46.255.86", "listed": true, "threat_type": "brute-force", "confidence": 85, "last_seen": "2026-11-24 16:10:12" } ``` ## MAC vendor API `GET /v1/mac/{mac}` returns the registered manufacturer of a MAC address or prefix. Any common notation works: colons, dashes, Cisco dots or just the first six hex digits. The answer also says whether the address is multicast, locally administered or randomised, which modern phones use for privacy on Wi-Fi. Paid plans add the registry block, the vendor's address, detection of virtual machine interfaces and `GET /v1/mac/search` to list the prefixes of a company. Network inventories, DHCP and Wi-Fi logs, and device onboarding use it to put a name to an unknown device. ## Plans, limits and keys The free plan gives 1,000 IP lookups, 1,000 blacklist checks and 1,000 MAC lookups a day at one request per second, with no card. Paid plans have a monthly quota shared by the three APIs, higher request rates, more keys and commercial use; see [pricing](https://ipidb.com/pricing/) for the exact numbers. When a limit is reached the API answers 429 with a clear error code and nothing is charged on top. Keys can be limited to your website domains or to your server addresses in the dashboard, and every response carries headers with the remaining quota. If you need the data inside your own systems rather than over HTTP, see [database licences](https://ipidb.com/database/). ## Start in a few minutes Create a free account, copy the key and run the curl line above. The [tutorials](https://ipidb.com/tutorials/) show complete examples in [PHP](https://ipidb.com/tutorials/ip-geolocation-php/), [Python](https://ipidb.com/tutorials/ip-geolocation-python/), [Node.js](https://ipidb.com/tutorials/ip-geolocation-nodejs/) and [Go](https://ipidb.com/tutorials/ip-geolocation-go/), and the [documentation](https://ipidb.com/docs/) covers every endpoint and error code. ## Questions about the API ### Do I need a separate key for each API? No. One key works for IP data, blacklist checks and MAC vendor lookups. On paid plans the three APIs share one monthly quota. ### Which plan do I need for VPN and proxy flags? Any paid plan. The free plan returns location, time zone and network; Starter, Pro and Business add the security object, the abuse contact, reverse DNS, the IP range and country details. ### Does the API work with IPv6? Yes. Every endpoint accepts IPv4 and IPv6 addresses in any common notation, and the response has the same shape for both. More answers are in the [FAQ](https://ipidb.com/faq/). --- IP Geolocation API, Blacklist and MAC API | IPIDB https://ipidb.comArray/ # IPIDB API documentation One key for three JSON APIs: IP data, blacklist status and MAC vendor lookup. Base URL `https://api.ipidb.com/v1`. Search the documentation Getting started [Quick start](https://ipidb.comArray/#quick-start) [Authentication](https://ipidb.comArray/#auth) [Rate limits and quotas](https://ipidb.comArray/#limits) [Response format](https://ipidb.comArray/#format) Endpoints [IP lookup](https://ipidb.comArray/#ip) [Batch IP lookup](https://ipidb.comArray/#batch) [Blacklist check](https://ipidb.comArray/#blacklist) [MAC vendor lookup](https://ipidb.comArray/#mac) [Usage of a key](https://ipidb.comArray/#usage) Reference [Response fields](https://ipidb.comArray/#fields) [Errors](https://ipidb.comArray/#errors) [Code examples](https://ipidb.comArray/#examples) [Earlier base URL](https://ipidb.comArray/#old-base) [Attribution and licence](https://ipidb.comArray/#licence) [Changelog](https://ipidb.comArray/#changelog) ## Quick start[#](https://ipidb.comArray/#quick-start) - [Create a free account](https://app.ipidb.com/account?mode=signup). Your first API key is on the dashboard straight away. - Send a request with the key in the `X-API-Key` header: ``` curl https://api.ipidb.com/v1/ip/8.8.8.8 \ -H "X-API-Key: YOUR_API_KEY" ``` Every endpoint returns JSON with `Content-Type: application/json`. Add `?pretty` for indented output. Responses carry `Access-Control-Allow-Origin: *`, so the API can be called from browser code. A request to the base URL without a path returns the list of endpoints. ## Authentication[#](https://ipidb.comArray/#auth) Every endpoint needs an API key. Keys look like `ipw_` followed by 40 hex characters and are created on the [dashboard](https://app.ipidb.com/account). Send the key in one of three ways, checked in this order: ``` # Header (recommended) curl https://api.ipidb.com/v1/ip/8.8.8.8 -H "X-API-Key: YOUR_API_KEY" # Bearer token curl https://api.ipidb.com/v1/ip/8.8.8.8 -H "Authorization: Bearer YOUR_API_KEY" # Query string (quick tests only: the key ends up in logs) curl "https://api.ipidb.com/v1/ip/8.8.8.8?key=YOUR_API_KEY" ``` A request without a key gets HTTP 401 `missing_key`; a malformed, unknown or revoked key gets 401 `invalid_key`. A key used in browser code can be limited to your websites (`example.com`, `*.example.com`): the API then accepts it only when the request's `Origin` matches. A key used from servers can be limited to their IP addresses. Each key can be labelled production or test and rolled at any time; the new secret replaces the old one at once. ## Rate limits and quotas[#](https://ipidb.comArray/#limits) | Plan | Lookups | Per second | Batch | Keys | Fields | | --- | --- | --- | --- | --- | --- | | Free | 1,000 IP, 1,000 blacklist and 1,000 MAC a day | 1 | No | 1 | basic | | Starter | 250,000 a month, all APIs | 5 | 100 | 3 | full | | Pro | 1,500,000 a month, all APIs | 15 | 100 | 5 | full | | Business | 6,000,000 a month, all APIs | 30 | 1,000 | 10 | full | Free quotas reset at 00:00 UTC; monthly quotas on the first day of the month at 00:00 UTC. Requests over the per-second limit get HTTP 429 `rate_limited` with `Retry-After: 1`; when the quota is used up the API answers 429 `quota_exceeded` until it resets. An expired paid plan falls back to the free plan and the keys keep working. Every successful response carries these headers, also exposed to browser code: ``` X-Plan: free X-RateLimit-Limit: 1 X-RateLimit-Remaining: 0 X-RateLimit-Reset: 1795564801 X-Quota-Limit: 1000 X-Quota-Remaining: 999 X-Quota-Reset: 1795564800 ``` ## Response format[#](https://ipidb.comArray/#format) Successful responses have `"success": true`, the echoed input, the data grouped in objects and a `meta` object with the plan, field level and quota. Fields with no data are `null`, never missing. Add `?fields=` with a comma-separated list of paths to keep only what you need; dots select nested keys. `success`, `ip`, `mac`, `version` and `meta` are always included, unknown paths are ignored, and the filter also applies to every item of a batch. ``` { "success": true, "ip": "1.1.1.1", "version": 4, "location": { "country": "Australia" }, "network": { "isp": "Cloudflare" }, "meta": { "plan": "free", "fields": "basic" } } ``` ## IP lookup[#](https://ipidb.comArray/#ip) GET /v1/ip/{ip}All plans GET /v1/ipAll plans Location, time zone and network data for any public IPv4 or IPv6 address. Without an address the API looks up the address the request comes from. Paid plans return the same objects with more keys, plus `country_info`, `security` and `abuse`; every field is listed under [Response fields](https://ipidb.comArray/#fields). ``` ``` Private, loopback, link-local, carrier-grade NAT, multicast, documentation and other reserved space is answered without a database lookup, with `"reserved": true` and `reserved_type`. A public address that is not in the database returns `"found": false`. ## Batch IP lookup[#](https://ipidb.comArray/#batch) POST /v1/ip/batchPaid Up to 100 addresses per request on Starter and Pro, 1,000 on Business. The body is JSON: `{"ips": ["8.8.8.8", "1.1.1.1"]}`. Invalid addresses fail inside `results` and do not fail the request. A batch larger than the plan allows gets 400 `batch_too_large`; on the free plan the endpoint answers 402 `plan_required`. ``` curl -X POST https://api.ipidb.com/v1/ip/batch \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"ips": ["8.8.8.8", "not-an-ip"]}' ``` ``` { "success": true, "count": 2, "results": [ { "success": true, "ip": "8.8.8.8", "version": 4 }, { "success": false, "ip": "not-an-ip", "error": { "code": "invalid_ip", "message": "Not a valid IPv4 or IPv6 address." } } ], "meta": { "plan": "pro", "fields": "full" } } ``` ## Blacklist check[#](https://ipidb.comArray/#blacklist) GET /v1/blacklist/{ip}All plans POST /v1/blacklist/batchPaid Whether an address was reported for brute-force attacks, spam, scanning or other abuse. The batch endpoint takes the same body and limits as the IP batch. ``` { "success": true, "ip": "193.46.255.86", "listed": true, "threat_type": "brute-force", "confidence": 85, "last_seen": "2026-11-24 16:10:12" } ``` ## MAC vendor lookup[#](https://ipidb.comArray/#mac) GET /v1/mac/{mac}All plans GET /v1/mac/search?q={company}Paid The registered manufacturer of a MAC address or OUI prefix; the most specific block wins. Any common format works: `00:1A:2B:3C:4D:5E`, `00-1A-2B-3C-4D-5E`, `001A.2B3C.4D5E` or the first six hex digits. Search lists the prefixes registered to companies whose name contains the query (at least two characters, up to 100 results). ``` { "success": true, "mac": "00:1A:2B:3C:4D:5E", "found": true, "oui": "00:1A:2B", "normalized": "00:1A:2B:3C:4D:5E", "is_multicast": false, "is_local": false, "is_randomized": false, "vendor": { "company": "Ayecom Technology Co., Ltd.", "country_code": "TW" } } ``` ## Usage of a key[#](https://ipidb.comArray/#usage) GET /v1/usageNot counted The plan, the per-second limit and today's counters of the account the key belongs to: the daily quota per API on the free plan, the monthly pool on paid plans. ``` { "success": true, "plan": { "code": "pro", "name": "Pro", "expires_at": null }, "rate_limit_per_second": 15, "today": { "ip": 20, "blacklist": 7, "mac": 1, "rejected": 0 }, "monthly_quota": { "limit": 1500000, "used": 77, "remaining": 1499923 } } ``` ## Response fields[#](https://ipidb.comArray/#fields) Examples are taken from live answers for 8.8.8.8, 193.46.255.86 and 00:1A:2B:3C:4D:5E. ### IP lookup[#](https://ipidb.comArray/#fields-ip) | Field | Type | Plan | Description | Example | | --- | --- | --- | --- | --- | | `ip` | string | All | The address, IPv6 in compressed form | "8.8.8.8" | | `version` | number | All | IP version | 4 | | `location.continent, continent_code` | string | All | Continent name and code | "North America", "NA" | | `location.country, country_code` | string | All | Country name and ISO 3166-1 alpha-2 code | "United States", "US" | | `location.region, city, postal_code` | string | All | Region, city and postal code where known | "California", "Mountain View", "94035" | | `location.district` | string | All | District within the city, where known | null | | `location.latitude, longitude` | number | All | Estimated location | 37.38605, -122.08385 | | `location.accuracy_radius_km` | number | All | Radius the location is expected to fall in | 1000 | | `location.location_level` | string | All | How precise the location is: city, region or country. Without a city the coordinates are the centre of the region or country | region | | `location.is_eu` | boolean | All | Country is an EU member | false | | `location.address, address_type` | string | Paid | Street address of the datacenter or office; present only when known | not present for this address | | `timezone.id` | string | All | IANA time zone | "America/Los_Angeles" | | `timezone.utc_offset, is_dst, current_time` | string, boolean, string | Paid | Current offset, daylight saving and local time | "-08:00", false, "2026-11-24T09:18:01-08:00" | | `network.asn` | number | All | Autonomous system announcing the address | 15169 | | `network.isp, organization, domain` | string | All | Provider, registered organisation and its website | "Google", "Google LLC", "cloud.google.com" | | `network.connection_type` | string | All | isp, cable, mobile, hosting, business, backbone, education, research, government, military, financial, healthcare, media, satellite, fixed_wireless or ixp | "hosting" | | `network.asn_name, org_domain` | string | Paid | Registered AS name and the organisation's domain | "GOOGLE", "cloud.google.com" | | `network.holding, holding_domain` | string | Paid | Parent company of the provider | "Alphabet Inc.", "abc.xyz" | | `network.usage` | string | Paid | What the range is used for | "Google Public DNS" | | `network.hostname` | string | Paid | Reverse DNS name | "dns.google" | | `network.range` | object | Paid | The block: start, end and size (IPv4) or prefix (IPv6) | {"start": "8.8.8.0", "end": "8.8.8.255", "size": 256} | | `network.rpki` | string | Paid | valid, invalid, unrouted or not_found (IPv4) | "valid" | | `network.anycast` | object | Paid | Set for anycast addresses: prefix, sites, countries and cities | {"prefix": "8.8.8.0/24", "sites": 63, "countries": 37, ...} | | `network.speed_mbps` | object | Paid | Average download and upload speed of the provider | {"download": 100000, "upload": 100000} | | `country_info.calling_code, tld` | string | Paid | Calling code and top-level domain | "+1", ".us" | | `country_info.currency` | object | Paid | Currency code and symbol | {"code": "USD", "symbol": "$"} | | `country_info.languages` | array | Paid | Languages of the country | ["en"] | | `security.is_vpn, vpn_provider` | boolean, string | Paid | VPN service and which one | false, null | | `security.is_proxy, is_tor, is_hosting` | boolean | Paid | Open proxy, Tor exit node, datacenter range | false, false, true | | `security.is_threat, threat_type, threat_confidence, threat_reports, threat_last_seen` | mixed | Paid | Blacklist status of the address | false, null, 0, 0, null | | `security.verified_crawler` | object | Paid | Set when the address is in a range a search engine or crawler operator publishes | null | | `abuse.email` | string | Paid | Abuse contact of the network | "network-abuse@google.com" | ### Blacklist[#](https://ipidb.comArray/#fields-blacklist) | Field | Type | Plan | Description | Example | | --- | --- | --- | --- | --- | | `listed` | boolean | All | Address is on the blacklist; when false no other fields follow | true | | `threat_type` | string | All | Main category, for example brute-force, spam, scanner, web-attack | "brute-force" | | `confidence` | number | All | 0 to 100, grows with the number and spread of reports | 85 | | `last_seen` | string | All | Most recent report (UTC) | "2026-11-24 16:10:12" | | `total_reports, distinct_reporters` | number | Paid | Reports and independent reporters | 3, 2 | | `first_seen` | string | Paid | First report (UTC) | "2026-03-28 21:27:52" | | `source` | string | Paid | How the listing came about | "multiple" | | `country_code, isp` | string | Paid | Country and provider when the address was listed | "GB", "Unmanaged Ltd" | | `reports` | array | Paid | Up to 20 most recent reports with threat_type, message, source and created_at | [...] | ### MAC vendor[#](https://ipidb.comArray/#fields-mac) | Field | Type | Plan | Description | Example | | --- | --- | --- | --- | --- | | `found` | boolean | All | A vendor is registered for the prefix | true | | `oui, normalized` | string | All | First three bytes, and the full address when given | "00:1A:2B", "00:1A:2B:3C:4D:5E" | | `is_multicast, is_local, is_randomized` | boolean | All | Group address, locally administered, randomised by the device | false, false, false | | `vendor.company, country_code` | string | All | Registered company and its country | "Ayecom Technology Co., Ltd.", "TW" | | `vendor.short_name, website, country, address` | string | Paid | Short name, website, country name and registered address | "Ayecom", null, "Taiwan", "No. 25, R&D Road 2, ..." | | `vendor.industry, founded, headquarters, total_ouis` | mixed | Paid | Company details where known and the number of prefixes | null, null, null, 1 | | `block` | object | Paid | Registry block: type, start, end, size | {"type": "MA-L", "start": "001A2B000000", ...} | | `device.type, interface, is_virtual_machine, vm_platform` | mixed | Paid | Device details and virtual machine detection | null, null, false, null | | `registry_updated` | string | Paid | Date of the registry record | "2015/11/17" | ## Errors[#](https://ipidb.comArray/#errors) Errors use HTTP status codes and a JSON body with `"success": false` and an `error` object. The code is stable and meant for your program; the message is for people and may change. ``` { "success": false, "error": { "code": "rate_limited", "message": "Too many requests per second (limit 1/s on the Free plan)." } } ``` | HTTP | Code | When | | --- | --- | --- | | 400 | `invalid_ip` | Not a valid IPv4 or IPv6 address | | 400 | `invalid_mac` | Fewer than 6 or more than 12 hex digits | | 400 | `invalid_query` | MAC search with fewer than 2 characters | | 400 | `empty_batch` | Batch request without addresses | | 400 | `batch_too_large` | More addresses than the plan allows per batch | | 400 | `unavailable` | The blacklist or MAC database is briefly unavailable; retry later | | 401 | `missing_key` | No API key in the request | | 401 | `invalid_key` | Malformed, unknown or revoked key | | 402 | `plan_required` | Batch or MAC search on the free plan | | 403 | `origin_not_allowed` | The key is limited to websites and the request came from elsewhere | | 403 | `ip_not_allowed` | The key is limited to IP addresses and the request came from another one | | 403 | `account_suspended` | The account is suspended; contact support | | 403 | `banned` | The calling address is blocked for abuse, for example after hundreds of calls with a wrong key; Retry-After says for how long | | 404 | `not_found` | Unknown endpoint | | 405 | `method_not_allowed` | Batch called with GET and no addresses | | 429 | `rate_limited` | Per-second limit exceeded; Retry-After: 1 is set | | 429 | `quota_exceeded` | Daily or monthly quota used up; X-Quota-Reset says when it resets | | 429 | `ip_rate_limited` | More than 600 calls a minute from one address, whatever the key | | 429 | `key_shared` | The key was used from too many addresses within an hour (10 on the free plan, 100 on paid plans); use one key per server | | 429 | `key_blocked` | The key is paused for an hour after heavy sharing or a free key walking through the address space | ## Code examples[#](https://ipidb.comArray/#examples) Each sample looks up 8.8.8.8 and prints the city and ISP. Replace `YOUR_API_KEY` with a key from the dashboard. ``` curl https://api.ipidb.com/v1/ip/8.8.8.8 \ -H "X-API-Key: YOUR_API_KEY" ``` ``` import requests r = requests.get("https://api.ipidb.com/v1/ip/8.8.8.8", headers={"X-API-Key": "YOUR_API_KEY"}, timeout=10) data = r.json() if data["success"]: print(data["location"]["city"], data["network"]["isp"]) else: print(r.status_code, data["error"]["code"]) ``` ``` const r = await fetch("https://api.ipidb.com/v1/ip/8.8.8.8", { headers: { "X-API-Key": "YOUR_API_KEY" } }); const data = await r.json(); if (data.success) { console.log(data.location.city, data.network.isp); } else { console.error(r.status, data.error.code); } ``` ``` true, CURLOPT_TIMEOUT => 10, CURLOPT_HTTPHEADER => ["X-API-Key: YOUR_API_KEY"], ]); $data = json_decode(curl_exec($ch), true); if (!empty($data["success"])) { echo $data["location"]["city"], " ", $data["network"]["isp"], "\n"; } else { echo $data["error"]["code"], "\n"; } ``` ``` package main import ( "encoding/json" "fmt" "net/http" ) func main() { req, _ := http.NewRequest("GET", "https://api.ipidb.com/v1/ip/8.8.8.8", nil) req.Header.Set("X-API-Key", "YOUR_API_KEY") res, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer res.Body.Close() var data struct { Success bool `json:"success"` Location struct { City string `json:"city"` } `json:"location"` Network struct { ISP string `json:"isp"` } `json:"network"` } json.NewDecoder(res.Body).Decode(&data) fmt.Println(data.Location.City, data.Network.ISP) } ``` ## Earlier base URL[#](https://ipidb.comArray/#old-base) The API was first published at `https://ipwhois.net/api/v1`. That address keeps working with the same keys, responses and quota, so nothing built on it breaks. New integrations should use `https://api.ipidb.com/v1`; `https://api.ipidb.com/api/v1` also works. ## Attribution and licence[#](https://ipidb.comArray/#licence) On the free plan, show a visible credit such as "IP data by IPIDB" linking to [ipidb.com](https://ipidb.com/) wherever you display data from the API. Paid plans have no attribution requirement. ## Changelog[#](https://ipidb.comArray/#changelog) | Date | Change | | --- | --- | | 2026-11-24 | The API is available at `https://api.ipidb.com/v1` under the IPIDB name. `https://ipwhois.net/api/v1` keeps working with the same keys. | On this page [Quick start](https://ipidb.comArray/#quick-start) [Authentication](https://ipidb.comArray/#auth) [Rate limits and quotas](https://ipidb.comArray/#limits) [Response format](https://ipidb.comArray/#format) [IP lookup](https://ipidb.comArray/#ip) [Batch IP lookup](https://ipidb.comArray/#batch) [Blacklist check](https://ipidb.comArray/#blacklist) [MAC vendor lookup](https://ipidb.comArray/#mac) [Usage of a key](https://ipidb.comArray/#usage) [Response fields](https://ipidb.comArray/#fields) [Errors](https://ipidb.comArray/#errors) [Code examples](https://ipidb.comArray/#examples) [Earlier base URL](https://ipidb.comArray/#old-base) [Attribution and licence](https://ipidb.comArray/#licence) [Changelog](https://ipidb.comArray/#changelog) --- API Documentation: IP, Blacklist and MAC Lookup | IPIDB https://ipidb.comArray/ # Pricing IP data, blacklist checks and MAC vendor lookups share one account. Start free; a paid plan opens every field and shares one monthly quota across all three APIs. ## Plans ### Free For testing and personal projects €0free, no card needed1,000 lookups a day per API - Location, time zone, ASN, ISP, connection type - Blacklist status and MAC vendor - 1 request per second, 1 key - Security, abuse and routing fields - Batch requests and commercial use [Create free account](https://app.ipidb.com/account?mode=signup) ### Starter For small sites and side projects €12 /monthbilled monthly250K lookups a month, all APIs - Every field: VPN, Tor, proxy, threat, abuse contact - Reverse DNS, RPKI, IP range, office address - Batch up to 100 items per request - 5 requests per second, 3 keys - Commercial use [Choose Starter](https://app.ipidb.com/account/billing?plan=starter&interval=month) Most popular ### Pro For production apps €34 /monthbilled monthly1.5M lookups a month, all APIs - Every field: VPN, Tor, proxy, threat, abuse contact - Reverse DNS, RPKI, IP range, office address - Batch up to 100 items per request - 15 requests per second, 5 keys - Commercial use [Choose Pro](https://app.ipidb.com/account/billing?plan=pro&interval=month) ### Business For high-volume services €89 /monthbilled monthly6M lookups a month, all APIs - Every field: VPN, Tor, proxy, threat, abuse contact - Reverse DNS, RPKI, IP range, office address - Batch up to 1,000 items per request - 30 requests per second, 10 keys - Commercial use [Choose Business](https://app.ipidb.com/account/billing?plan=business&interval=month) Prices in euros, without VAT. VAT or sales tax is added at checkout where it applies. Payments are processed by Paddle.com, our merchant of record. ## Compare plans | Feature | Free | Starter | Pro | Business | | --- | --- | --- | --- | --- | | Limits | | | | | | Lookups | 1,000 a day per API | 250K a month, shared | 1.5M a month, shared | 6M a month, shared | | Requests per second | 1 | 5 | 15 | 30 | | API keys | 1 | 3 | 5 | 10 | | Batch size | No | 100 per request | 100 per request | 1,000 per request | | Commercial use | No | Yes | Yes | Yes | | IP data: `/v1/ip/{ip}` | | | | | | Country, region, city, postal code, coordinates, accuracy radius | Yes | Yes | Yes | Yes | | ASN, ISP, organisation, domain, connection type | Yes | Yes | Yes | Yes | | Time zone ID | Yes | Yes | Yes | Yes | | UTC offset, daylight saving, local time | No | Yes | Yes | Yes | | VPN, Tor, proxy and hosting flags, threat score | No | Yes | Yes | Yes | | Abuse contact | No | Yes | Yes | Yes | | Reverse DNS, RPKI, IP range, anycast, parent company | No | Yes | Yes | Yes | | Datacenter or office address, where known | No | Yes | Yes | Yes | | Currency, calling code, languages | No | Yes | Yes | Yes | | Blacklist: `/v1/blacklist/{ip}` | | | | | | Listed or not, threat type, confidence, last seen | Yes | Yes | Yes | Yes | | Report count, reporters, first seen, last 20 reports | No | Yes | Yes | Yes | | MAC vendor: `/v1/mac/{mac}` | | | | | | Vendor and country, multicast, local and randomised flags | Yes | Yes | Yes | Yes | | Vendor details, registry block, device type, VM detection | No | Yes | Yes | Yes | | Search by company name | No | Yes | Yes | Yes | Every endpoint and field is described in the [API documentation](https://ipidb.com/docs/). ## Questions about pricing ### How is usage counted? Every lookup is one request, whichever API it goes to. A batch of 50 addresses counts as 50. On paid plans the quota is monthly and shared by all three APIs; on the free plan each API has its own daily allowance. Quotas reset on the 1st of the month, or at midnight for the free plan, in UTC. ### What happens when I reach the limit? Further requests get HTTP 429 with a clear error until the quota resets. Nothing is charged on top. You can upgrade at any time and the new quota applies at once. ### Can I change or cancel my plan? Yes, from the dashboard. Upgrades take effect at once and are prorated. A cancelled plan keeps working until the end of the period you paid for, then the account returns to the free plan with your keys intact. ### Do prices include VAT? Prices are shown without VAT. Paddle, our merchant of record, adds VAT or sales tax at checkout where it applies; EU businesses with a valid VAT number pay no VAT (reverse charge). ### Can I use the free plan in a commercial product? The free plan is for testing and personal projects. Commercial use needs a paid plan. ### I need more than the Business plan. Write to us with your expected volume. Higher quotas, dedicated limits and database licences are available. [Contact](https://ipidb.com/contact/) --- Pricing: IP Data API Plans | IPIDB https://ipidb.comArray/ Methodology # How the data is built Every record in IPIDB comes from a database we build and maintain ourselves, one network at a time. This page explains where the data comes from, how it is checked before it is published, and what level of accuracy you can expect from it. - Database updated 25 November 2026 - 6,094,291 IPv4 ranges with network and location data - 306,432 IPv6 ranges covered by the same process - 88,157 networks identified by name, owner and connection type ## Where the data comes from No single source describes the internet correctly. Registries know who holds an address block, operators know where it is actually used, and the network itself shows how traffic reaches it. We collect each of these views and compare them before anything is written to the database. - ### Registry and routing records Allocation data from the regional internet registries shows who holds each block and where it was registered; routing tables show which network announces it today. - ### What operators publish Networks publish where their address space is used, how their equipment is named and who they are. When this information holds up, it carries the most weight. - ### Independent checks Our own checks confirm or reject what the other sources claim. Nothing is written to the database on the strength of a single source. - ### Public lists Search engines and other crawlers publish the addresses they use, and the open [LACeS Anycast Census](https://github.com/ut-dacs/anycast-census) by the University of Twente (MPL 2.0) marks addresses that answer from many places at once. - ### Licensed and open datasets Licensed and openly licensed datasets fill gaps and serve as an additional cross-check. ## Quality control When sources disagree, a record is not overwritten automatically. Conflicts are resolved network by network, and the operator's own statements take priority over third-party estimates. Each change is recorded with its source and date, and every change can be reversed. Where the evidence is thin, or a range clearly serves several locations at once, we keep the existing value instead of guessing. Ownership is checked against what the operator says about itself. A parent company is recorded only when the relationship is confirmed, never because two names happen to look similar. ## What accuracy to expect Country is reliable for the vast majority of addresses. City depends on how much the operator publishes about its network. Where deployments are documented, city-level data is strong. Where they are not, we report the most likely location and avoid false precision. Mobile, satellite and VPN ranges are the hardest cases. Their addresses move between regions, are shared by many users, or are deliberately presented from somewhere else. We mark these ranges so you can judge the location accordingly. A city in our data describes where the access infrastructure is, not where a person is. IP data identifies a connection, not an individual. The [article on the accuracy radius](https://ipidb.com/blog/accuracy-radius-explained/) shows how to use this in practice. 6,094,291IPv4 ranges with network and location data 306,432IPv6 ranges covered 123,583VPN and proxy ranges identified ## Updates and corrections The database changes as registries, operators and routing change. Updates are applied in small, reviewed batches rather than in one large import, so an error in a source does not spread across the whole dataset. Network operators who find an incorrect value can send the right one, or their own location file, through the [contact form](https://ipidb.com/contact/). Most corrections are reviewed and applied within a day, and they remain in place through later updates. How many records were reviewed and changed each day, and whether every part of the service is running, is shown live on the [status page](https://ipidb.com/status/). --- IP Data Methodology: Sources and Accuracy | IPIDB https://ipidb.com/methodology/ # IP geolocation API questions and answers What the API returns, how current and accurate the data is, and how plans, limits and billing work. The API ## What does the IPIDB API return for an IP address? The location (continent, country, region, city, postal code, coordinates and an accuracy radius), the IANA time zone and the network: ASN, ISP, organisation, domain and connection type. Paid plans add security flags for VPN, proxy, Tor and hosting ranges, blacklist status, the abuse contact, reverse DNS, the IP range, RPKI state and country details. [The field reference](https://ipidb.com/docs/#fields) lists all 41 fields. ## Does IPIDB cover IPv6? Yes. Every endpoint accepts IPv4 and IPv6 addresses in any common notation, and the response has the same shape for both. ## Which APIs are included in a plan? Three: IP data, blacklist checks and MAC vendor lookups. One account and one key work for all of them. On paid plans the monthly quota is shared by the three APIs; on the free plan each API has its own daily allowance. See [the API overview](https://ipidb.com/api/). ## Can I look up many addresses in one request? Yes, on paid plans. `POST /v1/ip/batch` takes up to 100 addresses on Starter and Pro and up to 1,000 on Business. Each address counts as one lookup. An invalid address fails inside its own result and does not fail the whole batch. ## Can I use the API from a browser? You can, but a key in front-end code is visible to anyone. Limit the key to your website domains or to your server addresses in the dashboard; requests from anywhere else are refused with 403. The data ## How accurate is the location? Country data is reliable for almost every network. City and coordinates are estimates, so every response carries `accuracy_radius_km`, the radius the real location is expected to fall in. Mobile networks and satellite connections are the hardest to place. If a record is wrong, tell us and we correct it. ## How often is the data updated? Routing tables are refreshed daily, and corrections to location and network data are applied as they are confirmed. Blacklist reports are added as they arrive. The coverage figures on the home page show the date of the last refresh. ## How do I report a wrong location? Write to [support@ipidb.com](mailto:support@ipidb.com) with the address or range and the correct city. We check it and update the record; the API returns the corrected data as soon as it is applied. ## Can I license the database instead of calling the API? Yes. For volumes above the Business plan, or when the data has to run inside your own systems, we license the database directly. See [database licences](https://ipidb.com/database/). Plans and billing ## Is there a free plan? Yes. A free account gets one API key with 1,000 IP lookups, 1,000 blacklist checks and 1,000 MAC lookups a day, at one request per second, with the basic field set. No card is needed. The free plan is for testing and personal projects. ## What happens when I reach a limit? Requests over the per-second limit get HTTP 429 `rate_limited` with `Retry-After: 1`. When the daily or monthly quota is used up the API answers 429 `quota_exceeded` until it resets. Nothing is charged on top, and an upgrade applies at once. ## Can I use the data in a commercial product? Yes, on any paid plan. The free plan is for testing and personal use and asks for a visible credit with a link to ipidb.com. ## Who handles payments and invoices? Paddle.com is our merchant of record. It runs the checkout, issues the invoices and adds VAT or sales tax where it applies; EU businesses with a valid VAT number pay no VAT. Your card details never reach IPIDB. ## Can I cancel, and is there a refund? You can cancel at any time from the dashboard; the plan runs to the end of the paid period and the account then returns to the free plan with its keys. If a first purchase does not do what you need, ask within 14 days and we refund it in full. Details are in the [refund policy](https://ipidb.com/refund-policy/). ## Still have a question? Read the [API documentation](https://ipidb.com/docs/), try the [tutorials](https://ipidb.com/tutorials/), compare [plans](https://ipidb.com/pricing/), or [contact us](https://ipidb.com/contact/). We answer within one business day. --- IP Geolocation API FAQ | IPIDB https://ipidb.com/faq/