List the connected account's properties
GET
/v1/sites/{id}/gsc/properties
const url = 'https://api.overwatch.weareheavy.dev/v1/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/gsc/properties';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.overwatch.weareheavy.dev/v1/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/gsc/properties \ --header 'x-api-key: <x-api-key>'Live from the Search Console API. suggested marks properties whose
host matches the site (domain properties preferred). Owner/admin only.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”id
required
string format: uuid
The site’s UUID.
Responses
Section titled “ Responses ”Properties, suggested matches first.
Media typeapplication/json
object
properties
required
Array<object>
object
siteUrl
required
‘https://example.com/’ (URL-prefix) or ‘sc-domain:example.com’.
string
permissionLevel
required
string
suggested
required
boolean
Examplegenerated
{ "properties": [ { "siteUrl": "example", "permissionLevel": "example", "suggested": true } ]}Missing or invalid credentials.
Media typeapplication/json
object
error
required
A human-readable error message.
string
Example
{ "error": "invalid api key"}Site not found, SEO app off, or not connected.
Media typeapplication/json
object
error
required
A human-readable error message.
string
Examplegenerated
{ "error": "example"}Google access was revoked - reconnect.
Media typeapplication/json
object
error
required
A human-readable error message.
string
Examplegenerated
{ "error": "example"}