albums_runtime_batch
Calculate total and average track duration for up to 20 albums, using embedded track data (exact up to 50 tracks per album).
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 |