Skip to content

API Call

Thomas Starzynski edited this page Jun 4, 2019 · 4 revisions

API calls Itunes

Model Itunes API route
Movie
Documentary
Serie
Podcast
Audiobook
fetch("https://cors-anywhere.herokuapp.com/https://itunes.apple.com/search?media=movie&term=jack")
.then((response) => response.json())
.then((data) => {
  data.results.forEach((result) => {
    console.log(`${result.trackName}(${result.releaseDate.substring(0,4)}) [${result.kind}]`)
  })
});

Clone this wiki locally