Skip to main content

Python Wrapper on top of Medium API to quickly extract data from

Project description

PYPI Package Version PYPI Monthly Download Stats RTD Documentation Status Github Actions Tests

What is Medium API?

Twitter LinkedIn Medium

Python Wrapper on top of Unofficial Medium API to quickly extract data from Medium’s website (


Install from PyPI

$ pip install medium-api
For more information, see Detailed Installation


Getting a Medium user’s information and fetching his articles.

from medium_api import Medium

medium = Medium('YOUR_RAPIDAPI_KEY')

user = medium.user(username="nishu-jain")

print(f'{user.fullname} has {user.followers_count} followers.')

for article in user.articles:

For more examples, see Usage

How to get your RapidAPI Key

How to get your RapidAPI Key (Subscribe to Medium API)


For more details, see the following links:



  • Medium User information and User-written Articles

  • Medium User’s Followers and Following

  • Medium Articles information

  • Medium Article’s Textual Content and Markdown

  • Medium Article’s Responses/Comments

  • Medium Publications information

  • Medium Publication’s Articles

  • Medium Publication’s Newsletter Info

  • Medium’s Top Writers

  • Medium’s Topfeeds (Trending, Latest, All time best, best of year/month/week)

  • Medium’s LatestPosts (distributed articles)


Full Documentation at

Other Materials

Medium REST API:


Free software: MIT license

EULA: Terms of Use

Code of Conduct

In the interest of fostering an open and welcoming environment, all contributors, maintainers and users are expected to abide by the Python code of conduct:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

medium-api-0.5.5.tar.gz (1.9 MB view hashes)

Uploaded source

Built Distribution

medium_api-0.5.5-py3-none-any.whl (24.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page