Use the API Connector add-on for Google Sheets to pull Yext Analytics data directly into a spreadsheet. After it's set up, refresh the data anytime with a single click.
Set up the API Connector add-on
- Open Google Sheets to a blank sheet.
- Hover over Extensions, hover over Add-ons, then click Get add-ons.

- Search for API Connector and select the API Connector application by Mixed Analytics.

- Click Install and follow the prompts to install the application.
- Click Extensions, hover over API Connector, then click Open.
- In the right side panel, click Add New to begin configuring the API request.
Create an API key
- In your Yext account, go to the Developer Console.
- Click + New App.
- Enter a name for the app. Use something relevant to this connector, for example, "Google Sheets API App".
- Click Create App.
- Click the Permissions row, then click + Add Endpoint.
- Select Management API > Analytics, then select Read-Only. This permission allows the connector to read Analytics data from your Yext account but not make changes to it.

- Click Save.
- Copy the API key. You'll use it to configure the API request in Google Sheets.
Configure the API request
- In the API Connector add-on, set the API method to POST. This ensures analytics data is pulled from the Yext platform into Google Sheets.
- Under API URL path, enter the following URL, replacing
INSERT_API_KEYwith the API key from the previous step and the vaparam with the latest version:https://api.yextapis.com/v2/accounts/me/analytics/reports?api_key=INSERT_API_KEY&v=YYYYDDMM. - Leave the OAuth field set to None.
- Under Headers, use
Content-Typeas the New key, andapplication/jsonas the Value. - In Request Body insert the line of code based on the information you'd like to include. For example:
{
"metrics":
[
"[INSERT_METRICS]"
],
"dimensions": [
"[INSERT_DIMENSIONS]"
],
"filters": {
"[INSERT_FILTERS]"
}
}- Under Destination sheet, select Set current, then select cell A1. This pulls the data into the current sheet starting at that cell.
- Name the API Connector configuration so you can re-run the pull on a regular cadence.

Test the connector
- Once the connector has been saved, click Run to pull the data.
- Confirm that the connector runs without errors and that the expected data appears in the sheet.
After the connector is set up, click Run anytime to refresh the data in your spreadsheet.