> 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.

# Get collection (with movies)

GET {{baseUrl}}/api/collections/{{collectionId}}

**What:** One collection plus its joined movies. Owner sees their own; a logged-in non-owner sees a PUBLIC list in visitor mode; a private/foreign list is 404.

**Auth:** Bearer token required.

**Path params:**

| Param | Type | Required | Description | Example |
|---|---|---|---|---|
| id | string | yes | Collection ObjectId. | `66b0c1d2e3f4a5b6c7d8e9f0` |

**Returns:** `data = full` (card identity + `authorId` + `movies[]`).

Reference: https://apidocs.movieknight.site/movie-knight-api/collections/get-collection-with-movies

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/collections/{{collectionId}}:
    get:
      operationId: get-collection-with-movies
      summary: Get collection (with movies)
      description: >-
        **What:** One collection plus its joined movies. Owner sees their own; a
        logged-in non-owner sees a PUBLIC list in visitor mode; a
        private/foreign list is 404.


        **Auth:** Bearer token required.


        **Path params:**


        | Param | Type | Required | Description | Example |

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

        | id | string | yes | Collection ObjectId. | `66b0c1d2e3f4a5b6c7d8e9f0`
        |


        **Returns:** `data = full` (card identity + `authorId` + `movies[]`).
      tags:
        - subpackage_collections
      parameters:
        - name: '{collectionId'
          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/Collections_Get collection (with
                  movies)_Response_200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetApiCollections66b0c1d2e3f4a5b6c7d8e9f0RequestUnauthorizedError
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetApiCollections66b0c1d2e3f4a5b6c7d8e9f0RequestNotFoundError
servers:
  - url: '{{baseUrl}}'
    description: '{{baseUrl}}'
components:
  schemas:
    ApiCollectionsCollectionIdGetResponsesContentApplicationJsonSchemaDataMoviesItems:
      type: object
      properties:
        id:
          type: integer
        title:
          type: string
        addedAt:
          type: string
          format: date-time
        genre_ids:
          type: array
          items:
            type: integer
        sortOrder:
          type: integer
        poster_path:
          type: string
        releaseYear:
          type: integer
        provider_ids:
          type: array
          items:
            type: integer
        release_date:
          type: string
          format: date
        vote_average:
          type: number
          format: double
      required:
        - id
        - title
        - addedAt
        - genre_ids
        - sortOrder
        - poster_path
        - releaseYear
        - provider_ids
        - release_date
        - vote_average
      title: >-
        ApiCollectionsCollectionIdGetResponsesContentApplicationJsonSchemaDataMoviesItems
    ApiCollectionsCollectionIdGetResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        sort:
          type: string
        author:
          type: string
        movies:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiCollectionsCollectionIdGetResponsesContentApplicationJsonSchemaDataMoviesItems
        isOwner:
          type: boolean
        authorId:
          type: string
        isPublic:
          type: boolean
        createdAt:
          type: string
          format: date-time
        isDefault:
          type: boolean
        posterUrl:
          description: Any type
        likesCount:
          type: integer
        movieCount:
          type: integer
        savesCount:
          type: integer
      required:
        - id
        - name
        - sort
        - author
        - movies
        - isOwner
        - authorId
        - isPublic
        - createdAt
        - isDefault
        - likesCount
        - movieCount
        - savesCount
      title: ApiCollectionsCollectionIdGetResponsesContentApplicationJsonSchemaData
    Collections_Get collection (with movies)_Response_200:
      type: object
      properties:
        ok:
          type: boolean
        data:
          $ref: >-
            #/components/schemas/ApiCollectionsCollectionIdGetResponsesContentApplicationJsonSchemaData
      required:
        - ok
        - data
      title: Collections_Get collection (with movies)_Response_200
    GetApiCollections66b0c1d2e3f4a5b6c7d8e9f0RequestUnauthorizedError:
      type: object
      properties:
        ok:
          type: boolean
        error:
          type: string
      required:
        - ok
        - error
      title: GetApiCollections66b0c1d2e3f4a5b6c7d8e9f0RequestUnauthorizedError
    GetApiCollections66b0c1d2e3f4a5b6c7d8e9f0RequestNotFoundError:
      type: object
      properties:
        ok:
          type: boolean
        error:
          type: string
      required:
        - ok
        - error
      title: GetApiCollections66b0c1d2e3f4a5b6c7d8e9f0RequestNotFoundError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## Examples



**Response**

```json
{
  "ok": true,
  "data": {
    "id": "66b0c1d2e3f4a5b6c7d8e9f0",
    "name": "Favorites",
    "sort": "added_desc",
    "author": "moviefan",
    "movies": [
      {
        "id": 550,
        "title": "Fight Club",
        "addedAt": "2026-06-25T10:31:00.000Z",
        "genre_ids": [
          18
        ],
        "sortOrder": 0,
        "poster_path": "/pB8BM7pdSp6B6Ih7QZ4DrQ3PmJK.jpg",
        "releaseYear": 1999,
        "provider_ids": [
          8
        ],
        "release_date": "1999-10-15",
        "vote_average": 8.438
      },
      {
        "id": 27205,
        "title": "Inception",
        "addedAt": "2026-06-25T10:32:00.000Z",
        "genre_ids": [
          28,
          878,
          12
        ],
        "sortOrder": 0,
        "poster_path": "/oYuLEt3zVCKq57qu2F8dT7NIa6f.jpg",
        "releaseYear": 2010,
        "provider_ids": [
          9,
          1899
        ],
        "release_date": "2010-07-15",
        "vote_average": 8.369
      }
    ],
    "isOwner": true,
    "authorId": "66a1f2c4e5b3a1234567890a",
    "isPublic": false,
    "createdAt": "2026-06-25T10:30:00.000Z",
    "isDefault": true,
    "likesCount": 0,
    "movieCount": 2,
    "savesCount": 0
  }
}
```

**SDK Code**

```python Collections_Get collection (with movies)_example
import requests

url = "https://{{baseurl}}/api/collections/%7BcollectionId%7D"

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

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

print(response.json())
```

```javascript Collections_Get collection (with movies)_example
const url = 'https://{{baseurl}}/api/collections/%7BcollectionId%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 Collections_Get collection (with movies)_example
package main

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

func main() {

	url := "https://{{baseurl}}/api/collections/%7BcollectionId%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 Collections_Get collection (with movies)_example
require 'uri'
require 'net/http'

url = URI("https://{{baseurl}}/api/collections/%7BcollectionId%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 Collections_Get collection (with movies)_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

```php Collections_Get collection (with movies)_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

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

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

```csharp Collections_Get collection (with movies)_example
using RestSharp;

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

```swift Collections_Get collection (with movies)_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://{{baseurl}}/api/collections/%7BcollectionId%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()
```