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 |
|---|---|---|
| Mcbaise | 170k | — |
| Temples | 465k | +1.78% |
| Moses Gunn Collective | 302k | +2.58% |
| Red Vox | 147k | +2.51% |
| Pond | 618k | +1.89% |
| Post Animal | 245k | +1.26% |
| Fleece | 261k | — |
| The Lazy Eyes | 136k | +1.98% |
| Foxygen | 619k | +1.08% |
| King Gizzard & The Lizard Wizard | 917k | +0.42% |
| Brick+Mortar | 9.6k | +1057.58% |
| The Holydrug Couple | 413k | +1.19% |
| Hot Sugar | 140k | — |
| Morgan Delt | 141k | +1.68% |
| Dumbo Gets Mad | 277k | +0.77% |
| Spiral Drive | 103k | — |
| The Murlocs | 176k | +0.36% |
| Babe Rainbow | 389k | +2.35% |
| Pipe-Eye | 65k | +0.89% |
| Sleepy Sun | 164k | +0.90% |
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