How to retrieve Medium stories for a user from the API?

前端 未结 11 1441
再見小時候
再見小時候 2021-01-30 04:06

I\'m trying to integrate Medium blogging into an app by showing some cards with posts images and links to the original Medium publication.

From Medium API docs I can see

11条回答
  •  暖寄归人
    2021-01-30 05:02

    I have created a custom REST API to retrieve the stats of a given post on Medium, all you need is to send a GET request to my custom API and you will retrieve the stats as a Json abject as follows: Request :

    curl https://endpoint/api/stats?story_url=THE_URL_OF_THE_MEDIUM_STORY
    

    Response:

    {
       "claps": 78,
       "comments": 1
    }
    

    The API responds within a reasonable response time (< 2 sec), you can find more about it in the following Medium article.

提交回复
热议问题