Fake Posts API
100 dummy blog posts with tags and nested comments — a JSONPlaceholder-compatible endpoint for prototypes and tutorials. Part of the MockServer Fake REST API.
| GET |
/fake-api/v1/posts
List all Posts (100 records)
|
|
| GET |
/fake-api/v1/posts?_page=2&_limit=10
Paginated — returns X-Total-Count header
|
|
| GET |
/fake-api/v1/posts?userId=56
Filter by userId
|
|
| GET |
/fake-api/v1/posts/1
Get a single record by id
|
|
| GET |
/fake-api/v1/posts/1/comments
Nested — comments belonging to this record
|
|
| POST |
/fake-api/v1/posts
Create (simulated) — echoes body + new id, 201
|
|
| PUT |
/fake-api/v1/posts/1
Replace (simulated) — echoes body
|
|
| PATCH |
/fake-api/v1/posts/1
Update (simulated) — echoes body
|
|
| DELETE |
/fake-api/v1/posts/1
Delete (simulated) — returns {}
|
Need custom responses, status codes or latency?
Build your own mock API in 10 seconds — your JSON, your status codes, failure simulation, request logs. No signup needed.
Create a Mock API Create free accountWhat is the fake posts API?
This is a free hosted REST API that returns 100 realistic dummy posts records as JSON. It works like JSONPlaceholder: read endpoints return consistent sample data, and write endpoints (POST, PUT, PATCH, DELETE) respond realistically without persisting anything. Use it in tutorials, prototypes, UI development, interview exercises, and automated tests — anywhere you need an API that always works and never needs a backend.
Pagination and filtering
Collections support JSONPlaceholder-style pagination via ?_page= and ?_limit= (max 100 per page). Every paginated response includes an X-Total-Count header.
You can also filter with simple equality parameters: ?userId= .
Sample record
Every post record has this shape:
{
"id": 1,
"userId": 56,
"title": "How to Learn a New Language Without Losing Your Mind",
"body": "I kept a simple log of what worked and what did not, and rereading it later changed my whole approach. I asked a dozen people who had done it before, and the overlap in their answers was remarkably small. When I first started, I assumed it would take a weekend at most, and I was wrong in every way that matters.",
"tags": [
"work"
]
}