Gen-Endpoint

Free Blog & CMS API — Mock REST API for Testing & Development

Content
4 Endpoints
Live & Active

Provides realistic blog articles, markdown body content, authors, tags, and publication dates for testing headless CMS integrations.

Internal API - Hosted by Gen-Endpoint

Interactive Live API Explorer

Explore, configure parameters, and execute live HTTP requests directly in your browser. All routes are active!
GET

/api/posts

List blog posts with pagination, filtering (status, category, search), and sorting.

Try it live in browser

You can add or change query parameters in the path above (e.g., ?name=User).

POST

/api/posts

Create new blog post with SEO metadata.

Try it live in browser
GET

/api/posts/{slug}

Get single post by slug with full content. Replace {slug} with an actual post slug like "getting-started-javascript".

Try it live in browser

Replace placeholders (e.g., {userId}) with actual values in the path above. You can also add/edit query parameters (e.g., ?key=value).

GET

/api/categories

List post categories and tags with post counts.

Try it live in browser

You can add or change query parameters in the path above (e.g., ?name=User).

Code Integration Examples

Copy ready-to-use cURL commands and JavaScript Fetch snippets directly into your projects or testing tools.
Standard Fetch API (Browser & Node.js 18+)
// Free Blog & CMS API - JavaScript Fetch Example
async function fetchBlogCMSAPI() {
  try {
    const response = await fetch('https://gen-endpoint.com/api/posts', {
      method: 'GET',
      headers: {
        'Content-Type': 'application/json',
      },
    });

    if (!response.ok) {
      throw new Error(`HTTP error! status: ${response.status}`);
    }

    const data = await response.json();
    console.log('Success:', data);
    return data;
  } catch (error) {
    console.error('Fetch error:', error);
  }
}

fetchBlogCMSAPI();

Sample JSON Response

{
  "posts": [
    {
      "id": "post_123",
      "title": "Getting Started with JavaScript",
      "slug": "getting-started-javascript",
      "excerpt": "Learn the basics of JavaScript programming...",
      "author": {"id": "usr_1", "name": "Alice Wonderland"},
      "publishedAt": "2024-08-15T10:00:00Z",
      "readTime": "5 min"
    }
  ],
  "pagination": {"page": 1, "limit": 10, "total": 45}
}

Common Developer Use Cases

How developers integrate the Blog & CMS API during rapid frontend prototyping and automated testing.

Testing blog layout templates in Next.js or Nuxt.

Building article search and category filters.

Related Free REST APIs

Explore complementary mock endpoints to chain and test full application workflows.

Comments & Reviews API

Social

Handle user comments, reviews, ratings, moderation, and threaded discussions.

View API

User Management API

Application

A comprehensive API for managing user accounts, including CRUD operations.

View API

Advanced Search API

Data

Demonstrates complex querying, filtering, sorting, and pagination with full-text search capabilities.

View API

Frequently Asked Questions

Does the API return Markdown?

Yes, post content includes formatted Markdown text suitable for react-markdown.