DEV Community

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

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 😀