📝20 items · free · CORS-ready
Mock Posts API
A ready-made blog posts endpoint with realistic technical content — titles, bodies, tags, reactions (likes/dislikes), view counts, and linked author via userId. Great for feed UIs, content management prototypes, and tutorial demos.
GET
https://www.jsonmock.in/api/v1/postsEndpoints
| Method | Path | Description | |
|---|---|---|---|
| GET | /api/v1/posts | List all posts (default 30 per page) | |
| GET | /api/v1/posts?limit=5&skip=10 | Paginate with limit + skip | |
| GET | /api/v1/posts/1 | Fetch a single post by id | |
| GET | /api/v1/posts?q=e | Full-text search across common fields | |
| GET | /api/v1/posts?select=id,title,tags | Return only selected fields (reduce payload size) |
Query parameters
| Param | Type | Description |
|---|---|---|
| limit | number (0–100) | Max items to return. Default 30. |
| skip | number | Offset from the start (for pagination). |
| q | string | Case-insensitive search across key post fields. |
| select | comma list | Return only the given fields in the response. |
Sample post
Every item in this endpoint follows the same shape as the example below.
post.json
{
"id": 1,
"title": "The rise of serverless architecture",
"body": "Serverless has moved from niche to mainstream. Here's what changed in the last two years and why every new project should consider it.",
"userId": 1,
"tags": [
"serverless",
"cloud",
"architecture"
],
"reactions": {
"likes": 324,
"dislikes": 7
},
"views": 8420
}Live response
Click Try it on any endpoint above to see the real response here.
no request yet// waiting for request
Use it in your code
curl "https://jsonmock.in/api/v1/posts?limit=5"
Other ready-made endpoints
Need a different shape?
These templates are pre-built for common use cases. If you need your own JSON shape, paste it into the generator and get a custom endpoint in seconds.
Generate a custom mock →