# IPQuery API reference

> IPQuery describes an IPv4 or IPv6 address: the network (ASN, organisation, ISP), the location (country, city, coordinates, timezone) and risk flags such as VPN, Tor, proxy and datacenter use. An investigator uses it to place an address on a network and to see whether it is a known anonymiser.…

Source: https://osinttools.io/apis/ipquery/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/ipquery/

- Base URL: https://api.ipquery.io
- Authentication: No key needed.
- Rate limits: Not stated in the docs
- Vendor docs: https://ipquery.io/developers/api

## Overview

IPQuery describes an IPv4 or IPv6 address: the network (ASN, organisation, ISP), the location (country, city, coordinates, timezone) and risk flags such as VPN, Tor, proxy and datacenter use. An investigator uses it to place an address on a network and to see whether it is a known anonymiser.

Calls are plain GET requests to `https://api.ipquery.io`. The docs list no API key. The `format` query parameter picks `json`, `xml`, `yaml` or `text`.

The docs say source strings can be empty and that a false flag is a non-match, not a safety verdict. Bulk lookup with comma-separated addresses is disabled. The docs state no rate limit and no prices; for pricing or full-list access they say to email contact@ipquery.io.

## Errors

| Status | Meaning |
| --- | --- |
| 400 | Unsupported format (plain text body) or a bulk lookup with comma-separated addresses, which is disabled |
| 404 | Invalid address (JSON body with an error message) |

## Lookups

### Describe one IPv4 or IPv6 address: ISP, location and risk flags.

`GET /{ip}`

- Takes: IP address
- Footprint: passive (the target is not contacted)

Describes the given address regardless of the caller's connection. Source strings can be empty, and a false risk flag is a non-match, not a safety verdict.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ip` | path | string | yes | One IPv4 or IPv6 address Example: 203.0.113.7 |
| `format` | query | string | no | Response format Example: json One of: json, xml, yaml, text |

Response fields:

- `ip` (string): The address looked up
- `isp.asn` (string): Autonomous system number
- `isp.org` (string): Organisation
- `isp.isp` (string): ISP name
- `location.country` (string): Country name
- `location.country_code` (string): Country code
- `location.city` (string): City
- `location.state` (string): State or region
- `location.zipcode` (string): Postal code
- `location.latitude` (number): Latitude
- `location.longitude` (number): Longitude
- `location.timezone` (string): Timezone
- `location.localtime` (string): Local time at the location
- `risk.is_mobile` (boolean): Mobile network flag
- `risk.is_vpn` (boolean): VPN flag
- `risk.is_tor` (boolean): Tor flag
- `risk.is_proxy` (boolean): Proxy flag
- `risk.is_datacenter` (boolean): Datacenter flag
- `risk.risk_score` (integer): Risk score

```bash
curl 'https://api.ipquery.io/203.0.113.7'
```

Example response (200):

```json
{
  "ip": "203.0.113.7",
  "isp": {
    "asn": "AS64496",
    "org": "Example Networks",
    "isp": "Example Networks"
  },
  "location": {
    "country": "Exampleland",
    "country_code": "EX",
    "city": "Exampleton",
    "state": "Example State",
    "zipcode": "00000",
    "latitude": 10,
    "longitude": 20,
    "timezone": "UTC",
    "localtime": "2026-01-01T12:00:00"
  },
  "risk": {
    "is_mobile": false,
    "is_vpn": false,
    "is_tor": false,
    "is_proxy": false,
    "is_datacenter": true,
    "risk_score": 0
  }
}
```

### Return the address that is making the request.

`GET /`

- Footprint: passive (the target is not contacted)

Default format is plain text. A browser fetch reports the browser's connection, a server-side fetch reports the server.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `format` | query | string | no | Response format Example: json One of: json, xml, yaml, text |

Response fields:

- `ip` (string): The caller's address

```bash
curl 'https://api.ipquery.io/'
```

Example response (200):

```
203.0.113.7
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
