albums_runtime_batch
Get total and mean track duration for up to 20 albums in one API call, with exact results for albums up to 50 tracks and flagged partial totals beyond that.
Instructions
[local-compute] Runtime per album — total and mean track length — for up to 20 albums in one pass (album objects embed the first 50 tracks, so totals are exact for albums up to 50 tracks and flagged as partial above that). Quota: 🟢 one GET /albums?ids= call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | No | ISO 3166-1 alpha-2 market code (e.g. 'US'); omit for 'from_token' behaviour | |
| album_ids | Yes | Up to 20 Spotify album IDs | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |