# Get top charts (v1)

A whole Shazam chart in one call, ranked by Shazams over the past 7 days: worldwide or country top 200, city top 50, or a genre chart. Each song has its rank, artist and title. The chart locations endpoint lists the cities and genres ranked.

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

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `country` | query | no | string | An ISO country code such as US, GB or IN, or a country name. Omit for the worldwide chart. GET /v1/shazam/chart-locations lists the 70 countries Shazam ranks. Default: . |
| `city` | query | no | string | A city Shazam ranks in the given country, such as New York City, London or Mumbai, for its top 50. Needs country, and cannot be combined with genre. Default: . |
| `genre` | query | no | string | A genre such as Pop, Hip-Hop/Rap, Dance or Country, for that genre's chart worldwide or in the given country. Cannot be combined with city. Default: . |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/shazam/charts" \
  -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.
