Use Google Webmaster Tools as a data source
Resources
Data Source Type | Web Accessible Resource |
Authentication | Google OAuth Token Authentication |
Sample Query | https://www.googleapis.com/webmasters/v3/sites/<siteUrl> |
API Documentation | Google Webmaster Tools API documentation |
Step-by-Step
Creating a data source using Google Webmaster Tools
To create a data source using Google Webmaster Tools, you need to accomplish three tasks:
- Start the data source creation process.
- Authenticate with Google.
- Craft a query and enter it in Klipfolio.
Step 1: Start the data source creation process
In Klipfolio, create a web accessible resource:
- Go to the Library and select the Data Sources tab.
- Click Create a New Data Source and select Web Accessible Resource.

Step 2: Authenticate with Google
During the authentication process in Klipfolio, you are asked to authenticate with Google.In the Authentication section, set Type to Oauth and either
- set Use Existing to your existing Google Oauth token, or
- click Create to create a new Google Oauth token
To learn more about OAuth tokens, see Managing OAuth Tokens
Step 3: Craft the query and enter it in Klipfolio
Refer to the Google Webmaster Tools API documentation which provides a list of Google Webmaster Tools resource types and their supported methods.
To retrieve Sites resource data:
- In the URL field, type the query,
https://www.googleapis.com/webmasters/v3/sites/
- Set Data Format to JSON.
- Set Method to GET.
To retrieve Search Analytics resource data:
- In the URL field, type the query,
https://www.googleapis.com/webmasters/v3/sites/<siteUrl>/searchAnalytics/query
- Set Data Format to JSON.
- Set Method to POST.
- In the Query Parameters section, set the Parameters as follows:
- Name = Content-Type
- Value = application/json
- Type = Header
- Type the Body as required by the resource (see Google Webmaster Tools API documentation).
Example Queries
Note: <siteURL> must be URL-encoded. For example, the URL-encoded form of http://www.klipfolio.com/ is http%3A%2F%2Fwww.klipfolio.com/. |
To list all sites
https://www.googleapis.com/webmasters/v3/sites/
To list a specific site
https://www.googleapis.com/webmasters/v3/sites/<siteUrl>
To retrieve the sitemaps for a specific site
https://www.googleapis.com/webmasters/v3/sites/<siteUrl>/sitemaps
Learn More
Now that you have your data, here are some ideas on how to use it:
Did you have trouble with the material in this article?
These articles may help: