Get a wilaya or governorate
get_wilayaGet one Algerian wilaya by its two-digit code, for example 16 for Alger: its names, capital, region, population and the details of its local CNRC (trade register) and CASNOS (social security of the self-employed) offices. For Tunisia (country TN) pass the governorate code, for example 11 for Tunis: its ISO 3166-2 code, national statistics (INS) code, names in the three languages and chief town. For Morocco (country MA) pass the region code, for example 06 for Casablanca-Settat: its ISO 3166-2 code, names in the three languages and chief town. Returns an error when the code is unknown. Use list_wilayas to see the codes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | 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. | |
| lang | No | Language of the labels, notes and attribution text in the answer: fr (French, the default), ar (Arabic) or en (English). | fr |
| country | No | 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, returns country_not_available. | DZ |