Lorem Blocksum

WordPress Gutenberg Block Generator API

Generate Placeholder Content for WordPress

Lorem Blocksum provides a simple API to generate random WordPress Gutenberg blocks and complete post templates. Perfect for testing themes, plugins, and WordPress development.

🎯 Random Blocks

Generate individual or multiple Gutenberg blocks with realistic placeholder content

📝 Full Posts

Create complete blog posts, articles, and landing pages with structured content

⚡ Edge Performance

Deployed on Cloudflare's global network for ultra-fast response times

🔒 Rate Limited

100 requests per minute per IP to ensure fair usage

📋 Raw Output

Add ?format=raw to any endpoint to get block markup ready to paste into the WordPress code editor

Block Endpoints

Random Block
GET /api/blocks/random
Get a single random Gutenberg block
Try it →
Multiple Blocks
GET /api/blocks/multiple?count=5
Get multiple random blocks (1-20)
Try it →
Specific Block Type
GET /api/blocks/core/{type}
Get a specific block type
Try it →

Supported Block Types

core/paragraphcore/headingcore/listcore/imagecore/gallerycore/quotecore/covercore/media-textcore/columnscore/columncore/groupcore/buttonscore/buttoncore/separatorcore/spacercore/codecore/embed

Post Endpoints

Random Post
GET /api/posts/random
Get a random complete post with multiple blocks
Try it →
Blog Post
GET /api/posts/blog?length=medium
Generate a blog post (short, medium, long)
Try it →
Article
GET /api/posts/article?blocks=10
Generate a structured article (5-20 blocks)
Try it →
Landing Page
GET /api/posts/landing?template=business
Generate a landing page (business, portfolio, nonprofit)
Try it →

Quick Start

Use the API in your code:

// Get a blog post as JSON (returns title + post_content)
const response = await fetch('https://loremblocksum.com/api/posts/blog');
const { title, post_content } = await response.json();

// Get raw block markup (paste directly into WP code editor)
const raw = await fetch('https://loremblocksum.com/api/posts/blog?format=raw');
const markup = await raw.text();

// PHP (WordPress)
$response = wp_remote_get('https://loremblocksum.com/api/posts/blog');
$data = json_decode(wp_remote_retrieve_body($response));
$post_content = $data->post_content;

// cURL - raw markup
curl "https://loremblocksum.com/api/posts/blog?format=raw"

Response Format

Post endpoints return JSON with title and post_content (matching the wp_posts schema):

{
  "title": "Understanding Modern JavaScript",
  "post_content": "<!-- wp:heading -->\n<h2>Introduction</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph -->\n<p>Lorem ipsum...</p>\n<!-- /wp:paragraph -->"
}

Add ?format=raw to get the post_content value directly as text/html — ready to paste into the WordPress code editor.