SEO - Search Engine Optimization

How to Get More of Your Search Console Data from the API (Plus, Learn How to Use Python)

Last Updated: April 7, 2017

Posted by Dom-WoodmanWhat will you learn from this post? How to get lots of Search Console data quickly and easily How to run a Python script And who can do it? Hopefully, it should be accessible to any beginner. Why do we use the API to get Search Console data?At Distilled, we often want to use Google Search Console data, but getting it from the interface is incredibly clunky: You’re limited to the top 1,000 queries You have to apply each filter one at a time The interface is slow And if you want to do this regularly, you have to repeat this process often. We can get around that by using the API. Now we can get up to 5,000 queries at a time, we can apply multiple filters instantly, and we can run multiple queries quickly and easily. We do this with Python. Why is it useful to be able to run Python scripts?Being able to run scripts is incredibly valuable. There are lots of amazing scripts out there, both on Github and written by other people in the industry; using them, you can pull down data more quickly and faster than you otherwise could. We’ll be using Python for this tutorial because it’s a very popular language, particularly when working with large amounts of data. Crucially, you don’t need to be able to write in Python to use the scripts — you just need to understand some basics about how to use them. With APIs you can pull data from all sorts of exciting places, far more quickly than through the user interface. You can also often get more data. How do we run Python?If you’re on a Mac or a PC, I’d recommend downloading Anaconda. That will get you set up and running with Python 3, and save a lot of fiddling around. If you need administrator permission to install things on your work computer, then make sure you only install Anaconda for your user, not all users. If you try and install for all users, then you’ll need administrator permission. Then we’re going to need a good shell (a command line interface, the place where you can run the script from). Mac has Terminal installed by default; on Windows, I would recommend Cmder. Go ahead and install that. (The rest of this tutorial is shown in Windows, but the same basic steps should be fine for a Mac!) Double-check that Python has installed correctlyFirst open up the shell, type in python and hit enter. Exit python by typing in exit(). Download our example scriptFor this example we’ll be using the search console script, written by one of our consultants, Stephan. You can download it from…

Source: How to Get More of Your Search Console Data from the API (Plus, Learn How to Use Python)

About the author / 

S K Routray

S K Routray is a computer science graduate and Co founder at Gracioustech.com. He worked as a Online Marketing lead at many MNC Companies. He has passion for writing on SEO techniques, Social Media Marketing and digital marketing techniques. If he wasn’t an online marketer, he'd take his love for food and become a great chef cum hotel entrepreneur. Join NAS Writers team to write for NAS.

Email Subscriptions

Enter your email address:

Delivered by FeedBurner

Subscribe to our Newsletter

Best Email Marketing Tool!

Multiply Profits AND Automate Your Business

AWeber's email marketing software makes it easy.

Learn how they can do it for you, too.

Follow us on Twitter