{}
jsonmock.in
📝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.

GEThttps://www.jsonmock.in/api/v1/posts

Endpoints

MethodPathDescription
GET/api/v1/postsList all posts (default 30 per page)
GET/api/v1/posts?limit=5&skip=10Paginate with limit + skip
GET/api/v1/posts/1Fetch a single post by id
GET/api/v1/posts?q=eFull-text search across common fields
GET/api/v1/posts?select=id,title,tagsReturn only selected fields (reduce payload size)

Query parameters

ParamTypeDescription
limitnumber (0–100)Max items to return. Default 30.
skipnumberOffset from the start (for pagination).
qstringCase-insensitive search across key post fields.
selectcomma listReturn 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 →