'How to convert rss to json for medium posts

I am trying to feed my website with my medium posts but I am not able to convert rss to json. So for this, like medium says I am trying to make this call https://api.rss2json.com/v1/api.json?rss_url=https://medium.com/${username} but when I make the call the response is like this:

{
    "status": "error",
    "message": "Cannot download this RSS feed, make sure the Rss URL is correct."
}

So how can I do that? could you give me an example?



Solution 1:[1]

Either follow my answer there that details a bit what would be the best solution to overcome this, otherwise use this workaround: https://www.convertjson.com/cgi-bin/url-to-json.php?callback=loadDataAndRun&url=https://medium.datadriveninvestor.com/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 DarioRega