Fake Comments API
300 dummy comments linked to posts by postId — perfect for testing threaded UIs and list rendering. Part of the MockServer Fake REST API.
| GET |
/fake-api/v1/comments
List all Comments (300 records)
|
|
| GET |
/fake-api/v1/comments?_page=2&_limit=10
Paginated — returns X-Total-Count header
|
|
| GET |
/fake-api/v1/comments?postId=77
Filter by postId
|
|
| GET |
/fake-api/v1/comments/1
Get a single record by id
|
|
| POST |
/fake-api/v1/comments
Create (simulated) — echoes body + new id, 201
|
|
| PUT |
/fake-api/v1/comments/1
Replace (simulated) — echoes body
|
|
| PATCH |
/fake-api/v1/comments/1
Update (simulated) — echoes body
|
|
| DELETE |
/fake-api/v1/comments/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 comments API?
This is a free hosted REST API that returns 300 realistic dummy comments 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: ?postId= .
Sample record
Every comment record has this shape:
{
"id": 1,
"postId": 77,
"name": "Damon Hickle",
"email": "zoila06@example.net",
"body": "Could you share more details about how long this took you? Any recommendations for someone on a tight budget?"
}