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.
select
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 |
|---|---|---|
| My Morning Jacket | 1.3M | +0.49% |
| The Shins | 3.2M | +0.62% |
| Death Cab for Cutie | 3.8M | +0.93% |
| Manchester Orchestra | 1.5M | +1.46% |
| Rogue Wave | 941k | +0.37% |
| Nada Surf | 1.2M | +0.55% |
| The Decemberists | 1.9M | +0.52% |
| Spoon | 2.1M | +0.52% |
| The War on Drugs | 943k | +1.63% |
| The National | 2.5M | +0.60% |
| Local Natives | 1.4M | +0.87% |
| Blind Pilot | 730k | +0.40% |
| Iron & Wine | 2.8M | +0.85% |
| Cold War Kids | 1.9M | +0.69% |
| Wilco | 2.0M | +1.49% |
| Frightened Rabbit | 729k | +0.40% |
| Okkervil River | 787k | +0.21% |
| Phosphorescent | 708k | +0.79% |
| The Head and the Heart | 1.2M | +1.04% |
| Fleet Foxes | 2.6M | +1.03% |
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