Skip to documentation
Developer documentationAPI v1.0.0OpenAPI ↓
DocsLookup APIs

Lookup APIs

IP lookup

Inspect reputation, anonymizer signals, location and network context for an IPv4 or IPv6 address.

API 1.0.0Contract reviewed 9 Nov 2026

Request#

POST/lookup/ipAPI key or Bearer token
Body fieldTypeRequiredRules
ipstringYesIPv4 or IPv6. Additional body properties are not accepted.
Request body
{
  "ip": "203.0.113.42"
}

Request examples#

cURL example
curl --request POST 'https://api.lookupnest.com/api/v1/lookup/ip' \
  --header "x-api-key: $LOOKUPNEST_API_KEY" \
  --header 'Content-Type: application/json' \
  --header 'Origin: https://app.example.com' \
  --data '{"ip":"203.0.113.42"}'

Success response#

The following example follows the published IP response schema. Network, location and usage values are illustrative.

Illustrative 200 response
{
  "usage_id": "9e3c2c24-8f68-4cc5-a5da-90a5bbca679c",
  "credits_charged": 1,
  "credits_remaining": 99,
  "source": "api",
  "success": true,
  "message": "Illustrative IP lookup result",
  "data": {
    "status": "ok",
    "data": {
      "id": "example-record",
      "ip": "203.0.113.42",
      "lookup_left": 99,
      "last_updated": "2026-11-09T00:00:00Z",
      "network": {
        "asn": "AS64500",
        "range": "203.0.113.0/24",
        "hostname": null,
        "provider": "Example network",
        "organisation": "Example organisation",
        "type": "hosting"
      },
      "location": {
        "continent_name": null,
        "continent_code": null,
        "country_name": null,
        "country_code": null,
        "region_name": null,
        "region_code": null,
        "city_name": null,
        "postal_code": null,
        "latitude": null,
        "longitude": null,
        "timezone": null,
        "currency": {
          "code": null,
          "name": null,
          "symbol": null
        }
      },
      "device_estimate": {
        "address": 0,
        "subnet": 0
      },
      "detections": {
        "proxy": false,
        "vpn": false,
        "compromised": false,
        "scraper": false,
        "tor": false,
        "hosting": true,
        "anonymous": false,
        "risk": 20
      },
      "is_modified": 0
    }
  }
}

Response envelope and source#

FieldMeaning
usage_idRequest usage reference, UUID format.
credits_chargedInteger usage charge returned for the request. Example values are not a universal price.
credits_remainingInteger remaining-credit metadata.
sourceOne of redis, database or api, describing retrieval source.
data.statusThe typed success value is ok.
data.dataThe IP lookup record; see the complete field dictionary.

A cached retrieval source is not a statement that the lookup is free. Reconcile the returned charge and your account report.

Documented statuses#

HTTPDescription
200IP reputation result.
400Invalid IP address.
401Authentication is required or the token is invalid.
403The browser Origin is missing or is not allowed for this API key.
429The authenticated user exceeded the IP lookup rate limit.
502The lookup provider returned an invalid or unsuccessful response.
503The lookup provider is not configured or is rate limited.
504The lookup provider timed out.

Do not assume the email endpoint has the same status set. Each reference page shows the statuses declared for that operation.

Interpret the result#

Use a risk score with its underlying flags and your application context. VPN or hosting use alone is not proof of abuse. IP geolocation is network context, not a verified personal address.

Continue with the full IP field dictionary and decision-design guidance.

Need help with this integration?

Contact developer support ↗