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 ascNo comparison cohort available for this artist yet — showing its own indexed series only.
Indexed 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 |
|---|---|---|
| Pedro Conga | 41k | +2.59% |
| Nino Segarra | 44k | +3.04% |
| Maelo Ruiz | 158k | +3.45% |
| Tony Vega | 76k | +2.22% |
| Gilberto Santa Rosa | 269k | +1.69% |
| Víctor Manuelle | 103k | +4.85% |
| David Pabon | 66k | +8.78% |
| Guayacán Orquesta | 100k | +5.51% |
| Grupo Niche | 296k | +3.96% |
| Oscar D'León | 191k | +2.60% |
| Luis Enrique | 263k | +4.72% |
| Jerry Rivera | 271k | +2.73% |
| Willie Gonzalez | 105k | +8.51% |
| El Gran Combo De Puerto Rico | 306k | +4.89% |
| Tito Rojas | 123k | +4.21% |
| Eddie Santiago | 299k | +5.53% |
| Frankie Ruiz | 364k | +5.87% |
| Rey Ruiz | 137k | +1.86% |
| Adolescent's Orquesta | 338k | +6.62% |
| Mickey Taveras | 29k | +5.17% |
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