Medium Search Export

Extract every Posts, People, Publications & Tags out of a Search on Medium

Share:  
Table of Contents

Extract every Post, People, Publications and Tags out of a Medium Search.

Medium is an underestimated source of traffic. Readers are avid of new quality content and writers are experts at very niche topics. It's often a place where ideas get tested before being formalized in a book.

The point of this API is for you to never miss an article about a topic you're fond of. Once you have that content you'll be able to take action with our other APIs: Clap it, comment it or directly reach its author.

How to extract the results of a Medium search in seconds:

0. What you'll need

  • "Medium UID" && "SID session cookie": Those are the 2 cookies that Phantombuster'll need to connect to your Medium account. More about that in Step 4.
  • "spreadsheetUrl": This is the URL of the spreadsheet containing every Medium posts you want to scrape. We recommend hosting it on Google Spreadsheet and making the URL public so Phantombuster puisse y accéder.

1. Create an account on Phantombuster.com 💻

If you haven't already, create a FREE account on Phantombuster. Our service will browse the web for you. It’s a website automator which runs in the cloud.

2. Use this API on your account.👌

Now that you're connected to Phantombuster, Click on the following button (it will open a new tab).

3. Click on Configure me!

You'll now see the 3 configuration dots blinking. Click on them.

4. Medium authentication 🔑

Because the script will manipulate Medium for you, it needs to be logged in to your Medium account. For that you just need to copy paste your 2 session cookies in the script argument:

  • Using Chrome, go to your Medium homepage and open the inspector
    → Right click anywhere on the page and select “Inspect”
    CMD+OPT+i on macOS
    or
    F12 or CTRL+MAJ+i on Windows

  • Locate the “Application” tab

  • Select “Cookies” > “http://www.medium.com” on the left menu.

  • Locate the “uid” & "sid" cookies.

  • Copy their “Value” (Double click on it then Ctrl+C) and paste them into your script Argument)

// How to access your cookies with Edge, Firefox and Safari//

5. Setting up a nice spreadsheet

Put in column A a list of Medium posts' URLs.

6. Click on Launch & Enjoy!

It’s done! All that is left to do is to click on "launch" to try your script!

More bots like this one will be added to Phantombuster,

stay tuned & check our API store!💗

7. (Optional) ️️Repetition setup

The point of this API is to be launch on a regular basis. So once you've set it up, you can chedule repetitive launches.

To do so, simply hit the “Settings” button to define when your API is launched:

Then, select a frequency:

Don't forget to click 💾 Save at the bottom of the page.

Share this API

Your friends & colleagues need to know about this!