Get Cross-Platform Artist IDs
Resolve cross-platform artist IDs from any single source. type accepts chartmetric, spotify, itunes, deezer, amazon, youtube (or youtube-channel), and instagram. When aggregate=true, domain arrays are pre-aggregated into a single row; otherwise one row per linked id is returned.
- Type: string enumtyperequired
Source identifier type. One of
chartmetric,spotify,itunes,deezer,amazon,youtube.youtubeexpects the channel ID, not the artist ID.values- chartmetric
- spotify
- itunes
- deezer
- amazon
- youtube
- idrequired
Artist identifier whose format depends on
type— numeric forchartmetric/deezer/itunes, alphanumeric/dashed string foramazon/spotify/youtube.- Type: integermin:2max:2147483647
Chartmetric artist ID. Note: id=1 ('Various Artists') is rejected.
- enumconst:1values
- 1
- Type: integeroffsetmin:0
Number of entries to skip. Applied only when
aggregate=false. - Type: integerlimitmin:1max:10000
Maximum number of entries to return when
aggregate=false. Defaults to 10000, max 10000. Has no effect whenaggregate=true. - Type: booleanaggregate
If true, returns a single row with platform IDs aggregated into arrays. Deprecated — preserved for backwards compatibility.
- application/json
curl https://api.chartmetric.com/api/artist/chartmetric/2/get-ids \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"obj": [
{
"chartmetric_id": 4904,
"artist_name": "Hailee Steinfeld",
"spotify_artist_ids": [
"5p7f24Rk5HkUZsaS3BLG5F"
],
"itunes_artist_ids": [
417571723
],
"deezer_artist_ids": [
"5961630"
],
"amazon_artist_ids": [
"B00L4I14C0",
"B00L48A8F4"
],
"youtube_channel_ids": [
"UCWfytcGFwPSMwvP5HYuXGqw"
],
"instagram_id": 2274763833
}
]
}