Skip to main content

Location-Based Services (LBS)

Player Network provides IP-based country/region identification services (LBS) that obtain the corresponding country or region information based on the player's IP.
Data source (https://www.ipip.net/accuracy.html) ensures data accuracy.

caution
  • Due to data source mechanism limitations, the mapping between IP and region is not 100% accurate and may contain some errors.
  • Under the influence of factors such as network fluctuations, this API may fail to return results.It is not recommended to use this for critical game logic. Please be sure to design reasonable default fallback or backup strategies for failure scenarios.
  • As the IP database updates, the mapping between IP and region will change dynamically.If your business requires a fixed IP-to-region mapping, please contact the Player Network assistant to configure.

SDK Interface Documentation

SDKDocumentation Link
UnityRequestIPInfo: Get Country Information Data
Unreal EngineRequestIPInfo: Get Country Information Data
Web (JavaScript SDK)queryMyRegion: Get Country Information Data