Adds a website or domain property to the connected Search Console account (a change to the account).
curl -X POST "https://api.primaryapi.com/v1/run/search-console.add_site" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"siteUrl":"https://shop.example.org/"}'{
"output": {
"found": true,
"data": {
"added": true,
"verified": false,
"permissionLevel": "siteUnverifiedUser",
"siteUrl": "https://shop.example.org/"
}
},
"credits": 1
}Input and output
2 fields
https://shop.example.org/.4 fields
Good to know
Changes your account. This call creates, edits or deletes something in the connected account, live. Confirm before running it. With an Idempotency-Key it never runs twice, and monitors can’t schedule it.
WRITE: changes the connected Search Console account.
Needs the Manage Search Console capability.
The API cannot verify ownership. When the property is new to the account it is added as unverified (verified: false), and ownership must then be verified in Search Console.
Adding a property that is already there is safe.
Remove one with search-console.delete_site.
The same key and credits work for every API.