JSONPlaceholder Posts API

100 sample blog posts owned by users

Operations 11

GET /posts JSONPlaceholder List Posts #
POST /posts JSONPlaceholder Create Post #
GET /posts/{id} JSONPlaceholder Get Post #
PUT /posts/{id} JSONPlaceholder Replace Post #
PATCH /posts/{id} JSONPlaceholder Update Post #
DELETE /posts/{id} JSONPlaceholder Delete Post #
GET /posts/{id}/comments JSONPlaceholder List Post Comments #
GET /users/{id}/posts JSONPlaceholder List User Posts #
GET /posts/{post-id}
PATCH /posts/{post-id}
DELETE /posts/{post-id}

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/jsonplaceholder/refs/heads/main/json-schema/jsonplaceholder-post-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/jsonplaceholder/refs/heads/main/json-schema/jsonplaceholder-comment-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/jsonplaceholder/refs/heads/main/json-schema/jsonplaceholder-album-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/jsonplaceholder/refs/heads/main/json-schema/jsonplaceholder-photo-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/jsonplaceholder/refs/heads/main/json-schema/jsonplaceholder-todo-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/jsonplaceholder/refs/heads/main/json-schema/jsonplaceholder-user-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/jsonplaceholder/refs/heads/main/json-structure/jsonplaceholder-post-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/jsonplaceholder/refs/heads/main/json-structure/jsonplaceholder-comment-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/jsonplaceholder/refs/heads/main/json-structure/jsonplaceholder-album-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/jsonplaceholder/refs/heads/main/json-structure/jsonplaceholder-photo-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/jsonplaceholder/refs/heads/main/json-structure/jsonplaceholder-todo-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/jsonplaceholder/refs/heads/main/json-structure/jsonplaceholder-user-structure.json

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/jsonplaceholder-posts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

jsonplaceholder-posts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Jsonplaceholder Posts API
  x-refined-note:
  - x-generated-from differs across the merged source definitions and was not carried
  - x-last-validated differs across the merged source definitions and was not carried
  version: '1.0'
  description: 'Operations tagged Posts across 2 of this provider''s published API definitions: jsonplaceholder-openapi.yml, openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://jsonplaceholder.typicode.com
  description: Public production endpoint (no authentication required)
- url: https://jsonplaceholder.typicode.com/
tags:
- name: Posts
  description: 100 sample blog posts owned by users
paths:
  /posts:
    get:
      operationId: listPosts
      summary: JSONPlaceholder List Posts
      description: Returns all 100 sample posts. Supports filtering by any field via query parameters (e.g. `?userId=1`).
      tags:
      - Posts
      parameters:
      - name: userId
        in: query
        description: Filter posts by owning user id.
        required: false
        schema:
          type: integer
        example: 1
      - name: id
        in: query
        description: Filter posts by post id.
        required: false
        schema:
          type: integer
        example: 1
      responses:
        '200':
          description: Array of posts.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Post'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      operationId: createPost
      summary: JSONPlaceholder Create Post
      description: Creates a new post. Returns the created post with a generated id, but no data is actually persisted on the server.
      tags:
      - Posts
      requestBody:
        required: true
        description: New post payload.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostInput'
      responses:
        '201':
          description: Created post (simulated, not persisted).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Post'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    servers:
    - url: https://jsonplaceholder.typicode.com
      description: Public production endpoint (no authentication required)
  /posts/{id}:
    parameters:
    - name: id
      in: path
      required: true
      description: Post identifier (1-100).
      schema:
        type: integer
      example: 1
    get:
      operationId: getPost
      summary: JSONPlaceholder Get Post
      description: Returns a single post by id.
      tags:
      - Posts
      responses:
        '200':
          description: A single post.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Post'
        '404':
          description: Post not found.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    put:
      operationId: replacePost
      summary: JSONPlaceholder Replace Post
      description: Replaces a post in full. Returns the updated post but no data is actually persisted on the server.
      tags:
      - Posts
      requestBody:
        required: true
        description: Full replacement payload.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Post'
      responses:
        '200':
          description: Updated post (simulated, not persisted).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Post'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    patch:
      operationId: updatePost
      summary: JSONPlaceholder Update Post
      description: Partially updates a post. Returns the merged post but no data is actually persisted on the server.
      tags:
      - Posts
      requestBody:
        required: true
        description: Partial update payload.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostInput'
      responses:
        '200':
          description: Updated post (simulated, not persisted).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Post'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    delete:
      operationId: deletePost
      summary: JSONPlaceholder Delete Post
      description: Deletes a post. Returns an empty object but no data is actually deleted on the server.
      tags:
      - Posts
      responses:
        '200':
          description: Deletion accepted (simulated, not persisted).
          content:
            application/json:
              schema:
                type: object
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    servers:
    - url: https://jsonplaceholder.typicode.com
      description: Public production endpoint (no authentication required)
  /posts/{id}/comments:
    parameters:
    - name: id
      in: path
      required: true
      description: Post identifier.
      schema:
        type: integer
      example: 1
    get:
      operationId: listPostComments
      summary: JSONPlaceholder List Post Comments
      description: Returns all comments belonging to a single post.
      tags:
      - Posts
      responses:
        '200':
          description: Array of comments for the post.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Comment'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    servers:
    - url: https://jsonplaceholder.typicode.com
      description: Public production endpoint (no authentication required)
  /users/{id}/posts:
    parameters:
    - name: id
      in: path
      required: true
      description: User identifier.
      schema:
        type: integer
      example: 1
    get:
      operationId: listUserPosts
      summary: JSONPlaceholder List User Posts
      description: Returns all posts authored by a single user.
      tags:
      - Posts
      responses:
        '200':
          description: Array of posts for the user.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Post'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    servers:
    - url: https://jsonplaceholder.typicode.com
      description: Public production endpoint (no authentication required)
  /posts/{post-id}:
    get:
      description: Get post by ID
      parameters:
      - $ref: '#/components/parameters/post-id'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/post'
      tags:
      - Posts
    patch:
      description: Update post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/post'
      parameters:
      - $ref: '#/components/parameters/post-id'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/post'
      tags:
      - Posts
    delete:
      description: Delete post
      parameters:
      - $ref: '#/components/parameters/post-id'
      responses:
        '200':
          description: OK
      tags:
      - Posts
    servers:
    - url: https://jsonplaceholder.typicode.com/
components:
  schemas:
    PostInput:
      type: object
      description: Payload for creating or partially updating a post.
      properties:
        userId:
          type: integer
          description: Identifier of the user who authored the post.
          example: 1
        title:
          type: string
          description: Post title.
          example: My New Post
        body:
          type: string
          description: Post body / content.
          example: This is the body of my new post.
    Post:
      type: object
      description: A sample blog post owned by a user.
      required:
      - id
      - userId
      - title
      - body
      properties:
        id:
          type: integer
          description: Unique post identifier (1-100).
          example: 1
        userId:
          type: integer
          description: Identifier of the user who authored the post (1-10).
          example: 1
        title:
          type: string
          description: Post title.
          example: sunt aut facere repellat provident occaecati excepturi optio reprehenderit
        body:
          type: string
          description: Post body / content.
          example: quia et suscipit suscipit recusandae consequuntur expedita et cum
    Comment:
      type: object
      description: A sample comment attached to a post.
      required:
      - id
      - postId
      - name
      - email
      - body
      properties:
        id:
          type: integer
          description: Unique comment identifier (1-500).
          example: 1
        postId:
          type: integer
          description: Identifier of the post this comment belongs to.
          example: 1
        name:
          type: string
          description: Display name / subject of the comment.
          example: id labore ex et quam laborum
        email:
          type: string
          format: email
          description: Email address of the commenter.
          example: Eliseo@gardner.biz
        body:
          type: string
          description: Comment body text.
          example: laudantium enim quasi est quidem magnam voluptate ipsam eos tempora quo necessitatibus
    post:
      type: object
      properties:
        userId:
          type: integer
        id:
          type: integer
        title:
          type: string
        body:
          type: string
  parameters:
    post-id:
      name: post-id
      in: path
      description: 'key: id of post'
      required: true
      style: simple
      schema:
        type: integer
x-refined-from:
- jsonplaceholder-openapi.yml
- openapi.yaml