Sitemap and RSS Feeds

You can leverage your blog sitemap to maximize search engine crawling + indexation and your RSS/ATOM feeds to syndicate your content out to your social media profiles and content networks.

RSS, Atom, and Sitemap for your Blog

Butter generates RSS, Atom, and sitemap XML markup. To use these on your blog, return the generated XML from the Butter API with the proper content type headers.

Here's what an example request looks like for getting your blog's RSS feed:

curl -X GET 'https://api.buttercms.com/v2/feeds/rss?auth_token=your_api_token'

And the response:

{
  "data": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\">\n \n  <url><loc>http://www.example.com/blog/this-is-a-blog-post</loc></url>\n \n</urlset>"
}

See our API reference for more information about fetching RSS, Atom, and sitemap XML.

Syndicating to Facebook

To post your live blog posts to your Facebook account automatically, you can connect your blog RSS feed to your Facebook account to do this. https://www.lifewire.com/set-up-rss-feed-on-facebook-3486528

Still have a question?

Our Customer Success team is standing by to help.