Last updated
Changelogdev.to API
HealthyRead-onlyStructured data from dev.to. Generated from dev.to.
/article_comments1 credit per callArticle Comments
Comment threads (nested in "children") of an article or podcast episode.
Authorization: Bearer <key> on every request.Parameters
numeric article id (0 with no podcast id = newest article that has comments)
numeric podcast episode id, instead of article_id
curl "https://api.maviapi.com/v1/sites/dev/article_comments?article_id=0&podcast_episode_id=0" \-H "Authorization: Bearer $MAVI_KEY"
[
{
"type_of": "string",
"id_code": "string",
"created_at": "string",
"ai_disclosure_level": "string",
"ai_disclosure_label": "string",
"body_html": "string",
"user": {
"name": "string",
"username": "string",
"twitter_username": null,
"github_username": null,
"user_id": 0,
"website_url": "string",
"profile_image": "string",
"profile_image_90": "string"
},
"children": [
null
]
}
]Get all the data, no code
Collect every page of GET /article_comments into a dataset, for one request or for a whole list of them, then download it as CSV or JSON. A page costs the same as one call of the endpoint; the download is free.
Use dev.to API from Claude, ChatGPT and your coding tools
Add this URL as a custom connector and sign in to maviapi. Nothing to install.
https://mcp.maviapi.com/mcpOr run it locally, with each endpoint of dev.to API as its own tool:
claude mcp add maviapi -e MAVIAPI_TOOLS=dev -- npx -y '@maviapi/mcp'Import dev.to API into Postman and other tools
How to importPaste a link into Postman, Insomnia, an agent framework or a no-code tool to get every endpoint with its parameters and response fields. The link always serves the current endpoints, so importing it again picks up new ones.
- OpenAPI 3.1
https://api.maviapi.com/v1/apis/dev/openapi.json - Postman
https://api.maviapi.com/v1/apis/dev/postman.json
The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.
Build with the dev.to API
Choose a starting endpoint
- Article Comments
GET /article_commentsComment threads (nested in "children") of an article or podcast episode.
Parameters and response fields for GET /article_comments
Request parameters Name Type / location Required Description article_id integer / query No numeric article id (0 with no podcast id = newest article that has comments) podcast_episode_id integer / query No numeric podcast episode id, instead of article_id - Get Article
GET /get_articleOne article with its full body (markdown and HTML).
Parameters and response fields for GET /get_article
Request parameters Name Type / location Required Description id integer / query No numeric article id, e.g. 5152984 (0 = use path; both empty gives the newest article) path string / query No article path "username/slug" or full URL, e.g. "gde/gemma-4-as-an-agent-on-an-8-gb-gpu-e2b-e4b-or-12b-4l8" Response fields Field Type Description type_of string id integer title string description string readable_publish_date string slug string path string url string comments_count integer public_reactions_count integer collection_id null published_timestamp string language string subforem_id integer ai_disclosure_level string ai_disclosure_label string positive_reactions_count integer cover_image string social_image string canonical_url string created_at string edited_at null crossposted_at null published_at string last_comment_at string reading_time_minutes integer tag_list string tags string[] body_html string body_markdown string user object user.name string user.username string user.twitter_username null user.github_username string user.user_id integer user.website_url string user.profile_image string user.profile_image_90 string organization object organization.name string organization.username string organization.slug string organization.profile_image string organization.profile_image_90 string fetched_at string age integer - Get Comment
GET /get_commentOne comment and its replies.
Parameters and response fields for GET /get_comment
Request parameters Name Type / location Required Description id_code string / query No comment id code as in comment URLs, e.g. "3nep3" (empty = a recent comment) Response fields Field Type Description type_of string id_code string created_at string ai_disclosure_level string ai_disclosure_label string body_html string user object user.name string user.username string user.twitter_username null user.github_username null user.user_id integer user.website_url string user.profile_image string user.profile_image_90 string children string[] pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - Get Organization
GET /get_organizationPublic profile of an organization.
Parameters and response fields for GET /get_organization
Request parameters Name Type / location Required Description username string / query No organization username, e.g. "gde" Response fields Field Type Description type_of string id integer username string name string summary string twitter_username string github_username string url string location string tech_stack string tag_line string story string joined_at string profile_image string fetched_at string age integer - Get User
GET /get_userPublic profile of a user.
Parameters and response fields for GET /get_user
Request parameters Name Type / location Required Description username string / query No user's username, e.g. "ben" id integer / query No numeric user id instead of username (0 = use username) Response fields Field Type Description type_of string id integer username string name string twitter_username string github_username string summary string location string website_url string joined_at string profile_image string fetched_at string age integer - List Articles
GET /list_articlesList published articles (the home feed), newest/most popular first.
Parameters and response fields for GET /list_articles
Request parameters Name Type / location Required Description page integer / query No page number, starting at 1 per_page integer / query No articles per page (1-1000) tag string / query No only articles with this tag, e.g. "python" tags string / query No comma-separated tags, articles having any of them tags_exclude string / query No comma-separated tags to exclude username string / query No only articles by this user or organization username state string / query No "fresh", "rising" or "all" (empty for the default feed) top integer / query No only the most popular articles of the last N days (0 = off) collection_id integer / query No only articles of this series/collection id (0 = off) latest boolean / query No true to sort strictly by publication date, newest first (ignores tag filters other than none) - List Podcast Episodes
GET /list_podcast_episodesPodcast episodes, newest first.
Parameters and response fields for GET /list_podcast_episodes
Request parameters Name Type / location Required Description page integer / query No page number, starting at 1 per_page integer / query No episodes per page username string / query No only episodes of this podcast slug, e.g. "codenewbiepod" - List Tags
GET /list_tagsTags ordered by popularity.
Parameters and response fields for GET /list_tags
Request parameters Name Type / location Required Description page integer / query No page number, starting at 1 per_page integer / query No tags per page (1-1000) - List Videos
GET /list_videosArticles that have a video, newest first.
Parameters and response fields for GET /list_videos
Request parameters Name Type / location Required Description page integer / query No page number, starting at 1 per_page integer / query No videos per page - Organization Articles
GET /organization_articlesArticles published under an organization.
Parameters and response fields for GET /organization_articles
Request parameters Name Type / location Required Description username string / query No organization username, e.g. "gde" page integer / query No page number, starting at 1 per_page integer / query No articles per page - Organization Users
GET /organization_usersMembers of an organization.
Parameters and response fields for GET /organization_users
Request parameters Name Type / location Required Description username string / query No organization username, e.g. "gde" page integer / query No page number, starting at 1 per_page integer / query No users per page - Search
GET /searchFull-text search, like the site's search page.
Parameters and response fields for GET /search
Request parameters Name Type / location Required Description q string / query No search words type string / query No "posts", "people", "organizations", "tags" or "comments" sort string / query No "relevant", "newest" or "oldest" (newest/oldest only for posts) page integer / query No page number, starting at 1 per_page integer / query No results per page (max 100) Response fields Field Type Description query string type string sort string page integer total integer pages integer results object[] results[].tag_list string[] results[].public_reaction_categories string[] results[].subforem_id integer results[].published_at integer results[].readable_publish_date string results[].objectID string results[].title string results[].featured boolean results[].comments_count integer results[].positive_reactions_count integer results[].public_reactions_count integer results[].ai_disclosure_level string results[].timestamp integer results[].reading_time integer results[].score integer results[].path string results[].user_id integer results[].type_of string results[].main_image string results[].user object results[].user.name string results[].user.username string results[].user.profile_image string results[].user.id integer results[].user.profile_image_90 string results[].body_text string results[].url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer
Export dev.to data to CSV
Each list below downloads as a CSV file with one row per record. Collect it into a dataset with "Get all the data, no code" under the console above. The dataset reads the list page by page, and you download it as CSV, JSON or JSONL.
| List | CSV columns |
|---|---|
SearchGET /search | tag_list, public_reaction_categories, subforem_id, published_at, readable_publish_date, objectID, title, featured, comments_count, positive_reactions_count, public_reactions_count, ai_disclosure_level, timestamp, reading_time, score, path, user_id, type_of, main_image, user, body_text, url |
A nested value (a list or an object) is written as JSON in one cell. How datasets and exports work
dev.to API questions
What you get, what it costs and how to call it.
Is there an official dev.to API?
This dev.to API is not official. It is an independent, hosted API from maviapi for the public data on dev.to, and it is not made, endorsed or supported by dev.to. Whether dev.to offers a developer API of its own is a question for dev.to. This one is ready to call with a maviapi key, and every endpoint and field it returns is documented on this page.
What data can I get from the dev.to API?
The dev.to API has 12 endpoints. Each returns JSON with the parameters and fields documented above:
- GET
/article_comments: Comment threads (nested in "children") of an article or podcast episode. - GET
/get_article: One article with its full body (markdown and HTML). - GET
/get_comment: One comment and its replies. - GET
/get_organization: Public profile of an organization. - GET
/get_user: Public profile of a user. - GET
/list_articles: List published articles (the home feed), newest/most popular first. - GET
/list_podcast_episodes: Podcast episodes, newest first. - GET
/list_tags: Tags ordered by popularity. - GET
/list_videos: Articles that have a video, newest first. - GET
/organization_articles: Articles published under an organization. - GET
/organization_users: Members of an organization. - GET
/search: Full-text search, like the site's search page.
How much does the dev.to API cost?
Calls are paid in credits from your maviapi plan, and only successful calls are charged. Every endpoint of this API costs 1 credit per call. On the Basic plan ($19 a month for 25,000 credits), 1,000 calls cost about $0.76. Failed calls are free. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.
How do I call the dev.to API?
Send an HTTPS request to the endpoint with your API key in the Authorization header. For example, GET /article_comments:
curl 'https://api.maviapi.com/v1/sites/dev/article_comments' \
-H "Authorization: Bearer $MAVI_KEY"Create a key on your API keys page, or try any endpoint first in the console above with the free test key.
What are the ways to get dev.to data as JSON?
Each way to get dev.to data as JSON fits a different need:
- Your own scraper: Full control and no vendor, but the parsing, the blocked requests and the repairs after every change on dev.to are yours. Better for a one-off pull from a page that rarely changes.
- Apify: A marketplace of Actors you run, where input, output and price are set by each Actor. Better when an Actor already returns what you need, or you want to host your own code. See maviapi vs Apify.
- RapidAPI: A hub of APIs added by many providers, called with one RapidAPI key and priced per API. Better when you already use the hub and one of its APIs covers what you need. Source: RapidAPI docs.
- maviapi: The dev.to API on this page: 12 documented endpoints, a published response schema and one key for the whole catalog. Better when this data is part of your product and you do not want to maintain a scraper.
What happens when dev.to changes its layout?
Your code does not change. maviapi keeps the dev.to API working when dev.to changes its pages, so you keep calling the same endpoints and get JSON in the shape documented here. See its current health on the status page and what changed in its changelog.
Will an update break my dev.to API integration?
No. An endpoint you use never changes shape: new fields, optional parameters and endpoints are added beside it, and a change that would break a call ships as a new endpoint. Ignore response fields you do not know, and follow the changelog for what is new.
Related APIs
- Tripadvisor API
Trip-planning data from Tripadvisor: geo search plus attractions, restaurants and hotels by location (geo_id), with…
- Eventbrite API
Events listed on Eventbrite for a city and date range: dates, venue with address and coordinates, image and summary…
- Songkick Concerts API
Upcoming concerts and music festivals in any city from Songkick, for a date window, with venues, performers, prices…