I am having trouble with calling the wiki api. I have the origin part, info in the ajax call, but I can’t get anything working. below is a snippet of the code, with the link to my codepen
var apiCall =
“https://en.wikipedia.org/w/api.php?action=opensearch&search=” +
search +
“&format=json&origin=*”;
$.ajax(apiCall,{
url: apiCall+"?client_id=vhk18fazw4ojdw1vt6maiccbufsv72",
type: "GET",
contentType: "application/json; charset=utf-8",
async: false,
dataType: "jsonp",
success: function(data) {
console.log(data);
});