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

Descripción general

Casos de uso

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

Funcionalidades

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

Puntos finales de la 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

Pruébalo

Demostración en vivo
Solicitud

Campos de respuesta

Campo Tipo Descripción
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

Ejemplos de código

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

Respuestas de error

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}

Parámetros

Nombre Tipo Obligatorio Descripción
ip string Obligatorio The IP address to look up (supports IPv4 and IPv6)

Pruébalo

Demostración en vivo
Solicitud

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

Campos de respuesta

Campo Tipo Descripción
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

Ejemplos de código

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

Respuestas de error

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

Parámetros

Nombre Tipo Obligatorio Descripción
ips array<string> Obligatorio List of IP addresses to look up (1–50 items, each must be a valid IPv4 or IPv6 address).

Pruébalo

Demostración en vivo
Solicitud

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

Campos de respuesta

Campo Tipo Descripción
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.

Ejemplos de código

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

Respuestas de error

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.

Preguntas frecuentes