---
title: "Get Track Locations"
method: GET
path: "/tracks/locations"
tags: ["Tracks"]
---

# Get Track Locations

`GET /tracks/locations`

Returns country / city based location information of a track filtered by source.

-----------

NOTE: For Artist/Label API Keys, please make sure to always include either the `songstats_artist_id` or `spotify_artist_id` parameter.

## Query parameters

- `source` string, required
- `isrc` string
- `songstats_track_id` string
- `spotify_track_id` string
- `spotify_artist_id` string
- `apple_music_artist_id` integer
- `songstats_artist_id` string
- `apple_music_track_id` integer

## 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
  - `locations` object[]
    - `source` string
    - `data` object
      - `track_charts` object[]
        - `country_code` string
        - `charts_total` integer
        - `charts_current` integer
        - `charts_previous` integer
      - `album_charts` object[]
        - `country_code` string
        - `charts_total` integer
        - `charts_current` integer
        - `charts_previous` integer
      - `creators` object[]
        - `country_code` string
        - `creators_total` integer
        - `creator_reach_total` integer
      - `reposts` object[]
        - `country_code` string
        - `reposts_total` integer
        - `repost_reach_total` integer
  - `track_info` object
    - `songstats_track_id` string
    - `avatar` string
    - `site_url` string
    - `release_date` string
    - `title` string
    - `artists` object[]
      - `name` string
      - `songstats_artist_id` string
    - `labels` object[]
      - `name` string
      - `songstats_label_id` 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)
