Logo

IP Geolocation API - IP Address Lookup API

Data APIs

Lookup any IPv4 or IPv6 address to get geolocation, country, city, timezone, ASN, ISP, currency, coordinates, and network intelligence in a single API request.

IP Geolocation API - IP Address Lookup API Endpoints
GET Version 1.0 1 Credit

All IP info

Lookup any IPv4 or IPv6 address to get geolocation, country, city, timezone, ASN, ISP, currency, coordinates, and network intelligence in a single API request.

Ready to query this endpoint?

Sign up to get a free API key instantly with sandbox test credits. No card required.

Request Details

Endpoint URL
GET https://apipeak.dev/api/ipgeolocation
Request Parameters
Parameter Type Requirement Description
ip string Required provide ip address
Documentation

IP Geolocation API Documentation | API Peak

🌍 IP Geolocation API

```

Retrieve detailed geolocation, country, currency, timezone, network, and security information for any valid IPv4 or IPv6 address.

```

```

📌 API Overview

The IP Geolocation API allows you to identify the approximate geographical location and network information associated with an IP address.

The API response may include:

  • 🌎 Continent and country information
  • 🏙️ Region, city, and postal code
  • 📍 Latitude and longitude
  • 💰 Local currency information
  • 🕒 Timezone and current local time
  • 🌐 ISP, organization, and ASN details
  • 🛡️ VPN, proxy, Tor, hosting, and security detection

🔗 Endpoint

GET https://apipeak.dev/api/ipgeolocation

🔐 Authentication

This endpoint requires an API key. Include your API key in the X-API-KEY request header.

X-API-KEY: YOUR_API_KEY

Replace YOUR_API_KEY with your actual API Peak API key.


📥 Request Parameters

Parameter Location Type Required Description
ip Query string String Yes A valid IPv4 or IPv6 address that you want to analyse.

📨 Request Headers

Header Required Description
X-API-KEY Yes Your API Peak API key.
Content-Type Recommended Use application/json.
Accept Optional Use application/json.
```

📖 Response Fields

🌐 Root Response

Field Type Description
ip String The IP address that was analysed.
version String The IP address version, such as IPv4 or IPv6.
location Object Geographical location details.
country Object General information about the detected country.
currency Object Currency used in the detected country.
timezone Object Timezone and local time information.
network Object Network provider, ISP, organization, and ASN information.
security Object Security and IP risk detection information.

📍 Location Object

Field Type Description
continent String Name of the detected continent.
continent_code String Short continent code.
country String Name of the detected country.
country_code String Two-letter ISO country code.
region String or Null State, province, or administrative region.
city String or Null Detected city.
postal_code String or Null Postal or ZIP code of the detected location.
latitude Number Approximate latitude coordinate.
longitude Number Approximate longitude coordinate.
accuracy_radius_km Number or Null Estimated location accuracy radius in kilometres.

🏳️ Country Object

Field Type Description
flag String Country flag emoji.
calling_code String International telephone calling code.
top_level_domain String Country-code top-level domain.
capital String Capital city of the country.
languages Array Common or official languages used in the country.
is_eu Boolean Indicates whether the country is a European Union member.
driving_side String The side of the road used for driving.
measurement_system String The country's primary measurement system.

💰 Currency Object

Field Type Description
code String Three-letter ISO currency code.
name String Full name of the currency.
symbol String Currency symbol.

🕒 Timezone Object

Field Type Description
id String IANA timezone identifier.
abbreviation String Short timezone abbreviation.
utc_offset String Timezone offset from Coordinated Universal Time.
current_time String Current local time in ISO 8601 format.
is_dst Boolean Indicates whether daylight saving time is active.

📡 Network Object

Field Type Description
asn Number or Null Autonomous System Number associated with the IP address.
organization String or Null Organization associated with the network.
isp String or Null Internet service provider.
connection_type String or Null Detected connection category, such as ISP, hosting, mobile, business, or education.

🛡️ Security Object

Field Type Description
is_proxy Boolean Indicates whether the IP address is associated with a proxy.
is_vpn Boolean Indicates whether the IP address is associated with a VPN.
is_tor Boolean Indicates whether the IP address is associated with the Tor network.
is_hosting Boolean Indicates whether the IP belongs to a hosting or data-centre provider.
is_crawler Boolean Indicates whether the IP address may belong to an automated crawler.
risk_score Number A numerical risk indicator. A lower score generally represents lower detected risk.

⚠️ Error Responses

400 Bad Request

Returned when the IP parameter is missing, empty, or incorrectly formatted.

{
```

"message": "The IP address field is required."
}
```

401 Unauthorized

Returned when the API key is missing or invalid.

{
```

"message": "Invalid or missing API key."
}
```

422 Unprocessable Entity

Returned when the submitted IP address cannot be validated.

{
```

"message": "The provided IP address is invalid."
}
```

429 Too Many Requests

Returned when your account has exceeded its request or usage limit.

{
```

"message": "API usage limit exceeded."
}
```

500 Internal Server Error

Returned when an unexpected server error occurs.

{
```

"message": "Unable to process the request."
}
```

📊 HTTP Status Codes

Status Code Meaning
200 The request was successful.
400 The request contains missing or invalid parameters.
401 The API key is missing or invalid.
403 The account does not have permission to access the endpoint.
422 The submitted IP address could not be processed.
429 The API usage or rate limit has been exceeded.
500 An unexpected server error occurred.

💡 Common Use Cases

  • 🌍 Display country-specific content
  • 💰 Show prices in the visitor's local currency
  • 🕒 Convert dates and times to the user's timezone
  • 🗣️ Select a suitable language automatically
  • 🛡️ Detect suspicious VPN, proxy, or Tor traffic
  • 📊 Analyse website traffic by location
  • 📍 Personalise applications based on region or city
  • 🚫 Apply country or region access restrictions
  • 📡 Identify the user's ISP and network organization

📝 Important Notes

  • IP geolocation results are approximate and should not be treated as an exact physical address.
  • City, region, postal code, and coordinate accuracy may vary depending on the IP address and network provider.
  • VPN, proxy, hosting, crawler, and Tor detection should be used as risk indicators rather than absolute proof.
  • The current_time value is generated using the detected timezone.
  • Some response fields may return null when the information is unavailable.
  • Never expose your API key in public repositories or client-side JavaScript.

🔒 API Key Security

To keep your API key secure:

  • Store it in an environment variable.
  • Send API requests from your backend server.
  • Do not include the key in public GitHub repositories.
  • Do not expose the key in browser source code.
  • Regenerate the key immediately if it becomes compromised.
```
Request Example (cURL)
curl -X GET "https://apipeak.dev/api/ipgeolocation?ip=176.227.240.31" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Expected JSON Response
{
    "ip": "176.227.240.31",
    "version": "IPv4",
    "location": {
        "continent": "Asia",
        "continent_code": "AS",
        "country": "India",
        "country_code": "IN",
        "region": "Maharashtra",
        "city": "Mumbai",
        "postal_code": "400017",
        "latitude": 19.0748,
        "longitude": 72.8856,
        "accuracy_radius_km": 20
    },
    "country": {
        "flag": "IN",
        "calling_code": "+91",
        "top_level_domain": ".in",
        "capital": "New Delhi",
        "languages": [
            "Hindi",
            "English"
        ],
        "is_eu": false,
        "driving_side": "left",
        "measurement_system": "metric"
    },
    "currency": {
        "code": "INR",
        "name": "Indian Rupee",
        "symbol": "\u20b9"
    },
    "timezone": {
        "id": "Asia\/Kolkata",
        "abbreviation": "IST",
        "utc_offset": "+05:30",
        "current_time": "2026-07-26T18:49:24+05:30",
        "is_dst": false
    },
    "network": {
        "asn": 209854,
        "organization": "Cyberzone S.A.",
        "isp": "Cyberzone S.A.",
        "connection_type": "isp"
    },
    "security": {
        "is_proxy": false,
        "is_vpn": false,
        "is_tor": false,
        "is_hosting": false,
        "is_crawler": false,
        "risk_score": 0
    }
}
GET Version 1.0 1 Credit

Location Data

Lookup any IPv4 or IPv6 address to get geolocation, country, city, timezone, ASN, ISP, currency, coordinates, and network intelligence in a single API request.

Ready to query this endpoint?

Sign up to get a free API key instantly with sandbox test credits. No card required.

Request Details

Endpoint URL
GET https://apipeak.dev/api/ipgeolocation/location
Request Parameters
Parameter Type Requirement Description
ip string Required provide ip address
Documentation

📍 IP Location Data API

```

Retrieve geographical location information for a valid IPv4 or IPv6 address, including continent, country, region, city, postal code, coordinates, and location accuracy.


🔗 Endpoint

GET https://apipeak.dev/api/ipgeolocation/location

🔐 Authentication

This endpoint requires an API key. Include your API key in the X-API-KEY request header.

X-API-KEY: YOUR_API_KEY

Replace YOUR_API_KEY with your API Peak API key.


📥 Query Parameters

Parameter Type Required Description
ip String Yes The IPv4 or IPv6 address for which location data should be retrieved.

📨 Request Headers

Header Required Description
X-API-KEY Yes Your API Peak API key.
Content-Type Recommended Use application/json.

🚀 Example Request

cURL

curl -X GET "https://apipeak.dev/api/ipgeolocation/location?ip=176.227.240.31" \
```

-H "X-API-KEY: YOUR_API_KEY" 
-H "Content-Type: application/json"
```

✅ Example Success Response

{
```

"ip": "176.227.240.31",
"version": "IPv4",
"location": {
"continent": "Asia",
"continent_code": "AS",
"country": "India",
"country_code": "IN",
"region": "Maharashtra",
"city": "Mumbai",
"postal_code": "400017",
"latitude": 19.0748,
"longitude": 72.8856,
"accuracy_radius_km": 20
}
}
```

📖 Response Fields

🌐 Root Response

Field Type Description
ip String The IP address submitted in the request.
version String The IP address version, such as IPv4 or IPv6.
location Object Contains the geographical location information associated with the IP address.

📍 Location Object

Field Type Description
continent String The name of the detected continent.
continent_code String The abbreviated continent code.
country String The name of the detected country.
country_code String The two-letter ISO country code.
region String or Null The detected state, province, or administrative region.
city String or Null The detected city associated with the IP address.
postal_code String or Null The postal or ZIP code of the detected location.
latitude Number or Null The approximate latitude coordinate.
longitude Number or Null The approximate longitude coordinate.
accuracy_radius_km Number or Null The estimated location accuracy radius measured in kilometres.

⚠️ Error Responses

400 Bad Request

Returned when the ip parameter is missing.

{
```

"message": "The IP address field is required."
}
```

401 Unauthorized

Returned when the API key is missing or invalid.

{
```

"message": "Invalid or missing API key."
}
```

422 Unprocessable Entity

Returned when the supplied IP address is invalid.

{
```

"message": "The provided IP address is invalid."
}
```

429 Too Many Requests

Returned when the account has exceeded its API usage or rate limit.

{
```

"message": "API usage limit exceeded."
}
```

500 Internal Server Error

Returned when the server cannot process the request.

{
```

"message": "Unable to process the request."
}
```

📊 HTTP Status Codes

Status Code Description
200 The location data was successfully retrieved.
400 A required request parameter is missing.
401 The API key is missing or invalid.
403 The account cannot access this endpoint.
422 The submitted IP address is invalid.
429 The account has exceeded its usage limit.
500 An unexpected server error occurred.

💡 Common Use Cases

  • 🌍 Detect a visitor's country or continent
  • 🏙️ Personalise content based on region or city
  • 📍 Display approximate user locations on a map
  • 📊 Analyse website traffic by geographical location
  • 🚫 Apply country or regional access restrictions
  • 🛒 Show location-specific products or services
  • 📦 Estimate delivery regions based on IP location

📝 Important Notes

  • IP geolocation results are approximate and do not represent an exact physical address.
  • City, postal code, latitude, and longitude values may vary depending on the internet service provider.
  • Some fields may return null
  • Mobile networks, VPNs, proxies, and satellite connections may reduce location accuracy.
  • The accuracy_radius_km field indicates the estimated radius within which the IP address may be located.
```
Request Example (cURL)
curl -X GET "https://apipeak.dev/api/ipgeolocation/location?ip=176.227.240.31" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Expected JSON Response
{
    "ip": "176.227.240.31",
    "version": "IPv4",
    "location": {
        "continent": "Asia",
        "continent_code": "AS",
        "country": "India",
        "country_code": "IN",
        "region": "Maharashtra",
        "city": "Mumbai",
        "postal_code": "400017",
        "latitude": 19.0748,
        "longitude": 72.8856,
        "accuracy_radius_km": 20
    }
}
GET Version 1.0 1 Credit

Country Data

Lookup any IPv4 or IPv6 address to get geolocation, country, city, timezone, ASN, ISP, currency, coordinates, and network intelligence in a single API request.

Ready to query this endpoint?

Sign up to get a free API key instantly with sandbox test credits. No card required.

Request Details

Endpoint URL
GET https://apipeak.dev/api/ipgeolocation/country
Request Parameters
Parameter Type Requirement Description
ip string Required provide ip address
Documentation

🏳️ Country Information API

Retrieve country-related information for any valid IPv4 or IPv6 address, including flag, capital, languages, calling code, and measurement system.


🔗 Endpoint

GET https://apipeak.dev/api/ipgeolocation/country

🔐 Authentication

Include your API key in the request header.

X-API-KEY: YOUR_API_KEY

📥 Query Parameters

Parameter Type Required Description
ip String Yes The IP address to lookup.

🚀 Example Request

curl -X GET "https://apipeak.dev/api/ipgeolocation/country?ip=176.227.240.31" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"

✅ Example Response

{
  "ip": "176.227.240.31",
  "version": "IPv4",
  "country": {
    "flag": "🇮🇳",
    "calling_code": "+91",
    "top_level_domain": ".in",
    "capital": "New Delhi",
    "languages": [
      "Hindi",
      "English"
    ],
    "is_eu": false,
    "driving_side": "left",
    "measurement_system": "metric"
  }
}

📖 Response Fields

Field Type Description
ip String The IP address that was queried.
version String IP version (IPv4 or IPv6).
flag String Country flag emoji.
calling_code String International calling code.
top_level_domain String Country top-level domain.
capital String Capital city.
languages Array Official languages.
is_eu Boolean Whether the country is part of the European Union.
driving_side String Road driving side (left or right).
measurement_system String Measurement system used in the country.

📊 HTTP Status Codes

Status Description
200 Success.
400 Invalid request.
401 Invalid API key.
429 Rate limit exceeded.
500 Internal server error.

💡 Common Use Cases

  • 🌍 Detect a visitor's country.
  • 🏳️ Display the country flag.
  • 📞 Show the correct international calling code.
  • 🌐 Automatically configure regional settings.
  • 📦 Personalize content based on country.
Request Example (cURL)
curl -X GET "https://apipeak.dev/api/ipgeolocation/country?ip=176.227.240.31" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Expected JSON Response
{
    "ip": "176.227.240.31",
    "version": "IPv4",
    "country": {
        "flag": "IN",
        "calling_code": "+91",
        "top_level_domain": ".in",
        "capital": "New Delhi",
        "languages": [
            "Hindi",
            "English"
        ],
        "is_eu": false,
        "driving_side": "left",
        "measurement_system": "metric"
    }
}
GET Version 1.0 1 Credit

Currency Data

Lookup any IPv4 or IPv6 address to get geolocation, country, city, timezone, ASN, ISP, currency, coordinates, and network intelligence in a single API request.

Ready to query this endpoint?

Sign up to get a free API key instantly with sandbox test credits. No card required.

Request Details

Endpoint URL
GET https://apipeak.dev/api/ipgeolocation/currency
Request Parameters
Parameter Type Requirement Description
ip string Required provide ip address
Documentation

💰 Currency Information API

Retrieve the local currency information associated with any valid IPv4 or IPv6 address, including the currency code, name, and symbol.


🔗 Endpoint

GET https://apipeak.dev/api/ipgeolocation/currency

🔐 Authentication

Include your API key in the request header.

X-API-KEY: YOUR_API_KEY

📥 Query Parameters

Parameter Type Required Description
ip String Yes The IPv4 or IPv6 address to lookup.

🚀 Example Request

curl -X GET "https://apipeak.dev/api/ipgeolocation/currency?ip=176.227.240.31" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"

✅ Example Response

{
  "ip": "176.227.240.31",
  "version": "IPv4",
  "currency": {
    "code": "INR",
    "name": "Indian Rupee",
    "symbol": "₹"
  }
}

📖 Response Fields

Field Type Description
ip String The IP address that was queried.
version String IP version (IPv4 or IPv6).
currency.code String Three-letter ISO currency code.
currency.name String Full name of the currency.
currency.symbol String The currency symbol.

📊 HTTP Status Codes

Status Description
200 Success.
400 Invalid request.
401 Invalid API key.
429 Rate limit exceeded.
500 Internal server error.

💡 Common Use Cases

  • 💰 Display prices in the visitor's local currency.
  • 🛒 Personalize e-commerce experiences.
  • 🌍 Automatically detect regional currency.
  • 📊 Generate country-specific financial reports.
  • 💳 Support localized payment workflows.
Request Example (cURL)
curl -X GET "https://apipeak.dev/api/ipgeolocation/currency?ip=176.227.240.31" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Expected JSON Response
{
    "ip": "176.227.240.31",
    "version": "IPv4",
    "currency": {
        "code": "INR",
        "name": "Indian Rupee",
        "symbol": "\u20b9"
    }
}
GET Version 1.0 1 Credit

Timezone Data

Lookup any IPv4 or IPv6 address to get geolocation, country, city, timezone, ASN, ISP, currency, coordinates, and network intelligence in a single API request.

Ready to query this endpoint?

Sign up to get a free API key instantly with sandbox test credits. No card required.

Request Details

Endpoint URL
GET https://apipeak.dev/api/ipgeolocation/timezone
Request Parameters
Parameter Type Requirement Description
ip string Required provide ip address
Documentation

🕒 Timezone Information API

Retrieve timezone information for any valid IPv4 or IPv6 address, including the timezone ID, UTC offset, local time, and daylight saving status.


🔗 Endpoint

GET https://apipeak.dev/api/ipgeolocation/timezone

🔐 Authentication

Include your API key in the request header.

X-API-KEY: YOUR_API_KEY

📥 Query Parameters

Parameter Type Required Description
ip String Yes The IPv4 or IPv6 address to lookup.

🚀 Example Request

curl -X GET "https://apipeak.dev/api/ipgeolocation/timezone?ip=176.227.240.31" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"

✅ Example Response

{
  "ip": "176.227.240.31",
  "version": "IPv4",
  "timezone": {
    "id": "Asia/Kolkata",
    "abbreviation": "IST",
    "utc_offset": "+05:30",
    "current_time": "2026-07-26T20:13:02+05:30",
    "is_dst": false
  }
}

📖 Response Fields

Field Type Description
ip String The IP address that was queried.
version String IP version (IPv4 or IPv6).
timezone.id String The IANA timezone identifier.
timezone.abbreviation String The timezone abbreviation (e.g. IST, UTC, EST).
timezone.utc_offset String The UTC offset for the timezone.
timezone.current_time String The current local date and time in ISO 8601 format.
timezone.is_dst Boolean Indicates whether Daylight Saving Time (DST) is currently active.

📊 HTTP Status Codes

Status Description
200 Success.
400 Invalid request.
401 Invalid API key.
429 Rate limit exceeded.
500 Internal server error.

💡 Common Use Cases

  • 🕒 Display the visitor's local time.
  • 📅 Schedule meetings across time zones.
  • 🌍 Automatically detect user timezones.
  • 📈 Generate timezone-aware reports.
  • ⏰ Schedule notifications and reminders.
Request Example (cURL)
curl -X GET "https://apipeak.dev/api/ipgeolocation/timezone?ip=176.227.240.31" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Expected JSON Response
{
    "ip": "176.227.240.31",
    "version": "IPv4",
    "timezone": {
        "id": "Asia\/Kolkata",
        "abbreviation": "IST",
        "utc_offset": "+05:30",
        "current_time": "2026-07-26T20:13:02+05:30",
        "is_dst": false
    }
}
GET Version 1.0 1 Credit

Network Data

Lookup any IPv4 or IPv6 address to get geolocation, country, city, timezone, ASN, ISP, currency, coordinates, and network intelligence in a single API request.

Ready to query this endpoint?

Sign up to get a free API key instantly with sandbox test credits. No card required.

Request Details

Endpoint URL
GET https://apipeak.dev/api/ipgeolocation/network
Request Parameters
Parameter Type Requirement Description
ip string Required provide ip address
Documentation

🌐 Network Information API

Retrieve network details for any valid IPv4 or IPv6 address, including the Autonomous System Number (ASN), ISP, organization, and connection type.


🔗 Endpoint

GET https://apipeak.dev/api/ipgeolocation/network

🔐 Authentication

Include your API key in the request header.

X-API-KEY: YOUR_API_KEY

📥 Query Parameters

Parameter Type Required Description
ip String Yes The IPv4 or IPv6 address to lookup.

🚀 Example Request

curl -X GET "https://apipeak.dev/api/ipgeolocation/network?ip=176.227.240.31" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"

✅ Example Response

{
  "ip": "176.227.240.31",
  "version": "IPv4",
  "network": {
    "asn": 209854,
    "organization": "Cyberzone S.A.",
    "isp": "Cyberzone S.A.",
    "connection_type": "isp"
  }
}

📖 Response Fields

Field Type Description
ip String The IP address that was queried.
version String IP version (IPv4 or IPv6).
network.asn Integer The Autonomous System Number (ASN) assigned to the network.
network.organization String The organization that owns or manages the network.
network.isp String The Internet Service Provider (ISP).
network.connection_type String The detected connection type (e.g. isp, hosting, mobile, business).

📊 HTTP Status Codes

Status Description
200 Success.
400 Invalid request.
401 Invalid API key.
429 Rate limit exceeded.
500 Internal server error.

💡 Common Use Cases

  • 🌐 Identify the user's Internet Service Provider.
  • 🏢 Detect the organization behind an IP address.
  • 📡 Analyze network ownership using ASN.
  • 🛡️ Detect hosting providers and data centers.
  • 📊 Perform network analytics and traffic reporting.
Request Example (cURL)
curl -X GET "https://apipeak.dev/api/ipgeolocation/network?ip=176.227.240.31" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Expected JSON Response
{
    "ip": "176.227.240.31",
    "version": "IPv4",
    "network": {
        "asn": 209854,
        "organization": "Cyberzone S.A.",
        "isp": "Cyberzone S.A.",
        "connection_type": "isp"
    }
}
GET Version 1.0 1 Credit

Security

Lookup any IPv4 or IPv6 address to get geolocation, country, city, timezone, ASN, ISP, currency, coordinates, and network intelligence in a single API request.

Ready to query this endpoint?

Sign up to get a free API key instantly with sandbox test credits. No card required.

Request Details

Endpoint URL
GET https://apipeak.dev/api/ipgeolocation/security
Request Parameters
Parameter Type Requirement Description
ip string Required provide ip address
Documentation

🛡️ Security Information API

Retrieve security and risk intelligence for any valid IPv4 or IPv6 address, including VPN, proxy, Tor, hosting detection, crawler detection, and overall risk score.


🔗 Endpoint

GET https://apipeak.dev/api/ipgeolocation/security

🔐 Authentication

Include your API key in the request header.

X-API-KEY: YOUR_API_KEY

📥 Query Parameters

Parameter Type Required Description
ip String Yes The IPv4 or IPv6 address to lookup.

🚀 Example Request

curl -X GET "https://apipeak.dev/api/ipgeolocation/security?ip=176.227.240.31" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"

✅ Example Response

{
  "ip": "176.227.240.31",
  "version": "IPv4",
  "security": {
    "is_proxy": false,
    "is_vpn": false,
    "is_tor": false,
    "is_hosting": false,
    "is_crawler": false,
    "risk_score": 0
  }
}

📖 Response Fields

Field Type Description
ip String The IP address that was queried.
version String IP version (IPv4 or IPv6).
security.is_proxy Boolean Indicates whether the IP address is detected as a proxy.
security.is_vpn Boolean Indicates whether the IP address is associated with a VPN service.
security.is_tor Boolean Indicates whether the IP address belongs to the Tor network.
security.is_hosting Boolean Indicates whether the IP belongs to a hosting provider or data center.
security.is_crawler Boolean Indicates whether the IP is associated with a known search engine or web crawler.
security.risk_score Integer A risk score where lower values indicate lower security risk.

📊 HTTP Status Codes

Status Description
200 Success.
400 Invalid request.
401 Invalid API key.
429 Rate limit exceeded.
500 Internal server error.

💡 Common Use Cases

  • 🛡️ Detect VPN and proxy users.
  • 🚫 Block suspicious or anonymous traffic.
  • 🤖 Identify bots and web crawlers.
  • 🏢 Detect hosting providers and data center IPs.
  • 🔒 Improve fraud prevention and account security.
Request Example (cURL)
curl -X GET "https://apipeak.dev/api/ipgeolocation/security?ip=176.227.240.31" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Expected JSON Response
{
    "ip": "176.227.240.31",
    "version": "IPv4",
    "security": {
        "is_proxy": false,
        "is_vpn": false,
        "is_tor": false,
        "is_hosting": false,
        "is_crawler": false,
        "risk_score": 0
    }
}
GET Version 1.0 1 Credit

ISP Data

Lookup any IPv4 or IPv6 address to get geolocation, country, city, timezone, ASN, ISP, currency, coordinates, and network intelligence in a single API request.

Ready to query this endpoint?

Sign up to get a free API key instantly with sandbox test credits. No card required.

Request Details

Endpoint URL
GET https://apipeak.dev/api/ipgeolocation/isp
Request Parameters
Parameter Type Requirement Description
ip string Required provide ip address
Documentation

📡 ISP Information API

Retrieve Internet Service Provider (ISP) details for any valid IPv4 or IPv6 address, including ASN, ISP name, organization, and connection type.


🔗 Endpoint

GET https://apipeak.dev/api/ipgeolocation/isp

🔐 Authentication

Include your API key in the request header.

X-API-KEY: YOUR_API_KEY

📥 Query Parameters

Parameter Type Required Description
ip String Yes The IPv4 or IPv6 address to lookup.

🚀 Example Request

curl -X GET "https://apipeak.dev/api/ipgeolocation/isp?ip=176.227.240.31" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"

✅ Example Response

{
  "ip": "176.227.240.31",
  "version": "IPv4",
  "isp": {
    "asn": 209854,
    "isp": "Cyberzone S.A.",
    "organization": "Cyberzone S.A.",
    "connection_type": "isp"
  }
}

📖 Response Fields

Field Type Description
ip String The IP address that was queried.
version String IP version (IPv4 or IPv6).
isp.asn Integer The Autonomous System Number (ASN) assigned to the ISP.
isp.isp String The Internet Service Provider (ISP) name.
isp.organization String The organization that owns or operates the network.
isp.connection_type String The detected connection type (e.g. isp, hosting, mobile, business).

📊 HTTP Status Codes

Status Description
200 Success.
400 Invalid request.
401 Invalid API key.
429 Rate limit exceeded.
500 Internal server error.

💡 Common Use Cases

  • 📡 Identify a visitor's Internet Service Provider.
  • 🌐 Analyze traffic by ISP or network.
  • 🛡️ Detect hosting or data center providers.
  • 📊 Generate ISP-based analytics and reports.
  • 🔍 Investigate network ownership using ASN.
Request Example (cURL)
curl -X GET "https://apipeak.dev/api/ipgeolocation/isp?ip=176.227.240.31" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Expected JSON Response
{
    "ip": "176.227.240.31",
    "version": "IPv4",
    "isp": {
        "asn": 209854,
        "isp": "Cyberzone S.A.",
        "organization": "Cyberzone S.A.",
        "connection_type": "isp"
    }
}
GET Version 1.0 1 Credit

Spam Score

Lookup any IPv4 or IPv6 address to get geolocation, country, city, timezone, ASN, ISP, currency, coordinates, and network intelligence in a single API request.

Ready to query this endpoint?

Sign up to get a free API key instantly with sandbox test credits. No card required.

Request Details

Endpoint URL
GET https://apipeak.dev/api/ipgeolocation/spamscore
Request Parameters
Parameter Type Requirement Description
ip string Required provide ip address
Documentation

🚨 Spam Score API

Assess the security risk of any valid IPv4 or IPv6 address by detecting VPNs, proxies, Tor nodes, hosting providers, crawlers, and an overall spam risk score.


🔗 Endpoint

GET https://apipeak.dev/api/ipgeolocation/spamscore

🔐 Authentication

Include your API key in the request header.

X-API-KEY: YOUR_API_KEY

📥 Query Parameters

Parameter Type Required Description
ip String Yes The IPv4 or IPv6 address to analyze.

🚀 Example Request

curl -X GET "https://apipeak.dev/api/ipgeolocation/spamscore?ip=176.227.240.31" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"

✅ Example Response

{
  "ip": "176.227.240.31",
  "version": "IPv4",
  "spamscore": {
    "risk_score": 0,
    "is_proxy": false,
    "is_vpn": false,
    "is_tor": false,
    "is_hosting": false,
    "is_crawler": false
  }
}

📖 Response Fields

Field Type Description
ip String The IP address that was queried.
version String IP version (IPv4 or IPv6).
spamscore.risk_score Integer Overall spam or fraud risk score. Lower values indicate lower risk.
spamscore.is_proxy Boolean Indicates whether the IP address is a proxy.
spamscore.is_vpn Boolean Indicates whether the IP address is using a VPN.
spamscore.is_tor Boolean Indicates whether the IP address belongs to the Tor network.
spamscore.is_hosting Boolean Indicates whether the IP belongs to a hosting or data center provider.
spamscore.is_crawler Boolean Indicates whether the IP is associated with a known crawler or bot.

📊 HTTP Status Codes

Status Description
200 Success.
400 Invalid request.
401 Invalid API key.
429 Rate limit exceeded.
500 Internal server error.

💡 Common Use Cases

  • 🛡️ Detect suspicious or fraudulent users.
  • 🚫 Block VPN, proxy, or Tor traffic.
  • 🤖 Prevent bot registrations and spam.
  • 💳 Improve payment fraud detection.
  • 🔒 Add risk scoring to authentication and login systems.
Request Example (cURL)
curl -X GET "https://apipeak.dev/api/ipgeolocation/spamscore?ip=176.227.240.31" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Expected JSON Response
{
    "ip": "176.227.240.31",
    "version": "IPv4",
    "spamscore": {
        "risk_score": 0,
        "is_proxy": false,
        "is_vpn": false,
        "is_tor": false,
        "is_hosting": false,
        "is_crawler": false
    }
}

Flexible Subscriptions

Choose the monthly credit subscription that supports your development throughput. Cancel or shift tiers at any time.

FREE

Perfect for exploring the API

$0 /month
  • 50 requests per month
  • Developer Sandbox Credentials
  • Instant API Key Activation

PRO

Best for indie developers and small projects

$6 /month
  • 50,000 requests per month
  • Developer Sandbox Credentials
  • Instant API Key Activation

ULTRA

Ideal for SaaS products and tools

$21 /month
  • 300,000 requests per month
  • Developer Sandbox Credentials
  • Instant API Key Activation

MEGA

Built for agencies and businesses

$46 /month
  • 1,000,000 requests per month
  • Developer Sandbox Credentials
  • Instant API Key Activation