A growing collection of tools behind one API
Simple JSON endpoints, documented with examples you can try in your browser.
Request
$ curl -H "Authorization: Bearer YOUR_API_KEY" https://api-hub.samsmith.codes/api/v1/ip/whoami
Response 200 OK
{
"ip": "203.0.113.42",
"geo": {
"ipAddress": "203.0.113.42",
"continentCode": "EU",
"continentName": "Europe",
"countryCode": "GB",
"countryName": "United Kingdom",
"isInEuropeanUnion": false,
"subdivisionCode": "ENG",
"subdivisionName": "England",
"cityName": "London",
"postalCode": "EC1A",
"latitude": 51.5164,
"longitude": -0.093,
"accuracyRadius": 20,
"timeZone": "Europe/London",
"asn": 64496,
"asnOrganization": "Example Broadband Ltd"
},
"user_agent": {
"raw": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36",
"browser": "Chrome",
"browser_version": "154.0.0.0",
"platform": "Windows",
"platform_version": "10.0",
"device_type": "desktop",
"is_mobile": false,
"is_bot": false
}
}