Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/david-fernando/medium-posts-api
Unofficial Medium API that returns the JSON of your posts
https://github.com/david-fernando/medium-posts-api
api api-json api-rest json-api medium-api rest-api unofficial-api
Last synced: 2 days ago
JSON representation
Unofficial Medium API that returns the JSON of your posts
- Host: GitHub
- URL: https://github.com/david-fernando/medium-posts-api
- Owner: david-fernando
- License: mit
- Created: 2021-01-10T22:36:48.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-09T02:19:30.000Z (13 days ago)
- Last Synced: 2024-12-13T08:22:54.019Z (9 days ago)
- Topics: api, api-json, api-rest, json-api, medium-api, rest-api, unofficial-api
- Language: TypeScript
- Homepage: mediumpostsapi.vercel.app
- Size: 2.12 MB
- Stars: 43
- Watchers: 2
- Forks: 11
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Medium Posts API
[![Status](https://img.shields.io/badge/status-active-success.svg)]() [![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE) [![CodeFactor](https://www.codefactor.io/repository/github/david-fernando/medium-posts-api/badge)](https://www.codefactor.io/repository/github/david-fernando/medium-posts-api)
---
Unofficial Medium API that returns the JSON of your posts
## 📝 Table of Contents
- [How to use](#how_to_use)
- [How to contribute](#how_to_contribute)
- [Can you help me?](#did_you_like_it)
- [Author](#authors)## 🏁 How to use
Make a get request to the url below with your Medium user
```bash
GET https://mediumpostsapi.vercel.app/api/{{yourmediumusername}}
```Example
```bash
https://mediumpostsapi.vercel.app/api/davidfernandodamata21
```
The request for the above url will bring the following results```bash
[
{
title: "Como fazer dark theme com JavaScript puro",
date: "2021-03-07",
link: "https://medium.com/david-fernando/como-dark-theme-com-javascript-puro-fc277377447c?source=rss-e1120fb0abef------2",
image: "https://cdn-images-1.medium.com/max/1024/1*pUi3vkj06Vqp_sXeiI-UbQ.jpeg",
description: "Um pequeno tutorial de como fazer dark theme com HTML, CSS e JavaScript puro.",
tags: [
"dark-mode",
"js-tutorial",
"javascript",
"tutorial"
]
},
{
title: "Como reduzir a quantidade de IFs"
date: "2020-09-25",
link: "https://medium.com/david-fernando/como-reduzir-a-quantidade-de-ifs-4484fc728397?source=rss-e1120fb0abef------2",
image: "https://cdn-images-1.medium.com/max/1024/1*6wlQhci1Pot4BWUPDpHbfw.jpeg",
description: "Uma introdução ao design pattern Strategy com JavaScript",
tags: [
"strategy-design-pattern",
"ecmascript",
"javascript",
"design-patterns",
"ecmascript-6"
]
},
{
title: "Por que usar TypeScript?",
date: "2020-09-24",
link: "https://medium.com/david-fernando/por-que-usar-typescript-ca15607eed33?source=rss-e1120fb0abef------2",
image: "https://cdn-images-1.medium.com/max/1024/1*ODf4X51nKEMElimXA706gQ.jpeg",
description: "Veja quais são os benefícios de utiliza-lo em seus projetos",
tags: [
"ecmascript-2020",
"typescript",
"ecmascript-6",
"javascript",
"ecmascript"
]
}
]
```
ℹ **Note**
> If your article doesn't have any images, the image property will have bellow placeholder
```bash
https://placehold.jp/bdbdc2/ffffff/250x250.png?text=No%20image
```## How to contribute
Fork this repository, make clone for your machine.
Install the dependencies with the command below:
```bash
yarn install
```To run the development server.
```bash
yarn dev
```
To run the tests.```bash
yarn test
```## Can you help me?
If it's within your reach please consider making a donation through the [Open Collective platform](https://opencollective.com/medium-posts-api)!
But if it is currently not possible to make a donation, no problem, you can also help me contributing with code, or just giving me a star. Every help is welcome.
Thank you very much in advance.## ✍️ Author
- [@david-fernando](https://github.com/david-fernando) - Idea & Initial work