Website to RSS Feed API: an RSS feed for any news site
Turn a news website into an RSS feed. Any page of a news website can be turned into an RSS feed: provide the URL to the page and the API will return an RSS feed with the latest news from that page.
Set extract-news to true to get the full text of each article in the feed.
- Cost
- 1 point, plus 0.5 points per item if extract-news parameter is set to true
- Returns
- An RSS 2.0 feed (XML)
- Auth
- api-key or x-api-key
- Free plan
- Yes
Parameters
url and api-key (or the x-api-key header) are required. Most RSS readers can't send headers, so feed URLs usually carry the key as api-key.
Parameters
| Name | Example | Description |
|---|---|---|
url | https://www.bbc.com/ | The url of the site for which an RSS feed should be created. |
extract-news | true | Whether to extract the news for each link instead of just returning the link. |
api-key | abcd1234 | Your API key. |
Response headers
Every response tells you what the request cost and how many points are left today.
Headers
Response Headers:
Content-Type: application/xmlX-API-Quota-Request: The number of points used by the requestX-API-Quota-Used: The number of points used in total todayX-API-Quota-Left: The number of points left today (depends on your plan)
The daily count resets at midnight UTC.
Example request
The Europe section of Al Jazeera as an RSS feed. Sign in and the examples use your own key.
curl -X GET 'https://api.worldnewsapi.com/feed.rss?url=https://www.aljazeera.com/europe/' \
-H 'x-api-key: myapikey' newsWebsiteToRSSFeed, named in each language's style (news_website_to_rss_feed in Python and Ruby).Example response
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Europe News | Today's latest from Al Jazeera</title>
<link>https://www.aljazeera.com/europe/</link>
<lastBuildDate>Sun, 08 Oct 2023 23:16:44 +0000</lastBuildDate>
<pubDate>Sun, 08 Oct 2023 23:16:44 +0000</pubDate>
<item>
<title>Martinelli Fires Arsenal To Late 1 0 Win Over Manchester City</title>
<link>https://www.aljazeera.com/sports/2023/10/8/martinelli-fires-arsenal-to-late-1-0-win-over-manchester-city</link>
<guid isPermaLink="true">https://www.aljazeera.com/sports/2023/10/8/martinelli-fires-arsenal-to-late-1-0-win-over-manchester-city</guid>
<atom:link href="https://www.aljazeera.com/sports/2023/10/8/martinelli-fires-arsenal-to-late-1-0-win-over-manchester-city"/>
</item>
...
</channel>
</rss>
Keep your feed URL private
An RSS reader calls the feed URL with your API key in it, so anyone who has that URL can use up your points and, on a paid plan, run up overage charges. Use a self-hosted reader or a desktop reader without a cloud sync account: a cloud reader, or a desktop app that syncs through one, stores the URL, key included, on its servers. A reader that can send request headers can pass the key as x-api-key instead (see Authentication), which keeps it out of the URL; a cloud reader still stores it on its servers. If a feed URL leaks, use Generate New API Key in your console. The old key then stops working in every app that uses it, so put the new key into each of them.
RSS feeds for news outlets
Ready-made feed requests for 20 major news outlets, each with the page to use as url:
- CNN RSS feed
- Fox News RSS feed
- BBC RSS feed
- Reuters RSS feed
- The Guardian RSS feed
- The New York Times RSS feed
- Al Jazeera RSS feed
- NBC News RSS feed
- ABC News RSS feed
- CBS News RSS feed
- Bloomberg RSS feed
- CNBC RSS feed
- The Washington Post RSS feed
- NPR RSS feed
- AP News RSS feed
- The Wall Street Journal RSS feed
- Sky News RSS feed
- Deutsche Welle RSS feed
- France 24 RSS feed
- The Times of India RSS feed
Points
Quotas
extract-news parameter is set to true.Rate limits and errors
Requests per plan
- Free
- 1 per second, 1 at a time
- Starter (console offer)
- 2 per second, 1 at a time
- Reporter
- 2 per second, 5 at a time
- Journalist
- 10 per second, 10 at a time
- Editor
- 20 per second, 20 at a time
Error codes
402Daily points used up on the free plan. They reset at midnight UTC.
429Too many requests per second, or too many at the same time.
Frequently asked questions
How does the Website to RSS Feed endpoint work?
You provide a website URL, and the endpoint generates an RSS feed containing the latest news articles found on that website. This allows you to monitor any news source via a standard RSS reader.
Can I convert any website into an RSS feed?
The endpoint works best with news websites and blogs that have regularly updated content with clear article links. Results may vary for non-news websites or sites with complex JavaScript-based navigation.
What format does the RSS feed use?
The endpoint returns a standard RSS 2.0 XML feed that is compatible with all major RSS readers and feed aggregation tools.