So I'm not sure how to do this but I want to get the JSON in this url and then append article.articleText to a <div>
with the id of output
http://api.trove.nla.gov.au/newspaper/2184103?key=jja10ssv4950uh65&encoding=json&include=articletext
Edit to show what I have tried:
var apiKey = "jja10ssv4950uh65";
$("#searchbtn").click(function(e) {
e.preventDefault();
var searchTerm = getRandomVideo();
var url = "http://api.trove.nla.gov.au/newspaper/" + searchTerm + "?key=" + apiKey + "&encoding=json&include=articletext"
$.getJSON(url, function(data) {
$('#output').empty();
$("#output").append("<p>" + data.article.articleText +"</p>");
});
});