MockData.ir

Albums

LIVE

Photo albums owned by users. Photos use albumId to group into these albums.

Endpoints

Query params

ParamDescriptionExample
searchSearch album titlesearch=city
userIdFilter by owner UUIDuserId=…
sortcreatedAt · title · id · default idsort=title
pagePage number · default 1page=2
limitPage size · default 12 · max 50limit=12
orderasc · descorder=asc
langPass fa for Persian text · omit for English (default)lang=fa
delayArtificial wait in ms · max 5000delay=800
statusForce error HTTP status · 400–599status=500

Persian text: add lang=fa. See Docs · Language.

Request
1const { data } = await axios.get('/api/albums');
Response
1{2  "data": [3    {4      "id": 1,5      "userId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",6      "title": "City walks",7      "createdAt": "2026-09-14T10:00:00.000Z",8      "updatedAt": "2026-09-14T10:00:00.000Z"9    }10  ],11  "pagination": {12    "page": 1,13    "limit": 12,14    "total": 8,15    "totalPages": 116  }17}