Dev.to API

⭐ Beginner's Pick Personality / API Key Intermediate HTTPS
Varies by plan (check documentation)

Overview

The Dev.to (Forem) API lets you read and interact with articles, comments, tags, and user profiles from the Dev.to developer community. You can fetch published articles, search by tag, or post content programmatically. An API key is required for write operations but many read endpoints are open.

💡

Beginner Tip

You can list public articles without an API key using GET /api/articles. When you need your key, generate one under Settings > Account on Dev.to and pass it as the api-key header.

Available Data

article title and content
publication source
published date
article URL
image URL

Example Response

JSON Response
{
  "totalArticles": 100,
  "articles": [
    {
      "title": "Tech Industry Sees Record Growth",
      "source": {
        "name": "TechNews",
        "url": "https://technews.com"
      },
      "publishedAt": "2025-01-15T08:00:00Z",
      "description": "The technology sector reported unprecedented growth...",
      "image": "https://example.com/article-image.jpg",
      "url": "https://technews.com/article/123"
    }
  ]
}

Field Reference

id Unique identifier for the article.
title The article title as displayed on Dev.to.
url Full URL to the article on Dev.to.
tag_list List of tags associated with the article, e.g. ["javascript", "webdev"].
positive_reactions_count Total number of positive reactions (likes/hearts) the article has received.
published_at ISO 8601 timestamp of when the article was published.

Implementation Example

// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://developers.forem.com/api";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

401 Unauthorized The api-key header is missing or the key is incorrect.
Generate your API key at dev.to/settings/account and include the header: api-key: YOUR_API_KEY.
422 Unprocessable Entity on POST Required fields in the article body (like title or body_markdown) are missing or malformed.
Ensure your request body includes "title", "body_markdown", and "published" fields in valid JSON.
Rate limit exceeded (429) Too many requests in a short time window.
Slow down your requests; Dev.to allows approximately 10 requests/second for authenticated users.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 5/20
🔒 Security 15/15
🛠 Developer XP 12/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Personality
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →