@nev this particular task is a surprisingly annoying pain in the ass.
If you're doing this with curl, you have to..:
1. use `--dump-header [filename]` to preserve the response headers in a temp file;
2. then convert those headers from DOS to unix line endings;
3. then pick out the `Link: ...` header;
4. then parse its `rel=...` components into key/value pairs;
5. _then_ you can use the `next` k/v pair to fetch your next page of results.
It's fiddly. The GitHub REST API does this too. 👎