Tool to export data from Google Search Console and stream them to Google BigQuery
- Select or create a Cloud Platform project.
- Enable the Google Cloud BigQuery API.
- Enable the Google Search Console API
- Set up authentication with a service account so you can access the APIs, and give the service account access rights to your BigQuery datasets.
- Add service account to your property in Google Search Console.
In order to authenticate your service account, you need to download the JSON key and store it along you the code. The file name should be jwt.keys.json
The tool is dependent on a Google API library that is distributed on npm
. In order to add it as a dependency, run the following command:
$ npm install googleapis
Then install all remaining dependencies:
$ npm install
The script takes a date as argument. If you don't provide a date, the script uses the hard coded date. For now.
$ node search-console.js 2020-04-01