PyMedium

screenshot of PyMedium
flask

Unofficial Medium Python Flask API and SDK

Overview

PyMedium is an unofficial API built on Python Flask for interacting with the Medium platform. Designed for developers, this read-only API allows access to a wealth of public information from Medium, including user profiles, publication details, and a collection of posts. With its customizable nature, users can deploy the API on their own servers, making it a versatile tool for anyone looking to integrate Medium data into their applications or services.

The installation process is straightforward, requiring a simple clone of the repository and the installation of necessary dependencies. This means even those new to API development can get started quickly. Once set up, PyMedium provides various endpoints tailored for ease of access to user and post data, enhancing the developer experience when building on the Medium platform.

Features

  • User Profile Access: Retrieve detailed user profiles using the endpoint /@{username}, providing valuable insights into profiles on Medium.

  • Publication Profiles: Access publication information through the /publication_name endpoint, allowing developers to showcase content from specific publications.

  • Latest Posts: Get the most recent posts from a user or a publication with simple GET requests, making it easy to fetch and display fresh content.

  • Trending Content: The /top endpoint allows developers to access the most popular posts of the day, ensuring that applications stay relevant with trending topics.

  • Tag-Based Search: Using the /tags/{tag} endpoints, access popular or latest posts by specific tags, enhancing content discovery capabilities.

  • Custom Response Format: The API supports multiple response formats like text, HTML, Markdown, and JSON, offering flexibility depending on project requirements.

  • User-Centric Queries: Parameters allow developers to limit the number of returned posts, optimizing the response for their specific needs (default is 10).

  • Open for Contributions: The API encourages collaboration by allowing users to submit bug reports, feature requests, and even custom features through GitHub, fostering a community-driven development approach.

flask
Flask

Flask is a lightweight and popular web framework for Python, known for its simplicity and flexibility. It is widely used to build web applications, providing a minimalistic approach to web development with features like routing, templates, and support for extensions.