Click an endpoint to view parameters and run live tests.
{
"success": true,
"data": [...],
"meta": {
"timestamp": "2024-01-01T00:00:00.000Z",
"pagination": {
"page": 1,
"size": 10,
"hasMore": true
}
}
}
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Required parameter: keyword"
},
"meta": {
"timestamp": "2024-01-01T00:00:00.000Z"
}
}
| Code | HTTP | Description |
|---|---|---|
VALIDATION_ERROR | 400 | Invalid input |
NOT_FOUND | 404 | Data not found |
RATE_LIMIT_EXCEEDED | 429 | Too many requests |
REQUEST_TIMEOUT | 408 | Request timeout |
INTERNAL_ERROR | 500 | Server error |
Expand each endpoint to view parameters and send a live request.
/api/search
Search dramas by keyword.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
keyword | string | ✅ | - | Search keyword |
page | number | ❌ | 1 | Page number |
size | number | ❌ | 20 | Items per page |
lang | string | ❌ | th | Language (th/en) |
/api/home
Get the latest drama list from the homepage.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
page | number | ❌ | 1 | Page number |
size | number | ❌ | 10 | Items per page |
lang | string | ❌ | th | Language (th/en) |
/api/chapters/:bookId
Get all chapters/episodes of a drama.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
bookId | path | ✅ | - | Drama ID |
lang | string | ❌ | th | Language (th/en) |
/api/categories
Get all drama categories.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
lang | string | ❌ | th | Language (th/en) |
/api/category/:id
Get dramas by a specific category.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
id | path | ✅ | - | Category ID |
page | number | ❌ | 1 | Page number |
size | number | ❌ | 10 | Items per page |
lang | string | ❌ | th | Language (th/en) |
/api/recommend
Get recommended drama list.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
lang | string | ❌ | th | Language (th/en) |