TL;DR
The Dev.to API (powered by Forem) provides programmatic access to the Dev.to developer community platform. You can fetch published articles by tag, user, or organization; search for users; and browse listings. The API returns article titles, descriptions, tags, cover images, readability scores, and social media metrics. No authentication is required for read operations, and the API is designed to help developers build custom feeds and content tools.
Quick start: https://dev.to/api/articles?tag=javascript
No API key needed — just make a request!
How to Use This API
1. Articles by Tag
https://dev.to/api/articles?tag=javascript&per_page=5
2. Get a Single Article
https://dev.to/api/articles/123456
3. Get User Articles
https://dev.to/api/articles?username=ben
4. JavaScript — Latest Python Articles
fetch('https://dev.to/api/articles?tag=python&per_page=10&state=fresh')
.then(r => r.json())
.then(articles => {
articles.forEach(a => {
console.log(a.title);
console.log(`By ${a.user.name} — ${a.published_at}`);
});
});
5. Python — Search Articles
import requests
resp = requests.get('https://dev.to/api/articles', params={
'tag': 'react',
'top': 7
})
for a in resp.json():
print(f"{a['title']} ({a['positive_reactions_count']} reactions)")
Try it:
https://dev.to/api/articles?tag=javascript&per_page=3
Frequently Asked Questions
- What can I access without an API key?
- All read endpoints — articles, users, tags, organizations, podcasts, and listings — are publicly accessible without authentication.
- How do I paginate articles?
- Use
page(1-based) andper_page(max 100) parameters. The response headers include pagination info. - What is the
stateparameter? - Controls sorting:
fresh(recent),rising(trending), ortop(all-time best). Default isfresh. - Can I search by keyword?
- Use the
qsearch parameter with tags or usernames for more targeted results.
What You Can Build
- Custom developer news feed filtered by tags
- Blog aggregator across multiple Forem communities
- Dev.to content analytics dashboard
- Trending topics tracker in tech categories
- Personal reading list manager