PHP5 scraper for RESTful JSON APIs