select
snapshot_date, week_number, listeners, playcount,
listener_delta, listener_pct_change, listeners_indexed
from api_artist_timeseries
where artist_id = $1
order by snapshot_date ascselect
ts.snapshot_date, ts.week_number, ts.listeners, ts.listeners_indexed,
cw.artist_count, cw.p25_indexed, cw.median_indexed, cw.p75_indexed
from api_artist_timeseries ts
left join api_cohort_weekly cw
on cw.cohort_type = $2 -- 'genre' or 'size_band'
and cw.cohort_key = $3 -- primary_genre or size_band
and cw.snapshot_date = ts.snapshot_date
where ts.artist_id = $1
order by ts.snapshot_date asc| Artist | Listeners | 13-week growth |
|---|---|---|
| Michael Schenker Group | 200k | +0.53% |
| Uriah Heep | 802k | +0.43% |
| Cheap Trick | 1.4M | +1.38% |
| Status Quo | 943k | +0.97% |
| Montrose | 135k | +1.44% |
| Bad Company | 1.0M | +1.67% |
| Nazareth | 979k | +1.70% |
| Free | 970k | +1.29% |
| Thin Lizzy | 1.6M | +1.22% |
| Deep Purple | 3.1M | +0.96% |
| Rainbow | 1.4M | +1.54% |
| Gary Moore | 1.0M | +1.71% |
| Grand Funk Railroad | 718k | +1.15% |
| Budgie | 265k | +1.70% |
| Scorpions | 2.9M | +2.29% |
| Whitesnake | 1.8M | +1.97% |
| Wishbone Ash | 353k | +0.86% |
| Ted Nugent | 688k | +0.96% |
| Tygers of Pan Tang | 99k | +1.19% |
| Y&T | 167k | +0.99% |
select
similar_artist_id, slug, display_name, size_band,
latest_listeners, total_pct_growth, weeks_tracked, similarity_score, rank
from api_artist_similar
where artist_id = $1
order by rank ascselect *
from api_artist_profile
where artist_id = $1