Blog CMS Starter Kit

Fake Blog API for Frontend Development

The Blog CMS Starter Kit is a ready-made mock REST API for blogs and content sites. It returns realistic JSON for articles, authors, categories, comments and an editor login, so you can build article lists, article pages and author profiles before a CMS exists. It is included with the Free plan, and you can edit every response after launching.

Free plan10 endpointsBlog PostsAuthorsCategoriesCommentsAuthenticationPagination

What you can build

Build the article, author and comment screens

These screens cover the reading side of a blog and a simple editor action, using the kit's real endpoints.

  1. Article listing

    GET /posts returns published articles with title, slug, excerpt, tags, reading time and publish date, and GET /categories returns the topics for a filter bar. GET /posts/featured fills a hero section.

    • GET/posts
    • GET/posts/featured
    • GET/categories
  2. Article page with comments

    GET /posts/building-better-react-components returns one article with its author, category and comments, and GET /posts/post_001/comments returns the approved comments with a total.

    • GET/posts/building-better-react-components
    • GET/posts/post_001/comments
  3. Author pages

    GET /authors returns the writers for a team page and GET /authors/maya-chen returns one author with their articles.

    • GET/authors
    • GET/authors/maya-chen
  4. Editor sign-in and new post

    POST /auth/login returns an editor and a token, and POST /posts returns 201 with a new draft article, enough to build a create-post form and its success message.

    • POST/auth/login
    • POST/posts
  5. Not-found state

    GET /posts/missing returns a 404 error object so you can design the missing-article page.

    • GET/posts/missing

Endpoint reference

All 10 Blog CMS endpoints

This list is generated from the kit itself. Paths match exactly, so only these paths exist after you launch it.

Blog CMS Starter Kit endpoints
MethodPathStatusWhat it returns
GET/posts200List posts. Returns published blog posts with author and category information.
GET/posts/featured200Featured posts. Returns featured articles suitable for a homepage or hero section.
GET/posts/building-better-react-components200Post detail. Returns a single article with its author, category and comments.
GET/authors200List authors. Returns writers and editors for author pages or profile cards.
GET/authors/maya-chen200Author detail. Returns one author together with their published articles.
GET/categories200List categories. Returns content categories for navigation and filtering.
GET/posts/post_001/comments200Post comments. Returns approved comments belonging to a blog article.
POST/auth/login200Editor login. Simulates successful authentication for a CMS editor.
POST/posts201Create post. Simulates successfully creating a new CMS article.
GET/posts/missing404Post not found. Simulates requesting an article that does not exist.

Example responses

What the endpoints return

These are real responses from the kit. They are abbreviated: lists show their first item with the number of omitted items, and long text is shortened. The launched endpoint returns the full response.

List posts

GET /posts → 200 (abbreviated)json
{
  "data": [
    {
      "id": "post_001",
      "title": "Building Better React Components",
      "slug": "building-better-react-components",
      "excerpt": "Practical techniques for creating reusable, maintainable React components.",
      "content": "Great React components are focused, composable and predictable. Start by giving each co...",
      "status": "published",
      "featured": true,
      "author_id": "author_001",
      "category_id": "category_development",
      "tags": [
        "react"
        // ... 2 more items in the full response
      ],
      "image_url": "https://images.example.com/blog/react-components.jpg",
      "reading_time_minutes": 6,
      "published_at": "2026-07-21T09:00:00Z",
      "updated_at": "2026-07-22T14:30:00Z"
    }
    // ... 2 more items in the full response
  ],
  "pagination": {
    "page": 1,
    "per_page": 10,
    "total_items": 3,
    "total_pages": 1
  }
}

Post comments

GET /posts/post_001/comments → 200 (abbreviated)json
{
  "data": [
    {
      "id": "comment_001",
      "post_id": "post_001",
      "author": {
        "name": "Oliver James",
        "avatar_url": "https://images.example.com/users/oliver-james.jpg"
      },
      "body": "The point about keeping state close to where it is used is especially useful.",
      "status": "approved",
      "created_at": "2026-07-21T13:22:00Z"
    }
    // ... 1 more item in the full response
  ],
  "meta": {
    "total": 2
  }
}

Create post

POST /posts → 201json
{
  "success": true,
  "message": "Post created successfully.",
  "data": {
    "id": "post_004",
    "title": "My New Article",
    "slug": "my-new-article",
    "status": "draft",
    "author_id": "author_001",
    "created_at": "2026-08-09T10:00:00Z"
  }
}

Call the endpoints

curl and fetch examples

These URLs only work after you launch the kit, because the kit then exists in your own project. Replace YOUR_PROJECT_KEY with the project key shown in your dashboard.

Terminal: GET /postsbash
curl -i \
  https://apis.getforgeapi.com/YOUR_PROJECT_KEY/posts
Terminal: POST /postsbash
curl -i \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"title":"My New Article","status":"draft"}' \
  https://apis.getforgeapi.com/YOUR_PROJECT_KEY/posts
fetch: GET /poststs
const API_BASE_URL = "https://apis.getforgeapi.com/YOUR_PROJECT_KEY";

const response = await fetch(API_BASE_URL + "/posts");

if (!response.ok) {
  throw new Error("Request failed with status " + response.status);
}

const json = await response.json();
// json.data is the array of articles; json.pagination describes the page.

More request examples are in Calling endpoints.

Frontend example

Next.js data helpers for a blog

These helpers fetch the list, an article, its comments and an author from a Next.js server component. Detail endpoints in the kit are single fixed items, so the slugs below are the only ones that exist.

lib/api.tsts
const API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL;

async function apiGet<T>(path: string): Promise<T> {
  const response = await fetch(API_BASE_URL + path, { cache: "no-store" });

  if (!response.ok) {
    throw new Error("GET " + path + " failed with status " + response.status);
  }

  return response.json() as Promise<T>;
}

type Post = {
  id: string;
  title: string;
  slug: string;
  excerpt: string;
  reading_time_minutes: number;
  published_at: string;
};

export async function getPosts() {
  const json = await apiGet<{ data: Post[] }>("/posts");

  return json.data;
}

// The kit has one article endpoint, so this slug is fixed.
export async function getFeaturedArticle() {
  const json = await apiGet<{ data: Post }>(
    "/posts/building-better-react-components",
  );

  return json.data;
}

export async function getArticleComments() {
  const json = await apiGet<{
    data: { id: string; body: string; author: { name: string } }[];
  }>("/posts/post_001/comments");

  return json.data;
}

export async function getAuthor() {
  const json = await apiGet<{ data: { name: string; bio: string } }>(
    "/authors/maya-chen",
  );

  return json.data;
}

Keep the base URL in an environment variable such as VITE_API_BASE_URL or NEXT_PUBLIC_API_BASE_URL. When your real backend is ready, change that value; if it keeps the same paths and response shapes, your components do not need to change. The Create a REST API Online tutorial walks through that handover.

Accurate expectations

What this mock does and does not do

Every Starter Kit

  • Responses are static. Each endpoint returns the JSON configured for it, so the same request always gets the same response.
  • Paths match exactly. Only the paths listed in the endpoint reference exist, and there are no automatic dynamic route parameters.
  • There is no automatic filtering, sorting or pagination. Query strings are not used to choose a response, so adding ?page=2 returns the same response.
  • Nothing is saved. POST, PUT, PATCH and DELETE endpoints return the response configured for them, and request bodies are not stored.
  • Response delays and required request headers are available on paid plans. You can edit an endpoint's JSON and status code after launching the kit.

The Blog CMS kit

  • Detail endpoints exist for one article (building-better-react-components) and one author (maya-chen). Other slugs are not recognised.
  • The pagination object in GET /posts is data, not a feature. Requesting another page returns the same response.
  • POST /posts returns a draft article but does not save it, so GET /posts is unchanged afterwards. Comments exist only for post_001.

Project and endpoint limits depend on your plan. See API limits for the current allowances.

Related Starter Kits and guides

Looking for a different kit? Browse all ready-made mock APIs.

Frequently asked questions

Blog CMS Starter Kit questions

Which plan includes the Blog CMS kit?

The Free plan and every paid plan include it. It is not part of the no-account demo, so create a free account to launch it.

Can I add more articles?

You can edit the JSON of GET /posts to list more articles. Each article page needs its own endpoint, and the Free plan allows 10 endpoints per project, which the kit already uses, so edit existing endpoints rather than adding new ones.

Does POST /posts publish an article?

No. It returns the draft article configured for it with a 201 status. Nothing is stored, so the article does not appear in GET /posts.

When is JSONPlaceholder enough?

JSONPlaceholder is a public fake API with 100 posts, no signup and faked writes. If you only need generic posts for a quick call, it may be simpler. The Blog kit has a small set of sample articles, but it lives in your own project, so you can edit the authors, categories, comments and responses to match your design.

Can I try the Blog kit without an account?

No. Only the E-Commerce Starter Kit has a no-account demo. Create a free account to launch the Blog CMS kit.

Build against Blog CMS today

Included with the Free plan and every paid plan. Launch the kit, call its hosted URLs and edit the responses to match your frontend.