Endpoints
Related routes
Filters
page, limit, q, role, status, city
Fields
| Field | Type | Description |
|---|---|---|
id | number | User ID |
name | string | Full name |
email | string | Email address |
city | string | City |
role | string | Role, e.g. admin / member |
status | string | Status, e.g. active / inactive |
created_at | string | ISO timestamp |
Notes
- Writes are simulated and never stored; GET responses are cached for 60 seconds.
Common mistakes
- Out-of-range pages return an empty list, not a 404page=99 still returns 200 with an empty data array, and meta.total stays 8. Render the empty state yourself.
- limit is capped at 50Passing 100 is treated as 50. No error is returned.
- GET responses are cached for 60 secondsThe header is Cache-Control: public, max-age=60. If a change does not show up while debugging, rule out the cache first.
- Writes are not storedPOST returns 201 with a new id, but the record never appears in the list.
Example
curl "https://www.temp-api.com/en/mock/users?limit=3"
{
"code": 200,
"message": "ok",
"data": [
{ "id": 1, "name": "Emily Carter", "role": "admin", "status": "active" }
],
"meta": { "page": 1, "limit": 3, "total": 8, "total_pages": 3 }
}