articles

Published article by path

Changed on

This endpoint allows the client to retrieve a single published article given its username and slug (the URL-friendly path identifier).

Usage Tip:

  • Handy for resolving absolute Forem/DEV article URLs (e.g., https://dev.to/username/slug) into their corresponding API data models.
get/api/articles/{username}/{slug}

Request

  • Base URL
    https://dev.to
  • Auth
    none required

Path parameters

usernamestring required

The username of the article's author or organization.

slugstring required

The URL-friendly slug of the article (e.g. my-first-post-1234).

Response

An Article

object required

Changes

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • breaking

      removed the media type application/json for the response with the status