TMDB API endpoint
Returns a TMDB collection (a movie franchise grouping) by `id`, which can be the collection id or an id-slug. The response has the collection title, overview, `uri` and `source_url`, plus its member movies, each with id, title, overview, poster URL, release date and `uri`.
/tmdb/collection/{id}Path parameters:
id (required) — TMDB collection id or id-slug.| Field | Filled in, of 3 checked | Values in the sample |
|---|---|---|
| id | 3 | |
| title | 3 | “Batman Begins” and 2 other values |
| uri | 3 | themoviedb.org |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id (path) | string | Yes | TMDB collection id or id-slug | 263 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/tmdb/collection/263" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"id": "263",
"title": "The Dark Knight Collection",
"overview": "Christopher Nolan's dark, gritty portrayal of Bruce Wayne...",
"movies": [
{
"id": "272",
"title": "Batman Begins",
"uri": "https://www.themoviedb.org/movie/272-batman-begins"
}
],
"uri": "https://www.themoviedb.org/collection/263",
"source_url": "https://www.themoviedb.org/collection/263"
}
}Request schema
No body schema
Response schema
#/definitions/tmdb.collectionResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | tmdb.CollectionResponse | No | ||||
| data.id | string | No | ||||
| data.movies | array | No | MediaRef record, 6 fields: id, overview, poster_url, release_date, title, uri. Described under TMDB TV List API. | |||
| data.overview | string | No | ||||
| data.source_url | string | No | ||||
| data.title | string | No | ||||
| data.uri | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/tmdb/collection/263" \
-H "x-api-key: $CRAWLORA_API_KEY"