Get crawler rules
Allow and block rules per crawler, and the robots.txt they produce.
Related: Bot traffic report and Replace crawler rules in Bot traffic.
Request
Path parameters
websitestringrequiredWebsite id or domain, e.g. example.com
1–253 characters
Headers
AuthorizationstringrequiredBearer followed by a site key, an account token or an OAuth access token with the analytics:read scope.
Response
Rules.
{
"status": "string",
"data": {
"rules": [
{
"token": "string",
"rule": "allow"
}
],
"robotsTxt": "string"
}
}Response fields
| Field | Type | Description |
|---|---|---|
| status | "ok" | |
| data | object | |
| data.rules | object[] | |
| data.rules[].token | string | |
| data.rules[].rule | string | |
| data.robotsTxt | string |