Create a Subscription

This API Endpoint allows you to subscribe to any RSS, ATOM or JSON-Feed and get a Webhook whenever there is a new item in the Feed. Learn more about subscribing to Feeds.

Tutorial: How to subscribe to an RSS Feed with our API

Endpoint

https://api.rssapi.net/v1/apikey/subscribe

Parameters

  • url string required
    • The URL of a RSS, ATOM or JSON-Feed
  • info string optional
    • Optional info associated with this subscription (useful for matching a subscription with an item in your system)

Example

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

cURL (replace apikey with your API Key):

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

Response:

{
  "ok": true,
  "result": {
    "status": "subscribed",
    "subscription_id": "22946",
    "feed_type": "rss",
    "webhook_url": "https://example.org/webhook",
    "url": "https://www.nasa.gov/rss/dyn/breaking_news.rss",
    "info": ""
  }
}