AvraAPI::location() to resolve one permitted IP address. The Location
service has one released operation and returns ApiResponse.
Use
AvraAPI::location()->withPrivacyMode()->lookupIp('IP_ADDRESS') for the
shared one-request privacy control. It sends X-Privacy-Mode: 1 only for the
next request, then clears automatically. 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; use
withPrivacyMode() immediately before the call for a consistent style.
SDK function
Copy the SDK call
Resolve an IP address in a Laravel service
Response
null when the selected provider has no matching
data. Privacy Mode does not anonymise the request. See the
REST API guide for the privacy
guarantee.
Select a configured provider for one request
Every provider service inheritswithProvider(string $providerCode): static.
It sets X-Provider-Override for the next request only, then the SDK clears
the override. Use it only with a provider configured for the project
environment.
Optional provider selection
meta.provider_override reports the requested hint; it does not guarantee
that every returned field originated from that provider.
