# IP and domain lookup API: any IP, AS or domain, as JSON

api.internetdata.io answers any IP address, AS or domain as JSON: free on Unlimited, with no key and no daily or monthly cap, and every field on a paid plan.

[The IP and domain lookup API](https://internetdata.io/api) is out: one `GET` to `api.internetdata.io` answers what our [databases](https://internetdata.io/databases) say about any IP address, AS or domain, as JSON. Unlimited, the free plan, needs no key and has no daily or monthly cap. A paid plan answers every field.

## One address, no key

```bash
curl https://api.internetdata.io/8.8.8.8
```

It answered on November 16:

```json
{
  "ip": "8.8.8.8",
  "is_bogon": false,
  "is_tor": false,
  "is_relay": false,
  "is_anycast": true,
  "is_carrier": false,
  "is_satellite": false,
  "is_ssh": false,
  "is_smtp": false,
  "is_web": true,
  "is_dns_resolver": true,
  "is_bittorrent": false,
  "location": {
    "continent": "NA",
    "continent_name": "North America",
    "country": "US",
    "country_name": "United States",
    "timezone": "America/Los_Angeles",
    "currency_code": "USD",
    "currency_name": "Dollar",
    "currency_symbol": "$",
    "flag_emoji": "🇺🇸",
    "flag_unicode": "U+1F1FA U+1F1F8"
  },
  "tor": {},
  "relay": {},
  "asn": {
    "asn": 15169,
    "name": "Google LLC",
    "domain": "google.com",
    "type": "hosting",
    "prefix": "8.8.8.0/24"
  },
  "company": {
    "name": "Google LLC",
    "domain": "google.com"
  },
  "hostname": "dns.google",
  "abuse": {
    "email": "network-abuse@google.com"
  }
}
```

That's Unlimited's answer: where the address is to the country, the network and company behind it, the abuse email, the reverse DNS hostname, and the Tor, relay, anycast, carrier, satellite and service flags. A field your plan doesn't include is left out, never sent as `false`. Test for its presence: no `is_vpn` here means the answer doesn't say, not that the address isn't a VPN.

## The site's paths, on the API host

The API takes the same paths as the pages on internetdata.io: `/AS15169` for an AS, `/nytimes.com` for a domain.

```bash
curl https://api.internetdata.io/AS15169
```

```json
{
  "asn": 15169,
  "name": "Google LLC",
  "country": "US",
  "registry": "arin",
  "allocated": "2000-03-30",
  "domain": "google.com"
}
```

```bash
curl https://api.internetdata.io/nytimes.com
```

```json
{
  "domain": "nytimes.com",
  "is_registered": true,
  "has_a": true,
  "has_aaaa": false,
  "has_mx": true,
  "has_ns": true,
  "has_cname": false
}
```

Each address and domain page on the site switches between the page and its JSON, and `curl https://internetdata.io/myip` answers for the address you're calling from.

## What a paid plan adds

A key on a paid plan widens the answer. An address gains VPN and the residential, datacenter, mobile and public proxy flags with their detail, hosting and CDN, the carrier or satellite operator, location to the city, the full abuse contact, its whois records, the detail behind each service flag, and how many domains point at it, with the ten most popular. An AS gains its whois record, the prefixes it announces and their RPKI status, its rank, and its upstreams, peers and downstreams. A domain gains its DNS records, whether it's a disposable email domain, and the organization's IP ranges from [Domain IP Ranges](https://internetdata.io/databases/domain-ip-ranges). On November 16, `nytimes.com`'s answer listed its A, MX and NS records and 25 ranges holding 61,638 IPv4 addresses.

```bash
curl -H "Authorization: Bearer $KEY" https://api.internetdata.io/8.8.8.8
```

Trimmed to a few of its fields:

```json
{
  "ip": "8.8.8.8",
  "is_vpn": false,
  "is_resproxy": false,
  "is_hosting": true,
  "location": {
    "country": "US",
    "region": "California",
    "city": "Mountain View"
  },
  "dns_resolver": {
    "port": 53,
    "recursion_available": true,
    "rcode": 0,
    "answer_correct": true,
    "last_seen": "2026-11-14"
  }
}
```

Every paid plan answers the same fields:

| Plan | Price a month | Lookups a month | Then, per 1,000 |
|---|--:|--:|--:|
| Unlimited | Free | No cap | |
| Starter | $39 | 250,000 | $0.18 |
| Scale | $199 | 2,000,000 | $0.14 |
| Max | $399 | 5,000,000 | $0.10 |

Paying yearly costs ten months. On a paid plan, `POST /batch` takes up to 1,000 addresses, ASes and domains in one call, each counted as a lookup.

## From your own code

* Client libraries for [12 languages and the browser](https://docs.internetdata.io/integrations/languages). Each answers private addresses without a request, caches what it looks up and splits big batches for you.
* [Middleware](https://docs.internetdata.io/integrations/frameworks) for Express, Fastify, Next.js, net/http, Gin, Spring Boot and axum, which looks up the visitor behind every request your app serves.
* The [CLI](https://docs.internetdata.io/integrations/cli): `internetdata 8.8.8.8`, `internetdata AS15169` or `internetdata example.com`, `internetdata myip`, and `internetdata bulk` for a list, a CIDR or a range, as CSV or JSON lines.
* The [MCP server](https://docs.internetdata.io/integrations/mcp), for an AI assistant: `lookup_ip`, `lookup_ips` for a list of addresses, `lookup_asn`, `lookup_domain`, and `my_entitlement` for your plan and what's spent of it.

## Getting access

Unlimited needs nothing: send the request. Its answers may be used for any purpose, commercial included, as long as they aren't redistributed, resold or used in a competing service ([terms](https://internetdata.io/terms)). [Sign up](https://app.internetdata.io/auth/signup) for a key: a free account answers every field for its first 100 lookups each UTC day, then as Unlimited, with `trial_expired` on each answer saying which. The key goes in a header or a query parameter, as the [docs](https://docs.internetdata.io/api/auth) show. Compare the plans on [pricing](https://internetdata.io/pricing). Enterprise is priced to your volume, with database licenses beside it: [talk to us](https://internetdata.io/contact).

