---
title: "Get Collaborator Top Tracks"
method: GET
path: "/collaborators/top_tracks"
tags: ["Collaborators"]
---

# Get Collaborator Top Tracks

`GET /collaborators/top_tracks`

Returns the top tracks of a collaborator sorted rank type.

## Query parameters

- `source` string, required
- `songstats_collaborator_id` string
- `tidal_artist_id` string
- `limit` integer
- `metric` string, required
- `scope` string, required

## Headers

- `Accept-Encoding` string

## Response `200`

OK: The request has succeeded. The client can read the result of the response.

- object
  - `result` string
  - `message` string
  - `data` object[]
    - `source` string
    - `metric` string, nullable
    - `scope` string
    - `top_tracks` object[]
      - `track_name` string
      - `artist_name` string
      - `image_url` string
      - `songstats_url` string
      - `rank_value` integer
      - `songstats_track_id` string
    - `metric_options` string[]
  - `collaborator_info` object
    - `songstats_collaborator_id` string
    - `avatar` string
    - `site_url` string
    - `name` string
  - `source_ids` string[]

## Other responses

- `400` — Bad Request: The request could not be understood due to malformed syntax.
- `401` — Unauthorized: The request requires valid user authentication.
- `403` — Forbidden: The server understood the request, but is refusing to fulfill it.
- `404` — Not Found: The requested resource could not be found.
- `429` — Too Many Requests: Rate limiting has been applied.
- `500` — Internal Server Error: You should never receive this error because our clever coders catch them all… but if you are unlucky enough to get one, please report it to us.
- `502` — Bad Gateway: The server received an invalid response from the upstream server.
- `503` — Service Unavailable: The server is temporarily unable to handle the request.

---

[API](https://skmtc.dev/songstats/apis/songstats-api.md) · [All operations](https://skmtc.dev/songstats/apis/songstats-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/songstats/songstats-api/revisions/f9c79d4ec6f5/schema)
