Random Quote Machine, {Batch Complete}

So, below is my code. I believe I’m on the right track, but I don’t fully understand how to actually filter down to pull a quote. I’m getting {Batch Complete} which tells me I’m getting some level of success. But knowing how/where to filter quotes out is where I’m getting lost.

$(document).ready(function(){

  var API =  "https://api.forismatic.com/api/1.0/";

 $("#quoteBTN").on('click', function(){
     $.ajax({
       url: API,
       dataType: "jsonp",
       data: {
         format: "json",
         action: "query",
       },
       success: function(data) {
         console.log(data);
       }
     });
} );
});

it’s quite simple.

oh geez, I forgot I switched to attempt to use forismatic, I was using wikiquotes. Let me update.

Thanks for taking what time you can to look at this. I appreciate it.

OK, here is the code using wikiquotes, when you use the “Quote Me!” button, it logs “Batch Complete” to the console.

$(document).ready(function(){

  var API =  "https://en.wikiquote.org/w/api.php";

  $("#quoteBTN").on('click', function(){
     $.ajax({
       url: API,
       dataType: "jsonp",
       data: {
         format: "json",
         action: "query",
       },
       success: function(data) {
         console.log(data);
       }
     });
} );
});