# Get track with play count (v1)

Returns a track's all-time play count, duration, explicit flag, artists and album. `data` is null when the track does not exist.

- Platform: Spotify
- Request: `GET https://api.toolzerhub.com/v1/spotify/track`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/spotify/track/get-spotify-track

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `track_id_or_url` | query | yes | string | The track's open.spotify.com link, its spotify:track: URI, or its 22-character ID (the id in a search result), such as 4cOdK2wGLETKBW3PvgPWqT. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/spotify/track?track_id_or_url=<track_id_or_url>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
