[
{
"id": 1,
"category": "World"
},
{
"id": 2,
"category": "Politics"
},
{
"id": 3,
"category": "Sport"
},
{
"id": 4,
"category": "Economy"
},
{
"id": 5,
"category": "Science"
},
{
"id": 6,
"category": "Entertainment"
},
{
"id": 7,
"category": "Video"
},
{
"id": 8,
"category": "Technology"
},
{
"id": 9,
"category": "Health"
},
{
"id": 10,
"category": "Football"
},
{
"id": 11,
"category": "Family"
},
{
"id": 12,
"category": "USA"
},
{
"id": 13,
"category": "UK"
},
{
"id": 14,
"category": "Travel"
},
{
"id": 15,
"category": "Food"
},
{
"id": 16,
"category": "Cars"
},
{
"id": 17,
"category": "Culture"
}
]
curl --location --request GET 'https://zylalabs.com/api/6793/moka+news+api/10200/categories' --header 'Authorization: Bearer YOUR_API_KEY'
[
{
"title": "Non-league team handed league title despite finishing THIRD… a whole month after season finished",
"link": "https://www.thesun.co.uk/sport/35079630/non-league-whyteleafe-league-title-premier-south/",
"image": "https://www.thesun.co.uk/wp-content/uploads/2025/05/makes-another-tackle-isuzu-fa-994185581.jpg",
"pubDate": "Thu, 22 May 2025 17:18:07 +0000",
"source": "thesun",
"category": "Sport"
},
{
"title": "Luka Modric tipped to make ‘tremendous, Championship transfer after Real Madrid exit",
"link": "https://www.thesun.co.uk/sport/35079067/luka-modric-transfer-swansea-real-madrid-exit/",
"image": "https://www.thesun.co.uk/wp-content/uploads/2025/05/10-luka-modric-celebrates-scoring-997207056.jpg",
"pubDate": "Thu, 22 May 2025 17:12:44 +0000",
"source": "thesun",
"category": "Sport"
}
]
curl --location --request GET 'https://zylalabs.com/api/6793/moka+news+api/10201/bycategory?cat=Sport' --header 'Authorization: Bearer YOUR_API_KEY'
[
{
"title": "Crisis as UK beaches face jellyfish invasion – 'venomous to humans'",
"link": "https://www.express.co.uk/news/uk/2058980/crisis-uk-beaches-jellyfish-invasion",
"image": "https://cdn.images.express.co.uk/img/dynamic/1/590x/2058980_1.jpg",
"pubDate": "Thu, 22 May 2025 17:24:00 +0100",
"source": "dexpress",
"category": "UK"
},
{
"title": "Boy, 15, dies after collapsing on football pitch as hospital 'mistake' revealed",
"link": "https://www.express.co.uk/news/uk/2059013/boy-15-dies-collapsing-playing",
"image": "https://cdn.images.express.co.uk/img/dynamic/1/590x/2059013_1.jpg",
"pubDate": "Thu, 22 May 2025 17:37:00 +0100",
"source": "dexpress",
"category": "UK"
}
]
curl --location --request GET 'https://zylalabs.com/api/6793/moka+news+api/10202/recent50' --header 'Authorization: Bearer YOUR_API_KEY'
[
{
"title": "Crisis as UK beaches face jellyfish invasion – 'venomous to humans'",
"link": "https://www.express.co.uk/news/uk/2058980/crisis-uk-beaches-jellyfish-invasion",
"image": "https://cdn.images.express.co.uk/img/dynamic/1/590x/2058980_1.jpg",
"pubDate": "Thu, 22 May 2025 17:24:00 +0100",
"source": "dexpress",
"category": "UK"
},
{
"title": "Boy, 15, dies after collapsing on football pitch as hospital 'mistake' revealed",
"link": "https://www.express.co.uk/news/uk/2059013/boy-15-dies-collapsing-playing",
"image": "https://cdn.images.express.co.uk/img/dynamic/1/590x/2059013_1.jpg",
"pubDate": "Thu, 22 May 2025 17:37:00 +0100",
"source": "dexpress",
"category": "UK"
}
]
curl --location --request GET 'https://zylalabs.com/api/6793/moka+news+api/10203/recent100' --header 'Authorization: Bearer YOUR_API_KEY'
[
{
"id": 1,
"sourceName": "CNN",
"source": "cnn"
},
{
"id": 2,
"sourceName": "BBC",
"source": "bbc"
}
]
curl --location --request GET 'https://zylalabs.com/api/6793/moka+news+api/10204/sources+list' --header 'Authorization: Bearer YOUR_API_KEY'
[
{
"title": "Sluggish sloth's secrets of success revealed in new study",
"link": "https://www.bbc.com/news/articles/cqj774l548po#0",
"image": "",
"pubDate": "Thu, 22 May 2025 17:07:32 GMT",
"source": "bbc",
"category": "Science"
},
{
"title": "'Multiple fatalities' after small plane crash in San Diego neighbourhood",
"link": "https://www.bbc.com/news/articles/c0mr844xl42o#0",
"image": "",
"pubDate": "Thu, 22 May 2025 16:53:14 GMT",
"source": "bbc",
"category": "World"
}
]
curl --location --request GET 'https://zylalabs.com/api/6793/moka+news+api/10205/bysource?source=bbc' --header 'Authorization: Bearer YOUR_API_KEY'
[
{
"title": "Donate now to a Top 10 CNN Hero",
"link": "https://www.cnn.com/videos/tv/2021/11/26/how-to-donate-matching-cnnheroes.cnn",
"image": "https://cdn.cnn.com/cnnnext/dam/assets/211126161149-how-to-donate-matching-cnnheroes-00000000-super-169.png",
"pubDate": "Fri, 26 Nov 2021 21:14:02 GMT",
"source": "cnn",
"category": "World"
},
{
"title": "CNN Heroes: Sharing the Spotlight",
"link": "https://www.cnn.com/specials/cnn-heroes-salutes-special",
"image": "https://cdn.cnn.com/cnnnext/dam/assets/221209134855-sharing-the-spotlight-card-cnnheroes-super-169.jpg",
"pubDate": "Sat, 10 Dec 2022 19:39:29 GMT",
"source": "cnn",
"category": "World"
}
]
curl --location --request GET 'https://zylalabs.com/api/6793/moka+news+api/10206/filterby?source=cnn&cat=World' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Moka News API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
# 📡 Moka News API
Moka News API is a powerful, real-time news scraping service that aggregates the latest headlines from over 30 international news sources. It allows you to query news by **categories**, **sources**, or both—making it ideal for news apps, dashboards, or content feeds.
> **Live news updates every minute** | JSON format | Built for developers
## 🌍The Sources List :
- CNN
- BBC
- Yahoo
- The New York Times
- Fox News
- The Guardian
- Washington Post
- ABC News
- USA Today
- Daily Mail
- Russia Today
- CNBC
- Daily Expres
- The Sun
- The Independent
- CBC
- Daily Mirror
- Time
- Euro News
- France 24
- NBC News
- CBS News
- BuzzFeed
- Business Insider
- NPR
- Los Angeles Times
- New York Post
- Mashable
- SFGATE
- Slate Magazine
Each endpoint returns JSON data related to news articles. For example, the `GET byCategory` endpoint provides recent news articles categorized by topics like Sports or Politics, while `GET Sources List` returns a list of available news sources.
Key fields include `title`, `link`, `image`, `pubDate`, `source`, and `category`. For instance, in the `GET Recent50` response, each article includes these fields to provide comprehensive information about the news item.
The API provides various information types, including news categories, recent articles, and sources. For example, `GET Categories` lists available news categories, while `GET Recent100` returns the latest 100 news articles.
Response data is organized as an array of objects, each representing a news article or category. Each object contains relevant fields, such as `title` and `link`, making it easy to parse and display in applications.
The data is sourced from over 30 reputable news outlets, including CNN, BBC, and The Guardian. This diverse range ensures a broad perspective on global news events.
Typical use cases include integrating live news feeds into applications, creating news dashboards, or developing content aggregation platforms. The API's real-time updates make it suitable for dynamic news displays.
Users can customize requests by specifying parameters such as `category` or `source` in endpoints like `GET byCategory` or `GET bySource`. This allows for tailored news retrieval based on user interests.
Users can utilize the returned data by displaying article titles and links in their applications, creating alerts for specific categories, or analyzing trends based on publication dates and sources.
Each endpoint allows for specific parameters to refine data retrieval. For example, `GET byCategory` requires a `category` parameter, while `GET bySource` needs a `source` parameter. The `GET filterBy` endpoint combines both category and source for more targeted results.
The Moka News API covers a wide range of categories, including World, Politics, Sports, Science, and more. It aggregates news from over 30 international sources, ensuring diverse coverage of global events.
Users should implement checks for empty arrays in responses. If an endpoint returns no articles, the application can display a message indicating no news is available for the specified criteria, enhancing user experience.
Key fields include `title` (article headline), `link` (URL to the article), `image` (thumbnail or main image), `pubDate` (publication date), `source` (news outlet), and `category` (news topic). Understanding these fields helps in effectively displaying news content.
Data accuracy is maintained by sourcing news from reputable outlets and continuously updating the API to reflect the latest articles. Regular checks ensure that the information remains current and reliable.
The API implements quality checks by aggregating news from established sources and monitoring for broken links or outdated articles. This ensures that users receive high-quality, relevant news content.
Responses typically include an array of articles, each structured with fields like `title`, `link`, and `pubDate`. Users can expect consistent formatting, making it easier to parse and display the data in applications.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund