Created
June 9, 2020 19:53
-
-
Save kabeer11000/0c892af97595d0a1572eaa49272134cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getData(q) { | |
const api_key = 'Your API Key Here'; | |
$.getJSON("https://www.omdbapi.com/?s=" + q + "&apikey=" + api_key, function(data){ | |
for (var i = 0; i < data.Search.length; i++) { | |
console.log(data.Search[i].Title); | |
} | |
}); | |
} | |
getData('fast+and+the+furious'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment