iTunes - Music Video / General

The iTunes API allows you to fetch music videos and general content.

Base URL

"https://openapi-idk8.onrender.com"

Endpoints

  • GET `/itunes/musicvideo?term=your-search-term`: Fetches music videos based on the search term.
  • GET `/itunes/general?term=your-search-term`: Fetches general content with audio based on the search term.

Sample Request

GET `https://openapi-idk8.onrender.com/itunes/musicvideo?term=billie`

Sample Response

[
  {
    "wrapperType": "track",
    "kind": "music-video",
    "artistId": 32940,
    "collectionId": 273048762,
    "trackId": 273048816,
    "artistName": "Michael Jackson",
    "collectionName": "Thriller (25th Anniversary)",
    "trackName": "Billie Jean",
    "collectionCensoredName": "Thriller (25th Anniversary)",
    "trackCensoredName": "Billie Jean",
    "artistViewUrl": "https://music.apple.com/us/artist/michael-jackson/32940?uo=4",
    "collectionViewUrl": "https://music.apple.com/us/music-video/billie-jean/273048816?uo=4",
    "trackViewUrl": "https://music.apple.com/us/music-video/billie-jean/273048816?uo=4",
    "previewUrl": "https://video-ssl.itunes.apple.com/itunes-assets/Video112/v4/a1/24/39/a1243904-b6c4-8252-2b91-ef32d74db7c0/mzvf_3718363058640429752.640x464.h264lc.U.p.m4v",
    "artworkUrl30": "https://is1-ssl.mzstatic.com/image/thumb/Video118/v4/9a/9d/90/9a9d90f3-f77f-dd65-37e9-6b6945cdd710/dj.yukwrhhd.jpg/30x30bb.jpg",
    "artworkUrl60": "https://is1-ssl.mzstatic.com/image/thumb/Video118/v4/9a/9d/90/9a9d90f3-f77f-dd65-37e9-6b6945cdd710/dj.yukwrhhd.jpg/60x60bb.jpg",
    "artworkUrl100": "https://is1-ssl.mzstatic.com/image/thumb/Video118/v4/9a/9d/90/9a9d90f3-f77f-dd65-37e9-6b6945cdd710/dj.yukwrhhd.jpg/100x100bb.jpg",
    "collectionPrice": 16.99,
    "trackPrice": 1.99,
    "releaseDate": "1983-01-02T08:00:00Z",
    "collectionExplicitness": "notExplicit",
    "trackExplicitness": "notExplicit",
    "discCount": 1,
    "discNumber": 1,
    "trackCount": 35,
    "trackNumber": 32,
    "trackTimeMillis": 294127,
    "country": "USA",
    "currency": "USD",
    "primaryGenreName": "Pop"
  },

Error Handling

500 Internal Server Error: Returned when there's an issue fetching music videos using the API.

Response Body:


{
    "error": "Failed to fetch music videos"
}
        

iTunes General Content API

The iTunes General Content API allows you to search for general content based on a term.

Error Handling

500 Internal Server Error: Returned when there's an issue fetching general content using the API.

Response Body:


{
    "error": "Failed to fetch general content"
}