Blog API

Add a blog to any site in minutes

A hosted, headless blog API for Next.js projects, business sites, and SaaS dashboards. Markdown content, JSON endpoints, image hosting, drafts, categories, and tags — no CMS to maintain.

Free during beta · Approval within 24 hours · No credit card required

Built for

Plug a blog into whatever you're building

You write posts in the dashboard. We hand back JSON. You render it however your stack wants — at build time, at request time, or on the edge.

Your Next.js side project

Add a /blog route to your Next.js, Astro, or Nuxt app in an afternoon. Fetch posts at build time for ISR, or at request time — both work.

Build pattern

Your business or agency site

Run a content marketing blog on your company site without standing up WordPress. Manage posts in our dashboard, render them on your domain.

See use cases

Your SaaS or product dashboard

Surface release notes, tutorials, or a 'What's new' panel inside your app. The API is stateless and CDN-friendly — drop it anywhere.

See endpoints
How it works

From zero to first post in three steps

No SQL to migrate. No CMS to deploy. No server to maintain.

  1. 1

    Sign in and request a tenant

    Go to your dashboard, request a tenant with your name. Most requests are approved within 24 hours.

  2. 2

    Copy your API key

    Once approved you'll see an X-API-Key in your dashboard. Store it as an environment variable in your project.

  3. 3

    POST your first post

    Create posts via the dashboard or with a single POST request. The API returns the post as JSON, ready to render.

What you get

Everything you need, nothing you don't

A focused feature set built for real production traffic.

JSON over HTTP

Predictable REST endpoints with Markdown content, slugs, tags, categories, read time, and timestamps. No GraphQL learning curve.

Scoped API keys

Every tenant gets a key. Pass it as X-API-Key and you can only read and write your own posts. Regenerate keys any time.

Image hosting included

Upload cover images via the dashboard or the upload endpoint. Stored on a CDN and returned as optimized URLs — no S3 to wire up.

Drafts, categories & tags

Save drafts, toggle publish state, tag posts, group by category, and mark featured posts — all from a clean dashboard.

Fast & cached

List endpoints respond in tens of milliseconds. Frontend frameworks can revalidate on demand or stale-while-revalidate as they like.

Multi-tenant isolation

Your posts and images are isolated per tenant. No accidental cross-tenant reads, ever. Soft-delete on every destructive call.

Code example

Drop this in your Next.js app

Server-side fetch with ISR. One file. No client SDK to install.

app/blog/page.tsxNext.js
// app/blog/page.tsx (Next.js 15+)
const POSTS_URL = "https://api.smitparekh.co.in/api/v1/blogs";

export const revalidate = 300; // refresh every 5 minutes

async function getPosts() {
  const res = await fetch(POSTS_URL, {
    headers: { "X-API-Key": process.env.BLOG_API_KEY! },
    next: { revalidate: 300 },
  });
  if (!res.ok) throw new Error("Failed to load posts");
  const { data } = await res.json();
  return data;
}

export default async function BlogPage() {
  const posts = await getPosts();
  return (
    <ul>
      {posts.map((p) => (
        <li key={p._id}>
          <a href={`/blog/${p.slug}`}>{p.title}</a>
        </li>
      ))}
    </ul>
  );
}
Endpoints

A tiny REST surface area

Six endpoints. Every one returns JSON.

  • GET/api/v1/blogsList all published posts
  • GET/api/v1/blogs/:idFetch a single post by ID or slug
  • POST/api/v1/blogsCreate a new post (saved as draft)
  • PUT/api/v1/blogs/:idUpdate fields on an existing post
  • PATCH/api/v1/blogs/:id/publishToggle publish state
  • DELETE/api/v1/blogs/:idSoft-delete a post

Full docs with copy-paste fetch examples are inside your dashboard at /dashboard/blog/api-docs.

FAQ

Common questions

What is a headless blog API?+

A headless blog API exposes your blog posts as JSON over HTTP. You manage posts in our dashboard (or via the API itself) and render them on any frontend you want — Next.js, Astro, Nuxt, plain HTML, or a SaaS dashboard.

Do I need to sign up to use it?+

Yes. Sign in to the dashboard, request a tenant, and once approved you get an API key. Every request is scoped to your tenant.

Can I use it with Next.js, React, or my business website?+

Yes. JSON in, Markdown out. Works with Next.js, React, Astro, Nuxt, Remix, WordPress, plain HTML, or any backend.

Is image hosting included?+

Yes. Upload cover images from the dashboard or via the upload endpoint. We store them on a CDN and return optimized URLs.

How much does it cost?+

Free during the current beta. Reasonable rate limits per tenant. Pricing for higher tiers will be announced in the changelog.

Can I export my posts later?+

Yes. Every list and detail endpoint returns full Markdown content, so a single GET pulls everything you've written.

Free during beta

Get your API key and ship a blog this week

Sign in, request a tenant, copy your key. Most approvals land within 24 hours.