Skip to main content
The country a player connects from, as a two-letter ISO code. A game never gets the region, city or address. Authentication covers each credential, and errors covers the JSON error body.

Read the player’s country

GET https://api.opengame.gg/v1/geo Authentication: None. Read from the connection where it reaches OpenGame. Country only: never region, city or address. Not cached and not rate limited. A browser can read it only from a live game host or a live private preview.

Request

cURL

Response 200

An ISO country code, or null.

Errors