Location-Based Services (LBS)
Player Network provides IP-based country/region identification services (LBS) to obtain the corresponding country or region information based on the player's IP.
The data is sourced from IPIP.NET, ensuring data accuracy as much as possible.
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
| SDK | Documentation Link |
|---|---|
| Unity | Get Country Information Data (RequestIPInfo) |
| Unreal Engine | Get Country Information Data (RequestIPInfo) |
| Web (JavaScript SDK) | queryMyRegion: Get Country Information Data |