API Documentation

Get started with IPDrift in minutes. Simple REST API with comprehensive documentation and examples.

Quick Start Examples

cURL
curl "https://geo.ipdrift.com/v1/lookup?ip=8.8.8.8" \
  -H "Accept: application/json"

Response Format

JSON Response
{
  "ip": "8.8.8.8",
  "type": "ipv4",
  "continent_code": "NA",
  "continent_name": "North America",
  "country_code": "US",
  "country_name": "United States",
  "region_code": "CA",
  "region_name": "California",
  "city": "Mountain View",
  "zip": "94043",
  "latitude": 37.4056,
  "longitude": -122.0775,
  "time_zone": {
    "id": "America/Los_Angeles",
    "current_time": "2025-09-20T15:30:00-07:00",
    "gmt_offset": -25200,
    "code": "PDT",
    "is_daylight_saving": true
  },
  "currency": {
    "code": "USD",
    "name": "US Dollar",
    "symbol": "$"
  },
  "connection": {
    "asn": 15169,
    "isp": "GOOGLE",
    "carrier": "GOOGLE"
  },
  "security": {
    "is_tor": false,
    "threat_level": "low",
    "hosting_facility": true
  }
}

API Features

Rate Limiting

120 requests per minute

JSON Format

Consistent response structure

IPv4 & IPv6

Full dual-stack support

No Auth Required

Simple GET requests