DEV Community

Alfredo Salzillo
Alfredo Salzillo

Posted on

33 4

The state of dev.to v0 api

To prevente the abuse of web scraper on dev.to i want to share what i learn about the dev.to v0 api.

Articles

Users

Tags

Billboard image

Use Playwright to test. Use Playwright to monitor.

Join Vercel, CrowdStrike, and thousands of other teams that run end-to-end monitors on Checkly's programmable monitoring platform.

Get started now!

Top comments (11)

Collapse
 
technoplato profile image
Michael Lustig - halfjew22@gmail.com

Hey Alfredo, thanks for the resource. Did you gather this info by guessing and checking or did you look at the source? github.com/thepracticaldev/dev.to/...

In either case, do you know if there's a way to look up a user by Github username?

Seems like this is where the magic happens, but I don't know how to read Ruby: github.com/thepracticaldev/dev.to/...

Collapse
 
robp773 profile image
Robert Peterman

Thanks for putting this all in one spot Alfredo!

Collapse
 
gtobar profile image
Guillermo Tobar

Hi, how do I get the content of the article?

Collapse
 
alfredosalzillo profile image
Alfredo Salzillo

to get the content of an article

dev.to/api/articles/{articleID}

for example, for this article

dev.to/api/articles/94179

Collapse
 
abdulbasit313 profile image
Abdul Basit

How can I get all articles of specific user?

Collapse
 
alfredosalzillo profile image
Alfredo Salzillo

All API return paged lists, the only way to get all the articles of a user is to call dev.to/api/articles?username={user... until the reply is an empty array.

Collapse
 
mdamaceno profile image
Marco Damaceno

Is it possible to get users by location?

Collapse
 
alfredosalzillo profile image
Alfredo Salzillo • Edited

For all, I have found the openapi3.0 definitions of all the API and have created a swagger website.

dev-to-swagger

Collapse
 
salomonsson profile image
Peter Salomonsson

Is it possible to get the articles in created_at desc? Or do I need to sort it myself??

Collapse
 
alfredosalzillo profile image
Alfredo Salzillo

It's not possible, as today you can only get articles by published_at desc based on the top query parameters

Collapse
 
mjoycemilburn profile image
MartinJ

Thanks for this - very interesting. If you have a spare moment, could you tell me how to find the articleID for a post please?

Billboard image

Imagine monitoring that's actually built for developers

Join Vercel, CrowdStrike, and thousands of other teams that trust Checkly to streamline monitor creation and configuration with Monitoring as Code.

Start Monitoring

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay