Skip to main content
Use $avraapi->location() to resolve one permitted IP address. The Location service has one released operation and returns an ApiResponse.
Use $avraapi->location()->withPrivacyMode()->lookupIp('IP_ADDRESS') for the shared one-request privacy control. It sends X-Privacy-Mode: 1 only for that next request, then clears automatically. Privacy Mode keeps normal routing, billing, and usage tracking while suppressing request and response payload storage. The existing privacyMode: true argument remains supported.

Look up an IP address

lookupIp(string $ip, bool $privacyMode = false): ApiResponse accepts IPv4 or IPv6 text. The optional privacyMode: true argument remains available; for a consistent fluent style, use withPrivacyMode() immediately before the call. SDK function
Copy the SDK call
Resolve an IP address with the shared privacy control

Response

Every result field can be null when the selected provider has no matching data. Privacy mode preserves normal routing, billing, and usage tracking while suppressing request and response payload storage. It does not anonymise the request. See the REST API guide for the shared privacy guarantee.

Select a configured provider for one request

Every PHP provider service inherits withProvider(string $providerCode): static. It sets an X-Provider-Override header for the next request only, then the SDK clears the override. Use it only with a provider that is configured for 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, use the typed exception pattern in PHP Overview and setup and retain the exception request ID for support.
Last modified on October 1, 2026