DEV Community

Cover image for This post was updated 2 minutes ago: 263900 posts gathered, 0 Days 00 Hours 00 Mins to go!

This post was updated 2 minutes ago: 263900 posts gathered, 0 Days 00 Hours 00 Mins to go!

GrahamTheDev on March 22, 2021

Quick Links About this page and why I created it Last 50 articles added Stats About this page and why I created it! ❤ I ...
Collapse
 
12944qwerty profile image
12944qwerty

I assume that April 9th was that last day for gathering every single article? Nice

Collapse
 
grahamthedev profile image
GrahamTheDev

Yeah so I am currently analysing 9.3 gigs of articles (no images in that).

Going to be doing a post on the best time to post to DEV.to and some other fun stuff with it soon.

Collapse
 
12944qwerty profile image
12944qwerty

Holy...
How much storage do you have :O

Thread Thread
 
grahamthedev profile image
GrahamTheDev

Oh loads - I think we currently have 250gb provisioned and only use about 100gb day to day, but it is a VPS so I can add 25gb for about £4 / £5 a month.

Thread Thread
 
12944qwerty profile image
12944qwerty

Nice! Can I borrow your VPS really quick? XD

Thread Thread
 
grahamthedev profile image
GrahamTheDev

Haha - if only I could I would but I wouldn’t want anyone seeing all my cobbled together backend code 😜

Thread Thread
 
12944qwerty profile image
12944qwerty

I probably wouldn't understand it :P I'm not into frontend very much, and would barely understand even aesthetic-looking code. I'm more for python.

Thread Thread
 
grahamthedev profile image
GrahamTheDev

I wouldn’t worry, even I don’t understand half the code I have written! 🤣

Collapse
 
grahamthedev profile image
GrahamTheDev

Has anybody else used the dev.to API yet?

If you have and you have written about it in the past reply to this comment and I will feature your article within this post.

Collapse
 
afif profile image
Temani Afif

I have use it on my CSS related website to grab my own articles with their stat here: css-challenges.com/blog/

Collapse
 
grahamthedev profile image
GrahamTheDev

Have you written about it anywhere? I will link to your article if you have!

Thread Thread
 
afif profile image
Temani Afif

not yet :) will probably do it in the future.

Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

Actually - hang on, where did you get the viewcounts? Is that a different endpoint?

Nevermind, I realised you can get view counts for your own articles but not for everybody elses.

Thread Thread
 
afif profile image
Temani Afif

You will find different endpoint for the same purpose and some them requires the API key. This one: docs.forem.com/api/#operation/getU... can give you the viewcounts. I don't think you can get the viewcounts for articles that aren't yours.

Collapse
 
kallmanation profile image
Nathan Kallman
Collapse
 
grahamthedev profile image
GrahamTheDev

What I have decided to do (as this post is getting very little traffic due to when I deployed it and the unclear title etc.) is to feature API users in a future article as well.

However your article should now be showing up at the bottom of this article just to keep my promise!

Great usage of the API, followed 😀