Lists the Search Console properties of the connected Google account with its permission level on each one.
curl -X POST "https://api.primaryapi.com/v1/run/search-console.sites" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'{
"output": {
"found": true,
"data": {
"nextCursor": null,
"sites": [
{
"verified": true,
"propertyType": "domain",
"permissionLevel": "siteOwner",
"siteUrl": "sc-domain:example.com"
}, …
]
}
},
"credits": 1
}Input and output
1 field
4 fields
Good to know
Runs as your connected Google account. Needs the Read Search Console capability.
Use the siteUrl values exactly as listed (Domain properties start with "sc-domain:", URL-prefix properties end with a slash) in search-console.performance. search-console.inspect_url and search-console.sitemaps.
The same key and credits work for every API.