I want to query the U.S. Department of Labor API OSHA Enforcement dataset (https://developer.dol.gov/health-and-safety/dol-osha-enforcement/) for recent accidents and inspections. The OSHA Enforcement dataset is one of the V2 datasets. On the DOL website, there are instructions for V1 datasets on how to sort data by a certain field (https://developer.dol.gov/accessing-the-apis-using-http-requests/#sort); however, it doesn't seem like there are any instructions on sorting for V2 datasets (https://developer.dol.gov/accessing-the-apis-using-http-requests/#apiv2). Does anyone know if sorting is even possible for V2 datasets? Or can developers only filter and limit results?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.