# Check IP address location details

> `GET /api/addon/ip`: Addon endpoint of the Rone Arena API.

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.

## Request

`GET https://arena.rone.dev/api/addon/ip`

### Example

```bash
curl -X GET 'https://arena.rone.dev/api/addon/ip'
```

## Example response

```json
{
  "code": 0,
  "data": {
    "city": "Yogyakarta",
    "country": "id",
    "lang": "en",
    "state": "Yogyakarta"
  },
  "msg": "ok"
}
```

## Links

- Try it in the playground: https://arena.rone.dev/web/addon/ip
- Addon endpoints: https://arena.rone.dev/web/addon.md
- OpenAPI schema: https://arena.rone.dev/api/openapi.json
