-
Notifications
You must be signed in to change notification settings - Fork 1
API Call
Thomas Starzynski edited this page Jun 4, 2019
·
4 revisions
The Search API is limited to approximately 20 calls per minute (subject to change). If you require heavier usage, we suggest you consider using our Enterprise Partner Feed (EPF). If you wish to access content on our EPF, please review our documentation page for more information.
| 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}]`)
})
});// go to this page:
https://www.imdb.com/chart/top
// scrape data in the console there
titles = document.querySelectorAll(".titleColumn");
movieTitles = [];
titles.forEach((title) => {
movieTitles.push(title.innerText.split(". ")[1]);
});
console.log(movieTitles.join("\n"));