Inspects one URL of a Search Console property: whether Google has indexed it, why not, its last crawl, canonical and rich results.
curl -X POST "https://api.primaryapi.com/v1/run/search-console.inspect_url" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"siteUrl":"sc-domain:example.com","url":"https://www.example.com/blog/running-shoes"}'{
"output": {
"found": true,
"data": {
"resultLink": "https://search.google.com/search-co…",
"verdict": "PASS",
"coverageState": "Submitted and indexed",
"indexingState": "INDEXING_ALLOWED", …
}
},
"credits": 1
}Input and output
4 fields
sc-domain:example.com.https://www.example.com/blog/running-sh….16 fields
Good to know
Runs as your connected Google account. Needs the Read Search Console capability.
It reports Google’s index status for the URL. It does not request indexing.
Search Console allows 2,000 inspections per property per day.
A property the account cannot see is a miss with reason no_access.
Unknown site URL? It comes back as not found, not as an error.
The same key and credits work for every API.