/usersList users, 6 per page. Use ?page= and ?per_page= (1–50).
Free fake REST API for practising API testing — no sign-up, no key. Send real requests from Postman, Playwright, cURL or right here in your browser.
https://lab.roicians.com/api/free{}; ids that aren't whole numbers return 400.page, per_page (default 6, up to 50), total, total_pages, data.application/json, 413 above 100 KB, 429 with Retry-After above the rate limit.?delay=1 to ?delay=10 to any request to slow it down.Use these with POST /login. Tokens are JWTs that last 60 minutes; send them as Authorization: Bearer <token>.
| Password | What it's for | |
|---|---|---|
student@roicians.test | practice123 | Student role — use it for /me |
admin@roicians.test | admin123 | Admin role — the only one allowed on /admin/summary |
locked@roicians.test | locked123 | Locked — log-in is refused with 403 |
Paths are relative to the base URL. Open Try it to send the real request from your browser, edit the path or body, and copy it as cURL, PowerShell, Postman or Playwright code.
12 fictional people with paging. Writes return what a real API would, but nothing is saved.
/usersList users, 6 per page. Use ?page= and ?per_page= (1–50).
/users?page=2&per_page=5Page 2 with 5 per page — check page, per_page, total and total_pages.
/users/{id}One user by id.
/users/{id}A user that doesn't exist → 404 with an empty object {}.
/usersCreate a user → 201 with a new id and createdAt (not saved).
/usersMissing and invalid fields → 400 with an error for each field.
/users/{id}Replace a user (all required fields) → 200 with updatedAt.
/users/{id}Change only some fields → 200 with the whole user and updatedAt.
/users/{id}Delete a user → 204 No Content (nothing is really deleted).
12 simple shop items with categories, prices and stock.
/productsAll products. Filters: ?category= ?inStock=, sort: ?sort=price | -price | name | -name.
/products/{id}One product.
/productsCreate a product → 201 (not saved).
/products/{id}Replace a product → 200.
/products/{id}Delete a product → 204.
Todos with a completed flag, blog posts and their comments — the classic nested resource.
/todosTodos. Filters: ?userId= ?completed=true|false.
/todos/{id}One todo.
/todosCreate a todo → 201 (not saved).
/todos/{id}Tick a todo off → 200.
/todos/{id}Delete a todo → 204.
/postsBlog posts. Filter with ?userId=.
/posts/{id}One post.
/posts/{id}/commentsA post's comments (posts 9 and 10 have none).
/posts/{id}/commentsAdd a comment to a post → 201 (not saved).
/postsCreate a post → 201 (not saved).
Register, log in, use a Bearer token, log out. 401 vs 403 practice included.
/registerRegister → 201 with a token you can use straight away (the account itself isn't saved).
/registerRegister without a password → 400 {"error": "Missing password"}.
/loginLog in with a demo account → 200 with a Bearer token (valid for 1 hour).
/loginLog in without a password → 400 {"error": "Missing password"}.
/loginWrong password → 401.
/meWho am I? Needs Authorization: Bearer <token> → 200.
/meThe same request without a token → 401.
/admin/summaryAdmins only: 401 without a token, 403 with a student token, 200 with the admin account's token.
/logoutLog out → 200. The token stops working (try /me again).
Delays, any status code, echo, headers, random failures, UUIDs and the time.
/users?delay=3Add ?delay=0–10 (seconds) to any request to slow the response down.
/status/{code}Returns the status code you ask for (200–599), with any method.
/echoSends back your method, query, headers (secrets hidden) and body. Any method.
/headersThe request headers the API received (cookies and tokens hidden).
/slowAlways takes 3 seconds — practise timeouts.
/random-errorFails with 500 about 1 time in 3 (?failRate=0–100 to change it) — practise retries.
/uuidA fresh random UUID.
/timeThe server time in UTC (ISO 8601 and Unix).
Every endpoint above with ready-made status-code checks. The log-in request stores the token for the others.
Download collectionSets baseUrl and an empty token. In Postman: Import → choose both files → pick the environment at the top right.
The full contract: every path, parameter, schema and status code. Import it into Postman or use it for schema checks.
Open openapi.jsonPrefer the command line? Run the collection with Newman: npx newman run Roicians_Free_Practice_API.postman_collection.json -e Roicians_Free_Practice_API.postman_environment.json
Work through them in Postman first, then automate them with Playwright. Write down what you expect before you send each request.
Career Lab's API Testing projects use NorthCart: a full e-commerce API with your own private sandbox, real bugs to find, OAuth, webhooks, GraphQL and performance testing — plus a Playwright + TypeScript starter project. Start free.