gettingStarted
The TRUST Lab API provides a simple REST interface for searching, streaming, and downloading movies and TV series. All endpoints return JSON responses and support CORS for browser-based applications.
baseUrl
https://your-domain.comapiKey
TRUST Labformat
JSONTable of Contents
API Endpoints
GET
/api/searchSearch for movies and TV series by title
parameters
| name | type | required | description |
|---|---|---|---|
| query | string | yes | Search query (movie/series title) |
| subjectType | string | no | Filter by type: ALL, MOVIE, TV |
| page | number | no | Page number (default: 1) |
| perPage | number | no | Results per page (default: 24) |
examples
GET
/api/item-detailsGet detailed information about a specific movie or series
parameters
| name | type | required | description |
|---|---|---|---|
| subjectId | string | yes | The unique subject ID |
examples
GET
/api/mediaGet streaming and download links with proxied URLs
parameters
| name | type | required | description |
|---|---|---|---|
| subjectId | string | yes | The unique subject ID |
| detailPath | string | yes | The detail path from item details |
| season | number | no | Season number for TV series (default: 0) |
| episode | number | no | Episode number for TV series (default: 0) |
examples
POST
/api/streamGet streaming data for playback
parameters
| name | type | required | description |
|---|---|---|---|
| subjectId | string | yes | The unique subject ID |
| detailPath | string | yes | The detail path |
| season | number | no | Season number (default: 0) |
| episode | number | no | Episode number (default: 0) |
examples
GET
/api/proxyProxy streaming content to bypass CORS restrictions
parameters
| name | type | required | description |
|---|---|---|---|
| url | string | yes | The encoded URL to proxy |
examples
GET
/api/proxy-downloadDownload media files with proper filename (name is required)
parameters
| name | type | required | description |
|---|---|---|---|
| url | string | yes | The encoded URL to download |
| name | string | yes | Movie/series name for filename (REQUIRED) |
| quality | string | no | Quality label (e.g., 1080p, 720p) |
examples
Complete Workflow Example
Here is a complete example showing how to search for a movie and get its streaming/download links.