/v1/client-info
Client-Informationen abrufen
Liest die Request-Header des anfragenden Clients aus und antwortet mit den erkannten Informationen. Keine Parameter nötig.
Bearer fd_…
curl -X GET "https://api.flowdata.one/v1/client-info" \
-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/client-info');
$data = $response->json();
const response = await fetch('https://api.flowdata.one/v1/client-info', {
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/client-info',
headers=headers,
)
data = response.json()
{
"ipString": "203.0.113.42",
"ipNumeric": 3405803818,
"ipType": "IPv4",
"isBehindProxy": false,
"device": "Mac",
"os": "Mac OS X 12.6.0",
"userAgent": "Chrome 120.0.0",
"family": "Chrome",
"versionMajor": "120",
"versionMinor": "0",
"versionPatch": "0",
"isSpider": false,
"isMobile": false,
"userAgentDisplay": "Mac OS X 12.6.0 Mac Chrome 120.0.0",
"userAgentRaw": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
"userLanguages": [
"de-DE",
"de",
"en-US",
"en"
]
}