Embed Posts
You can embed your most recent posts from superblog in any webpage or app.
This is available on ALL plans.How to
- You can fetch the posts data by sending a simple
GETrequest to your superblog's RSS feed xml or json. - Once the data is retrieved from fetch request, then you can render the posts to match your UI.
RSS Feed URL
If example.com/blog is your superblog’s URL then your RSS feed is: https://example.com/blog/rss.xml
If blog.example.com is your superblog’s URL then your RSS feed is: https://blog.example.com/rss.xml
RSS Feed JSON API
If example.com/blog is your superblog’s URL then your RSS feed JSON is: https://example.com/blog/rss.json
If blog.example.com is your superblog’s URL then your RSS feed JSON is: https://blog.example.com/rss.json
You can do a GET request and render the response data (most recent posts) on mobile or website. It is RSS 2.0 spec-compliant and hence can be used with any other software too. for example zapier or zoho workflow.
API Example
NodeJS Code
// replace it with your superblog rss json
const url ="https://superblog.ai/blog/rss.json";
const res =awaitfetch(url);
const data =await res.json();
Python Code
import requests
// replace it with your superblog rss json
url ="https://superblog.ai/blog/rss.json"
res = requests.get(url)
data = res.json()
Response Data Sample
{
"status":"ok",
"feed":{
"title":"blog name",
"link":"https://example.com",
"image":"https://example.com/image.jpg"
},
"items":[
{
"title":"Example title",
"pubDate":"2022-05-23 17:25:29",
"link":"https://example.com/blog/example-post",
"guid":"abcd123",
"thumbnail":"https://example.com/thumbnail.jpg",
"description":"Hello World!"
}
]
}
Live example: https://superblog.ai/blog/rss.json