http://developer.dol.gov/health-and-safety/dol-osha-enforcement/#osha_accident
Without pagination it's useless and I'm forced to download and parse the entire CSV file.
Open Data Stack Exchange is a question and answer site for developers and researchers interested in open data. It only takes a minute to sign up.
Sign up to join this communityhttp://developer.dol.gov/health-and-safety/dol-osha-enforcement/#osha_accident
Without pagination it's useless and I'm forced to download and parse the entire CSV file.
You need to use the offset
filter
https://data.dol.gov/get/accident/offset/0/limit/1
will give you the first result
https://data.dol.gov/get/accident/offset/1/limit/1
will give you the second result
https://data.dol.gov/get/accident/offset/2/limit/1
will give you the third result
...
Pretty sure you just need to implement $top
and $skip
in your api call:
http://developer.dol.gov/accessing-the-apis-using-http-requests/#pagination
We have a patch sitting in our OCIO's office that will fix this issue. Once it navigates that maze, pagination should work.