Skip to content

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.

GET
https://api.worldnewsapi.com/feed.rss
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
s r q
https://www.bbc.com/The url of the site for which an RSS feed should be created.
extract-news
b o q
trueWhether to extract the news for each link instead of just returning the link.
api-key
s r q
abcd1234Your 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/xml
  • X-API-Quota-Request: The number of points used by the request
  • X-API-Quota-Used: The number of points used in total today
  • X-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.

GET https://api.worldnewsapi.com/feed.rss?url=https://www.aljazeera.com/europe/
curl -X GET 'https://api.worldnewsapi.com/feed.rss?url=https://www.aljazeera.com/europe/' \
  -H 'x-api-key: myapikey'
Prefer a client library? The SDKs wrap this call in 21 languages as newsWebsiteToRSSFeed, named in each language's style (news_website_to_rss_feed in Python and Ruby).

Example response

200 OKapplication/xml
<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.

Points

Quotas

Calling this endpoint costs
1 point
, plus
0.5 points
per item if extract-news parameter is set to true.

Plans and points

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.

Rate limiting and quotas in detail

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.

Questions? Need help? Ask away