Socket
Book a DemoInstallSign in
Socket

medium-api-js

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

medium-api-js

Javascript wrapper for Medium API (Unofficial)

1.1.3
latest
npmnpm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

medium

FAQs

Package last updated on 13 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.