Welcome to Zudoku preview! Open a GitHub issue if you have feature requests or find any issues.
JSONPlaceholder API


Endpoint:https://jsonplaceholder.typicode.com

Get all posts

GET
https://jsonplaceholder.typicode.com
/posts

Retrieve a list of all posts

Get all postsResponses

    object[]
    • id
      integer

      The post ID

    • userId
      integer

      The ID of the user who created the post

    • title
      string

      The title of the post

    • body
      string

      The content of the post

Create a post

POST
https://jsonplaceholder.typicode.com
/posts

Create a new post

Create a postRequest Body

  • userId
    integer

    The ID of the user creating the post

  • title
    string

    The title of the post

  • body
    string

    The content of the post

Create a postResponses

    • id
      integer

      The post ID

    • userId
      integer

      The ID of the user who created the post

    • title
      string

      The title of the post

    • body
      string

      The content of the post

Get post by ID

GET
https://jsonplaceholder.typicode.com
/posts/{id}

Retrieve a specific post by its ID

Get post by IDpath Parameters

  • id
    integer
    required

    Post ID

Get post by IDResponses

    • id
      integer

      The post ID

    • userId
      integer

      The ID of the user who created the post

    • title
      string

      The title of the post

    • body
      string

      The content of the post

Update post

PUT
https://jsonplaceholder.typicode.com
/posts/{id}

Update an existing post

Update postpath Parameters

  • id
    integer
    required

    Post ID

Update postRequest Body

  • userId
    integer

    The ID of the user creating the post

  • title
    string

    The title of the post

  • body
    string

    The content of the post

Update postResponses

    • id
      integer

      The post ID

    • userId
      integer

      The ID of the user who created the post

    • title
      string

      The title of the post

    • body
      string

      The content of the post

Delete post

DELETE
https://jsonplaceholder.typicode.com
/posts/{id}

Delete an existing post

Delete postpath Parameters

  • id
    integer
    required

    Post ID

Delete postResponses

    No response specified

Get post comments

GET
https://jsonplaceholder.typicode.com
/posts/{id}/comments

Retrieve all comments for a specific post

Get post commentspath Parameters

  • id
    integer
    required

    Post ID

Get post commentsResponses

    object[]
    • id
      integer

      The comment ID

    • postId
      integer

      The ID of the post this comment belongs to

    • name
      string

      The name of the commenter

    • email
      string

      The email of the commenter

      Format: email
    • body
      string

      The content of the comment