Afghanistan flagAfghanistan News API

There are 28 news sources being monitored from Afghanistan. Daily, over 44 news items are added.

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

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



API Examples of how to work with news from Afghanistan

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

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


Frequently Asked Questions about Afghanistan News API

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

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

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

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 af with the source-country parameter.

Can I search historical news articles from Afghanistan?

Yes, World News API stores news from Afghanistan 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 Afghanistan available in?

News from Afghanistan is primarily available in the language code af. 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 Afghanistan news?

Yes! World News API offers a free plan with 50 daily API points — enough to start building and testing with Afghanistan 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 Afghanistan is missing, please reach out via our Discord or by email.

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