1 <?php 2 // This script prints the titles of all legislative acts from EUR-Lex dated 2011. 3 // The resulting text has been submitted to Many Eyes. 4 $url = 'http://api.epdb.eu/eurlex/year/?y=2011&key=YOUR_API_KEY'; 5 $data = json_decode(file_get_contents($url)); 6 foreach($data as $item) 7 echo $item->title." "; 8 ?>