API Documentation
Explore endpoints, parameters, and examples
Platforms
Endpoints
Authentication
All API requests require a Bearer token in the Authorization header.
Authorization: Bearer sk-your-token-here
Base URL
https://api.shortdrama.com
GET
/api/v1/searchSearch for dramas across platforms
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| q | string | Required | Search query |
| platform | string | Optional | Platform ID (omit for all) |
| page | number | Optional | Page number (default: 1) |
| limit | number | Optional | Results per page (default: 20, max: 100) |
Example
curl -X GET "https://api.shortdrama.com/api/v1/search?q=love&platform=dramabox" -H "Authorization: Bearer YOUR_TOKEN"
GET
/api/v1/drama/:idGet detailed information about a drama
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Drama ID (in path) |
| platform | string | Required | Platform ID |
Example
curl -X GET "https://api.shortdrama.com/api/v1/drama/dramabox-drama-1?platform=dramabox" -H "Authorization: Bearer YOUR_TOKEN"
GET
/api/v1/drama/:id/episodesGet episode list for a drama
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Drama ID (in path) |
| platform | string | Required | Platform ID |
| page | number | Optional | Page number |
Example
curl -X GET "https://api.shortdrama.com/api/v1/drama/dramabox-drama-1/episodes?platform=dramabox" -H "Authorization: Bearer YOUR_TOKEN"
GET
/api/v1/episode/:idGet streaming links for an episode
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Episode ID (in path) |
| platform | string | Required | Platform ID |
Example
curl -X GET "https://api.shortdrama.com/api/v1/episode/dramabox-drama-1-ep-1?platform=dramabox" -H "Authorization: Bearer YOUR_TOKEN"
GET
/api/v1/trendingGet trending dramas
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| platform | string | Optional | Platform ID (omit for all) |
Example
curl -X GET "https://api.shortdrama.com/api/v1/trending" -H "Authorization: Bearer YOUR_TOKEN"