Morocco

Names and codes: GeoNames, CC BY 4.0 · Boundary: Natural Earth, public domain · Refresh date not recorded · Sources and licenses

Codes and identifiers

ISO alpha-2
MA
ISO alpha-3
MAR
ISO numeric
504
FIPS 10-4
MO
GeoNames ID
2542007

Key facts

Capital
Rabat
Area
446,550 km²
Population
36,029,138
Currency
Dirham (MAD)
Calling code
+212
Top-level domain
.ma
Official languages
ar-MA,ber,fr

Continent

Name
Africa
Code
AF
In this dataset
58 countries

Africa in the country atlas

Location

Latitude
28.5
Longitude
-10
Min latitude
21.419971097583428
Min longitude
-17.013743325393165
Max latitude
35.92651914900006
Max longitude
-1.0319994709999492

Boundary

Morocco

The API call behind this page

Request

curl -H "X-API-Key: YOUR_KEY" \
  "https://geosearch.dev/v1/countries/MA?fields=iso_code,iso3_code,name,capital,population,area_sq_km,currency_code,continent_code"

Response

{
  "data": {
    "area_sq_km": 446550,
    "capital": "Rabat",
    "continent_code": "AF",
    "currency_code": "MAD",
    "iso3_code": "MAR",
    "iso_code": "MA",
    "name": "Morocco",
    "population": 36029138
  }
}

Formatted for reading. The API returns the same JSON on one line.

Other endpoints for this country

  • /v1/countries/MA/regions
  • /v1/cities?country=MA
  • /v1/postal-codes?country=MA
  • /v1/timezones?country=MA
Get a free API key

Name in other languages

Arabic
المغرب
Chinese
摩洛哥
English
Morocco
French
Maroc
German
Marokko
Hindi
मोरक्को
Italian
Marocco
Japanese
モロッコ
Korean
모로코
Portuguese
Marrocos
Russian
Марокко
Spanish
Marruecos
Total language variants
148

The API returns any of them with ?lang=.

Time zones

IANA ID UTC offset DST offset
Africa/Casablanca UTC+01:00 UTC+01:00

Postal code format

Format
#####
Pattern
^(\d{5})$

First-level administrative regions

  • Casablanca-Settat
  • Rabat-Salé-Kénitra
  • Marrakesh-Safi
  • Fès-Meknès
  • Tanger-Tetouan-Al Hoceima
  • Souss-Massa
  • Béni Mellal-Khénifra
  • Oriental
  • Drâa-Tafilalet
  • Guelmim-Oued Noun
  • Laâyoune-Sakia El Hamra
  • Dakhla-Oued Ed-Dahab

12 of 12 shown, largest first

Largest cities

City Population
Casablanca 3,665,954
Rabat 1,655,753
Fes 1,191,905
Tangier 1,035,141
Marrakesh 995,871
Salé 972,299
Agadir 698,310
Meknes 568,295
Oujda 539,711
Kenitra 470,949

Coverage in this dataset

Cities
46,946
First-level regions
12
Postal codes
1,325
Name languages
148
Boundary polygon
Yes

What GeoSearch holds for this country in the current dataset. Counts change with each refresh.

Query this data yourself

The free tier includes every endpoint: 5,000 requests a month, no card.