← APIs / IPstack
Verified

IPstack

Apiosk Basicsby Apiosk Basics · General

IP geolocation and network intelligence: resolve an IP address to country, city, coordinates, timezone, currency, ASN and optional security signals.

ip-intelligenceapi
Price per request
$0.10
About

IPstack turns IPv4 or IPv6 addresses into structured location and network intelligence for agents. Use it to personalize content by geography, enrich analytics events, route compliance decisions, detect suspicious infrastructure, or normalize IP metadata before storage. The Apiosk gateway injects the upstream APILayer access_key; callers pay per request via x402 and never handle the upstream key.

Base URL
https://gateway.apiosk.com/ipstack
Technical Specs
Auth MethodapiKey
Response FormatJSON
Endpoints2
Endpoints
MethodPathDescriptionCost
GET Lookup a specific IPv4 or IPv6 address. Append the IP to the path, for example /134.201.250.155. Use fields to limit the response to only the metadata an agent needs.
$0.09 default
View details
GET /check Lookup the requester IP as seen by IPstack. Useful for quick agent self-location checks, request debugging and coarse geofencing.
$0.08 default
View details
Endpoint documentation
GET
$0.09 default
Description

Lookup a specific IPv4 or IPv6 address. Append the IP to the path, for example /134.201.250.155. Use fields to limit the response to only the metadata an agent needs.

Pricing
$0.09 default
Parameters
{
  "fields": {
    "description": "Comma-separated fields to include, e.g. ip,type,country_name,region_name,city,latitude,longitude,connection,security.",
    "required": false,
    "type": "string"
  },
  "hostname": {
    "description": "Set to 1 to include hostname data when available.",
    "required": false,
    "type": "integer"
  },
  "language": {
    "description": "Optional response language code supported by IPstack.",
    "required": false,
    "type": "string"
  },
  "security": {
    "description": "Set to 1 to include IPstack security fields when the upstream plan supports them.",
    "required": false,
    "type": "integer"
  }
}
Response schema
{
  "properties": {
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "connection": {
      "type": [
        "object",
        "null"
      ]
    },
    "continent_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "continent_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "country_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "country_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "currency": {
      "type": [
        "object",
        "null"
      ]
    },
    "ip": {
      "type": "string"
    },
    "latitude": {
      "type": [
        "number",
        "null"
      ]
    },
    "location": {
      "type": [
        "object",
        "null"
      ]
    },
    "longitude": {
      "type": [
        "number",
        "null"
      ]
    },
    "region_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "region_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "security": {
      "type": [
        "object",
        "null"
      ]
    },
    "time_zone": {
      "type": [
        "object",
        "null"
      ]
    },
    "type": {
      "type": "string"
    },
    "zip": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "type": "object"
}
Example request
{
  "path": "/134.201.250.155",
  "query": {
    "fields": "ip,type,country_name,region_name,city,latitude,longitude,connection"
  }
}
Example response
{
  "city": "Los Angeles",
  "connection": {
    "asn": 25876,
    "isp": "Los Angeles Department of Water & Power"
  },
  "country_code": "US",
  "country_name": "United States",
  "ip": "134.201.250.155",
  "latitude": 34.06555,
  "longitude": -118.24054,
  "region_name": "California",
  "type": "ipv4"
}
GET/check
$0.08 default
Description

Lookup the requester IP as seen by IPstack. Useful for quick agent self-location checks, request debugging and coarse geofencing.

Pricing
$0.08 default
Parameters
{
  "fields": {
    "description": "Comma-separated fields to include, e.g. ip,type,country_name,city,latitude,longitude,time_zone,currency.",
    "required": false,
    "type": "string"
  },
  "hostname": {
    "description": "Set to 1 to include hostname data when available.",
    "required": false,
    "type": "integer"
  },
  "language": {
    "description": "Optional response language code supported by IPstack.",
    "required": false,
    "type": "string"
  },
  "security": {
    "description": "Set to 1 to include IPstack security fields when the upstream plan supports them.",
    "required": false,
    "type": "integer"
  }
}
Response schema
{
  "properties": {
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "connection": {
      "type": [
        "object",
        "null"
      ]
    },
    "country_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "country_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "currency": {
      "type": [
        "object",
        "null"
      ]
    },
    "ip": {
      "type": "string"
    },
    "latitude": {
      "type": [
        "number",
        "null"
      ]
    },
    "longitude": {
      "type": [
        "number",
        "null"
      ]
    },
    "region_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "security": {
      "type": [
        "object",
        "null"
      ]
    },
    "time_zone": {
      "type": [
        "object",
        "null"
      ]
    },
    "type": {
      "type": "string"
    }
  },
  "type": "object"
}
Example request
{
  "path": "/check",
  "query": {
    "fields": "ip,type,country_name,city,latitude,longitude,time_zone"
  }
}
Example response
{
  "city": "Amsterdam",
  "country_name": "Netherlands",
  "ip": "203.0.113.42",
  "latitude": 52.3676,
  "longitude": 4.9041,
  "time_zone": {
    "current_time": "2026-07-06T16:40:00+02:00",
    "id": "Europe/Amsterdam"
  },
  "type": "ipv4"
}