Skip to main content
Use avraapi.location() to resolve one permitted IP address. The Location service has one released async operation and returns Promise<ApiResponse<GeoIpData>>.
Use avraapi.location().withPrivacyMode().lookupIp({ ip: 'IP_ADDRESS' }) for the shared one-request privacy control. The existing privacyMode: true input remains supported and sends the same X-Privacy-Mode: 1 header.

Look up an IP address

lookupIp({ ip, privacyMode? }) accepts IPv4 or IPv6 text. Prefer the fluent withPrivacyMode() style when a consistent one-request control is clearer. SDK function
Copy the SDK call
Resolve an IP address with the shared privacy control

Response

Provider fields can be null when no matching data is available. Privacy Mode does not anonymise the request; see the REST API guide for the privacy guarantee.

Select a configured provider for one request

Every Node.js provider service inherits withProvider(providerCode). It sends X-Provider-Override for the next request only, then clears. Use it only for a provider configured in the selected project environment.
Optional provider selection
meta.provider_override reports the requested hint. It does not guarantee that every returned field originated from that provider.

Use the result safely

Keep Location calls in your backend and process only IP addresses you are permitted to use. Do not treat country, city, network, or coordinate fields as identity proof. The Location REST API Reference contains the full request, field, and error contract. For SDK failures, follow Node.js Overview and setup and retain the request ID only in backend support records.
Last modified on October 1, 2026