<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nishu Jain</title>
    <description>The latest articles on DEV Community by Nishu Jain (@nishu-jain).</description>
    <link>https://dev.to/nishu-jain</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1155171%2Fd54a8c70-80ad-4934-8bcb-4e4576cb9af0.jpeg</url>
      <title>DEV Community: Nishu Jain</title>
      <link>https://dev.to/nishu-jain</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nishu-jain"/>
    <language>en</language>
    <item>
      <title>How To Convert Medium Articles In Markdown Format</title>
      <dc:creator>Nishu Jain</dc:creator>
      <pubDate>Sat, 30 Sep 2023 18:00:00 +0000</pubDate>
      <link>https://dev.to/nishu-jain/how-to-convert-medium-articles-in-markdown-format-d55</link>
      <guid>https://dev.to/nishu-jain/how-to-convert-medium-articles-in-markdown-format-d55</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Medium Articles → Markdown → HTML&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;There are several reasons why you might want to convert a Medium article from its original format to Markdown and then to HTML. In this article, I'll explain to you how you can do it using Python programming language with a few simple steps.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why might you wanna do it?
&lt;/h3&gt;

&lt;p&gt;Some of the benefits of using Markdown include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Markdown is a simple, lightweight markup language that is easy to read and write. This makes it a convenient format for storing and editing articles, especially when compared to more complex formats such as HTML or XML.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Markdown supports a wide range of formatting options, such as headings, lists, links, and more, that can be applied using a simple and intuitive syntax. This allows you to add structure and formatting to your articles without having to use complex tags or styles.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Markdown is supported by a wide range of tools and platforms, including text editors, publishing systems, and more. This makes it easy to work with Markdown content and allows you to integrate your articles with other applications or services.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Markdown is a widely used and well-documented format with a large and active community of users. This means that you can easily find resources and support for working with Markdown and can share your articles with others who use the format.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Overall, converting a Medium article to Markdown can provide many benefits, such as making it easier to edit and format the article and enabling you to integrate it with other tools and platforms.&lt;/p&gt;

&lt;p&gt;Whether or not this is the right approach for you will depend on your specific needs and goals.&lt;/p&gt;

&lt;p&gt;Now let's jump to the code!&lt;/p&gt;




&lt;h2&gt;
  
  
  Python Code to convert Medium Article into Markdown and HTML
&lt;/h2&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  Code Explanation -
&lt;/h2&gt;

&lt;p&gt;The code you provided is a Python script that uses the &lt;code&gt;medium_api&lt;/code&gt; library to access the Unofficial Medium API and convert an article from Markdown to HTML.&lt;/p&gt;

&lt;p&gt;You can install &lt;code&gt;medium-api&lt;/code&gt; using the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;medium-api
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Here is a brief explanation of what the code does:&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;The first two lines import the &lt;code&gt;os&lt;/code&gt; and &lt;code&gt;markdown&lt;/code&gt; libraries, which are used to access environmental variables and convert Markdown to HTML, respectively.&lt;/li&gt;
&lt;/ul&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;The third line imports the &lt;code&gt;Medium&lt;/code&gt; class from the &lt;code&gt;medium_api&lt;/code&gt; library, which is used to access the Unofficial Medium API.&lt;/li&gt;
&lt;/ul&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;The next three lines extract the ID of an article from its URL, and use the &lt;code&gt;Medium&lt;/code&gt; object to retrieve the article data from the API. This data is stored in an &lt;code&gt;article&lt;/code&gt; object.&lt;/li&gt;
&lt;/ul&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;The eighth line uses the &lt;code&gt;markdown&lt;/code&gt; library to convert the article's Markdown content to HTML, and stores the result in a variable named &lt;code&gt;html_output&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;The last three lines write the HTML to a file named &lt;code&gt;index.html&lt;/code&gt;, replacing all occurrences of the &lt;code&gt;( ' )&lt;/code&gt; character with a single quote.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Overall, this code demonstrates how to use the &lt;code&gt;medium_api&lt;/code&gt; library to access the Unofficial Medium API and convert an article from Markdown to HTML. It is not a complete application but rather a sample of how the API can be used in a Python script.&lt;/p&gt;




&lt;h2&gt;
  
  
  Resources 🚀
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;You can subscribe to Unofficial Medium API here: &lt;a href="http://hub.mediumapi.com/"&gt;Medium API - RapidAPI&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Read its Swagger documentation: &lt;a href="https://docs.mediumapi.com/"&gt;Medium API - Documentation&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Bookmark Python SDK's GitHub repository: &lt;a href="https://github.com/weeping-angel/medium-api"&gt;Medium API - GitHub&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;See more example usage here: &lt;a href="https://medium-api.readthedocs.io/en/latest/usage.html"&gt;Medium API - ReadTheDocs&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks for reading, and have a nice day!&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;PS:&lt;/strong&gt; We post tutorials, videos, code snippets, and insights related to Medium and our API. So be sure to follow us on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Twitter: &lt;a href="https://twitter.com/medium_api"&gt;twitter.com/medium_api&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;LinkedIn: &lt;a href="https://www.linkedin.com/company/medium-api"&gt;www.linkedin.com/company/medium-api&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;Related Articles -&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://mediumapi.com/documentation.html"&gt;Unofficial Medium API - Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://mediumapi.com/get-posts-using-python.html"&gt;Unofficial Medium API: Get Posts Using Python&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://mediumapi.com/list-top-writers-of-medium.html"&gt;How To List Hundreds of Niche Top Writers of Medium&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Unofficial Medium API - Frequently Asked Questions</title>
      <dc:creator>Nishu Jain</dc:creator>
      <pubDate>Wed, 27 Sep 2023 17:30:00 +0000</pubDate>
      <link>https://dev.to/nishu-jain/unofficial-medium-api-frequently-asked-questions-3kjf</link>
      <guid>https://dev.to/nishu-jain/unofficial-medium-api-frequently-asked-questions-3kjf</guid>
      <description>&lt;p&gt;&lt;em&gt;This is the list of most frequent questions that I get from people who come across our Unofficial Medium API. If your question is not answered here, please feel free to email me at "&lt;a href="mailto:nishu@mediumapi.com"&gt;nishu@mediumapi.com&lt;/a&gt;".&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Does Medium have an API? Or, Is there an API for Medium?
&lt;/h2&gt;

&lt;p&gt;Yes, Medium has its Official API on Github, but it is no longer maintained. It was primarily focused on publishing articles on Medium, programmatically, but you could not extract any significant data using it.&lt;/p&gt;

&lt;p&gt;To overcome this limitation, I developed the &lt;a href="https://mediumapi.com"&gt;Unofficial Medium API&lt;/a&gt;. Using this, you can &lt;strong&gt;fetch anything and everything from Medium&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/oc8TKG9EQfE"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Check out its &lt;a href="https://docs.mediumapi.com"&gt;documentation&lt;/a&gt; to learn more about its powerful features and capabilities. From fetching articles, authors, publications, and more, the Unofficial Medium API provides a complete and flexible solution for all your data extraction needs from Medium.&lt;/p&gt;

&lt;p&gt;Whether you're a marketer, researcher, or developer, you can easily access the valuable insights and information stored on Medium with this API.&lt;/p&gt;

&lt;p&gt;So why settle for the limited official API when you can have the full power of the Unofficial Medium API at your fingertips?&lt;/p&gt;

&lt;p&gt;Upgrade your Medium data extraction today!&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://mediumapi.com/documentation.html"&gt;Unofficial Medium API - Documentation&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Is our Unofficial Medium API free?
&lt;/h2&gt;

&lt;p&gt;Our Unofficial Medium API has a freemium model. We provide 150 free &lt;strong&gt;calls per month&lt;/strong&gt; on our Basic plan. It'll give you plenty of room to try and test it for your particular solution.&lt;/p&gt;

&lt;p&gt;But if your requirement is higher, we recommend you upgrade your plan - &lt;em&gt;&lt;strong&gt;Pro, Ultra, or Mega&lt;/strong&gt; -&lt;/em&gt; for more API calls.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;💡 Check out our very generous pricing on &lt;strong&gt;&lt;a href="http://hub.mediumapi.com/pricing"&gt;RapidAPI&lt;/a&gt;. 🦑&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For large-scale production use, email me at "&lt;strong&gt;&lt;a href="mailto:nishu@mediumapi.com"&gt;nishu@mediumapi.com&lt;/a&gt;&lt;/strong&gt;". We can build custom endpoints for you to save bandwidth, and give you flat rates for unlimited usage.&lt;/p&gt;




&lt;h2&gt;
  
  
  How do I use this Unofficial Medium API?
&lt;/h2&gt;

&lt;p&gt;To use Unofficial Medium API, go to our &lt;a href="http://hub.mediumapi.com"&gt;RapidAPI listing&lt;/a&gt; and subscribe it!&lt;/p&gt;

&lt;p&gt;There you'll get your API Key to authenticate your calls. This will also keep track of your usage, so please remember to keep it a secret.&lt;/p&gt;

&lt;p&gt;Once you're subscribed and have the API Key, you can start programming in your favorite language.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;✨ &lt;strong&gt;Bonus Tip:&lt;/strong&gt; If you're a Python Developer, then you can use our Unofficial Medium API's SDK.&lt;/p&gt;

&lt;p&gt;$ &lt;strong&gt;pip install medium-api&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Go to our &lt;a href="https://github.com/weeping-angel/medium-api"&gt;Github repository&lt;/a&gt; to get started!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/-MM1C6mb-mc"&gt;
&lt;/iframe&gt;
&lt;/p&gt;




&lt;h2&gt;
  
  
  How do I get data from the Unofficial Medium API?
&lt;/h2&gt;

&lt;p&gt;To get data from our Unofficial Medium API, you'll have to make GET request to your desired endpoint, along with the API Key in the headers. Your header will look like this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;x-rapidapi-key: [YOUR_API_KEY]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In response, our server will quickly return a JSON object containing the related data points and attributes in the form of key-value pairs.&lt;/p&gt;

&lt;p&gt;Base API URL -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET &lt;a href="https://medium2.p.rapidapi.com/"&gt;https://medium2.p.rapidapi.com/&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;To try and test all the endpoints, use &lt;a href="http://hub.mediumapi.com"&gt;RapidAPI's Playground&lt;/a&gt;. There, you can also get the code in your favorite programming language to call the API.&lt;/p&gt;

&lt;p&gt;For an in-depth explanation of each endpoint, read our awesome documentation here on Medium:-&lt;/p&gt;

&lt;p&gt;&lt;a href="https://mediumapi.com/documentation.html"&gt;Unofficial Medium API - Documentation&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  How do you find Medium Stats?
&lt;/h2&gt;

&lt;p&gt;For obvious reasons, our Unofficial Medium API cannot fetch your private information, such as the number of reads on your articles, total reading time, your Medium earnings, etc...&lt;/p&gt;

&lt;p&gt;However, it can fetch a number of claps, voters, and comments on your articles to estimate their popularity.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://mediumapi.com/best-metric-to-judge-medium-articles-popularity.html"&gt;Best Metric to Judge a Medium Article's Popularity&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;There are more than 15 data points that you can get from &lt;a href="https://mediumapi.com/documentation.html#eda6"&gt;Article Info Endpoint&lt;/a&gt; alone. And you can gather pretty interesting insights from them.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;For example;&lt;/em&gt; you can perform rigorous data analysis on any Medium user's profile by fetching all their articles.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What can you find by getting a bunch of articles?&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  See in which publications they like to post their work.&lt;/li&gt;
&lt;li&gt;  Find exactly when they're publishing their articles - Which time, weekday, or dates of the month.&lt;/li&gt;
&lt;li&gt;  Which topics they're covering in their niches, or what's trending?&lt;/li&gt;
&lt;li&gt;  Perform sentiment analysis or some advanced NLP technique to go further deep to find their secret.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Your options are just limited by your imagination!&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Further in this article, by "Medium Stats" we mean the data points that you can get from our API. Publicly available information.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Can you download Medium Stats?
&lt;/h2&gt;

&lt;p&gt;From Medium, Not yet :(&lt;/p&gt;

&lt;p&gt;From Unofficial Medium API, &lt;strong&gt;Absolutely yes!&lt;/strong&gt; &lt;em&gt;(Please read the answer above)&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Since you're reading this, I'm assuming you've basic programming skills. If not, then don't worry ... email me at "&lt;strong&gt;&lt;a href="mailto:nishu@mediumapi.com"&gt;nishu@mediumapi.com&lt;/a&gt;&lt;/strong&gt;" and describe exactly what you want to do.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Using our API, you can fetch all kinds of data from Medium and save/download it wherever you want. Like on your computer, database, or flat files, or cloud, etc ...&lt;/p&gt;

&lt;p&gt;Personally, I like to download and save all my stats in &lt;strong&gt;CSV files&lt;/strong&gt; that I can open in Excel or Spreadsheet later. These files can easily be consumed by data pipelines and data processing libraries like &lt;a href="https://pandas.pydata.org/"&gt;Pandas&lt;/a&gt; (in Python).&lt;/p&gt;

&lt;p&gt;We can then plug these Pandas Dataframes into ML projects and perform analysis and visualization to hunt for insights.&lt;/p&gt;




&lt;h2&gt;
  
  
  Can people read Medium Articles for free? Or, Are Medium articles free? Or, How to get free Medium Articles?
&lt;/h2&gt;

&lt;p&gt;It is no secret that people, who are not subscribed to Medium, can read members-only articles in the browser's incognito mode. In that sense, Medium articles are free and publicly available to all.&lt;/p&gt;

&lt;p&gt;[UPDATE]: Recently, Medium made some changes to their platform and now people cannot read Medium Articles for free in incognito mode.&lt;/p&gt;

&lt;p&gt;Using our API, you can fetch Medium Article's details, its textual content, and markdown for free programmatically.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;⚠️ Disclaimer&lt;/strong&gt;: It is not advisable to abuse this content-extraction functionality of our API to re-publish or distribute Medium Users' Work without their explicit permission. We are not responsible for any copyright infringement, plagiarism, or illegal activity performed by an API user. This functionality of this Unofficial Medium API is intended for personal usage and data analytics purposes only.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Please go through our &lt;a href="https://github.com/weeping-angel/medium-api/blob/pages/terms_of_use.rst"&gt;Terms of Use&lt;/a&gt; before using &lt;a href="https://mediumapi.com"&gt;Unofficial Medium API&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;&lt;strong&gt;Have more questions?&lt;/strong&gt; Feel free to email us at "&lt;a href="mailto:nishu@mediumapi.com"&gt;nishu@mediumapi.com&lt;/a&gt;" and we would be happy to answer them all!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>medium</category>
      <category>python</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Convert Medium Articles to HTML</title>
      <dc:creator>Nishu Jain</dc:creator>
      <pubDate>Sun, 24 Sep 2023 16:15:00 +0000</pubDate>
      <link>https://dev.to/nishu-jain/convert-medium-articles-to-html-1p5p</link>
      <guid>https://dev.to/nishu-jain/convert-medium-articles-to-html-1p5p</guid>
      <description>&lt;p&gt;Hey Guys!&lt;/p&gt;

&lt;p&gt;We are happy to announce that we have added a new, powerful endpoint to Medium API to extend its functionality, called "&lt;strong&gt;Get Article's HTML&lt;/strong&gt;". As the name suggests, this endpoint returns the Medium Article in plain HTML format.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;You can read more about its usage &lt;strong&gt;&lt;a href="https://mediumapi.com/documentation.html#33ef"&gt;here&lt;/a&gt;.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In this article, we will explore the intricacies of the HTML structure obtained through the output of this new endpoint. We will dive deep into the underlying elements, classes, and tags that compose the structure of Medium articles.&lt;/p&gt;

&lt;p&gt;In our discoveries, one of the major applications we have found of this endpoint is to sync up your Medium articles with your personal portfolio website.&lt;/p&gt;

&lt;p&gt;If you don't want to build a backend just for publishing articles, then you can use Medium as your blogging backend. Medium API enables you to import/sync your Medium Articles with ease.&lt;/p&gt;

&lt;p&gt;And understanding the structure of the output HTML will empower you to effortlessly adapt and style your imported Medium articles, ensuring they seamlessly blend with the unique design and layout of your website.&lt;/p&gt;

&lt;p&gt;So let's get started!&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Quick refresh:&lt;/strong&gt; Here is the output of the "Article's HTML" endpoint.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ae2mPzwy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/0%2AZlCWHAACPXYB4m_t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ae2mPzwy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/0%2AZlCWHAACPXYB4m_t.png" alt="Image by the Author" width="800" height="885"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Fullpage Parameter
&lt;/h2&gt;

&lt;p&gt;Before we dive into each tag, an important aspect to note is the presence of the &lt;em&gt;&lt;strong&gt;"fullpage"&lt;/strong&gt;&lt;/em&gt; parameter that you can use with this endpoint.&lt;/p&gt;

&lt;p&gt;By toggling this parameter to &lt;strong&gt;&lt;code&gt;true&lt;/code&gt;&lt;/strong&gt;, you can obtain the complete HTML page, including the head, body, title, and meta tags.&lt;/p&gt;

&lt;p&gt;Alternatively, setting it to &lt;strong&gt;&lt;code&gt;false&lt;/code&gt;&lt;/strong&gt; retrieves only the HTML content within the body.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hq38OJr6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AffNfQbTRxe9ZpYxv4Ws3Xw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hq38OJr6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AffNfQbTRxe9ZpYxv4Ws3Xw.png" alt="Medium API - Articles HTML - Fullpage Output" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dDsUUSQP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2A_aSC20RkCIKCRvy77mkVzw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dDsUUSQP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2A_aSC20RkCIKCRvy77mkVzw.png" alt="Medium API - Articles HTML - Body Output" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Choosing to save the full HTML page (&lt;em&gt;fullpage = true&lt;/em&gt;) provides additional information that can prove beneficial for various purposes, particularly in the realm of Search Engine Optimization (SEO).&lt;/p&gt;

&lt;p&gt;You'll also notice the presence of multiple meta tags in the example. They are primarily used by search engines, social media platforms, and browsers to understand and display information about the webpage.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pNioR9qA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AudfpJ3hUNYCMd3IrwZ5jJw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pNioR9qA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AudfpJ3hUNYCMd3IrwZ5jJw.png" alt="Image by the Author" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These meta tags provide various types of information about the webpage, including its character encoding, compatibility mode, view-port settings, description, keywords, authorship, and information used by social media platforms when the page is shared.&lt;/p&gt;

&lt;p&gt;Now let's come to the main part of the HTML.&lt;/p&gt;




&lt;h2&gt;
  
  
  Understanding the HTML Structure
&lt;/h2&gt;

&lt;p&gt;Here, we will take a closer look at the various tags present in the HTML structure of a Medium article.&lt;/p&gt;

&lt;p&gt;From the eye-catching headings to the captivating images, the impactful quotes to the informative code blocks, we will examine the purpose and functionality of each tag.&lt;/p&gt;

&lt;h2&gt;
  
  
  Kicker, Title &amp;amp; Subtitle
&lt;/h2&gt;

&lt;p&gt;These elements form the backbone of an engaging Medium article by capturing the reader's attention and conveying the essence of the content.&lt;/p&gt;

&lt;p&gt;The kicker acts as a catchy introduction, while the title succinctly summarizes the main topic. Subtitles provide additional context or highlight key aspects.&lt;/p&gt;

&lt;p&gt;By utilizing the &lt;strong&gt;&lt;code&gt;&amp;lt;h3&amp;gt;&lt;/code&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;&lt;/strong&gt;, and &lt;strong&gt;&lt;code&gt;&amp;lt;h3&amp;gt;&lt;/code&gt;&lt;/strong&gt; tags respectively, these elements are given the prominence they deserve.&lt;/p&gt;

&lt;p&gt;Here's an example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Hzq9axnX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AM13XN-lVAsFgWZ0dOpfaiA.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Hzq9axnX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AM13XN-lVAsFgWZ0dOpfaiA.png" alt="Medium Article's Title HTML Code" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Images
&lt;/h2&gt;

&lt;p&gt;Moving on to images - they enhance the visual appeal of an article and help convey information more effectively.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;&lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt;&lt;/strong&gt; tag is used to insert images into the article, as seen in the example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ahHj3zbJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AIKsz53FD-1GvQVS6acH1hA.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ahHj3zbJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AIKsz53FD-1GvQVS6acH1hA.png" alt="Medium Image Embed HTML Code" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here, the &lt;strong&gt;&lt;code&gt;alt&lt;/code&gt;&lt;/strong&gt; text is taken from your Image's caption and &lt;strong&gt;&lt;code&gt;src&lt;/code&gt;&lt;/strong&gt; attribute specifies the Image's URL stored on Medium server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Codeblocks
&lt;/h2&gt;

&lt;p&gt;Code snippets are an essential part of technical articles, as they allow readers to understand specific programming instructions.&lt;/p&gt;

&lt;p&gt;To represent codeblocks in our HTML structure, the &lt;strong&gt;&lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;&amp;lt;code&amp;gt;&lt;/code&gt;&lt;/strong&gt; tags are utilized, providing a designated space for code content. And the &lt;strong&gt;&lt;code&gt;class&lt;/code&gt;&lt;/strong&gt; attribute allows you to specify the language for syntax highlighting.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Mc-rDA2U--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2Ae8uyPr3uXr5emOid_bcngQ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Mc-rDA2U--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2Ae8uyPr3uXr5emOid_bcngQ.png" alt="Medium Codeblocks HTML Code" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By enclosing code within these tags, it maintains the formatting and preserves indentation, making it easier for readers to read and comprehend the code.&lt;/p&gt;

&lt;p&gt;This ensures that code snippets are visually distinct from the surrounding text, allowing for better clarity and understanding.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quotes
&lt;/h2&gt;

&lt;p&gt;Quotes serve as powerful tools for emphasizing key statements or insights within an article.&lt;/p&gt;

&lt;p&gt;In our HTML structure, quotes are represented using the &lt;strong&gt;&lt;code&gt;&amp;lt;blockquote&amp;gt;&lt;/code&gt;&lt;/strong&gt; tag.&lt;/p&gt;

&lt;p&gt;This tag allows for the distinct styling and presentation of quoted content. By applying different classes, such as "&lt;em&gt;&lt;strong&gt;big&lt;/strong&gt;&lt;/em&gt;" or "&lt;em&gt;&lt;strong&gt;small&lt;/strong&gt;&lt;/em&gt;," you can make them stand out differently to capture the reader's attention.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--G3GqoKna--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2A6JSR6YtYBRqleF-i239_ew.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--G3GqoKna--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2A6JSR6YtYBRqleF-i239_ew.png" alt="Medium Articles Quote HTML Code" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Basic Formatting
&lt;/h2&gt;

&lt;p&gt;HTML tags like &lt;strong&gt;&lt;code&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;code&gt;&amp;lt;i&amp;gt;&lt;/code&gt;&lt;/strong&gt;, and &lt;strong&gt;&lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt;&lt;/strong&gt; provide powerful means to format and enhance the textual content of Medium articles.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;&lt;code&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&lt;/strong&gt; tag is used to bold the text&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;&lt;code&gt;&amp;lt;i&amp;gt;&lt;/code&gt;&lt;/strong&gt; for making it italic&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;&lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt;&lt;/strong&gt; for creating clickable hyperlinks&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These tags allow us to apply emphasis, highlight important information, and seamlessly integrate external references within the article.&lt;/p&gt;

&lt;p&gt;In the image, we can observe examples of both formatting and links:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--R-XINJCP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AqA3HkuVXKKnRJ8gp4Cti3Q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--R-XINJCP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AqA3HkuVXKKnRJ8gp4Cti3Q.png" alt="Medium Article Basic Formatting HTML Code" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These examples showcase different combinations of &lt;strong&gt;&lt;code&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;&amp;lt;i&amp;gt;&lt;/code&gt;&lt;/strong&gt; tags to create bold, italic, or both formatting styles applied to specific portions of the text.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;&lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt;&lt;/strong&gt; tag is used to create a clickable hyperlink, where &lt;strong&gt;&lt;code&gt;href&lt;/code&gt;&lt;/strong&gt; attribute specifies the URL that the link should point to, and the text "&lt;strong&gt;Link&lt;/strong&gt;" serves as the visible text for the hyperlink.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lists
&lt;/h2&gt;

&lt;p&gt;Lists are valuable tools for organizing information in a structured and readable format within Medium articles.&lt;/p&gt;

&lt;p&gt;Here, we have two types of lists:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  ordered lists represented by the &lt;strong&gt;&lt;code&gt;&amp;lt;ol&amp;gt;&lt;/code&gt;&lt;/strong&gt; (ordered list) tag&lt;/li&gt;
&lt;li&gt;  unordered lists represented by the &lt;strong&gt;&lt;code&gt;&amp;lt;ul&amp;gt;&lt;/code&gt;&lt;/strong&gt; (unordered list) tag&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cjM2VJOi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AJbIcj842lMMSEhVCIxQCdg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cjM2VJOi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AJbIcj842lMMSEhVCIxQCdg.png" alt="Lists in Medium Articles - HTML Code" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the ordered list example, the &lt;strong&gt;&lt;code&gt;&amp;lt;ol&amp;gt;&lt;/code&gt;&lt;/strong&gt; tag is used to create a numbered list. Each list item is represented by the &lt;strong&gt;&lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt;&lt;/strong&gt; (list item) tag. The numbers indicate the sequence or order of the items.&lt;/p&gt;

&lt;p&gt;In the unordered list example, the &lt;strong&gt;&lt;code&gt;&amp;lt;ul&amp;gt;&lt;/code&gt;&lt;/strong&gt; tag is used to create a bullet-point list. Similar to the ordered list, each item is represented by the &lt;strong&gt;&lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt;&lt;/strong&gt; tag. However, in this case, the items are presented without any particular order or sequence.&lt;/p&gt;

&lt;p&gt;Lists are particularly useful when presenting steps, instructions, bullet points, or any form of organized information.&lt;/p&gt;

&lt;p&gt;They help readers easily digest and navigate through the content, improving the overall readability and comprehension of the article.&lt;/p&gt;

&lt;h2&gt;
  
  
  Inline Code
&lt;/h2&gt;

&lt;p&gt;Inline code snippets are an important aspect of technical articles. They allow us to highlight and distinguish code within the regular text. In our HTML structure, the &lt;strong&gt;&lt;code&gt;&amp;lt;code&amp;gt;&lt;/code&gt;&lt;/strong&gt; tag is utilized to represent inline code snippets.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aW4FKX1n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AjMoJIFbhG6Hbrx8ahPTgAQ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aW4FKX1n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AjMoJIFbhG6Hbrx8ahPTgAQ.png" alt="Medium Story - Inline Code - HTML" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This tag enhances the clarity and readability of our Medium articles, especially when discussing code-related concepts, syntax, or examples.&lt;/p&gt;

&lt;h2&gt;
  
  
  Embeds
&lt;/h2&gt;

&lt;p&gt;Embedding external content in Medium articles elevates the level of interactivity, transforming them into immersive experiences. By seamlessly integrating dynamic elements such as code snippets, interactive widgets, or multimedia content, we captivate our readers and provide them with engaging and enriched articles.&lt;/p&gt;

&lt;p&gt;In our HTML structure, different types of embeds get converted into different kinds of tags.&lt;/p&gt;

&lt;p&gt;Let's see a couple of examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  GitHub Gist Embed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Lpqq5833--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AFaJWYvKvZ6H2LntB6ZKIsg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Lpqq5833--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AFaJWYvKvZ6H2LntB6ZKIsg.png" alt="Gist Embed in Medium Article" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  YouTube Video Embed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jHmRPz3B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AV-cXe-kkFBiGP2xNCPT6Hg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jHmRPz3B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AV-cXe-kkFBiGP2xNCPT6Hg.png" alt="YouTube Video Embed in Medium Article" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Final thoughts -
&lt;/h2&gt;

&lt;p&gt;You have now acquired a thorough comprehension of the new &lt;strong&gt;"Get Article's HTML"&lt;/strong&gt; endpoint in the Medium API, along with the wide array of tags encompassed in its output.&lt;/p&gt;

&lt;p&gt;Armed with this knowledge, you can effortlessly incorporate the endpoint's output into your existing infrastructure, and even tailor your own custom CSS to align with your company's branding.&lt;/p&gt;

&lt;p&gt;Should you have any inquiries, uncertainties, or suggestions regarding this endpoint or its output, please feel free to reach out to us at -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="//mailto:nishu@mediumapi.com"&gt;nishu@mediumapi.com&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Thanks for reading and have a nice day!&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Unofficial Medium API: Get Posts Using Python</title>
      <dc:creator>Nishu Jain</dc:creator>
      <pubDate>Thu, 21 Sep 2023 14:30:00 +0000</pubDate>
      <link>https://dev.to/nishu-jain/unofficial-medium-api-get-posts-using-python-7o1</link>
      <guid>https://dev.to/nishu-jain/unofficial-medium-api-get-posts-using-python-7o1</guid>
      <description>&lt;p&gt;Hey guys!&lt;/p&gt;

&lt;p&gt;Welcome back to another tutorial for Unofficial Medium API. Today I will teach you how you can get posts from Medium using Python programming language.&lt;/p&gt;

&lt;p&gt;By the end of this article, you will be able to extract any user-written articles, any stories published by a publication, and posts published with certain tags.&lt;/p&gt;

&lt;p&gt;You can use any programming language of your choice here since we're using a REST API. But here, I'll focus on Python only since we have an SDK ready, which will make our life easier.&lt;/p&gt;

&lt;p&gt;If you're coding in any other language, such as Javascript, PHP, C/C++, or something like that, please look into this &lt;strong&gt;&lt;a href="https://docs.mediumapi.com"&gt;swagger documentation&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For all the Python programmers, sit tight, and let's jump to the code.&lt;/p&gt;




&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/N6SyoFG-pno"&gt;
&lt;/iframe&gt;
&lt;/p&gt;




&lt;h2&gt;
  
  
  Getting posts using Medium API
&lt;/h2&gt;

&lt;p&gt;To simplify the usage of Medium API, we'll install &lt;code&gt;medium-api&lt;/code&gt; python package.&lt;/p&gt;

&lt;p&gt;First of all, open up your favorite IDE and fire up the terminal.&lt;/p&gt;

&lt;p&gt;Type &lt;em&gt;&lt;strong&gt;"pip install medium-api"&lt;/strong&gt;&lt;/em&gt; and hit enter.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install medium-api
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This will install &lt;strong&gt;&lt;code&gt;medium-api&lt;/code&gt;&lt;/strong&gt; package in your python environment, so you can import it in your project.&lt;/p&gt;


&lt;h2&gt;
  
  
  Get User's Posts
&lt;/h2&gt;

&lt;p&gt;Now, create a new Python file and name it, &lt;em&gt;&lt;strong&gt;"get_user_articles.py"&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;p&gt;Import the &lt;strong&gt;&lt;code&gt;Medium&lt;/code&gt;&lt;/strong&gt; class object from &lt;strong&gt;&lt;code&gt;medium_api&lt;/code&gt;&lt;/strong&gt; module. And initialize it using your &lt;em&gt;&lt;strong&gt;API_KEY&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;💡  &lt;strong&gt;Note:&lt;/strong&gt; To get your API_KEY, &lt;strong&gt;&lt;a href="http://hub.mediumapi.com"&gt;Subscribe to our Unofficial Medium API&lt;/a&gt;&lt;/strong&gt;. And don't worry, you can start by choosing the &lt;strong&gt;FREE plan&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now, create a Medium &lt;strong&gt;&lt;code&gt;User&lt;/code&gt;&lt;/strong&gt; Object by passing your &lt;em&gt;&lt;strong&gt;username&lt;/strong&gt;&lt;/em&gt; (here &lt;em&gt;nishu-jain&lt;/em&gt;). Then call &lt;strong&gt;&lt;code&gt;fetch_articles()&lt;/code&gt;&lt;/strong&gt; function, will quickly extract articles information using multi-threading.&lt;/p&gt;

&lt;p&gt;At last, you can loop through user articles objects and print its title.&lt;/p&gt;

&lt;p&gt;That's it!&lt;/p&gt;




&lt;h2&gt;
  
  
  Get Publication's Posts
&lt;/h2&gt;

&lt;p&gt;Now let's create another file called &lt;em&gt;&lt;strong&gt;"get_publication_articles.py"&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;p&gt;Start by importing the &lt;code&gt;Medium&lt;/code&gt; object and initializing it using your &lt;em&gt;&lt;strong&gt;"API_KEY"&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;💡  &lt;strong&gt;Note:&lt;/strong&gt; To get your API_KEY, &lt;strong&gt;&lt;a href="http://hub.mediumapi.com"&gt;Subscribe to our Unofficial Medium API&lt;/a&gt;&lt;/strong&gt;. And don't worry, you can start by choosing the &lt;strong&gt;FREE plan&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Define a &lt;code&gt;Publication&lt;/code&gt; object by passing the &lt;em&gt;&lt;strong&gt;publication_id&lt;/strong&gt;&lt;/em&gt;. Here, I'm using a publication called &lt;strong&gt;"Towards AI"&lt;/strong&gt; as an example.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;How to get the &lt;em&gt;&lt;strong&gt;publication_id&lt;/strong&gt;&lt;/em&gt;?&lt;/p&gt;

&lt;p&gt;To get the publication ID, one of the easiest method would be to get it from an &lt;em&gt;&lt;strong&gt;&lt;code&gt;Articles&lt;/code&gt;&lt;/strong&gt;&lt;/em&gt; object.&lt;/p&gt;

&lt;p&gt;1. Open up any article published under that publication, and copy its URL.&lt;/p&gt;

&lt;p&gt;2. Take the hash at the end of the URL, and create an Articles object using it.&lt;/p&gt;

&lt;p&gt;3. Print article dot publication ID and save it somewhere else, so it can be re-used.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rhi-xCKU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AIMmydUsDhqVOUE4i2Bv97A.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rhi-xCKU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AIMmydUsDhqVOUE4i2Bv97A.png" alt="Image by the author" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, using the &lt;strong&gt;&lt;code&gt;get_articles_between()&lt;/code&gt;&lt;/strong&gt; function, of the publication object, get all the articles published in the last week. To do so, you'll have to pass two date-time parameters, &lt;strong&gt;&lt;code&gt;_from&lt;/code&gt;&lt;/strong&gt;, and, &lt;strong&gt;&lt;code&gt;_to&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;At last, iterate through the list of last week's article objects and print their &lt;em&gt;title&lt;/em&gt; and &lt;em&gt;published dates&lt;/em&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Get Top feed Articles
&lt;/h2&gt;

&lt;p&gt;Now let's create another file called &lt;em&gt;&lt;strong&gt;"get_topfeeds.py"&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;p&gt;As usual, start by importing the &lt;code&gt;Medium&lt;/code&gt; Object, and initialize it using the &lt;em&gt;&lt;strong&gt;API_KEY&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;💡  &lt;strong&gt;Note:&lt;/strong&gt; To get your API_KEY, &lt;strong&gt;&lt;a href="http://hub.mediumapi.com"&gt;Subscribe to our Unofficial Medium API&lt;/a&gt;&lt;/strong&gt;. And don't worry, you can start by choosing the &lt;strong&gt;FREE plan&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Define a &lt;strong&gt;&lt;code&gt;TopFeeds&lt;/code&gt;&lt;/strong&gt; object by passing the &lt;em&gt;&lt;strong&gt;tag&lt;/strong&gt;&lt;/em&gt; and &lt;em&gt;&lt;strong&gt;mode&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Here we can take &lt;em&gt;blockchain&lt;/em&gt; as the example tag and mode &lt;em&gt;"new"&lt;/em&gt;, to fetch the latest blockchain articles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ccztt8Us--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AyE_NkMA6S3LPPm10hoIK0g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ccztt8Us--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AyE_NkMA6S3LPPm10hoIK0g.png" alt="Image by the author" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, call the &lt;strong&gt;&lt;code&gt;fetch_articles()&lt;/code&gt;&lt;/strong&gt; function to quickly get posts using multi-threading.&lt;/p&gt;

&lt;p&gt;At last, loop through the top feeds articles and print their &lt;em&gt;title&lt;/em&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Final thoughts -
&lt;/h2&gt;

&lt;p&gt;Once you get the &lt;strong&gt;&lt;code&gt;Articles&lt;/code&gt;&lt;/strong&gt; object, you can access several of its properties, like its - &lt;em&gt;&lt;strong&gt;title, subtitle, author's details, publication details, claps, voters, word count, reading time, tags, topics, textual content, responses, responses count, published date, last modified date, cover image URL, language, article URL, and also, you can get the entire article in the markdown format.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tvk6BO_9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AlcwPPYOlr_SKSWmwTfXx4A.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tvk6BO_9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://miro.medium.com/1%2AlcwPPYOlr_SKSWmwTfXx4A.png" alt="Image by the author" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Important Resources 💡
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Homepage:&lt;/strong&gt; &lt;a href="https://mediumapi.com"&gt;https://mediumapi.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/weeping-angel/medium-api"&gt;https://github.com/weeping-angel/medium-api&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;ReadTheDocs:&lt;/strong&gt; &lt;a href="https://medium-api.rtfd.io"&gt;https://medium-api.rtfd.io&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Swagger Documentation:&lt;/strong&gt; &lt;a href="https://docs.mediumapi.com"&gt;https://docs.mediumapi.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;RapidAPI:&lt;/strong&gt; &lt;a href="http://hub.mediumapi.com"&gt;http://hub.mediumapi.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;PS:&lt;/strong&gt; We post tutorials, videos, code snippets, and insights related to Medium and Unofficial Medium API. So be sure to follow us on&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Twitter: &lt;strong&gt;&lt;a href="https://twitter.com/medium_api"&gt;twitter.com/medium_api&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;  LinkedIn: &lt;strong&gt;&lt;a href="https://www.linkedin.com/company/medium-api"&gt;www.linkedin.com/company/medium-api&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;🔗 Related Articles -&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://mediumapi.com/documentation.html"&gt;Unofficial Medium API - Documentation&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://mediumapi.com/get-posts-using-nodejs.html"&gt;Unofficial Medium API: Get Posts Using Node.js&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://mediumapi.com/leverage-medium-for-crypto-trading.html"&gt;How To Leverage Medium for Crypto-trading&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://mediumapi.com/find-top-readers-of-publication.html"&gt;How to Find the Top Readers of a Medium Publication Using Python&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>medium</category>
      <category>api</category>
      <category>python</category>
    </item>
    <item>
      <title>[Unofficial] Medium API Documentation</title>
      <dc:creator>Nishu Jain</dc:creator>
      <pubDate>Sat, 09 Sep 2023 07:08:16 +0000</pubDate>
      <link>https://dev.to/nishu-jain/unofficial-medium-api-documentation-2ibg</link>
      <guid>https://dev.to/nishu-jain/unofficial-medium-api-documentation-2ibg</guid>
      <description>&lt;p&gt;Hey guys!&lt;/p&gt;

&lt;p&gt;This is the "Getting Started" Guide for the &lt;strong&gt;Medium API (Unofficial Version)&lt;/strong&gt;, listed on the &lt;a href="http://hub.mediumapi.com"&gt;RapidAPI Platform&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This REST API &lt;strong&gt;&lt;em&gt;helps you to quickly extract data from&lt;/em&gt; &lt;a href="https://medium.com"&gt;medium.com&lt;/a&gt;&lt;/strong&gt;, without any hassle.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/oc8TKG9EQfE"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Using our Unofficial Medium API, you can get -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;User&lt;/strong&gt;'s - Info, Articles, Top Articles, Followers, Following, Interests, Lists, Publications&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Article&lt;/strong&gt;'s - Info, Responses, Content, Markdown, HTML, Fans, Related Articles&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Publication&lt;/strong&gt;'s - Info, Articles, Newsletter&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Top Feeds, Latest Posts, Top Writers, Tag Info, Related Tags&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;List's&lt;/strong&gt; - Info, Articles, Responses&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Search&lt;/strong&gt; - Articles, Publications, Users, Lists, Tags&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;💡 Checkout our &lt;strong&gt;&lt;a href="https://docs.mediumapi.com"&gt;swagger documentation&lt;/a&gt;&lt;/strong&gt; for the details on each endpoint!&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;Before getting started, you must first &lt;strong&gt;&lt;a href="http://hub.mediumapi.com"&gt;get your API Key&lt;/a&gt;&lt;/strong&gt; to authenticate your calls. You'll need to &lt;strong&gt;pass it in the headers&lt;/strong&gt;, along with the requests, to use the API smoothly.&lt;/p&gt;

&lt;p&gt;Header -&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;x-rapidapi-key: [RAPIDAPI_KEY]&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Wondering how to subscribe to our API and get API Key? Watch the following video -&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/-MM1C6mb-mc"&gt;
&lt;/iframe&gt;
&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;API's Base URL:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://medium2.p.rapidapi.com"&gt;https://medium2.p.rapidapi.com&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;&lt;strong&gt;Endpoints:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;User 👥  :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;· GET User ID&lt;br&gt;
· GET User Info&lt;br&gt;
· GET User's Articles&lt;br&gt;
· GET User's Top Articles&lt;br&gt;
· GET User's Following&lt;br&gt;
· GET User's Followers&lt;br&gt;
· GET User's Interests&lt;br&gt;
· GET User's Lists&lt;br&gt;
· GET User's Publications&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Article ✏️ :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;· GET Article Info&lt;br&gt;
· GET Article's Content&lt;br&gt;
· GET Article's Markdown&lt;br&gt;
· GET Article's HTML&lt;br&gt;
· GET Article's Responses&lt;br&gt;
· GET Article's Fans&lt;br&gt;
· GET Related Articles&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Publication 📰  :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;· GET Publication ID&lt;br&gt;
· GET Publication Info&lt;br&gt;
· GET Publication Articles&lt;br&gt;
· GET Publication's Newsletter&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Misc 🌀  :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;· GET Latest Posts&lt;br&gt;
· GET Top Writers&lt;br&gt;
· GET Top Feeds&lt;br&gt;
· GET Tag Info&lt;br&gt;
· GET Related Tags&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;List 📜  :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;· GET List Info&lt;br&gt;
· GET List Articles&lt;br&gt;
· GET List Responses&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Search 🔎  :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;· Search Articles&lt;br&gt;
· Search Publications&lt;br&gt;
· Search User&lt;br&gt;
· Search Lists&lt;br&gt;
· Search Tags&lt;/p&gt;


&lt;h2&gt;
  
  
  GET User ID
&lt;/h2&gt;

&lt;p&gt;Every Medium user has one unique hash ID associated with his/her account. Usually, we only deal with usernames that we choose while registering on Medium Platform. You can find your username in the sub-domain of your profile page URL or at the end of it. Like -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  https:// &lt;strong&gt;username&lt;/strong&gt; .medium.com&lt;/li&gt;
&lt;li&gt;  https:// medium.com/@ &lt;strong&gt;username&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once you get your username, like mine is &lt;em&gt;&lt;strong&gt;nishu-jain,&lt;/strong&gt;&lt;/em&gt; you can use the following endpoint to get your &lt;code&gt;user_id&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /user/id_for/{username}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;

&lt;p&gt;Once you have the &lt;code&gt;user_id&lt;/code&gt;, you can invoke other user-related endpoints using it.&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET User Info
&lt;/h2&gt;

&lt;p&gt;Once you've got the &lt;code&gt;user_id&lt;/code&gt;, you can use it to get user-related information such as - &lt;em&gt;Full name, Username, Bio, Followers &amp;amp; Following count, Twitter username, Profile-image, top writer status, etc ...&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /user/{user_id}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you don't have the &lt;code&gt;user_id&lt;/code&gt;, see the &lt;em&gt;&lt;strong&gt;GET User ID&lt;/strong&gt;&lt;/em&gt; endpoint above.&lt;/p&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET User's Articles
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of articles (&lt;code&gt;article_ids&lt;/code&gt;) written by the Medium user.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;💡 You can then use the &lt;strong&gt;GET Article Info&lt;/strong&gt; endpoint to retrieve information, such as &lt;em&gt;title, subtitle, author, claps, voters, tags, topics, publication, etc...,&lt;/em&gt; related to your desired article.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /user/{user_id}/articles&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET User's Top Articles
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of &lt;code&gt;aritcle_ids&lt;/code&gt; of the top 10 posts/articles on the user's profile (usually in chronological order - most recent posts), for the given user (&lt;code&gt;user_id&lt;/code&gt;).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;💡 You can then use the &lt;strong&gt;GET Article Info&lt;/strong&gt; endpoint to retrieve information on individual articles.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /user/{user_id}/top_aritcles&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET User's Following
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of &lt;code&gt;user_ids&lt;/code&gt; of the given user's followings.&lt;/p&gt;

&lt;p&gt;You can fetch this list and use the &lt;strong&gt;GET User Info&lt;/strong&gt; endpoint to retrieve information related to the individual users.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Currently, this list does not contain the &lt;code&gt;publication_ids&lt;/code&gt; of the publications that the user is following.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Query Parameters &lt;em&gt;(Optional)&lt;/em&gt;: -&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;&lt;code&gt;count&lt;/code&gt;&lt;/strong&gt;: To limit the number of results. (&lt;code&gt;count&lt;/code&gt; &amp;lt;= 1500)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /user/{user_id}/following&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage —&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET User's Followers
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of &lt;code&gt;user_ids&lt;/code&gt; of the followers for the given user.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The length of followers' list might be different from what you get in the &lt;strong&gt;Get User Info&lt;/strong&gt; Endpoint. It's because, this list doesn't include Medium Users who left the platform.&lt;/p&gt;

&lt;p&gt;If you really need the exact followers' count, use this endpoint to get the followers' list and take its length as the exact followers' count&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You can use the &lt;strong&gt;GET User Info&lt;/strong&gt; endpoint to retrieve information related to the individual users.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Query Parameters &lt;em&gt;(Optional)&lt;/em&gt;: -&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;&lt;code&gt;count&lt;/code&gt;&lt;/strong&gt;: To limit the number of results. (&lt;code&gt;count&lt;/code&gt; &amp;lt;= 1500)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /user/{user_id}/followers&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET User's Interests
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of &lt;strong&gt;&lt;code&gt;tags&lt;/code&gt;&lt;/strong&gt; that the given user follows on Medium.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;All tags are lowercased hyphen-separated strings.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /user/{user_id}/interests&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage —&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET User's Lists
&lt;/h2&gt;

&lt;p&gt;This endpoint returns an array of &lt;strong&gt;&lt;code&gt;list_ids&lt;/code&gt;&lt;/strong&gt; created by the user.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can use the &lt;strong&gt;GET List Info&lt;/strong&gt; endpoint to retrieve information on individual Medium Lists.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /user/{user_id}/lists&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET User's Publications
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of &lt;strong&gt;&lt;code&gt;publication_ids&lt;/code&gt;&lt;/strong&gt; where the user is the editor and/or creator.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can use the &lt;strong&gt;GET Publication Info&lt;/strong&gt; endpoint to retrieve information on individual publications.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /user/{user_id}/publications&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET Article Info
&lt;/h2&gt;

&lt;p&gt;This endpoint returns the article-related information such as &lt;em&gt;Title, Subtitle, Author, Tags, Topics&lt;/em&gt; (as assigned by Medium), &lt;em&gt;Publication, Published date and time, Clap Count, Voter Count, Word Count, Responses Count, Reading Time, Language, etc...&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For using this endpoint, you'll need an article's unique hash ID, called &lt;code&gt;article_id&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You can find the &lt;code&gt;article_id&lt;/code&gt; at the end of any Medium Story's URL. Like -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  https:// medium.com /towards-artificial-intelligence/why-its-super-hard-to-be-an-ml-researcher-or-developer- &lt;strong&gt;67fa62fc1971&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;  https:// nishu-jain.medium.com /the-neutrality-of-death- &lt;strong&gt;20abb01e5c85&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /article/{article_id}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET Article's Content
&lt;/h2&gt;

&lt;p&gt;This endpoint returns the textual content of an article/story, for the corresponding &lt;code&gt;article_id&lt;/code&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can get the &lt;code&gt;article_id&lt;/code&gt; from the URL, as shown above in the &lt;strong&gt;GET Article Info&lt;/strong&gt; endpoint.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /article/{article_id}/content&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET Article's Markdown
&lt;/h2&gt;

&lt;p&gt;This endpoint returns the article content in the markdown format (&lt;em&gt;.md&lt;/em&gt;), for the corresponding &lt;code&gt;article_id&lt;/code&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can get the &lt;code&gt;article_id&lt;/code&gt; from the URL, as shown above in the &lt;strong&gt;GET Article Info&lt;/strong&gt; endpoint.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /article/{article_id}/markdown&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET Article's HTML
&lt;/h2&gt;

&lt;p&gt;This endpoint returns the article in plain HTML format (&lt;em&gt;.html&lt;/em&gt;), for the corresponding &lt;code&gt;article_id&lt;/code&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can get the &lt;em&gt;&lt;code&gt;article_id&lt;/code&gt;&lt;/em&gt; from the URL, as shown above in the &lt;strong&gt;GET Article Info&lt;/strong&gt; endpoint.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Query Parameter (&lt;em&gt;Optional&lt;/em&gt;) : -&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Set &lt;strong&gt;&lt;code&gt;fullpage&lt;/code&gt;&lt;/strong&gt; parameter to &lt;strong&gt;&lt;code&gt;true&lt;/code&gt;&lt;/strong&gt; to get the full HTML page with head, body, title and meta tags. If &lt;code&gt;fullpage&lt;/code&gt; is set to &lt;code&gt;false&lt;/code&gt; or not provided, the endpoint will only return the HTML inside body tag.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /article/{article_id}/html&lt;/p&gt;

&lt;p&gt;GET /article/{article_id}/html?fullpage=true&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET Article's Responses
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of responses (&lt;code&gt;response_ids&lt;/code&gt;, same as &lt;code&gt;article_ids&lt;/code&gt;) for a given article (&lt;code&gt;article_id&lt;/code&gt;)&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; You can treat &lt;code&gt;response_id&lt;/code&gt; pretty much same as &lt;code&gt;aritcle_id&lt;/code&gt;. To see the content of the response, use the &lt;strong&gt;Get Article's Content&lt;/strong&gt; endpoint.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /article/{article_id}/responses&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET Article's Fans
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of &lt;code&gt;user_ids&lt;/code&gt; of the people who clapped on the article.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can use the &lt;strong&gt;GET User Info&lt;/strong&gt; endpoint to retrieve information on individual users.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /article/{article_id}/fans&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET Related Articles
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of &lt;code&gt;article_ids&lt;/code&gt; of the related posts. &lt;em&gt;(Length = 5)&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If the article is self-published, related posts will belong to the same author. Else, related posts will belong to the publication in which the article is published.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /article/{article_id}/related&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET Publication ID
&lt;/h2&gt;

&lt;p&gt;Every Medium Publication has one unique hash ID associated with it. Usually, we only deal with &lt;strong&gt;&lt;code&gt;publication_slug&lt;/code&gt;&lt;/strong&gt; that is generated when we choose our Publication's Name. You can find your &lt;code&gt;publication_slug&lt;/code&gt; in the homepage URL of your publication. Like -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  https:// medium.com / &lt;strong&gt;publication_slug&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once you get your &lt;code&gt;publication_slug&lt;/code&gt;, you can use the following endpoint to get your &lt;strong&gt;&lt;code&gt;publication_id&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /publication/id_for/{publication_slug}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET Publication Info
&lt;/h2&gt;

&lt;p&gt;This endpoint returns publication-related information such as &lt;em&gt;Publication name, Tagline, Description, Tags, Followers Count, Creator, Editors, Twitter username, Instagram username, Facebook Page name, Logo, Domain, etc ...&lt;/em&gt; for the corresponding &lt;code&gt;publication_id&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;A &lt;code&gt;publication_id&lt;/code&gt; is the unique hash ID associated with every Medium Publication. For example, &lt;code&gt;publication_id&lt;/code&gt; of &lt;a href="http://towardsdatascience.com/"&gt;TowardsDataScience&lt;/a&gt; is &lt;em&gt;"7f60cf5620c9"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you don't know the &lt;code&gt;publication_id&lt;/code&gt;, you can get it from any article published under it. Use the endpoint &lt;strong&gt;GET Article Info,&lt;/strong&gt; to retrieve the &lt;code&gt;publication_id&lt;/code&gt;. Or, if you know the &lt;code&gt;publication_slug&lt;/code&gt;, use the endpoint &lt;strong&gt;GET Publication ID&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /publication/{publication_id}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET Publication Articles
&lt;/h2&gt;

&lt;p&gt;This endpoint returns the list of &lt;code&gt;articles_ids&lt;/code&gt; of the latest 25 articles, posted recently in that publication.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can use the &lt;strong&gt;GET Article Info&lt;/strong&gt; endpoint to retrieve information on individual articles.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Query Parameter &lt;em&gt;(Optional): -&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;&lt;code&gt;from&lt;/code&gt;&lt;/strong&gt;: Use the &lt;strong&gt;&lt;code&gt;from&lt;/code&gt;&lt;/strong&gt; query parameter to get the articles before that date and time.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /publication/{publication_id}/articles&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET Publication's Newsletter
&lt;/h2&gt;

&lt;p&gt;This endpoint returns information related to the associated newsletter for the given publication. This includes their &lt;em&gt;name, description, creator's id&lt;/em&gt;, &lt;em&gt;subscriber's count, unique id, image url, etc...&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /publication/{publication_id}/newsletter&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET Latest Posts
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of the latest posts (&lt;code&gt;article_ids&lt;/code&gt;) under a topic/niche (as classified and &lt;strong&gt;distributed&lt;/strong&gt; by the Medium platform). Examples of a topic/niche can be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  blockchain&lt;/li&gt;
&lt;li&gt;  artificial-intelligence&lt;/li&gt;
&lt;li&gt;  relationships&lt;/li&gt;
&lt;li&gt;  mental-health, etc ...&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are known as &lt;code&gt;topic_slugs&lt;/code&gt;. (Not same as &lt;code&gt;tags&lt;/code&gt;)&lt;/p&gt;

&lt;p&gt;At any given moment, this endpoint will return a list of 25 articles (&lt;code&gt;article_ids&lt;/code&gt;). You can then &lt;strong&gt;GET Article Info&lt;/strong&gt; endpoint to retrieve information related to each article.&lt;/p&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /latestposts/{topic_slug}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET Top Writers
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of top writers (&lt;code&gt;user_ids&lt;/code&gt;) within a particular topic/niche (using &lt;code&gt;topic_slug&lt;/code&gt;). Examples of &lt;code&gt;topic_slug&lt;/code&gt; are -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  blockchain&lt;/li&gt;
&lt;li&gt;  relationships&lt;/li&gt;
&lt;li&gt;  artificial-intelligence, etc ...&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can use an optional query parameter &lt;code&gt;count&lt;/code&gt; to specify the number of top writers you want to retrieve.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Maximum number of top writers within a topic will be 250.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;After fetching the &lt;code&gt;user_ids&lt;/code&gt;, you can use the &lt;strong&gt;GET User Info&lt;/strong&gt; endpoint to extract information related to the individual users.&lt;/p&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /top_writers/{topic_slug}&lt;/p&gt;

&lt;p&gt;GET /top_writers/{topic_slug}?count={count}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage —&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET Top Feeds
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of &lt;code&gt;article_ids&lt;/code&gt; (default count = 25) for the given &lt;code&gt;tag&lt;/code&gt; and &lt;code&gt;mode&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Example of a &lt;code&gt;tag&lt;/code&gt; will &lt;em&gt;‘blockchain', ‘defi', ‘artificial-intelligence', etc...&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Mode:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;code&gt;hot&lt;/code&gt; : For getting trending articles&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;new&lt;/code&gt; : For getting the latest articles&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;top_year&lt;/code&gt; : For getting the best articles of the year&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;top_month&lt;/code&gt; : For getting the best articles of the month&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;top_week&lt;/code&gt; : For getting the best articles of the week&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;top_all_time&lt;/code&gt;: For getting the best articles of all time&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; You can use the &lt;strong&gt;GET Article Info&lt;/strong&gt; endpoint to retrieve information related to each article.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Query Parameters (&lt;em&gt;Optional&lt;/em&gt;): -&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  To get the subsequent top feeds, it can also take a query string parameter called &lt;strong&gt;&lt;code&gt;after&lt;/code&gt;&lt;/strong&gt;, where, &lt;code&gt;after&lt;/code&gt; &amp;lt; 250.&lt;/li&gt;
&lt;li&gt;  To limit the number of top feeds, use another query string parameter called &lt;strong&gt;&lt;code&gt;count&lt;/code&gt;&lt;/strong&gt;, where &lt;code&gt;count&lt;/code&gt; &amp;lt; 25.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /topfeeds/{tag}/{mode}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  Get Tag Info
&lt;/h2&gt;

&lt;p&gt;This endpoint returns tag-related information for the given &lt;code&gt;tag&lt;/code&gt;. This includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Tag Name&lt;/li&gt;
&lt;li&gt;  Followers Count&lt;/li&gt;
&lt;li&gt;  Number of stories&lt;/li&gt;
&lt;li&gt;  Number of writers&lt;/li&gt;
&lt;li&gt;  Number of latest stories&lt;/li&gt;
&lt;li&gt;  Number of latest writers&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;strong&gt;&lt;code&gt;tags&lt;/code&gt;&lt;/strong&gt; are lowercased, hyphen-separated strings representing a category or niche on Medium Platform&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /tag/{tag}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  Get Related Tags
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of &lt;strong&gt;&lt;code&gt;related_tags&lt;/code&gt;&lt;/strong&gt; for a given &lt;code&gt;tag&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt; For the tag &lt;code&gt;blockchain&lt;/code&gt;, it will return &lt;em&gt;"cryptocurrency", "bitcoin", "ethereum", "crypto", "ico", "technology", "defi", "nft", "fintech"&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /related_tags/{tag}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET List Info
&lt;/h2&gt;

&lt;p&gt;This endpoint returns the Medium's &lt;em&gt;&lt;strong&gt;list-related&lt;/strong&gt;&lt;/em&gt; information - such as &lt;em&gt;id, name, author, description, thumbnail image url, creation datetime, last modified datetime, number of articles in the list, claps, voters, and comments -&lt;/em&gt; for the given &lt;code&gt;list_id&lt;/code&gt;&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;list_id&lt;/code&gt; is the unique hash ID associated with every Medium List. You can see it at the end of the URL as follows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  https:// nishu-jain.medium.com /list/medium-api-&lt;strong&gt;38f9e0f9bea6&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here &lt;strong&gt;&lt;code&gt;38f9e0f9bea6&lt;/code&gt;&lt;/strong&gt; is the &lt;code&gt;list_id&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /list/{list_id}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET List Articles
&lt;/h2&gt;

&lt;p&gt;This endpoint returns an array of &lt;code&gt;article_ids&lt;/code&gt; present in the given Medium List.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can use the &lt;strong&gt;GET Article Info&lt;/strong&gt; endpoint to retrieve information on individual articles.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /list/{list_id}/articles&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  GET List Responses
&lt;/h2&gt;

&lt;p&gt;This endpoint returns an array of &lt;code&gt;response_ids&lt;/code&gt; for the given Medium List.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; You can treat &lt;code&gt;response_id&lt;/code&gt; pretty much same as &lt;code&gt;aritcle_id&lt;/code&gt;. To see the content of the response, use the &lt;strong&gt;Get Article's Content&lt;/strong&gt; endpoint.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /list/{list_id}/responses&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  Search Articles
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of &lt;strong&gt;&lt;code&gt;article_ids&lt;/code&gt;&lt;/strong&gt; that match the search query. The maximum length of this list will be 1000. If no articles are found that match the search query, then an empty list will be returned.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Query Parameter &lt;em&gt;(Required)&lt;/em&gt;: -&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;&lt;code&gt;query&lt;/code&gt;&lt;/strong&gt;: A string parameter that specifies the search query for which the articles need to be retrieved.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;You can use the &lt;strong&gt;GET Article Info&lt;/strong&gt; endpoint to retrieve information on individual articles.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /search/articles?query={query}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  Search Publications
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of &lt;strong&gt;&lt;code&gt;publication_ids&lt;/code&gt;&lt;/strong&gt; that match the search query. The maximum length of this list will be 1000. If no publications are found that match the search query, then an empty list will be returned.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Query Parameter &lt;em&gt;(Required)&lt;/em&gt;: -&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;&lt;code&gt;query&lt;/code&gt;&lt;/strong&gt;: A string parameter that specifies the search query for which the publications need to be retrieved.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;You can use the &lt;strong&gt;GET Publication Info&lt;/strong&gt; endpoint to retrieve information on individual publications.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /search/publications?query={query}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  Search Users
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of &lt;strong&gt;&lt;code&gt;user_ids&lt;/code&gt;&lt;/strong&gt; that match the search query. The maximum length of this list will be 1000. If no users are found that match the search query, then an empty list will be returned.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Query Parameter &lt;em&gt;(Required): -&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;&lt;code&gt;query&lt;/code&gt;&lt;/strong&gt;: A string parameter that specifies the search query for which the users need to be retrieved.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;You can use the &lt;strong&gt;GET User Info&lt;/strong&gt; endpoint to retrieve information on individual users.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /search/users?query={query}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  Search Lists
&lt;/h2&gt;

&lt;p&gt;This endpoint returns an array of &lt;strong&gt;&lt;code&gt;list_ids&lt;/code&gt;&lt;/strong&gt; that match the search query. The maximum length of this array will be 1000. If no Medium Lists are found that match the search query, then an empty array will be returned.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Query Parameter &lt;em&gt;(Required): -&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;&lt;code&gt;query&lt;/code&gt;&lt;/strong&gt;: A string parameter that specifies the search query for which the Medium Lists need to be retrieved.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;You can use the &lt;strong&gt;GET List Info&lt;/strong&gt; endpoint to retrieve information on individual Medium Lists.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /search/lists?query={query}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  Search Tags
&lt;/h2&gt;

&lt;p&gt;This endpoint returns a list of &lt;strong&gt;&lt;code&gt;tags&lt;/code&gt;&lt;/strong&gt; that match the search query. The maximum length of this list will be 1000. If no tags are found that match the search query, then an empty list will be returned.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Query Parameter &lt;em&gt;(Required)&lt;/em&gt;: -&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;&lt;code&gt;query&lt;/code&gt;&lt;/strong&gt;: A string parameter that specifies the search query for which the tags need to be retrieved.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Endpoint -&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GET /search/tags?query={query}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Usage -&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;





&lt;h2&gt;
  
  
  Final thoughts -
&lt;/h2&gt;

&lt;p&gt;As of now, this API consists of 33 endpoints, all of which use the GET method. I'll try to add more endpoints in the future and improve its efficiency to provide you with the best Unofficial Medium API possible.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  You can subscribe to this API here: &lt;strong&gt;&lt;a href="http://hub.mediumapi.com"&gt;Medium API - RapidAPI&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;  Read its Swagger documentation here: &lt;strong&gt;&lt;a href="https://docs.mediumapi.com"&gt;API Documentation&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;  And if you're a python programmer, do &lt;strong&gt;&lt;code&gt;pip install medium-api&lt;/code&gt;&lt;/strong&gt;. Visit the following link to know more about Unofficial Medium API's Python SDK.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://github.com/weeping-angel/medium-api"&gt;GitHub - weeping-angel/medium-api&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you've any thoughts on it, feel free to share them. I'll appreciate your feedback and try to improve it further.&lt;/p&gt;

&lt;p&gt;My email ID: &lt;em&gt;&lt;strong&gt;&lt;a href="mailto:nishu@mediumapi.com"&gt;nishu@mediumapi.com&lt;/a&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Thanks for reading and have a wonderful day!&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;PS:&lt;/strong&gt; We post tutorials, videos, code snippets, and insights related to Medium and Unofficial Medium API. So be sure to follow us on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Twitter: &lt;strong&gt;&lt;a href="https://twitter.com/medium_api"&gt;twitter.com/medium_api&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;  LinkedIn: &lt;strong&gt;&lt;a href="https://www.linkedin.com/company/medium-api"&gt;www.linkedin.com/company/medium-api&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>api</category>
      <category>programming</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
