Morocco flagMorocco 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.


Frequently Asked Questions about Morocco News API

How many news sources does World News API cover in Morocco?

World News API currently monitors 21 news sources from Morocco, adding over 427 news articles daily. Sources include major national outlets, regional newspapers, and online news media.

What API endpoints can I use to get news from Morocco?

You can use the Top News endpoint for breaking headlines, the Search News endpoint to search by keyword or category, and the Front Pages endpoint to retrieve newspaper front pages. Use the country code ma with the source-country parameter.

Can I search historical news articles from Morocco?

Yes, World News API stores news from Morocco starting from January 1st, 2022. Use the earliest-publish-date and latest-publish-date parameters in the Search News endpoint to query historical articles.

What language is news from Morocco available in?

News from Morocco is primarily available in the language code ar. You can filter by language using the language parameter on any search endpoint. World News API supports 86+ languages across all its sources.

Is there a free plan to access Morocco news?

Yes! World News API offers a free plan with 50 daily API points — enough to start building and testing with Morocco news data. Sign up for a free API key to get started. Paid plans start at $39/month for higher volume needs.

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: