6

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.

Marcus D
  • 1,119
  • 1
  • 9
  • 26
CuriousG
  • 61
  • 1

3 Answers3

2

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

...

fgregg
  • 5,108
  • 16
  • 37
1

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

albert
  • 11,885
  • 4
  • 30
  • 57
1

We have a patch sitting in our OCIO's office that will fix this issue. Once it navigates that maze, pagination should work.

Mike Pulsifer
  • 401
  • 2
  • 4