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 |
|---|---|---|
| Fred again.. | 1.4M | +4.62% |
| ATRIP | 118k | +4.67% |
| Sofia Kourtesis | 196k | +2.37% |
| Jayda G | 241k | +2.42% |
| Salute | 310k | +3.55% |
| Barry Can't Swim | 420k | +4.37% |
| Laurence Guy | 196k | +2.66% |
| Axel Boman | 163k | — |
| Swimming Paul | 136k | +9.51% |
| nimino | 351k | +6.57% |
| Romy | 301k | +2.48% |
| Barry Can’t Swim | 13k | +8.38% |
| Elderbrook | 513k | +2.20% |
| Octo Octa | 112k | +1.94% |
| Logic1000 | 242k | +2.28% |
| Model Man | 116k | +3.59% |
| Pat Lok | 83k | — |
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