Skip to content

Last updated

Changelog
Base URL
https://api.maviapi.com/v1/sites/dev
12
Endpoints
14 min ago
Last verified
100%
Uptime / 7d
516ms
p50 latency
GET/article_comments1 credit per call

Article Comments

Comment threads (nested in "children") of an article or podcast episode.

Bearer auth. Pass your key as Authorization: Bearer <key> on every request.
integerOptionalin query

numeric article id (0 with no podcast id = newest article that has comments)

integerOptionalin query

numeric podcast episode id, instead of article_id

Try itLive
GET
https://api.maviapi.com/v1/sites/dev/article_comments?article_id=0&podcast_episode_id=0
Request
curl "https://api.maviapi.com/v1/sites/dev/article_comments?article_id=0&podcast_episode_id=0" \
-H "Authorization: Bearer $MAVI_KEY"
Example480 B
[
  {
    "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.

How to connect
https://mcp.maviapi.com/mcp

Or 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 import

Paste 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_comments

    Comment threads (nested in "children") of an article or podcast episode.

    Parameters and response fields for GET /article_comments
    Request parameters
    NameType / locationRequiredDescription
    article_idinteger / queryNonumeric article id (0 with no podcast id = newest article that has comments)
    podcast_episode_idinteger / queryNonumeric podcast episode id, instead of article_id
  • Get Article GET /get_article

    One article with its full body (markdown and HTML).

    Parameters and response fields for GET /get_article
    Request parameters
    NameType / locationRequiredDescription
    idinteger / queryNonumeric article id, e.g. 5152984 (0 = use path; both empty gives the newest article)
    pathstring / queryNoarticle 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
    FieldTypeDescription
    type_ofstring
    idinteger
    titlestring
    descriptionstring
    readable_publish_datestring
    slugstring
    pathstring
    urlstring
    comments_countinteger
    public_reactions_countinteger
    collection_idnull
    published_timestampstring
    languagestring
    subforem_idinteger
    ai_disclosure_levelstring
    ai_disclosure_labelstring
    positive_reactions_countinteger
    cover_imagestring
    social_imagestring
    canonical_urlstring
    created_atstring
    edited_atnull
    crossposted_atnull
    published_atstring
    last_comment_atstring
    reading_time_minutesinteger
    tag_liststring
    tagsstring[]
    body_htmlstring
    body_markdownstring
    userobject
    user.namestring
    user.usernamestring
    user.twitter_usernamenull
    user.github_usernamestring
    user.user_idinteger
    user.website_urlstring
    user.profile_imagestring
    user.profile_image_90string
    organizationobject
    organization.namestring
    organization.usernamestring
    organization.slugstring
    organization.profile_imagestring
    organization.profile_image_90string
    fetched_atstring
    ageinteger
  • Get Comment GET /get_comment

    One comment and its replies.

    Parameters and response fields for GET /get_comment
    Request parameters
    NameType / locationRequiredDescription
    id_codestring / queryNocomment id code as in comment URLs, e.g. "3nep3" (empty = a recent comment)
    Response fields
    FieldTypeDescription
    type_ofstring
    id_codestring
    created_atstring
    ai_disclosure_levelstring
    ai_disclosure_labelstring
    body_htmlstring
    userobject
    user.namestring
    user.usernamestring
    user.twitter_usernamenull
    user.github_usernamenull
    user.user_idinteger
    user.website_urlstring
    user.profile_imagestring
    user.profile_image_90string
    childrenstring[]
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • Get Organization GET /get_organization

    Public profile of an organization.

    Parameters and response fields for GET /get_organization
    Request parameters
    NameType / locationRequiredDescription
    usernamestring / queryNoorganization username, e.g. "gde"
    Response fields
    FieldTypeDescription
    type_ofstring
    idinteger
    usernamestring
    namestring
    summarystring
    twitter_usernamestring
    github_usernamestring
    urlstring
    locationstring
    tech_stackstring
    tag_linestring
    storystring
    joined_atstring
    profile_imagestring
    fetched_atstring
    ageinteger
  • Get User GET /get_user

    Public profile of a user.

    Parameters and response fields for GET /get_user
    Request parameters
    NameType / locationRequiredDescription
    usernamestring / queryNouser's username, e.g. "ben"
    idinteger / queryNonumeric user id instead of username (0 = use username)
    Response fields
    FieldTypeDescription
    type_ofstring
    idinteger
    usernamestring
    namestring
    twitter_usernamestring
    github_usernamestring
    summarystring
    locationstring
    website_urlstring
    joined_atstring
    profile_imagestring
    fetched_atstring
    ageinteger
  • List Articles GET /list_articles

    List published articles (the home feed), newest/most popular first.

    Parameters and response fields for GET /list_articles
    Request parameters
    NameType / locationRequiredDescription
    pageinteger / queryNopage number, starting at 1
    per_pageinteger / queryNoarticles per page (1-1000)
    tagstring / queryNoonly articles with this tag, e.g. "python"
    tagsstring / queryNocomma-separated tags, articles having any of them
    tags_excludestring / queryNocomma-separated tags to exclude
    usernamestring / queryNoonly articles by this user or organization username
    statestring / queryNo"fresh", "rising" or "all" (empty for the default feed)
    topinteger / queryNoonly the most popular articles of the last N days (0 = off)
    collection_idinteger / queryNoonly articles of this series/collection id (0 = off)
    latestboolean / queryNotrue to sort strictly by publication date, newest first (ignores tag filters other than none)
  • List Podcast Episodes GET /list_podcast_episodes

    Podcast episodes, newest first.

    Parameters and response fields for GET /list_podcast_episodes
    Request parameters
    NameType / locationRequiredDescription
    pageinteger / queryNopage number, starting at 1
    per_pageinteger / queryNoepisodes per page
    usernamestring / queryNoonly episodes of this podcast slug, e.g. "codenewbiepod"
  • List Tags GET /list_tags

    Tags ordered by popularity.

    Parameters and response fields for GET /list_tags
    Request parameters
    NameType / locationRequiredDescription
    pageinteger / queryNopage number, starting at 1
    per_pageinteger / queryNotags per page (1-1000)
  • List Videos GET /list_videos

    Articles that have a video, newest first.

    Parameters and response fields for GET /list_videos
    Request parameters
    NameType / locationRequiredDescription
    pageinteger / queryNopage number, starting at 1
    per_pageinteger / queryNovideos per page
  • Organization Articles GET /organization_articles

    Articles published under an organization.

    Parameters and response fields for GET /organization_articles
    Request parameters
    NameType / locationRequiredDescription
    usernamestring / queryNoorganization username, e.g. "gde"
    pageinteger / queryNopage number, starting at 1
    per_pageinteger / queryNoarticles per page
  • Organization Users GET /organization_users

    Members of an organization.

    Parameters and response fields for GET /organization_users
    Request parameters
    NameType / locationRequiredDescription
    usernamestring / queryNoorganization username, e.g. "gde"
    pageinteger / queryNopage number, starting at 1
    per_pageinteger / queryNousers per page
  • Search GET /search

    Full-text search, like the site's search page.

    Parameters and response fields for GET /search
    Request parameters
    NameType / locationRequiredDescription
    qstring / queryNosearch words
    typestring / queryNo"posts", "people", "organizations", "tags" or "comments"
    sortstring / queryNo"relevant", "newest" or "oldest" (newest/oldest only for posts)
    pageinteger / queryNopage number, starting at 1
    per_pageinteger / queryNoresults per page (max 100)
    Response fields
    FieldTypeDescription
    querystring
    typestring
    sortstring
    pageinteger
    totalinteger
    pagesinteger
    resultsobject[]
    results[].tag_liststring[]
    results[].public_reaction_categoriesstring[]
    results[].subforem_idinteger
    results[].published_atinteger
    results[].readable_publish_datestring
    results[].objectIDstring
    results[].titlestring
    results[].featuredboolean
    results[].comments_countinteger
    results[].positive_reactions_countinteger
    results[].public_reactions_countinteger
    results[].ai_disclosure_levelstring
    results[].timestampinteger
    results[].reading_timeinteger
    results[].scoreinteger
    results[].pathstring
    results[].user_idinteger
    results[].type_ofstring
    results[].main_imagestring
    results[].userobject
    results[].user.namestring
    results[].user.usernamestring
    results[].user.profile_imagestring
    results[].user.idinteger
    results[].user.profile_image_90string
    results[].body_textstring
    results[].urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger

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.

ListCSV columns
SearchGET /searchtag_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
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.

  • 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…