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
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
| Name | Type | Description |
|---|---|---|
| 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 "https://cotlet.dev/api/v1/google-search-console/urls/inspect?property=property&url=https%3A%2F%2Fexample.com" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("google-search-console", "inspect_url", {"property":"property","url":"https://example.com"}) const result = await cotlet.call('google-search-console', 'inspect_url', {"property":"property","url":"https://example.com"}); cotlet call google-search-console inspect_url --data '{"property":"property","url":"https://example.com"}' Example response
{
"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
}