Example of requesting posts using WP API v2

Code Markup
function api_get_posts ($url) {
	
	$json = file_get_contents($url);
	$data = json_decode($json, true);
	
	foreach ($data as $key => $value) {
		echo '<div class="post">';
		echo 'Post Count: '.$key;
		echo '<br>';
		echo 'Title';
		echo '<br>';
		echo $value['title']['rendered'];
		echo '<br>';
		echo 'Link';
		echo '<br>';
		echo $value['link'];
		echo '<br>';
		foreach ($value['tags'] as $tag) {
			$tag = get_tag($tag); // name.', ';
		}
		echo '<br>';
		echo '</div>';
		echo '<br>';
	}
	
}

// To use this function with the $url variable
api_get_posts ('http://lw.dev/wp-json/wp/v2/progression')

// You can also use filters
.../v2/progression?filter[orderby]=title&filter[order]=ASC')