# ipstack API reference

> ipstack returns geolocation data for an IP address: continent, country, region, city, coordinates, time zone, currency, and connection details such as ASN and ISP. With the security option on a plan that includes it, the response also carries proxy, Tor, crawler and threat fields. Calls are GET…

Source: https://osinttools.io/apis/ipstack/ (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/ipstack/

- Base URL: https://api.ipstack.com
- Authentication: API key in the `access_key` query parameter. Get a key: https://ipstack.com/signup/free Plans include HTTPS.
- Rate limits: A monthly request volume applies per plan; per-second limits are not stated in the docs
- Vendor docs: https://docs.apilayer.com/ipstack/docs/api-documentation

## Overview

ipstack returns geolocation data for an IP address: continent, country, region, city, coordinates, time zone, currency, and connection details such as ASN and ISP. With the security option on a plan that includes it, the response also carries proxy, Tor, crawler and threat fields.

Calls are GET requests to `https://api.ipstack.com/` with the address in the path and your key in the `access_key` query parameter. Responses are JSON by default, or XML with `output=xml`. Failed calls return JSON with `success: false` and an `error` object.

The docs also describe a bulk lookup (up to 50 addresses per request, on plans that support it) and a lookup of the requester's own address; their paths are not spelled out on the pages read, so only the standard lookup is documented here. A monthly request limit applies; error 104 is returned when it is reached.

## Errors

| Status | Meaning |
| --- | --- |
| 101 | missing_access_key or invalid_access_key |
| 102 | inactive_user: the account is not active |
| 103 | invalid_api_function: the endpoint does not exist |
| 104 | usage_limit_reached: the monthly request limit is reached |
| 301 | invalid_fields: invalid value in the fields parameter |
| 302 | too_many_ips: more than 50 addresses in a bulk request |
| 303 | batch_not_supported_on_plan: bulk lookup is not on the plan |
| 404 | 404_not_found: the requested resource does not exist |

## Lookup

### Geolocation, time zone, currency and connection data for one IP address.

`GET /{ip}`

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

Returns the location and network data held for the address. Add hostname=1 for the reverse-DNS hostname (off by default, may slow responses). security=1 adds a security object and needs the Professional Plus plan.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ip` | path | string | yes | IPv4 or IPv6 address to look up Example: 203.0.113.7 |
| `fields` | query | string | no | Comma-separated objects to return, e.g. main, country_code, location, location.capital Example: country_code,location.capital |
| `hostname` | query | integer | no | Set to 1 to include the hostname the address resolves to Example: 1 One of: 0, 1 |
| `security` | query | integer | no | Set to 1 to include the security object (Professional Plus plan) Example: 1 One of: 0, 1 |
| `language` | query | string | no | Two-letter language code for the results Example: en One of: en, de, es, fr, ja, pt-br, ru, zh |
| `output` | query | string | no | Response format Example: json One of: json, xml |

Response fields:

- `ip` (string): The address looked up
- `hostname` (string): Resolved hostname, when requested
- `type` (string): Address type
- `city` (string): City
- `zip` (string): Postal code
- `latitude` (number): Latitude
- `longitude` (number): Longitude
- `location.capital` (string): Capital of the country
- `location.calling_code` (string): International calling code
- `location.is_eu` (boolean): Whether the country is in the EU
- `time_zone.id` (string): Time zone identifier
- `time_zone.current_time` (string): Current time at the location
- `time_zone.gmt_offset` (integer): Offset from GMT in seconds
- `currency.code` (string): Currency code
- `currency.name` (string): Currency name
- `connection.asn` (integer): Autonomous system number
- `connection.isp` (string): Internet service provider
- `security.is_proxy` (boolean): Whether the address is a known proxy
- `security.is_tor` (boolean): Whether the address is a Tor node
- `security.is_crawler` (boolean): Whether the address belongs to a crawler
- `security.threat_level` (string): Threat level assigned to the address

```bash
curl 'https://api.ipstack.com/203.0.113.7?access_key=YOUR_API_KEY'
```

Example response (200):

```json
{
  "ip": "203.0.113.7",
  "type": "ipv4",
  "city": "Exampleville",
  "zip": "00000",
  "latitude": 12.3456,
  "longitude": 65.4321,
  "location": {
    "capital": "Example City",
    "calling_code": "1",
    "is_eu": false
  },
  "time_zone": {
    "id": "America/New_York",
    "current_time": "2026-11-29T10:00:00-05:00",
    "gmt_offset": -18000
  },
  "currency": {
    "code": "USD",
    "name": "US Dollar"
  },
  "connection": {
    "asn": 64496,
    "isp": "Example ISP"
  }
}
```

---

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/
