DEV Community

loading...

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

Collapse
inhuofficial profile image
InHuOfficial Author

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
inhuofficial profile image
InHuOfficial Author

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
inhuofficial profile image
InHuOfficial Author • 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
Collapse
inhuofficial profile image
InHuOfficial Author

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 😀

Forem Open with the Forem app