GET Check IP address location details
/web/addon/ip
Retrieves geographic information associated with a given IP address. No parameters required.
The response includes IP location data:
- code: Response code (e.g., 0).
- msg: Status message (e.g., 'ok').
- data:
- city: City name (e.g., 'Yogyakarta').
- state: State or region (e.g., 'Yogyakarta').
- country: Country code (e.g., 'id').
- lang: Language code (e.g., 'en').
This endpoint is useful for:
- Identifying approximate geographic location of an IP address.
- Supporting analytics and personalization.
- Performing security checks and contextual validation.