Skip to main content

Using the IndexCheckr API with Google Sheets

Learn how to connect IndexCheckr’s API to Google Sheets to track credits, projects, and page indexing in real time.

Updated over a week ago

Get your API token

Go to the API token page in IndexCheckr and copy your token. Keep this token secure, as it grants full access to your account.

Open Google Apps Script

  1. In your Google Sheet, click Extensions → Apps Script.

    Click on Extensions, then Apps Script

  2. Delete any existing code in the editor.

Add the script

Paste this example, replacing YOUR_TOKEN_HERE with your actual token:

function getProjects() {
var url = "https://indexcheckr.com/api/v1/projects";
var options = {
"method": "get",
"headers": { "X-AUTH-TOKEN": "YOUR_TOKEN_HERE" }
};

var response = UrlFetchApp.fetch(url, options);
var result = JSON.parse(response.getContentText());

// Prepare a table with project info
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
sheet.clear();
sheet.appendRow(["Project", "Number of Pages", "Indexed Pages", "Non Indexed Pages", "Domains Not Indexed"]);

result.data.forEach(function(project) {
sheet.appendRow([
project.name,
project.numberOfLinks,
project.numberOfIndexedPages,
project.numberOfNotIndexedPages,
project.numberOfDomainNotIndexedPages
]);
});
}

Run the script

  1. Save your script.

  2. Click Run.

  3. Authorize the script when prompted.

  4. Your sheet will now populate with your projects and their indexing stats.

Expand the integration

You can customize the script to:

  • Pull your remaining credits with the /account endpoint

  • List pages from a project with /projects/{id}/pages

  • Schedule automatic refreshes using Triggers in Apps Script

💡 For full details on available endpoints, parameters, and response formats, see the IndexCheckr API documentation.

Did this answer your question?