API
HTTP Methods (CRUD)
Practice GET, POST, PUT, and DELETE operations to manage resources.
Thankful
This playground is using JSONPlaceholder API (https://jsonplaceholder.typicode.com/) for testing purposes. Big thanks to the creators of this free API for providing such a great resource for learning and experimentation!
Get a Post
Call the API endpoint shown below, then enter the HTTP status code you received.
GET
https://jsonplaceholder.typicode.com/posts/5Enter the HTTP status code from the response.
Get a List of Posts
Call the API endpoint shown below, then enter the total number of posts returned.
GET
https://jsonplaceholder.typicode.com/postsEnter the total number of posts in the response array.
Create a New Post
Send a POST request with the body shown below, then enter the new post ID and status code.
POST
https://jsonplaceholder.typicode.com/posts{ "title": "API Testing" }
Enter the ID of the newly created post and the status code.
Update a User
Send a PUT request with the body shown below using the generated name, then enter the name returned in the response.
PUT
https://jsonplaceholder.typicode.com/users/2{ "name": "Zoey Stracke" }
Enter the name returned in the response body.
Patch a User
Send a PATCH request with the body shown below, then enter the name and email from the response body.
PATCH
https://jsonplaceholder.typicode.com/users/3{ "name": "Miriam Runte" }
Enter the name and email from the response body.
Delete a Todo
Send a DELETE request to the endpoint shown below, then enter the HTTP status code you received.
DELETE
https://jsonplaceholder.typicode.com/todos/25Enter the HTTP status code from the response.
Get a Todo – Validate Response Body
Call the GET endpoint shown below and check the value of the 'completed' field in the response body.
GET
https://jsonplaceholder.typicode.com/todos/12Select the value of the "completed" field.
Get a User – Find the Email
Call the GET endpoint shown below and enter the email address of the user from the response.
GET
https://jsonplaceholder.typicode.com/users/3Enter the email address found in the response body.
Wait for a Request
Click 'Send Request' to trigger an API call. Once the response arrives, enter the HTTP method and full URL of the request that was made.
Response title will appear here after the request completes.
Wait for a Response
Click the dropdown to trigger an API call. Wait for the response to load, then select 'Chelsey Dietrich' from the list.
Selected: (none)