Credentials for crawling a staging site
https://seolyticize.com /api/v1/tools/set_crawl_auth Lets the crawler into a staging or password-protected site: HTTP basic auth (username and password), custom request headers (e.g. a bypass token for a firewall, up to 10) and cookies ('name=value; other=value'). Replaces whatever was set; clear: true removes it all. Stored encrypted, sent only to the client's own domain (never to a redirect elsewhere or a third-party script), and never shown again — get_crawl_settings lists only the username and header and cookie names. Answers 'audit our staging site' and 'crawl behind the login'. Free.
Parameters
Idempotency-KeystringheaderRequest body
application/json
clientIdstringrequiredbasicAuthobjectShow child parameters
usernamestringrequiredpasswordstringrequiredheadersobject[]Show child parameters
namestringrequiredvaluestringrequiredcookiesstringclearboolean{
"clientId": "string",
"basicAuth": {
"username": "string",
"password": "string"
},
"headers": [
{
"name": "string",
"value": "string"
}
],
"cookies": "string",
"clear": true
}Code samples
cURL
curl -X POST "https://seolyticize.com/api/v1/tools/set_crawl_auth" \
-H "Authorization: Bearer $SEOLYTICIZE_API_KEY" \
-H "Idempotency-Key: <value>" \
-H "Content-Type: application/json" \
-d '{"clientId":"string","basicAuth":{"username":"string","password":"string"},"headers":[{"name":"string","value":"string"}],"cookies":"string","clear":true}'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/set_crawl_auth
WWW-AuthenticatestringSame as 400 · POST /api/v1/tools/set_crawl_auth
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/set_crawl_auth
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/set_crawl_auth
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/set_crawl_auth
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/set_crawl_auth
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerRetry-AfterintegerSame as 400 · POST /api/v1/tools/set_crawl_auth
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-Resetinteger