Bulk Downloading Backlink Data from Google Search Console

I wanted a quick way to get all backlink data from Google Search Console for a domain so I built this Python script.

Setup isn’t too complicated. You’ll need to run this on your local machine or somewhere you’re logged into Search Console.

First, add your GSC cookie to the gsc_cookie.txt file

Open GSC->External Links->More, Open DevTools->Network and refresh the page. look for the network request labeled ‘drilldown?resource…’ and locate ‘Cookie’ under the ‘Headers’ tab, Copy and paste the contents into gsc_cookie.txt

Second, you’ll need the URL for the ‘External Links’ CSV file to start the bulk export. The script will prompt you for this input

Enter the Download URL from GSC->External Links->More->Export->Download CSV (Copy Link From Downloads Page):

data will be saved in example.com_linking_data.csv and will include the following columns: ‘Target Page’, ‘Incoming links’, ‘Linking sites’, ‘Linking Domain’, ‘Linking Page’, ‘Target URL’

python-google-search-console-backlink-downloader-2.0 [zip, python3]

The script is setup to wait 2 seconds between requests to avoid hammering Search Console. I’ve had luck reducing this to 1 second for faster data download, but without wait time, your IP may be temporarily suspended (429 error).

Depending on how much data you have to download, this script could take all day.

Leave a Comment