Unofficial Medium API that returns the JSON of your posts
Make a get request to the url below with your Medium user
GET https://mediumpostsapi.vercel.app/api/{{yourmediumusername}}Example
https://mediumpostsapi.vercel.app/api/davidfernandodamata21The request for the above url will bring the following results
[
{
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
https://placehold.jp/bdbdc2/ffffff/250x250.png?text=No%20imageFork this repository, make clone for your machine.
Install the dependencies with the command below:
yarn installTo run the development server.
yarn devTo run the tests.
yarn testIf you find this project useful, consider giving it a ⭐ on GitHub. It helps other developers discover the project.
If you're scraping websites that rely heavily on JavaScript or have anti-bot protection, check out ScrapingAnt.
It handles browser rendering, proxies, and anti-bot infrastructure through a simple API.
Affiliate disclosure: I may earn a commission if you subscribe through this link, at no additional cost to you.
- @david-fernando - Idea & Initial work
