---
title: "Glassdoor API: Locations Search | Perceptlayer"
description: "Locations Search from Glassdoor as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/glassdoor/locations-search
---

[APIs](https://perceptlayer.com/apis) / [Glassdoor](https://perceptlayer.com/apis/glassdoor) / Locations Search

# Glassdoor: Locations Search

Locations Search from Glassdoor as JSON. 1 credit per successful call.

GET `/v1/glassdoor/locations-search`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Required | Up to 100 characters |

## Example request

Glassdoor

GET /v1/glassdoor/locations-search?query=New+York 

```
{
  "success": true,
  "data": {
    "query": "New York",
    "locations": [
      {
        "location_id": 1132348,
        "type": "CITY",
        "name": "New York, NY",
        "long_name": "New York, NY (US)",
        "label": "New York, NY",
        "city": "New York",
        "state": "New York State",
        "state_abbreviation": "NY",
        "country": "United States",
        "country_iso": "US",
        "metro_id": 615,
        "state_id": 428,
        "country_id": 1
      },
      {
        "location_id": 428,
        "type": "STATE",
        "name": "New York State",
        "long_name": "New York State, US",
        "label": "New York State",
        "state": "New York State",
        "state_abbreviation": "NY",
        "country": "United States",
        "country_iso": "US",
        "metro_id": -1,
        "state_id": 428,
        "country_id": 1
      },
      {
        "location_id": 1132913,
        "type": "CITY",
        "name": "New York Mills, NY",
        "long_name": "New York Mills, NY (US)",
        "label": "New York Mills, NY",
        "city": "New York Mills",
        "state": "New York State",
        "state_abbreviation": "NY",
        "country": "United States",
        "country_iso": "US",
        "metro_id": 881,
        "state_id": 428,
        "country_id": 1
      }
    ]
  },
  "meta": {
    "endpoint_family": "location_search"
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded 12 Nov 2026 and shortened.

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

## Response fields

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

| Field | Type |
| --- | --- |
| `location_id` | integer |
| `type` | string |
| `name` | string |
| `long_name` | string |
| `label` | string |
| `city` | string |
| `state` | string |
| `state_abbreviation` | string |
| `country` | string |
| `country_iso` | string |
| `metro_id` | integer |
| `state_id` | integer |
| `country_id` | integer |
