/v1/geolocation
Eigene IP ermitteln
Ermittelt die IP-Adresse des anfragenden Clients und antwortet mit deren Geolocation-Daten. Berechnet wird nur eine Antwort mit status: success.
Bearer fd_… 0,40 EUR je 1.000 erfolgreiche Anfragen
Query-Parameter
| Name | Typ | Beschreibung | |
|---|---|---|---|
| lang | string | Sprache der geografischen Bezeichnungen (Standard: de, alternativ: en) |
curl -X GET "https://api.flowdata.one/v1/geolocation" \
-H "Authorization: Bearer fd_DEIN_SCHLUESSEL" \
-H "Accept: application/json"
use Illuminate\Support\Facades\Http;
$response = Http::withToken('fd_DEIN_SCHLUESSEL')
->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_DEIN_SCHLUESSEL',
'Accept': 'application/json',
},
});
const data = await response.json();
import requests
headers = {
'Authorization': 'Bearer fd_DEIN_SCHLUESSEL',
'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"
}