A familiar fake REST API — users, posts, comments, todos, products, carts and quotes — with search, sort, select and page/skip paging. Unlike most, writes persist in your sandbox, carry ETags and validate per field.
Base URL: https://funapi.dev/api/classic/v1 · 43 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.
full CRUD
GET /classic/v1/users — List users — search, filter, sort, select and paginate · Responds with 200 400 404 Link to this endpointGET /classic/v1/users/{id} — Get one user (ETag; If-None-Match → 304) · Responds with 200 304 404 Link to this endpointPOST /classic/v1/users — Create a user — it persists in your sandbox · Responds with 201 422 Link to this endpointPUT /classic/v1/users/{id} — Replace a user (If-Match supported) · Responds with 200 404 412 422 Link to this endpointPATCH /classic/v1/users/{id} — Update fields of a user (If-Match supported) · Responds with 200 404 412 422 Link to this endpointDELETE /classic/v1/users/{id} — Delete a user — a later GET really returns 404 · Responds with 204 404 412 Link to this endpointGET /classic/v1/users/{id}/posts — Posts by one user (same paging as /posts) · Responds with 200 404 Link to this endpointGET /classic/v1/users/{id}/todos — Todos of one user · Responds with 200 404 Link to this endpointfull CRUD
GET /classic/v1/posts — List posts — search, filter, sort, select and paginate · Responds with 200 400 404 Link to this endpointGET /classic/v1/posts/{id} — Get one post (ETag; If-None-Match → 304) · Responds with 200 304 404 Link to this endpointPOST /classic/v1/posts — Create a post — it persists in your sandbox · Responds with 201 422 Link to this endpointPUT /classic/v1/posts/{id} — Replace a post (If-Match supported) · Responds with 200 404 412 422 Link to this endpointPATCH /classic/v1/posts/{id} — Update fields of a post (If-Match supported) · Responds with 200 404 412 422 Link to this endpointDELETE /classic/v1/posts/{id} — Delete a post — a later GET really returns 404 · Responds with 204 404 412 Link to this endpointGET /classic/v1/posts/{id}/comments — Comments on one post · Responds with 200 404 Link to this endpointfull CRUD
GET /classic/v1/comments — List comments — search, filter, sort, select and paginate · Responds with 200 400 404 Link to this endpointGET /classic/v1/comments/{id} — Get one comment (ETag; If-None-Match → 304) · Responds with 200 304 404 Link to this endpointPOST /classic/v1/comments — Create a comment — it persists in your sandbox · Responds with 201 422 Link to this endpointPUT /classic/v1/comments/{id} — Replace a comment (If-Match supported) · Responds with 200 404 412 422 Link to this endpointPATCH /classic/v1/comments/{id} — Update fields of a comment (If-Match supported) · Responds with 200 404 412 422 Link to this endpointDELETE /classic/v1/comments/{id} — Delete a comment — a later GET really returns 404 · Responds with 204 404 412 Link to this endpointfull CRUD
GET /classic/v1/todos — List todos — search, filter, sort, select and paginate · Responds with 200 400 404 Link to this endpointGET /classic/v1/todos/{id} — Get one todo (ETag; If-None-Match → 304) · Responds with 200 304 404 Link to this endpointPOST /classic/v1/todos — Create a todo — it persists in your sandbox · Responds with 201 422 Link to this endpointPUT /classic/v1/todos/{id} — Replace a todo (If-Match supported) · Responds with 200 404 412 422 Link to this endpointPATCH /classic/v1/todos/{id} — Update fields of a todo (If-Match supported) · Responds with 200 404 412 422 Link to this endpointDELETE /classic/v1/todos/{id} — Delete a todo — a later GET really returns 404 · Responds with 204 404 412 Link to this endpointfull CRUD
GET /classic/v1/products — List products — search, filter, sort, select and paginate · Responds with 200 400 404 Link to this endpointGET /classic/v1/products/{id} — Get one product (ETag; If-None-Match → 304) · Responds with 200 304 404 Link to this endpointPOST /classic/v1/products — Create a product — it persists in your sandbox · Responds with 201 422 Link to this endpointPUT /classic/v1/products/{id} — Replace a product (If-Match supported) · Responds with 200 404 412 422 Link to this endpointPATCH /classic/v1/products/{id} — Update fields of a product (If-Match supported) · Responds with 200 404 412 422 Link to this endpointDELETE /classic/v1/products/{id} — Delete a product — a later GET really returns 404 · Responds with 204 404 412 Link to this endpointGET /classic/v1/products/categories — Product categories with counts · Responds with 200 Link to this endpointfull CRUD
GET /classic/v1/carts — List carts — search, filter, sort, select and paginate · Responds with 200 400 404 Link to this endpointGET /classic/v1/carts/{id} — Get one cart (ETag; If-None-Match → 304) · Responds with 200 304 404 Link to this endpointPOST /classic/v1/carts — Create a cart — it persists in your sandbox · Responds with 201 422 Link to this endpointPUT /classic/v1/carts/{id} — Replace a cart (If-Match supported) · Responds with 200 404 412 422 Link to this endpointPATCH /classic/v1/carts/{id} — Update fields of a cart (If-Match supported) · Responds with 200 404 412 422 Link to this endpointDELETE /classic/v1/carts/{id} — Delete a cart — a later GET really returns 404 · Responds with 204 404 412 Link to this endpointread-only
GET /classic/v1/quotes — List quotes (read-only) · Responds with 200 Link to this endpointGET /classic/v1/quotes/random — A random quote · Responds with 200 Link to this endpointGET /classic/v1/quotes/{id} — One quote · Responds with 200 404 Link to this endpointThe Classic Fake REST API has the shape most tutorials assume — users, posts, comments, todos, products, carts and quotes — so an existing test suite or front-end demo can point at it with little more than a new base URL. The difference is underneath: a POST really creates a record in your sandbox, a DELETE really removes it, every record carries an ETag, and a bad body comes back as a 422 that names each failing field instead of a generic error.
GET https://funapi.dev/api/classic/v1/users — List users — search, filter, sort, select and paginate. No token, no signup:
curl -i https://funapi.dev/api/classic/v1/users
Response: 200 OK
{
"data": [
{
"id": 1,
"firstName": "Ava",
"lastName": "Stone",
"username": "avastone",
"email": "ava.stone@example.com",
"phone": "+1-555-0110",
"age": 22,
"role": "admin",
"company": "Northwind Labs",
"address": {
"city": "Austin",
"zip": "73301"
}
},
{
"id": 2,
"firstName": "Liam",
"lastName": "Rivera",
"username": "liamrivera",
"email": "liam.rivera@example.com",
"phone": "+1-555-0111",
"age": 29,
"role": "user",
"company": "Blue Harbor",
"address": {
"city": "Denver",
"zip": "80014"
}
},
{
"id": 3,
"firstName": "Maya",
"lastName": "Okafor",
"username": "mayaokafor",
"email": "maya.okafor@example.com",
"phone": "+1-555-0112",
"age": 36,
"role": "user",
"company": "Quietloop",
"address": {
"city": "Lisbon",
"zip": "1100-148"
}
},
{
"id": 4,
"firstName": "Noah",
"lastName": "Lindqvist",
(truncated — the full response comes back when you run it)
How this differs from JSONPlaceholder
Last updated