TMDB API endpoint
Returns every genre ID for TMDB movie and TV browse pages. Use movie values only with movie list filters and TV values only with TV list filters.
/tmdb/genresReturns every genre id advertised by TMDB's public movie and TV browse pages.
Use movie[].id values only with GET /tmdb/movie/list?with_genres=...; use tv[].id values only with GET /tmdb/tv/list?with_genres=.... The response is the discovery contract for those parameter value spaces.
| Field | Filled in, of 19 checked | Values in the sample |
|---|---|---|
| id | 19 | |
| name | 19 | “Action” and 18 other values |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/tmdb/genres" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"movie": [
{
"id": "28",
"name": "Action"
},
{
"id": "18",
"name": "Drama"
}
],
"tv": [
{
"id": "16",
"name": "Animation"
},
{
"id": "10765",
"name": "Sci-Fi & Fantasy"
}
],
"source_url": "https://www.themoviedb.org/movie"
}
}Request schema
No body schema
Response schema
#/definitions/tmdb.genresResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | tmdb.GenresResponse | No | ||||
| data.movie | array | No | ||||
| data.movie[].id | string | No | 18 | |||
| data.movie[].name | string | No | Drama | |||
| data.source_url | string | No | ||||
| data.tv | array | No | ||||
| data.tv[].id | string | No | 18 | |||
| data.tv[].name | string | No | Drama | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 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/genres" \
-H "x-api-key: $CRAWLORA_API_KEY"