---
title: "Find City"
description: "Use GET /countries/{country}/cities/{city} to retrieve one city within a country."
canonical: https://docs.ordering.co/api-reference/guides/get-city/
---

# Find City

> **API operation:** [Open the endpoint in Scalar](https://docs.ordering.co/api-reference/#tag/countries/GET/countries/{country}/cities/{city})

Use `GET /countries/{country}/cities/{city}` to retrieve one city within a country. The operation is `City.find`.

Requests may use an API key or bearer token. Role levels `0` and `1` can access this operation, which matches the city against both route identifiers. The optional `params` query controls the `country`, `administrator`, and `options` relationships.

## Legacy SDK example

```javascript
const response = await ordering.countries(countryId).cities(cityId).get()
```

The SDK helper name is `cities()`. SDK helpers can vary by version, so check the package and version you use.

## OpenAPI reference

**Operation:** `GET /countries/{country}/cities/{city}`

**Path parameters**

| Name      | Type    | Required | Description |
| --------- | ------- | -------- | ----------- |
| `country` | integer | Yes      | —           |
| `city`    | integer | Yes      | —           |

**Query parameters**

| Name     | Type   | Required | Description                                                                                                                |
| -------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------- |
| `params` | string | No       | Comma-separated list of fields. It is intersected with the model’s $fillable; an empty or invalid list returns all fields. |

**Responses**

| Code | Description                           |
| ---- | ------------------------------------- |
| 200  | OK (Envelope)                         |
| 400  | Bad Request (ErrorResponse)           |
| 401  | Unauthorized                          |
| 404  | Not Found                             |
| 429  | Too Many Requests (ErrorResponse)     |
| 500  | Internal Server Error (ErrorResponse) |
| 503  | Service Unavailable (ErrorResponse)   |

[Open this operation in the API reference](https://docs.ordering.co/api-reference/#tag/countries/GET/countries/{country}/cities/{city})
