DEV Community

Discussion on: How to use the Dev.to API to fetch your article statistics

Collapse
 
coderallan profile image
Allan Simonsen

Hi,

You can make a GET request to the url dev.to/api/articles/me just like in the code above.
Then you can loop through the returned json and for each article you can use the id to make a GET request to the dev.to/api/articles/{id}
In the returned json you get the body_html or the body_markdown to get the article body.

Have a look at the docs here docs.dev.to/api/#operation/getArti... for more details.

Hope that helps you on your way.