/v1/geolocation
Consultar o próprio IP
Identifica o endereço IP do cliente que faz a requisição e responde com seus dados de geolocalização. Somente uma resposta com status: success é cobrada.
Bearer fd_… 0,40 EUR por 1.000 requisições bem-sucedidas
Parâmetros de consulta
| Nome | Tipo | Descrição | |
|---|---|---|---|
| lang | string | Idioma dos rótulos geográficos (padrão de, alternativa en) |
curl -X GET "https://api.flowdata.one/v1/geolocation" \
-H "Authorization: Bearer fd_SUA_CHAVE" \
-H "Accept: application/json"
use Illuminate\Support\Facades\Http;
$response = Http::withToken('fd_SUA_CHAVE')
->get('https://api.flowdata.one/v1/geolocation');
$data = $response->json();
const response = await fetch('https://api.flowdata.one/v1/geolocation', {
method: 'GET',
headers: {
'Authorization': 'Bearer fd_SUA_CHAVE',
'Accept': 'application/json',
},
});
const data = await response.json();
import requests
headers = {
'Authorization': 'Bearer fd_SUA_CHAVE',
'Accept': 'application/json',
}
response = requests.get(
'https://api.flowdata.one/v1/geolocation',
headers=headers,
)
data = response.json()
{
"status": "success",
"continent": "Nordamerika",
"continentCode": "NA",
"country": "Vereinigte Staaten",
"countryCode": "US",
"region": "CA",
"regionName": "Kalifornien",
"city": "Mountain View",
"district": null,
"zip": "94043",
"lat": 37.4192,
"lon": -122.0574,
"timezone": "America/Los_Angeles",
"offset": -25200,
"currency": "USD",
"isp": "Google LLC",
"org": "Google LLC",
"as": "AS15169 Google LLC",
"asname": "Google LLC",
"reverse": null,
"mobile": null,
"proxy": null,
"hosting": null,
"query": "8.8.8.8"
}