Git Product home page Git Product logo

medium-posts-api's Introduction

Medium Posts API

Medium Posts API

Status License CodeFactor


Unofficial Medium API that returns the JSON of your posts

📝 Table of Contents

🏁 How to use

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/davidfernandodamata21

The 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%20image

How to contribute

Fork this repository, make clone for your machine.

Install the dependencies with the command below:

yarn install

To run the development server.

yarn dev

To run the tests.

yarn test

Did you like it?

If so, please consider financially supporting this API, using the GitHub sponsor.
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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.