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
Supported Block Types
Post Endpoints
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.