> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rewind.rest/llms.txt
> Use this file to discover all available pages before exploring further.

# Physical media item detail

> Full detail for a single physical media item including movie metadata and watch history.



## OpenAPI

````yaml get /v1/collecting/media/{id}
openapi: 3.1.0
info:
  title: Rewind API
  version: 1.0.0
  description: >-
    Personal data aggregation API. Syncs and serves data from Last.fm, Apple
    Music, Strava, Plex, Letterboxd, Discogs, Trakt, Instapaper, Google
    Calendar, and Gmail.


    ## Domains


    | Domain | Source | Description |

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

    | **Listening** | Last.fm, Apple Music | Scrobbles, top
    artists/albums/tracks, streaks, stats |

    | **Running** | Strava | Activities, splits, gear, personal records, year
    summaries |

    | **Watching** | Plex, Letterboxd | Movies, TV shows, watch history,
    ratings, reviews |

    | **Collecting** | Discogs, Trakt | Vinyl/CD collection, physical media,
    wantlist |

    | **Reading** | Instapaper | Articles, highlights, reading progress, word
    count |

    | **Attending** | Google Calendar, Gmail | Live events, tickets, sports
    games, concerts, venues |


    ## Authentication


    All endpoints require a Bearer token. There are two key types:


    - **Read keys** (`rw_live_...`) — access all GET endpoints

    - **Admin keys** (`rw_admin_...`) — access all endpoints including sync
    triggers and data management


    Pass your key in the Authorization header: `Authorization: Bearer
    rw_live_...`


    ## Pagination


    List endpoints return paginated responses:


    ```json

    {
      "data": [...],
      "pagination": { "page": 1, "limit": 20, "total": 150, "total_pages": 8 }
    }

    ```


    The activity feed uses cursor-based pagination instead.


    ## Quick Start


    ```bash

    # Check the API is up

    curl https://api.rewind.rest/v1/health


    # Fetch recent scrobbles (requires read key)

    curl -H "Authorization: Bearer rw_live_..." \
      https://api.rewind.rest/v1/listening/recent

    # Fetch running stats

    curl -H "Authorization: Bearer rw_live_..." \
      https://api.rewind.rest/v1/running/stats
    ```


    ## Errors


    All errors follow the same envelope:


    ```json

    { "error": "Not found", "status": 404 }

    ```


    Common status codes: 400 (bad request), 401 (unauthorized), 404 (not found),
    500 (server error).
  contact:
    url: https://github.com/pdugan20/rewind
servers:
  - url: https://api.rewind.rest
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Listening
    description: Last.fm scrobbles, top charts, streaks, and stats.
  - name: Running
    description: Strava activities, splits, gear, records, and year summaries.
  - name: Watching
    description: >-
      Movies, TV shows, watch history, ratings, and reviews from Plex and
      Letterboxd.
  - name: Collecting
    description: Vinyl/CD collection from Discogs and physical media from Trakt.
  - name: Reading
    description: Articles, highlights, and reading stats from Instapaper.
  - name: Attending
    description: >-
      Live events you bought tickets for — sports games, concerts, theater.
      Sourced from Google Calendar and ticket-vendor email.
  - name: Feed
    description: Cross-domain activity feed with cursor-based pagination.
  - name: Search
    description: Full-text search across all domains.
  - name: Images
    description: Image proxy with on-the-fly transforms via Cloudflare Images.
  - name: System
    description: Health checks and sync status.
  - name: Admin
    description: >-
      API key management, sync triggers, and data administration. Requires admin
      key.
  - name: Webhooks
    description: Inbound webhook receivers for Strava and Plex. No auth required.
paths:
  /v1/collecting/media/{id}:
    get:
      tags:
        - Collecting
      summary: Physical media item detail
      description: >-
        Full detail for a single physical media item including movie metadata
        and watch history.
      operationId: getCollectingMediaItem
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Media item detail
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: number
                  title:
                    type: string
                  year:
                    type:
                      - number
                      - 'null'
                  tmdb_id:
                    type:
                      - number
                      - 'null'
                  imdb_id:
                    type:
                      - string
                      - 'null'
                  tagline:
                    type:
                      - string
                      - 'null'
                  summary:
                    type:
                      - string
                      - 'null'
                  image:
                    $ref: '#/components/schemas/ImageAttachment'
                  runtime:
                    type:
                      - number
                      - 'null'
                  tmdb_rating:
                    type:
                      - number
                      - 'null'
                  content_rating:
                    type:
                      - string
                      - 'null'
                  media_type:
                    type: string
                  resolution:
                    type:
                      - string
                      - 'null'
                  hdr:
                    type:
                      - string
                      - 'null'
                  audio:
                    type:
                      - string
                      - 'null'
                  audio_channels:
                    type:
                      - string
                      - 'null'
                  collected_at:
                    type:
                      - string
                      - 'null'
                  watch_history:
                    type: array
                    items:
                      type: object
                      properties:
                        watched_at:
                          type:
                            - string
                            - 'null'
                        source:
                          type:
                            - string
                            - 'null'
                        user_rating:
                          type:
                            - number
                            - 'null'
                      required:
                        - watched_at
                        - source
                        - user_rating
                required:
                  - id
                  - title
                  - year
                  - tmdb_id
                  - imdb_id
                  - tagline
                  - summary
                  - image
                  - runtime
                  - tmdb_rating
                  - content_rating
                  - media_type
                  - resolution
                  - hdr
                  - audio
                  - audio_channels
                  - collected_at
                  - watch_history
              example:
                id: 2
                title: The Great Escape
                year: 1963
                tmdb_id: 5925
                imdb_id: tt0057115
                tagline: No prison can hold them!
                summary: >-
                  Allied prisoners of war plan for several hundred of their
                  number to escape from a German camp during World War II.
                image: null
                runtime: 172
                tmdb_rating: 8
                content_rating: NR
                media_type: bluray_4k
                resolution: 2160p
                hdr: HDR10
                audio: DTS-HD MA
                audio_channels: '5.1'
                collected_at: '2025-12-25T00:00:00Z'
                watch_history:
                  - watched_at: '2025-08-10T20:00:00Z'
                    source: plex
                    user_rating: null
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ImageAttachment:
      type:
        - object
        - 'null'
      properties:
        url:
          type: string
          format: uri
          example: https://cdn.rewind.rest/...
        thumbhash:
          type:
            - string
            - 'null'
          example: YJqGPQw7d4...
        dominant_color:
          type:
            - string
            - 'null'
          example: '#1a1a2e'
        accent_color:
          type:
            - string
            - 'null'
          example: '#e94560'
      required:
        - url
        - thumbhash
        - dominant_color
        - accent_color
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Not found
        status:
          type: integer
          example: 404
      required:
        - error
        - status
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key. Read keys (rw_live_...) access GET endpoints. Admin keys
        (rw_admin_...) access all endpoints.

````