# Read the latest or a specific verified shared Spotify mix



Operation: getRadioEdition
GET /api/radio/editions.json

Access: anonymous. Automatic retries: none. Redirects: manual. Request body limit: 0 bytes.
Default timeout: 30 seconds. Response limit: 16 MiB. Pagination is opt-in and bounded; an exhausted bound reports incomplete execution.

[HTML reference](/developers/api/getRadioEdition) · [Authoritative schemas](/api/openapi.json)

## Wire contract

```json
{
  "operationId": "getRadioEdition",
  "summary": "Read the latest or a specific verified shared Spotify mix",
  "tags": [
    "Music"
  ],
  "parameters": [
    {
      "name": "id",
      "in": "query",
      "required": false,
      "schema": {
        "type": "string",
        "format": "uuid"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Verified edition, or null if none is available",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "edition": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "description": {
                        "type": "string",
                        "maxLength": 300
                      },
                      "date": {
                        "type": "string",
                        "format": "date",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                      },
                      "publishedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      "trackCount": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 30
                      },
                      "spotifyUrl": {
                        "type": "string",
                        "pattern": "^https:\\/\\/open\\.spotify\\.com\\/playlist\\/[A-Za-z0-9]{22}$"
                      },
                      "tracks": {
                        "minItems": 1,
                        "maxItems": 30,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "canonicalId": {
                              "type": "string",
                              "pattern": "^itm_[a-z0-9]{24}$"
                            },
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 500
                            },
                            "artist": {
                              "type": "string",
                              "maxLength": 500
                            },
                            "spotifyUri": {
                              "type": "string",
                              "pattern": "^spotify:track:[A-Za-z0-9]{22}$"
                            },
                            "itemPath": {
                              "type": "string",
                              "maxLength": 600,
                              "pattern": "^\\/music\\/"
                            }
                          },
                          "required": [
                            "canonicalId",
                            "title",
                            "artist",
                            "spotifyUri",
                            "itemPath"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "id",
                      "title",
                      "description",
                      "date",
                      "publishedAt",
                      "trackCount",
                      "spotifyUrl",
                      "tracks"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "edition"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "304": {
      "description": "Not Modified"
    },
    "400": {
      "description": "Invalid edition UUID"
    }
  }
}
```

## Synthetic examples

### curl

```bash
curl --fail-with-body --max-time 30 --max-filesize 16777216 --request GET 'https://irvinebroque.com/api/radio/editions.json' --header 'Accept: application/json'
```

### TypeScript

```typescript
import { PublicApi } from '@irvinebroque/public-api';
const api = new PublicApi();
const result = await api.radio.editions({});
console.log(result.status, result.headers.get('content-type')); // Keep transient capabilities in memory.
```

### CLI

```bash
irvinebroque radio editions
```
