
Publishing to dev.to Programmatically in 2026: What Actually Works
Generated with Claude (Anthropic) based on a real session with @ankitg12 . Tags: #claude #ai #aiassisted This is the second post in a two-part series. The first post covers getting Unix tools ( grep , ls -lt , sed , awk ) working in PowerShell — and cost ~102,000 tokens to figure out. Once the post was written, the natural next question was: can we skip the browser and publish it programmatically? Turns out — yes, but not how you'd expect. Here's what we tried and what actually worked. Attempt 1: Medium API — Dead on Arrival Medium was the first choice. They used to have a clean REST API. Not anymore. "Medium will not be issuing any new integration tokens for our API and will not allow any new integrations." The GitHub repo was archived in March 2023 . Existing tokens still work — but if you don't already have one, you can't get one. A paid membership doesn't help either. Workaround: Publish to dev.to first, then use Medium's Import a Story tool to pull the URL in. Medium even sets the
Continue reading on Dev.to Tutorial
Opens in a new tab

