Лови скрипт
function checkIfPageIsIndexed(url)
{
url = "
https://www.google.com/search?q=site:"+url;
var options = {
'muteHttpExceptions': true,
'followRedirects': false
};
var response = UrlFetchApp.fetch(url, options);
var html = response.getContentText();
if ( html.match(/Your search -.*- did not match any documents./) )
return "URL не проиндексирован";
return "URL проиндексирован";
}