---
title: "OLX India API: Locations | Perceptlayer"
description: "Locations from OLX India as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/olx-in/locations
---

[APIs](https://perceptlayer.com/apis) / [OLX India](https://perceptlayer.com/apis/olx-in) / Locations

# OLX India: Locations

Locations from OLX India as JSON. 1 credit per successful call.

GET `/v1/olx-in/locations`

## Parameters

This endpoint takes no parameters.

## Example request

OLX India

GET /v1/olx-in/locations 

```
{
  "success": true,
  "data": {
    "results": [
      {
        "id": 2007598,
        "name": "Andaman & Nicobar Islands",
        "type": "STATE",
        "parent_id": 1000001,
        "children_count": 13,
        "latitude": 11.66703,
        "longitude": 92.73598
      },
      {
        "id": 2001145,
        "name": "Andhra Pradesh",
        "type": "STATE",
        "parent_id": 1000001,
        "children_count": 294,
        "latitude": 14.75043,
        "longitude": 78.57003
      },
      {
        "id": 2001146,
        "name": "Arunachal Pradesh",
        "type": "STATE",
        "parent_id": 1000001,
        "children_count": 28,
        "latitude": 27.1004,
        "longitude": 93.6166
      }
    ]
  },
  "meta": {
    "endpoint_family": "locations"
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded 30 Nov 2026 and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/olx-in?try=locations#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

Each item in `data.results` has these 7 fields, read from a recorded call that returned 36 items. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `id` | integer |
| `name` | string |
| `type` | string |
| `parent_id` | integer |
| `children_count` | integer |
| `latitude` | number |
| `longitude` | number |
