hosting
GET /v1/sites/{siteId}/crawler-policy
Get a site's SEO-crawler-blocking (PBN footprint) policy.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.view; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/crawler-policy \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
The effective crawler-block policy for a site — the stored override or the line default (the PBN/footprint-free line blocks every SEO crawler by default; other lines block none). Returns the blocked crawler keys, the catalog of blockable crawlers, and the rendered robots.txt + server rules. Search engines (Googlebot/Bingbot) are never blockable. Requires sites.view.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
siteId (path) | Uuid | Да | Site ID (UUIDv7). |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
site_id | Uuid | Да | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
policy | CrawlerPolicy | Да | — |
available_crawlers | CrawlerCatalogEntry[] | Да | — |
rendered | CrawlerPolicyRendered | Да | The rendered rule artifacts for the worker / Zinn® plugin to write. |
enforcement | CrawlerEnforcement | Не | Whether the stored crawler policy is actually a rule on a web server, and if not why not (#1954, D8300). ⛔ These are two different questions and collapsing them is the defect this… |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 429