Wilayas

Get a wilaya

One wilaya by its two-digit code, one Tunisian governorate (country=TN) or one Moroccan region (country=MA).

get/wilayas/{code}

Request

  • Base URL: https://www.upgrowth.dz/api/v1
  • URL: https://www.upgrowth.dz/api/v1/wilayas/{code}
  • Auth: one of:
    • none
    • HTTP bearer

Path parameters

codestring required

Wilaya code, two digits, for example 16 for Alger or 31 for Oran. For Tunisia (country TN) it is the governorate code, two digits, the number of its ISO 3166-2 code, for example 11 for Tunis (TN-11); TN-11 is accepted too. For Morocco (country MA) it is the region code, two digits, the number of its ISO 3166-2 code, for example 06 for Casablanca-Settat (MA-06); MA-06 is accepted too. Find codes with list_wilayas.

Query parameters

lang'fr' | 'ar' | 'en'

Language of the labels, notes and attribution text in the answer: fr (French, the default), ar (Arabic) or en (English).

countrystring

Country of the data, an ISO 3166-1 alpha-2 code in any letter case: DZ for Algeria, the default, TN for Tunisia or MA for Morocco. Only live countries answer: list_countries shows them and their datasets. Any other country, or a dataset the country does not have (for example the activity nomenclature for Morocco), returns country_not_available. Without an API key only DZ answers: TN and MA return key_required.

Response

The data, with its meta.

Changes

No recorded changes to this operation across all 1 revision of this API.