DistributeApp LogoDistributeProject
DistributorSongsBatch

Batch get songs

Returns a list of songs by IDs.

POST
/songs/batch

Request Body

application/json

Song IDs

ids*array<string>

Response Body

application/json

application/json

application/json

curl -X POST "https://loading/api/songs/batch" \  -H "Content-Type: application/json" \  -d '{    "ids": [      "string"    ]  }'
[
  {
    "album": {
      "artist_name": "string",
      "created_at": "string",
      "id": "string",
      "release_date": "string",
      "songs": [
        {
          "album": {},
          "album_id": "string",
          "artists": [
            {
              "albums": [
                {
                  "artist_name": "string",
                  "created_at": "string",
                  "id": "string",
                  "release_date": "string",
                  "songs": [],
                  "title": "string"
                }
              ],
              "created_at": "string",
              "id": "string",
              "identifiers": [
                {
                  "artist_id": "string",
                  "id": "string",
                  "identifier": "string"
                }
              ],
              "name": "string"
            }
          ],
          "created_at": "string",
          "id": "00000000-0000-0000-0000-000000000000",
          "title": "Song Title"
        }
      ],
      "title": "string"
    },
    "album_id": "string",
    "artists": [
      {
        "albums": [
          {
            "artist_name": "string",
            "created_at": "string",
            "id": "string",
            "release_date": "string",
            "songs": [
              {
                "album": {
                  "artist_name": "string",
                  "created_at": "string",
                  "id": "string",
                  "release_date": "string",
                  "songs": [],
                  "title": "string"
                },
                "album_id": "string",
                "artists": [],
                "created_at": "string",
                "id": "00000000-0000-0000-0000-000000000000",
                "title": "Song Title"
              }
            ],
            "title": "string"
          }
        ],
        "created_at": "string",
        "id": "string",
        "identifiers": [
          {
            "artist_id": "string",
            "id": "string",
            "identifier": "string"
          }
        ],
        "name": "string"
      }
    ],
    "created_at": "string",
    "id": "00000000-0000-0000-0000-000000000000",
    "title": "Song Title"
  }
]
{
  "error": "Validation failed"
}
{
  "error": "Validation failed"
}