# Find job location

`GET https://api.twittrapi.com/jobs/find-location/{term}`

Location IDs for the jobLocationId filter of job search. Returns up to 10 matches.

HTML page: https://www.twittrapi.com/docs/reference/jobs-find-location-term

## Parameters

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| `term` | path | string | yes |  | Place name, URL-encoded. |

Every read endpoint also accepts `format=simple` (or the header `X-Response-Format: simple`) for compact, flat JSON with a fixed schema. Same price.

## Response

Raw JSON of X's LocationSelectorQuery.

With `format=simple`: Collection of {id, name} location suggestions (no cursor).

## Errors

| Status | When |
| --- | --- |

Shared errors (401 missing key, 402 no balance, 429 rate limit, 5xx) are listed on https://www.twittrapi.com/docs/helpful-infos/error-handling. Calls that fail with 400, 408, 409 or a 5xx error are refunded.

## Example request

curl:

```bash
curl 'https://api.twittrapi.com/jobs/find-location/Berlin' \
  --header 'X-API-KEY: YOUR_API_KEY'
```

Python:

```python
import httpx

# No SDK method for this endpoint yet, so this is a plain HTTP call.
resp = httpx.get(
    "https://api.twittrapi.com/jobs/find-location/Berlin",
    headers={"X-API-KEY": "YOUR_API_KEY"},
    timeout=60,
)
data = resp.json()
```

Node.js:

```js
import { TwittrAPI } from "twittrapi";

const client = new TwittrAPI({ apiKey: process.env.TWITTRAPI_API_KEY });
// No wrapper method for this endpoint yet; client.get() sends the same authenticated GET.
const data = await client.get({
  path: "/jobs/find-location/Berlin",
});
```

RapidAPI:

```bash
curl 'https://twitter-aio.p.rapidapi.com/jobs/find-location/Berlin' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
  --header 'x-rapidapi-host: twitter-aio.p.rapidapi.com'
```

## Example response

Shortened: arrays keep their first items and long strings are cut.

Raw (default):

```json
{
  "data": {
    "location_type_ahead": [
      {
        "display_name": "Land Berlin, DE",
        "location_id": "1720462559101268315"
      },
      "… 2 more"
    ]
  }
}
```

Simple (`format=simple`):

```json
{
  "data": [
    {
      "id": "1720462559101268315",
      "name": "Land Berlin, DE"
    },
    "… 2 more"
  ],
  "nextCursor": null,
  "previousCursor": null,
  "hasNextPage": false
}
```
