Skip to main content
GET
/
cities
Retrieve a list of cities.
curl --request GET \
  --url https://b2b-api.markoub.dev/cities \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 1,
    "name": "Rabat",
    "latitude": "34.0132",
    "longitude": "-6.8332"
  }
]

Authorizations

Authorization
string
header
required

Default authentication mechanism

Query Parameters

lang
enum<string> | null
default:fr

Whether to return the cities in Arabic, French or English. Defaults to French if not provided.

Available options:
ar,
fr,
en
Example:

"fr"

Response

A list of cities

id
number
required

The unique identifier of the city.

Example:

1

name
string
required

The name of the city.

Example:

"Rabat"

latitude
string
required

The latitude of the city.

Example:

"34.0132"

longitude
string
required

The longitude of the city.

Example:

"-6.8332"