RSS API Blog

How to convert an RSS Feed to JSON via API

March 11, 2022 · 2 min read

The goal of this article is to learn how to convert any RSS Feed into the JSON format via an easy-to-use REST API.

Many websites and blogs provide a so-called RSS Feed, which contains all recent articles formatted to be consumed and parsed automatically via software. RSS Feeds are written in XML, which can be a bit tricky to parse in your code. That's why many developers prefer the JSON format, which is similar to XML, but easier to parse in most cases.

While there are different options to convert an RSS Feed to JSON, one of the easiest ways is by using an API.

Convert RSS Feeds via API

For this tutorial, we'll use the API provided by rssapi.net. It can handle a variety of different RSS Feed standards and is super-fast. You can convert any RSS Feed by calling this API endpoint:

https://api.rssapi.net/v1/apikey/get?url=https://www.nasa.gov/rss/dyn/breaking_news.rss

Just replace the above RSS Feed URL with the link of the RSS Feed you want to convert to JSON.

Replace the apikey in the example above with your own API Key. You can get an API Key by signing up for rssapi.net and creating an "Application".

When you call the above API endpoint, you'll receive an easy-to-parse JSON response which contains all the data of the RSS Feed: The title, description and all entries of the feed.

There is a lot more you can do with this API - I highly recommend checking out the API Documentation.


I hope this article helped you get an understanding of how you can convert RSS Feeds into JSON. If you have any questions or specific requirements, please contact us!


About RSS API
RSS API allows you to easily parse and subscribe to RSS Feeds via an easy-to-use API. Learn more on rssapi.net.