hosting

GET /v1/sites/{siteId}/cdn/statistics

Edge hits, bytes and country breakdown for a site.

جميع نقاط نهاية hosting

المصادقة

أرسل مفتاح واجهة برمجة التطبيقات (API key) كرمز حامل (bearer token). يجب أن يحمل المفتاح إذن sites.view؛ والمفتاح الذي لا يملكه يُرفض بالرمز 403 وليس 404.

لا يقبل هذا الطرف أي معرف للمؤسسة. يحدد مفتاحك بالفعل المؤسسة التي ينتمي إليها، وتكون الاستجابة محصورة في نطاقها.

جربه الآن

استبدل أي شيء بين أقواس زاوية بقيمك الخاصة، والعنصر النائب للمفتاح بمفتاح من لوحة تحكمك.

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/cdn/statistics \
  -H "Authorization: Bearer zdk_live_…"

هل سجلت الدخول؟ تقوم وحدة تحكم واجهة برمجة التطبيقات في لوحة التحكم الخاصة بك بربط معرف مؤسستك الحقيقي ومفتاحك الخاص، وتنفذ الطلب مقابل واجهة برمجة التطبيقات المباشرة لتتمكن من رؤية الاستجابة الفعلية. افتح هذه النهاية الطرفية في وحدة تحكم API

التفاصيل

Points are returned in the vendor's own buckets and in time order, not re-aggregated: re-bucketing would invent numbers the CDN did not measure. Requires `sites.view`.

المعلمات

الاسمالنوعمطلوبما هو هذا
siteId (path)UuidنعمSite ID (UUIDv7).
window (query)string<Last24Hours, Last30Days, Last12Months>لاWhich bucket of hits and bytes to return.
period (query)string<Last1Hour, Last24Hours, Last7Days>لاWhich window the country breakdown covers. ⛔ **A different vocabulary from `window`** — the two vendor endpoints underneath do not share one, and `Last30Days` is a valid `window…

الاستجابة

الاسمالنوعمطلوبما هو هذا
windowstringنعم
windowsstring[]نعم
hitsSiteCdnPoint[]نعم
bytesSiteCdnPoint[]نعم
periodstringنعمThe window the country breakdown covers, or empty when the requested `period` is not one this vendor endpoint accepts.
periodsstring[]نعم
countriesSiteCdnCountry[]نعم

الأخطاء التي يمكن أن تُرجعها نقطة النهاية هذه

401 · 403 · 404 · 422 · 429 · 503