Skip to documentation
Developer documentationAPI v1.0.0OpenAPI ↓
DocsStart here

Start here

Your first lookup

Create a key, configure access restrictions and make a server-side request.

API 1.0.0Contract reviewed 9 Nov 2026

Before you begin#

  • A LookupNest account with a verified email and the access your plan requires.
  • An active API key created in the customer portal.
  • Available lookup credits and an environment allowed by the key restrictions.
  • A server-side environment that can make HTTPS requests.

Create and configure your key#

  1. Open the customer portal and go to API configuration.
  2. Create a clearly named key. Save the full secret when it is created; listing keys does not return it.
  3. Set the allowed domains/origins and caller IPs that your integration needs.
  4. Place the key in a server-side environment variable or secret store.
Environment variable
export LOOKUPNEST_API_KEY="replace_with_your_key"

Send an IP lookup#

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

Replace 203.0.113.42 with the IP address you want to query. This documentation address illustrates input formatting. The 15-second timeouts in language examples are client choices, not a service latency promise.

Read the response deliberately#

The typed IP response places the lookup record at payload.data.data. Top-level usage fields describe the recorded charge and remaining balance. Check HTTP status and success before reading the record.

Read the nested record
const record = payload.data?.data;
const risk = record?.detections?.risk;
if (typeof risk === "number") {
  // Combine risk with the individual flags and your application context.
}

A missing value should stay missing. Do not convert an unavailable score into zero or an absent detection into a completed negative check.

Continue building#

Need help with this integration?

Contact developer support ↗