---
title: "Get total watch time by category ID"
method: GET
path: "/category/total-watch-time/{categoryId}"
tags: ["Categories"]
---

# Get total watch time by category ID

`GET /category/total-watch-time/{categoryId}`

## Path parameters

- `categoryId` string, required

## Headers

- `organization` string, required
- `channel` string, required

## Response `200`

The total watched time of a category.

- object
  - `message` string
  - `error` boolean
  - `code` integer
  - `results` object
    - `response` object
      - `totalWatchedTimeInMs` integer
      - `totalWatchedTime` string

## Other responses

- `404` — Returns 404 if no results found;

---

[API](https://skmtc.net/fanhero/apis/tenant-endpoints.md) · [All operations](https://skmtc.net/fanhero/apis/tenant-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fanhero/tenant-endpoints/revisions/8e7584c449dc/schema)
