Maybe I'm just tired, but I can't figure out how to use the Reddit-API to retrieve stories properly despite staring at the API docs [1] for an hour..
For example if I GET the URL http://www.reddit.com/r/gaming/top.json?limit=5
then I get 5 story elements.
At the bottom it says before : null
and after : "t3_12vgdt"
, which corresponds to the name
property of the last returned story-item.
How to interpret this? And how do I paginate to the next 5 items, items 6 - 10?
[1] referenced here: https://github.com/reddit/reddit/wiki/API