GET /location

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/kalshi/locationCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Geo-IP location of the caller.

Parameters

No parameters documented.

Response

type: object
pagination: none
sample: {
  "country_iso": "str",
  "state_iso": "str",
  "city_name": "str",
  "postal_code": "str"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/kalshi/location"