---
title: "Popular segment"
method: GET
path: "/v0/tracks/{trackId}/highlights"
tags: ["Tracks"]
---

# Popular segment

`GET /v0/tracks/{trackId}/highlights`

Powered by our 2 billion daily streams on YouTube, the popular segments endpoint uses machine learning to recommend the best time section.

You can use popular segments to start playing the track from the right millisecond, or recommend the right part of the track for shorter content.

The popular segments endpoint provides start and stop timestamps in milliseconds. The default duration is 30 seconds.

The endpoint accepts up to 5 different durations per request where each duration must be at least 5 seconds and at most 60 seconds.

## Path parameters

- `trackId` string, required

## Query parameters

- `duration` integer[]

## Response `200`

List of highlighted sections for the track. The times are given in milliseconds. If there is no available highlight, a fallback to the first section of the track is returned.

- HighlightsResponse
  - `highlights` HighlightSectionResponse[], required
    - `from` integer, required
    - `to` integer, required
    - `duration` integer, required

## Other responses

- `400` — Bad request.
- `401` — Unauthorized. Most likely your access token has expired.
- `404` — Track was not found.
- `429` — Rate limit exceeded.

---

[API](https://skmtc.net/epidemicsound/apis/partner-content-api.md) · [All operations](https://skmtc.net/epidemicsound/apis/partner-content-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/epidemicsound/partner-content-api/revisions/7a3e05c7cda1/schema)
