Skip to main content

A python package to interact with Medium API

Project description


Contributors Forks Stargazers Issues MIT License

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

pymediumapi is a Python3 package to interact with the API of Medium

(back to top)

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.


Make sure to have python3, pip installed.


  1. Get a free Integration token at and create an enviroment variable export MEDIUM_INTEGRATION_TOKEN=<your token>
  2. Clone the repo
    git clone
  3. Create a virtual environment and install requirements
    python3 -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt

(back to top)


Example to authenticate and get a list of pubblications you subscribed:

import os
import pymediumapi

def main():
    client = pymediumapi.Client(os.environ.get('MEDIUM_INTEGRATION_TOKEN'))
    except Exception as e:
        print("Failed authentication: " + str(e))

        pubblications = client.get_pubblications()
    except Exception as e:
        print("Failed get pubblications: " + str(e))

    if pubblications:
        pub_id = pubblications[0]["id"]
            contributors = client.get_contributors(pub_id)
        except Exception as e:
            print("Failed getting contributors: " + str(e))
        print("There are no pubblications")

if __name__ == "__main__":

(back to top)


  • [] Upload post under pubblications
  • [] Upload images
  • [] Upload the package

See the open issues for a full list of proposed features (and known issues).

(back to top)


Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)


Distributed under the MIT License. See for more information.

(back to top)


Andrea Grillo - @AndreaGrillo96

Project Link:

(back to top)


(back to top)

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

pymediumapi-0.0.2.tar.gz (8.1 kB view hashes)

Uploaded source

Built Distribution

pymediumapi-0.0.2-py3-none-any.whl (8.4 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