Tutorial : Google Search Console API🚀using Python🐍 with Google Colab
Channel: Mihir Naik
Date: 2023-03-14

After watching this video you will be able to access four basic features of Google Search Console API. 💯

This video goes into detail explaining GSC API Authentication and Authorization as well as different features such as Search Analytics, Sites, Sitemaps, URL Inspection etc.

✅GitHub Link: https://github.com/TheMihirNaik/google-search-console-api-using-python/blob/main/GSC_API_Access_using_Python_v1.ipynb
✅Google Search Console API Overview: https://developers.google.com/webmaster-tools/about
✅Google Search Console Reference: https://developers.google.com/webmaster-tools/v1/api_reference_index 
✅PyDoc reference for the Google Search Console API:https://googleapis.github.io/google-api-python-client/docs/dyn/searchconsole_v1.html
✅Developer's guide for the Google API Client Library for Python:https://github.com/googleapis/google-api-python-client
 
💡Timeline: 
00:00 Introduction
01:14 Why the need?
02:34 Who I learnt from?
03:40 Is this the right video for you?
04:25 I will attempt to explain:
05:30 4 GSC Data Visualization Examples
08:10 Where do I need your help?

💡Setup Google Cloud Project & Credentials(One-time  effort)
08:50 Brief Overview of Learning GSC API
09:40 Why I felt the GSC API documentation is confusing?
10:58 Create a New Google Colab Notebook
10:56 GSC API & Google Cloud Brief Explanation through Diagram
11:46 Signup in Google Cloud, Create a Project
13:16 Enable Google Search Console API in Google Project
13:40 Create Oauth Consent Screen & Add Scopes
16:46 Create Credentials (Client ID & Client Secrets)
 
💡Generating Authorization URL, Credentials and Building Service
17:38 Start writing Code for GSC API Access
22:50 Generate Authorization URL
26:57 Use Authorization Code to Generate Credentials
28:36 Build Service using Credentials
32:38 Service is successfully built
33:01 Recap of Building a Service (One time Code effort)

💡Use Google Search Console API features using the Service we built
33:38 Get a list of Sites in the GSC Account
36:46 How to access Sitemaps in GSC Property?
40:06 How to use URL Inspection using GSC API?
45:18 How to access GSC Search Analytics data using GSC API?
47:44 Simple Request Body
53:38 Coming up next - Accessing unlimited data

55:06 Closing Notes