Get the social contributions of a country
get_social_contributionsGet the social contributions and payroll levies in a country in 2026, each with its base, its legal source and the official page it was read on. Algeria (DZ, the default country): the CNAS social security contribution on salaries (34.5 %: 25 % employer, 9 % employee and 0.5 % social works fund, with its split by branch; unemployment insurance and early retirement are branches inside that rate, not separate contributions), five special categories of workers (home workers, people employed by private individuals, artists and authors, parking attendants, fishing crews), and the CASNOS contribution of the self-employed with its rate, its base, its floor and ceiling (rule of executive decree 26-257, published 23 July 2026) and the auto-entrepreneur flat option. The Algerian list is not complete: the other categories of decree 85-34, journalists paid by the task, professional sports clubs and the CACOBATPH are not in it (see the note of cnas_general_regime), so never say a contribution does not exist because it is missing here: search the Journal officiel. Tunisia (TN): the social security (CNSS) contribution with its employer and employee shares, the work accident range, the complementary pension regime and the payroll levies (vocational training tax TFP and housing fund contribution FOPROLOS). Morocco (MA): the CNSS contributions (family allowances, short-term and long-term social benefits with their salary ceiling), the compulsory health insurance (AMO) and the vocational training tax (TFP), with the employer and employee shares. For an Algerian estimate use calculate_casnos and calculate_ifu. Tunisia and Morocco need an API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 (for example the activity nomenclature for Morocco), returns country_not_available. Without an API key only DZ answers: TN and MA return key_required. | DZ |