Use this PHP SDK to access DOL datasets like: workplace injury and illness rates, veteran's employment statistics, employment and wages reports, consumer price indexes, geographic information, or mine accident info. The API documentation contains detailed instructions on getting started, including extensive code samples.
Quick, what is your House of Representatives district? Many people don't know this number, or the member who represents them. The New York Times' new Districts API makes it easy for your application to answer the question for any point within New York City, though it could serve as a template for a nationwide--or even international--service.