This repository has been archived by the owner on Dec 17, 2023. It is now read-only.
forked from plantimals/rsslay
-
-
Notifications
You must be signed in to change notification settings - Fork 12
API
Raul Piraces Alastuey edited this page Feb 7, 2023
·
2 revisions
rsslay
exposes an API to work with it programmatically, so you can automate feed creation and retrieval.
The following operations are available:
- Path:
/api/feed
- Method:
GET
orPOST
- Query params (mandatory):
url
- Example:
GET https://rsslay.nostr.moe/api/feed?url=https://www.engadget.com/rss.xml
- Result:
application/json
- Example result:
{ "PubKey": "1e630062dd55226058224a0a1e9b54e09ac121ed13dd5070758816a9c561aeab", "NPubKey": "npub1re3sqcka253xqkpzfg9pax65uzdvzg0dz0w4qur43qt2n3tp464sswsn92", "Url": "https://www.engadget.com/rss.xml", "Error": false, "ErrorMessage": "", "ErrorCode": 0 }
Example with cURL:
curl --location --request GET \
'https://rsslay.nostr.moe/api/feed?url=https://nitter.moomoo.me/suhail/rss'
Feel free to open an issue, provide feedback in discussions, or fork the repo and open a PR with your contribution!
All kinds of contributions are welcome!
You can also donate for development ⚡: https://getalby.com/p/piraces
You can reach me on nostr npub1ftpy6thgy2354xypal6jd0m37wtsgsvcxljvzje5vskc9cg3a5usexrrtq
Also on the bird site, and Mastodon.