Add and verify the site in Yandex Webmaster
https://seolyticize.com /api/v1/tools/verify_yandex_host Adds the client's site to the connected Yandex Webmaster account if it is not there, asks Yandex to check the chosen proof (method file: /yandex_<code>.html; meta: the yandex-verification tag; dns: a TXT record), and once verified points the connection at it so every get_yandex_* tool reads the site. Answers 'add this site to Yandex' and 'is the site verified in Yandex'. Returns the proof to deploy while unverified; Yandex checks in the background, so call again after IN_PROGRESS. Needs a Yandex token with webmaster:verify as well as webmaster:hostinfo. Free.
Parameters
Idempotency-KeystringheaderRequest body
application/json
clientIdstringrequiredmethodstring{
"clientId": "string",
"method": "file"
}Code samples
cURL
curl -X POST "https://seolyticize.com/api/v1/tools/verify_yandex_host" \
-H "Authorization: Bearer $SEOLYTICIZE_API_KEY" \
-H "Idempotency-Key: <value>" \
-H "Content-Type: application/json" \
-d '{"clientId":"string","method":"file"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
data, and its meta.Example
{
"data": {},
"meta": {
"requestId": "string",
"costMicros": 0,
"cached": true,
"cachedFrom": "string",
"dataAsOf": "string",
"sources": [
"string"
],
"partial": true,
"next": [
{
"tool": "string",
"args": {},
"why": "string"
}
],
"nextCursor": "string",
"dryRun": true
}
}Schema
datarequiredmetaobjectrequiredShow child parameters
requestIdstringrequiredcostMicrosintegerrequiredcachedbooleanrequiredcachedFromstringdataAsOfstringsourcesstring[]partialbooleanrequirednextobject[]requiredShow child parameters
toolstringargsobjectwhystringnextCursorstringdryRunbooleanX-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerX-Request-IdstringExample
{
"error": "string",
"code": "string",
"next": "string",
"requestId": "string"
}Schema
errorstringrequiredcodestringnextstringrequestIdstringX-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/verify_yandex_host
WWW-AuthenticatestringSame as 400 · POST /api/v1/tools/verify_yandex_host
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/verify_yandex_host
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/verify_yandex_host
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/verify_yandex_host
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/verify_yandex_host
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerRetry-AfterintegerSame as 400 · POST /api/v1/tools/verify_yandex_host
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-Resetinteger