Skip to content

he Medium Snippet API allows users to retrieve and display the latest 10 Medium articles for a given username.

License

Notifications You must be signed in to change notification settings

codescaptain/rails-medium-snippet

Repository files navigation

Medium Snippet API

The Medium Snippet API allows users to retrieve and display the latest 10 Medium or Dev.to articles for a given username. Users can add these articles to their GitHub profiles by providing the username and index parameters.

Open Source Helpers

NOTE: Only available for Dark Mode. (I am working on it 🫡)

Examples

My Medium story My Medium story

Getting Started

Installation

No installation is required. Simply use the following link to access the API:

Usage

The API finds articles from username with this link:

https://medium-snippet-dc633c4f39a0.herokuapp.com
  • username: your medium or dev.to username/profile
  • index: your recent article index. e.g.: 0 means your latest article.

Example Medium

Code:

https://medium-snippet-dc633c4f39a0.herokuapp.com/api/article.svg?username=@codescaptain&index=1&source=medium

https://medium-snippet-dc633c4f39a0.herokuapp.com/api/article.svg?username=@codescaptain&index=0&source=dev_to

Output:

My Medium story My Medium story

Contact

For inquiries, you can reach out through my GitHub Profile.