Skip to content

IP Geolocation API

3 endpointsUtilitiesGlobalsocial:read

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/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.
GET/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.
GET/ipgeo/sourcesThe open datasets behind ipgeo locate, with their license, required attribution, size and when each was last updated.

locate

GET/v1/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.

scope social:read1 unit

Parameters

ip
string
required
Public IPv4 or IPv6 address.
e.g. 8.8.8.8
tunnel
string
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.
proxy
string
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.
profileId
string
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
anonymizerstring
hostingHosting | null
citystring
countryCodestring
providerstring
regionstring
servicestring
hostnamestring
ipstring
isHostingboolean
isRelayboolean
isTorboolean
isVpnboolean
locationLocation | null
accuracystring
citystring
continentstring
continentCodestring
countrystring
countryCodestring
countryConfidencenumber (double)
isEuboolean
latitudenumber (double) | null
longitudenumber (double) | null
regionstring
timezonestring
utcOffsetstring
networkNetwork | null
asninteger (int64)
domainstring
handlestring
namestring
prefixstring
registryRegistry | null
allocatedDatestring
countryCodestring
namestring
statusstring
sourcesCredit[]
attributionstring
licensestring
licenseUrlstring
namestring
titlestring
urlstring
versionany
curl "https://api.hoshime.com/v1/ipgeo/locate?ip=8.8.8.8" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/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.

scope social:read5 unitspaginated

Parameters

ips
string
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
tunnel
string
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.
proxy
string
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.
profileId
string
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
anonymizerstring
hostingHosting | null
citystring
countryCodestring
providerstring
regionstring
servicestring
hostnamestring
ipstring
isHostingboolean
isRelayboolean
isTorboolean
isVpnboolean
locationLocation | null
accuracystring
citystring
continentstring
continentCodestring
countrystring
countryCodestring
countryConfidencenumber (double)
isEuboolean
latitudenumber (double) | null
longitudenumber (double) | null
regionstring
timezonestring
utcOffsetstring
networkNetwork | null
asninteger (int64)
domainstring
handlestring
namestring
prefixstring
registryRegistry | null
allocatedDatestring
countryCodestring
namestring
statusstring
sourcesCredit[]
attributionstring
licensestring
licenseUrlstring
namestring
titlestring
urlstring
versionany
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"
200 Response shape
{
  "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

GET/v1/ipgeo/sources

The open datasets behind ipgeo locate, with their license, required attribution, size and when each was last updated.

scope social:read1 unitpaginated

Parameters

tunnel
string
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.
proxy
string
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.
profileId
string
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
attributionstring
licensestring
licenseUrlstring
loadedboolean
namestring
networkCountany
refreshHoursany
titlestring
updatedAtstring
urlstring
curl "https://api.hoshime.com/v1/ipgeo/sources" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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
  }
}
esc
↑↓ move↵ open