DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Nested Software
Nested Software

Posted on

Dev.to API questions

I'm writing some scripts to help me manage my dev.to articles. I was wondering how to do the following things using an API (if possible):

  • Post a new article (by sending a markdown file)
  • Update an existing article
  • Submit an image and get back a URL to that image

Top comments (2)

Collapse
 
ben profile image
Ben Halpern

Check out the docs if you haven't yet...

docs.dev.to/api

The first two are currently supported, the third point is not. Since any URL submitted will be wrapped by our CDN before being used, you can use a third party API to turn a local image into a usable URL for within DEV posts.

Collapse
 
nestedsoftware profile image
Nested Software

Thanks very much, this is great! I didn't know about the api docs!

Regex for lazy developers

regex for lazy devs

You know who you are. Sorry for the callout πŸ˜†