Online REST API for Testing and Prototyping

fake data | real responses | 24/7 online

Trying it Out

POST /public/v2/usersCreate a new user
GET /public/v2/users/4Get user details
PUT|PATCH /public/v2/users/4Update user details
DELETE /public/v2/users/4Delete user

Nested Resources

GET /public/v2/users/4/postsRetrieves user posts
GET /public/v2/posts/4/commentsRetrieves post comments
GET /public/v2/users/4/todosRetrieves user todos
POST /public/v2/users/4/postsCreates a user post
POST /public/v2/posts/4/commentsCreates a post comment
POST /public/v2/users/4/todosCreates a user todo


Rate Limiting Headers

  • Customize the rate limit per access token.
  • X-RateLimit-Limit number of allowed requests/minute.
  • X-RateLimit-Remaining remaining requests within the current period.
  • X-RateLimit-Reset seconds to wait before having maximum number of allowed requests again.

Pagination Headers

  • X-Pagination-Total total number of results.
  • X-Pagination-Pages total number of pages.
  • X-Pagination-Page current page number.
  • X-Pagination-Limit results per page.

API Version 2

API Version 1

API Version 0


Unlike Web applications, RESTful APIs are usually stateless, which means sessions or cookies should not be used. Therefore, each request should come with some sort of authentication credentials. A common practice is to send a secret access token with each request to authenticate the user. Since an access token can be used to uniquely identify and authenticate a user, API requests should always be sent via HTTPS to prevent man-in-the-middle (MitM) attacks.

There are different ways to send an access token:

cUrl Examples

1. List users
curl -i -H "Accept:application/json" -H "Content-Type:application/json" -XGET ""
2. Create user
curl -i -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization: Bearer ACCESS-TOKEN" -XPOST "" -d '{"name":"Tenali Ramakrishna", "gender":"male", "email":"", "status":"active"}'
3. Update user
curl -i -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization: Bearer ACCESS-TOKEN" -XPATCH "" -d '{"name":"Allasani Peddana", "email":"", "status":"active"}'
4. Delete user
curl -i -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization: Bearer ACCESS-TOKEN" -XDELETE ""

Http Response Codes