Vacilando/gatsby-source-pocketapi

Allow fetching more / all Pocket items

Closed this issue · 1 comments

Pocket API seems to have a limit of 10k items per request. In any case, fetching 10k requests takes considerable time, and it times out sometimes.

It would be much better to fetch large archives (eg 35k in our case) using several requests with a smaller limit (of eg 5k).

This has been implemented as of version 4.1.0!

You can now set apiMaxRecordsToReturn in your gatsby-config.js to any number, and the plugin will fetch that amount (if you have so many items in your Pocket!) in batches of 5000.