Skip to main content

Embed Posts

You can embed your most recent posts from superblog in any webpage or app. This is available on ALL plans.

How to

  1. You can fetch the posts data by sending a simple GET request to your superblog's RSS feed.
  2. 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

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 feed
const rssFeedUrl = "https://superblog.ai/blog/rss.xml";

const res = await fetch(
'https://api.rss2json.com/v1/api.json?rss_url=${rssFeedUrl}',
);
const data = await res.json();

Python Code

import requests

// replace it with your superblog rss feed
rssFeedUrl = "https://superblog.ai/blog/rss.xml"

res = requests.get('https://api.rss2json.com/v1/api.json?rss_url=' + rssFeedUrl)

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://api.rss2json.com/v1/api.json?rss_url=https://superblog.ai/blog/rss.xml