Trying to access the DOL API - specifically DOL OSHA Enforcement Data. Currently using PHP to make the API Call however merely changing the host and URI (from api.dol.gov to data.dol.gov and from /priorDataSet/DataTable to /get/violation/violation for example) does not work...

Don't think the SDK works for data.dol.gov - direct HTTP Requests may work

***UPDATE*** SDK is broken for data.dol.gov. Can be fixed by replacing 'http://quarry.dol.gov' with 'https://data.dol.gov'

  • it looks like your update is the solution....correct? if so, feel free to answer your question
    – albert
    Commented Jun 15, 2016 at 3:04
  • yes, it's correct. They are fixing the PHP SDK soon as well. Commented Jun 15, 2016 at 16:03

1 Answer 1


Yes, it is different, though you can use the same key. At http://developer.dol.gov/beginners-guide, right above the "Accessing the API" heading, are two tabs. One is for api.dol.gov, the other is for data.dol.gov.

We'll get the PHP SDK fixed momentarily.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.