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

Request
// ⚠️ 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.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

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

Related Tags

Similar APIs

View All →