API Help


Please be kind.

Requesting article text in various formats

http://viewtext.org/api/text?url={url}&format={format}&callback={callback}

Example with jQuery

$("#button").click(function () {
	    $.getJSON("http://viewtext.org/api/text?url=" + $("#url").val() + "&callback=?",
	    function (data) {
		    $("#article-text-demo").html(data.content);
	    });
    });
    

Demo