Morocco News API

There are 21 news sources being monitored from Morocco. Daily, over 427 news items are added.

The country code for Morocco is ma. For every API endpoint that asks for source-country, just put ma to retrieve news from Morocco. And the language code of Morocco is ar, use this two-letter code for the language parameter.

Historically, you can search news from Morocco starting January 1st, 2022.



API Examples of how to work with news from Morocco

Here are some examples how you can get breaking news, search by category, and get front pages for Morocco. Be sure to check out the in-depth documentation as each API offers many different parameters to explore.

Get today's breaking news from Morocco
source-country=ma
GET
https://api.worldnewsapi.com/top-news?source-country=ma
See the full documentation of how to get news headlines.
Get live news from Morocco
source-country=ma
GET
https://api.worldnewsapi.com/search-news?source-country=ma
See the full documentation of how to search news.
Get news from Morocco in the last week for the category politics
source-country=ma categories=politics
GET
https://api.worldnewsapi.com/search-news?source-country=ma&categories=politics
See the full documentation of how to search news by category.
Get front pages from news papers in Morocco
source-country=ma date=2024-07-09
GET
https://api.worldnewsapi.com/retrieve-front-page?source-country=ma&date=2024-07-09
See the full documentation of how to get newspaper front pages.

If a news media outlet from Morocco is missing, please reach out via our Discord or by email.

Looking for new from another country? Select a country from the list below: