DEV Community

Nested Software
Nested Software

Posted on

2 1

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!

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay