1.1.2 • Published 5 months ago

medium-api-js v1.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

medium-api-js

This is a wrapper library designed to interact with Unofficial Medium API (mediumapi.com).

Medium (medium.com) is one of the biggest blogging platform on the planet. Medium API (Unofficial) helps developers fetch data from Medium's Website.

Using this library you can easily fetch data related to Medium articles, user, authors, publications, tags, lists, etc ...

Installation

npm i medium-api-js

Usage

import Medium from 'medium-api-js';
require('dotenv').config();

const medium = new Medium(process.env.RAPIDAPI_KEY);

const userId = '6e2475a6e38a'; 

medium.getUserArticles(userId)
    .then(data => {
        console.log('User Articles:', data);
    })

Note: You'll need to create a ".env" file and put your RAPIDAPI_KEY into it. Alternatively, you can set in your environment variables.

How to Subscribe to Medium API and Get your API Key

See https://mediumapi.com/how-to-subscribe-to-medium-api.html

Resources

1.1.1

5 months ago

1.1.0

5 months ago

1.1.2

5 months ago

1.0.1

3 years ago

1.0.0

3 years ago