IP Geolocation

Get geolocation data for any IP address including country, city, ISP, and VPN detection. Use this endpoint to enrich user data with location information for personalization, fraud detection, or content localization.

Get API Key

Overview

Use Cases

  • User location personalization
  • Fraud detection and risk scoring
  • Content localization and geo-targeting
  • Analytics and user insights
  • Compliance and regulatory requirements

Features

Country and city lookup
ISP identification
VPN detection
Support for both IPv4 and IPv6 addresses

API Endpoints

Get IP Info (Caller IP)

Get geolocation and network information for the requesting client's IP address. Useful when you want information about the user making the request without specifying an IP explicitly.

GET
https://requiems.xyz/v1/networking/ip

Try it out

Live Demo
Request

Response Fields

Field Type Description
ip string The IP address that was looked up (the requesting client's IP)
country string Country name where the IP is located
country_code string Two-letter ISO country code (e.g., "US", "GB", "DE")
city string City name where the IP is located
isp string Internet Service Provider providing the IP
is_vpn boolean True when the IP belongs to a known VPN

Code Examples

curl "https://requiems.xyz/v1/networking/ip" \
  -H "requiems-api-key: YOUR_API_KEY"

Error Responses

internal_error

Unexpected server error

Get IP Info for IP

Get geolocation and network information for a specific IP address.

GET
https://requiems.xyz/v1/networking/ip/{ip}

Parameters

Name Type Required Description
ip string Required The IP address to look up (supports IPv4 and IPv6)

Try it out

Live Demo
Request

The IP address to look up (supports IPv4 and IPv6)

Response Fields

Field Type Description
ip string The IP address that was looked up
country string Country name where the IP is located
country_code string Two-letter ISO country code (e.g., "US", "GB", "DE")
city string City name where the IP is located
isp string Internet Service Provider providing the IP
is_vpn boolean True when the IP belongs to a known VPN

Code Examples

curl "https://requiems.xyz/v1/networking/ip/8.8.8.8" \
  -H "requiems-api-key: YOUR_API_KEY"

Error Responses

bad_request

The IP address is invalid

internal_error

Unexpected server error

Batch IP Geolocation

Look up geolocation data for up to 50 IP addresses in a single request. Results are returned in input order. Per-item errors are reported inline.

POST
https://requiems.xyz/v1/networking/ip/info/batch

Parameters

Name Type Required Description
ips array<string> Required List of IP addresses to look up (1–50 items, each must be a valid IPv4 or IPv6 address).

Try it out

Live Demo
Request

List of IP addresses to look up (1–50 items, each must be a valid IPv4 or IPv6 address).

Response Fields

Field Type Description
results array<object> Per-item results in input order.
results[].ip string The IP address that was looked up.
results[].result object Geolocation data (omitted on error). Same fields as the single-item endpoint.
results[].error string Error message if the lookup failed (omitted on success).
total integer Total number of items processed.

Code Examples

curl -X POST https://requiems.xyz/v1/networking/ip/info/batch \
  -H "requiems-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ips": ["8.8.8.8", "1.1.1.1"]}'

Error Responses

validation_failed

The ips array is missing, empty, exceeds 50 items, or contains an invalid IP address.

bad_request

The request body is missing or malformed.

Frequently Asked Questions