How to Count the Number of Full Stories / Articles You Have Published on Medium.com

Jim Dee
Jim Dee
Jul 24 · 6 min read

This is an admittedly awkward, awful way to do it, but it works for those who publish nearly exclusively within the Medium Partner program. (Good god, is there any easy button for this???!!)

A few times over the course of my membership with Medium, I’ve wanted to know how many articles I’ve published to date. This would be a handy statistic, for various reasons — just to know how many articles you’ve published, right? (For example, in a bio, perhaps you’d want to write “I’ve published more than 500 articles on Medium.”)

Oddly, it’s not an easy thing to calculate, though. If you go into Stories (in the Medium menu that pops down under your profile pic — in the desktop version, anyway), it shows sort of a gross (as opposed to net) count:

Image for post
Image for post
Screen grab of Medium publishing stats.

The problem with these stats is that it counts comments as well as articles. So, looking at that graphic, I know I’ve published a maximum of 771 (articles + comments), plus another 25 articles in draft form still. Ergo, my grand total is 796 things.

But, I still don’t know how many of those 796 things were comments and how many were actual articles. After looking around a bit more here and there, I simply couldn’t seem to find the actual article count anywhere in the Medium interface. So I had to think up some other way to go about this.

Trial #1: File Download

It occurred to me that one could probably accomplish this calculation by going to Settings → Account, and then clicking the “Download your information” button. If you do that, you’ll get an email with a download link for a ZIP file containing all of your writing. Be sure to grab that ZIP when it’s available, as they delete these ZIPs after 24 hours.

This isn’t a bad method because it’s actually good business practice to pull a download every so often, just for safe keeping. Ask any web developer (like me) or IT person; backups are your friend!

Anyway, once you download and expand that ZIP file, you’ll see the same statistic in the “posts” folder they send you. So, here’s a screen-grab of mine, with the Windows file explorer showing the same number (796) in the bottom left.

Image for post
Image for post
A look at the count in the Windows file explorer. Same number.

Sadly, looking at the file names, there doesn’t seem to be any way of separating posts from comments. So, as far as this method is concerned, I think we’re out of luck.

But looking for differences did remind me of a second way. So, let’s go back to the Stories listing page.

Method #2: The Stories Listing

Again, go back to where we started — the Your Stories page on Medium.

Here I happened to notice something that, while not perfect, does seem to help. You see, the articles that were published under the Medium Partner Program have a star next to them.

That’s (finally) a difference we can work with. Have a look:

Image for post
Image for post
The starred items are in the Medium partner program. Ergo, the unstarred ones are either comments or non-partner-program articles. This is helpful.

For me, I happened to have put (*almost*) every article under the Medium Partner program. And, for this purpose, that’s very helpful because those all have stars next to them — which provides us with something to work with.

So, right away, I can tell you that, if you’re not using the Medium Partner program, then the method below will not help you, and you may as well just manually count on the screen. Hopefully you don’t have as many articles as I do, or it might take you quite some time — especially if you’re an active commenter here.

How To Do The Count

First, we need the whole page to show — all of your articles. So, step one is to hold the Page Down button on your keyboard down until you’ve loaded all of your stories. For me, that took about two full minutes (as I have, as we know, 796 things to load).

My first idea was to simply search for the star using the browser’s built-in Control+F search feature. After all, if I search for “Published,” I get a reasonably close number:

Image for post
Image for post
A screen grab showing Control+F search, in Chrome.

It shows 778 for me — more than my 771 — because I have some articles with the word “Published” in the title.

As for searching for the star? Well, unfortunately, that doesn’t work because that little star is an SVG graphic.

Image for post
Image for post
The star is an SVG.

If I search for the SVG tag using the Chrome Inspector, I get a higher number (1275), as there are additional SVGs on the page:

Image for post
Image for post

(BTW, I thought I’d maybe copy/paste the page into Excel, and maybe that SVG would show up there, which I could work with. And… no. Don’t try this. It was a total mess. It might be doable this way, still, but I decided not to go down this road.)

My next idea was to save the page (the same page that showed ALL of my published items). Note that, for this type of page, clicking View Source isn’t a viable method to load the entirety the page contents. So, I just did a Save As of the already fully-loaded page,and then opened the page in a proper HTML editor.

The first thing I did was to strip out everything above the first story in the HTML (by searching for some text in my first headline to find the spot), and then I stripped out everything after the last entry (same method). That gave me a chunk of somewhat less bulky HTML to look at.

From there, I “simply” identified the various SVG elements, as there were only a few different kinds. The first kind were the little down arrows that show beneath each entry:

Image for post
Image for post
Down-arrow SVGs, which used code like so:
Image for post
Image for post
Down-arrow SVG

So, all I did was to isolate the SVG code for that down arrow, and do a simple search & replace (replacing those instances with nothing).

All of the other SVGs, as far as I could tell, were the stars shown above. So, I simply added a ###STAR### string before each SVG tag by doing a search and replace, searching for <svg and replacing it with ###STAR###<svg. Then I saved the HTML as a temp file, loaded it, and searched out ###STAR.

And after all of that, I found my answer: 498.

Image for post
Image for post
Not elegant, but it at least gives me the answer I wanted.

Again, this method will only count the number of articles that are also in the Medium partner program. So, for me, that is 498. I’m pretty sure that I have just ONE article that I keep as public (not in the partner program), so that makes my number 499. And, with this oddball piece, I can officially say that I’ve written 500 articles here.

If there’s a quicker way (which of course there is, and I’ve probably wasted a chunk of my morning on this), I’d be happy to know about it. But, it also at least shows that there’s usually a tech solution to things like this, if you’re willing and tenacious. :-)

✍🏻

Web Designer / Web Developer Magazine

WDWD Magazine features articles on web site design /…

Sign up for Array Observations

By Web Designer / Web Developer Magazine

Sign up for alerts when new web design / web development (and related) articles appear on this site. Take a look

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox
Medium sent you an email at to complete your subscription.

Jim Dee

Written by

Jim Dee

Web guy at ArrayWebDevelopment.com; author of books & blogs. See: JPDbooks.com.

Web Designer / Web Developer Magazine

WDWD Magazine features articles on web site design / development, internet marketing, social media, SEO, and topics like marketing, communications, business development, etc. Editor: Jim Dee of Array Web Development — jim@arraywebdevelopment.com.

Jim Dee

Written by

Jim Dee

Web guy at ArrayWebDevelopment.com; author of books & blogs. See: JPDbooks.com.

Web Designer / Web Developer Magazine

WDWD Magazine features articles on web site design / development, internet marketing, social media, SEO, and topics like marketing, communications, business development, etc. Editor: Jim Dee of Array Web Development — jim@arraywebdevelopment.com.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store