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

Vue d'ensemble

Cas d'utilisation

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

Fonctionnalités

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

Points de terminaison de l'API

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

Essayez-le

Démo en direct
Requête

Champs de réponse

Champ 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

Exemples de code

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

Réponses d'erreur

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}

Paramètres

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

Essayez-le

Démo en direct
Requête

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

Champs de réponse

Champ 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

Exemples de code

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

Réponses d'erreur

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

Paramètres

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

Essayez-le

Démo en direct
Requête

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

Champs de réponse

Champ 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.

Exemples de code

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"]}'

Réponses d'erreur

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.

Foire aux questions