> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.movieknight.site/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.movieknight.site/_mcp/server.

# Movie details by id

GET {{baseUrl}}/api/movies/{{tmdbId}}

**What:** Full details for one movie (overview, genres, director, top 4 cast, YouTube trailer key). Served from Mongo when cached, else fetched from TMDB and stored.

**Auth:** None.

**Path params:**

| Param | Type | Required | Description | Example |
|---|---|---|---|---|
| id | integer | yes | Numeric TMDB movie id (> 0). | `550` |

**Returns:** `data = movie detail`. `400` on a non-numeric/<=0 id; `404` (as 'Movie service request failed') on a valid id that does not exist upstream.

Reference: https://apidocs.movieknight.site/movie-knight-api/movies/movie-details-by-id

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/movies/{{tmdbId}}:
    get:
      operationId: movie-details-by-id
      summary: Movie details by id
      description: >-
        **What:** Full details for one movie (overview, genres, director, top 4
        cast, YouTube trailer key). Served from Mongo when cached, else fetched
        from TMDB and stored.


        **Auth:** None.


        **Path params:**


        | Param | Type | Required | Description | Example |

        |---|---|---|---|---|

        | id | integer | yes | Numeric TMDB movie id (> 0). | `550` |


        **Returns:** `data = movie detail`. `400` on a non-numeric/<=0 id; `404`
        (as 'Movie service request failed') on a valid id that does not exist
        upstream.
      tags:
        - subpackage_movies
      parameters:
        - name: '{tmdbId'
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Movies_Movie details by id_Response_200'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiMovies550RequestBadRequestError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiMovies550RequestNotFoundError'
servers:
  - url: '{{baseUrl}}'
    description: '{{baseUrl}}'
components:
  schemas:
    ApiMoviesTmdbIdGetResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        id:
          type: integer
        cast:
          type: array
          items:
            type: string
        title:
          type: string
        genres:
          type: array
          items:
            type: string
        runtime:
          type: integer
        tagline:
          type: string
        director:
          type: string
        overview:
          type: string
        trailerKey:
          type: string
        poster_path:
          type: string
        release_date:
          type: string
          format: date
        vote_average:
          type: number
          format: double
        backdrop_path:
          type: string
      required:
        - id
        - cast
        - title
        - genres
        - runtime
        - tagline
        - director
        - overview
        - trailerKey
        - poster_path
        - release_date
        - vote_average
        - backdrop_path
      title: ApiMoviesTmdbIdGetResponsesContentApplicationJsonSchemaData
    Movies_Movie details by id_Response_200:
      type: object
      properties:
        ok:
          type: boolean
        data:
          $ref: >-
            #/components/schemas/ApiMoviesTmdbIdGetResponsesContentApplicationJsonSchemaData
      required:
        - ok
        - data
      title: Movies_Movie details by id_Response_200
    GetApiMovies550RequestBadRequestError:
      type: object
      properties:
        ok:
          type: boolean
        error:
          type: string
      required:
        - ok
        - error
      title: GetApiMovies550RequestBadRequestError
    GetApiMovies550RequestNotFoundError:
      type: object
      properties:
        ok:
          type: boolean
        error:
          type: string
      required:
        - ok
        - error
      title: GetApiMovies550RequestNotFoundError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## Examples



**Response**

```json
{
  "ok": true,
  "data": {
    "id": 550,
    "cast": [
      "Edward Norton",
      "Brad Pitt",
      "Meat Loaf",
      "Zach Grenier"
    ],
    "title": "Fight Club",
    "genres": [
      "Drama"
    ],
    "runtime": 139,
    "tagline": "Mischief. Mayhem. Soap.",
    "director": "David Fincher",
    "overview": "A ticking-time-bomb insomniac and a slippery soap salesman channel primal male aggression into a shocking new form of therapy.",
    "trailerKey": "BdJKm16Co6M",
    "poster_path": "/pB8BM7pdSp6B6Ih7QZ4DrQ3PmJK.jpg",
    "release_date": "1999-10-15",
    "vote_average": 8.438,
    "backdrop_path": "/hZkgoQYus5vegHoetLkCJzb17zJ.jpg"
  }
}
```

**SDK Code**

```python Movies_Movie details by id_example
import requests

url = "https://{{baseurl}}/api/movies/%7BtmdbId%7D"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Movies_Movie details by id_example
const url = 'https://{{baseurl}}/api/movies/%7BtmdbId%7D';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Movies_Movie details by id_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://{{baseurl}}/api/movies/%7BtmdbId%7D"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Movies_Movie details by id_example
require 'uri'
require 'net/http'

url = URI("https://{{baseurl}}/api/movies/%7BtmdbId%7D")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Movies_Movie details by id_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://{{baseurl}}/api/movies/%7BtmdbId%7D")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Movies_Movie details by id_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://{{baseurl}}/api/movies/%7BtmdbId%7D', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Movies_Movie details by id_example
using RestSharp;

var client = new RestClient("https://{{baseurl}}/api/movies/%7BtmdbId%7D");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Movies_Movie details by id_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://{{baseurl}}/api/movies/%7BtmdbId%7D")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```