Skip to content

Your posts, in your own website

Write in BlogPlatform, show the posts in your site's own design. Create an API key in the dashboard, then read posts with the API or the SDK.

  • Content API

    Published posts, categories, tags and authors as JSON, filtered, sorted and paged. Any language that speaks HTTP.

    See the quick start
  • JavaScript SDK

    A typed client for Node and the browser, with React helpers, is coming to npm. Until then the API is one fetch away.

    Use the API today
  • Embeds

    No code: build a post list or a single post in the dashboard and paste the snippet into any page.

    Try the embed builder

Quick start

  1. Create a blog and write a post.
  2. In the dashboard, open API keys and create a secret key for your server.
  3. List your posts with the key (replace your-blog with your blog's address):
const res = await fetch(
  'https://api.blog.build1234.com/content/v1/sites/your-blog/posts?limit=10',
  { headers: { Authorization: `Bearer ${process.env.BLOG_KEY}` } },
);
const { data: posts } = await res.json();

Public keys are safe in a browser and only read published posts. Secret keys stay on your server. Each key is rate limited and can be limited to your website's address.