Inspect URL

Index status of a URL: the most recently indexed version, last crawl and canonical.

GET https://cotlet.dev/api/v1/google-search-console/urls/inspect

read

Returns what the URL Inspection tool shows for the indexed version of a page: status ("URL is on Google", "URL is on Google, but has issues", "URL is not on Google" or "URL is an alternate version"), discovery by sitemap and referring page, last crawl, crawled as, crawl allowed, page fetch, indexing allowed, and the user-declared and Google-selected canonical. It does not fetch the live page; use test_live_url for that. "On Google" means eligible, not guaranteed to appear. The URL must be inside the property.

Parameters

Parameters: inspect_url
NameTypeDescription
property string required string Property as Search Console lists it: sc-domain:example.com for a Domain property, https://example.com/ for a URL-prefix property.
url string required string Full URL inside the property, e.g. https://example.com/blog/new-post.

Request

cURL
curl "https://cotlet.dev/api/v1/google-search-console/urls/inspect?property=property&url=https%3A%2F%2Fexample.com" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("google-search-console", "inspect_url", {"property":"property","url":"https://example.com"})
Node.js
const result = await cotlet.call('google-search-console', 'inspect_url', {"property":"property","url":"https://example.com"});
CLI
cotlet call google-search-console inspect_url --data '{"property":"property","url":"https://example.com"}'

Example response

JSON

{
  "url": "https://example.com/guides/search-console-api",
  "status": "URL is not on Google",
  "coverage": "Discovered - currently not indexed",
  "sitemap": "https://example.com/sitemap.xml",
  "referring_page": "https://example.com/guides",
  "last_crawl": null,
  "crawled_as": null,
  "crawl_allowed": null,
  "page_fetch": null,
  "indexing_allowed": null,
  "user_canonical": null,
  "google_canonical": null
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.