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 ascIndexed to 100 at each series' first observation.
with peers as (
select similar_artist_id as artist_id
from api_artist_similar
where artist_id = $1
),
peer_agg as (
select
ts.snapshot_date,
count(*) as artist_count,
percentile_cont(0.25) within group (order by ts.listeners_indexed) as p25_indexed,
percentile_cont(0.5) within group (order by ts.listeners_indexed) as median_indexed,
percentile_cont(0.75) within group (order by ts.listeners_indexed) as p75_indexed
from api_artist_timeseries ts
join peers p on p.artist_id = ts.artist_id
group by ts.snapshot_date
)
select ts.*, pa.artist_count, pa.p25_indexed, pa.median_indexed, pa.p75_indexed
from api_artist_timeseries ts
left join peer_agg pa on pa.snapshot_date = ts.snapshot_date
where ts.artist_id = $1
order by ts.snapshot_date asc| Artist | Listeners | 13-week growth |
|---|---|---|
| The Chameleons | 508k | +1.54% |
| The Psychedelic Furs | 1.3M | +2.41% |
| Echo & the Bunnymen | 1.6M | +2.30% |
| The Triffids | 68k | +0.79% |
| The The | 722k | +1.73% |
| Love and Rockets | 352k | +1.39% |
| Peter Murphy | 306k | +1.28% |
| Icehouse | 267k | +1.60% |
| Modern English | 657k | +2.12% |
| The Snake Corps | 50k | +3.81% |
| The Comsat Angels | 60k | +0.15% |
| Gene Loves Jezebel | 155k | +1.19% |
| The Sound | 383k | +2.74% |
| Hoodoo Gurus | 130k | +1.31% |
| The Go-Betweens | 254k | +1.11% |
| The Bolshoi | 80k | +1.72% |
| Simple Minds | 2.1M | +1.89% |
| The Mighty Lemon Drops | 73k | +2.04% |
| Hunters & Collectors | 110k | +1.54% |
| Sad Lovers and Giants | 74k | +0.55% |
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