IP Geolocation API
Locates any IPv4 or IPv6 address from hoshime's own database merged from open data: country with a confidence score, city, coordinates, time zone, ASN and ISP, hosting provider, and VPN, relay and Tor flags.
View as Markdown| GET | /ipgeo/locate | Everything known about a public IPv4 or IPv6 address from hoshime's own merged database: country, region, city, coordinates, time zone and UTC offset, how many sources agree on the country, ASN, ISP or network name, domain and prefix, reverse DNS hostname, registry and allocation date, cloud or hosting provider with region, and hosting, VPN, iCloud Private Relay and Tor flags. No third-party API is called. |
| GET | /ipgeo/locateBatch | Bulk IP geolocation: the locate record of up to 100 public IPv4 or IPv6 addresses in one call, from hoshime's own merged database. |
| GET | /ipgeo/sources | The open datasets behind ipgeo locate, with their license, required attribution, size and when each was last updated. |
locate
/v1/ipgeo/locateEverything known about a public IPv4 or IPv6 address from hoshime's own merged database: country, region, city, coordinates, time zone and UTC offset, how many sources agree on the country, ASN, ISP or network name, domain and prefix, reverse DNS hostname, registry and allocation date, cloud or hosting provider with region, and hosting, VPN, iCloud Private Relay and Tor flags. No third-party API is called.
Parameters
ipstring required | Public IPv4 or IPv6 address. e.g. 8.8.8.8 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
46 fields
anonymizer | string |
hosting | Hosting | null |
city | string |
countryCode | string |
provider | string |
region | string |
service | string |
hostname | string |
ip | string |
isHosting | boolean |
isRelay | boolean |
isTor | boolean |
isVpn | boolean |
location | Location | null |
accuracy | string |
city | string |
continent | string |
continentCode | string |
country | string |
countryCode | string |
countryConfidence | number (double) |
isEu | boolean |
latitude | number (double) | null |
longitude | number (double) | null |
region | string |
timezone | string |
utcOffset | string |
network | Network | null |
asn | integer (int64) |
domain | string |
handle | string |
name | string |
prefix | string |
registry | Registry | null |
allocatedDate | string |
countryCode | string |
name | string |
status | string |
sources | Credit[] |
attribution | string |
license | string |
licenseUrl | string |
name | string |
title | string |
url | string |
version | any |
curl "https://api.hoshime.com/v1/ipgeo/locate?ip=8.8.8.8" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ipgeo/locate?ip=8.8.8.8", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ipgeo/locate?ip=8.8.8.8", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "anonymizer": "…", "hosting": { "city": "…", "countryCode": "…", "provider": "…", "region": "…", "service": "…" }, "hostname": "…", "ip": "…", "isHosting": false, "isRelay": false, "isTor": false, "isVpn": false, "location": { "accuracy": "…", "city": "…", "continent": "…", "continentCode": "…", "country": "…", "countryCode": "…", "countryConfidence": 0, "isEu": false, "latitude": null, "longitude": null, "region": "…", "timezone": "…", "utcOffset": "…" }, "network": { "asn": 0, "domain": "…", "handle": "…", "name": "…", "prefix": "…" }, "registry": { "allocatedDate": "…", "countryCode": "…", "name": "…", "status": "…" }, "sources": [ { "attribution": "…", "license": "…", "licenseUrl": "https://…", "name": "…", "title": "…", "url": "https://…" } ], "version": null }, "meta": { "cached": false, "endpoint": "locate", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "ipgeo", "requestId": "req_2Xb9kQ…", "units": 1 } }
locateBatch
/v1/ipgeo/locateBatchBulk IP geolocation: the locate record of up to 100 public IPv4 or IPv6 addresses in one call, from hoshime's own merged database.
Parameters
ipsstring required | Comma-separated public IPv4 or IPv6 addresses, up to 100, such as 8.8.8.8,1.1.1.1,2606:4700:4700::1111. e.g. 8.8.8.8,1.1.1.1,2606:4700:4700::1111 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
46 fields
anonymizer | string |
hosting | Hosting | null |
city | string |
countryCode | string |
provider | string |
region | string |
service | string |
hostname | string |
ip | string |
isHosting | boolean |
isRelay | boolean |
isTor | boolean |
isVpn | boolean |
location | Location | null |
accuracy | string |
city | string |
continent | string |
continentCode | string |
country | string |
countryCode | string |
countryConfidence | number (double) |
isEu | boolean |
latitude | number (double) | null |
longitude | number (double) | null |
region | string |
timezone | string |
utcOffset | string |
network | Network | null |
asn | integer (int64) |
domain | string |
handle | string |
name | string |
prefix | string |
registry | Registry | null |
allocatedDate | string |
countryCode | string |
name | string |
status | string |
sources | Credit[] |
attribution | string |
license | string |
licenseUrl | string |
name | string |
title | string |
url | string |
version | any |
curl "https://api.hoshime.com/v1/ipgeo/locateBatch?ips=8.8.8.8%2C1.1.1.1%2C2606%3A4700%3A4700%3A%3A1111" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ipgeo/locateBatch?ips=8.8.8.8%2C1.1.1.1%2C2606%3A4700%3A4700%3A%3A1111", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ipgeo/locateBatch?ips=8.8.8.8%2C1.1.1.1%2C2606%3A4700%3A4700%3A%3A1111", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "anonymizer": "…", "hosting": null, "hostname": "…", "ip": "…", "isHosting": false, "isRelay": false, "isTor": false, "isVpn": false, "location": null, "network": null, "registry": null, "sources": [ { "attribution": null, "license": null, "licenseUrl": null, "name": null, "title": null, "url": null } ], "version": null } ], "meta": { "cached": false, "endpoint": "locateBatch", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ipgeo", "requestId": "req_2Xb9kQ…", "units": 5 } }
sources
/v1/ipgeo/sourcesThe open datasets behind ipgeo locate, with their license, required attribution, size and when each was last updated.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
attribution | string |
license | string |
licenseUrl | string |
loaded | boolean |
name | string |
networkCount | any |
refreshHours | any |
title | string |
updatedAt | string |
url | string |
curl "https://api.hoshime.com/v1/ipgeo/sources" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ipgeo/sources", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ipgeo/sources", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "attribution": "…", "license": "…", "licenseUrl": "https://…", "loaded": false, "name": "…", "networkCount": null, "refreshHours": null, "title": "…", "updatedAt": "2026-11-06T09:41:00Z", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "sources", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ipgeo", "requestId": "req_2Xb9kQ…", "units": 1 } }