Hella Ipsum JSON API / DOCS

Requirements: The code below requires JQuery. (Included in the sample)

Endpoint: http://hellaipsum.com/api/

Parameters:

paragraphs [1 - 20] (default 3)

flossy true/false (true)

Example

<label>Flossy?</label>
<input type="checkbox" name="flossy" id="flossy" checked>
<input type="button" id="getIpsum" value="generate hella ipsum">
<p id="ipsum-text"> </p>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script>
$("#getIpsum").click(function(event) {	
	var numParagraphs = 2;
	var flossy = $('#flossy').is(':checked') ? true : false;
	$.getJSON('http://hellaipsum.com/api', 
	{ 
		'paragraphs': numParagraphs,
		'flossy': flossy
	}, 
	function(response) {
		if (response) {
			$("#ipsum-text").html("");
				for (var i = 0; i < response.length; i++)
					$("#ipsum-text").append('<p>' + response[i] + '</p>');
		}
	});
});
</script>

For more information about JSON APIs check out this informative site: jsonapi.org