hosting
GET /v1/sites/{siteId}/crawler-policy
Get a site's SEO-crawler-blocking (PBN footprint) policy.
Аутентификация
API кілтін bearer токені ретінде жіберіңіз. Кілтте sites.view рұқсаты болуы тиіс; онсыз кілтке 404 емес, 403 қатесі қайтарылады.
Бұл соңғы нүкте ұйым идентификаторын қабылдамайды. Сіздің кілтіңіз оның қай ұйымға тиесілі екенін өзі анықтайды және жауап соған шектеледі.
Әрекет етіп көру
Бұрыштық жақшалардағы кез келген нәрсені өз мәндеріңізбен, ал кілт орналастырушысын басқару тақтасынан алынған кілтпен алмастырыңыз.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/crawler-policy \
-H "Authorization: Bearer zdk_live_…"Жүйеге кіргенсіз бе? Бақылау тақтасындағы API консолі ұйымыңыздың нақты идентификаторы мен жеке кілтіңізді автоматты түрде толтырады да, нақты жауапты көре алуыңыз үшін сұрауды тікелей жұмыс істеп тұрған 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`.
Параметрлер
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
siteId (path) | Uuid | Иә | Site ID (UUIDv7). |
Жауап
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
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 th… |
Бұл соңғы нүкте қайтара алатын қателер
401 · 403 · 404 · 429