The ponyipsum.com API is a REST interface that returns JSON. Pass in the following parameters using an HTTP GET and we'll return a JSON string array of paragraphs.
It can also be accessed via https.
Parameters:
Examples:
Some sample jquery code!
$(document).ready(function() {
$("#ponyButton").click(function() {
$.getJSON('https://ponyipsum.com/api/?callback=?',
{ 'type':'pony-and-filler', 'start-with-lorem':'1', 'paras':'3' },
function(ponyGoodness) {
if (ponyGoodness && ponyGoodness.length > 0) {
$("#ponyIpsumOutput").html('');
for (var i = 0; i < ponyGoodness.length; i++)
$("#ponyIpsumOutput").append('<p>' + ponyGoodness[i] + '</p>');
$("#ponyIpsumOutput").show();
}
});
});
});
Run the sample!