DEV Community

Discussion on: Interacting with the Dev.to Article API

Collapse
 
shindakun profile image
Steve Layton

The articles API endpoint looks to only return 30 articles per page and seems to cut off around ~460 pages or so. The idea is indeed to grab all public posts as I need a good amount of text for something else I'm toying around with so, in this case, I have a rough idea of how many articles we'll be getting. However, we're only getting 30 articles worth of content in one go which should not cause any issues on the server side or locally. You definitely wouldn't want to be running this repeatedly in a short span or anything though.

Collapse
 
turnerj profile image
James Turner

Yeah as it is still about 13,000 requests - if that ran often, it could easily hammer the site.

Thread Thread
 
shindakun profile image
Steve Layton

The articles endpoint is cached as far as I know so, as is the code shouldn't cause any significant load on Varnish. Heh. But yeah, imagine trying to simply download the articles one at a time, api/articles/1, that what like ~90000 hits. Yuck.