Skip to Content
APIEndpointsWebsite indexing summary

Website indexing summary

A one-call health check on indexing coverage: how many pages are known, how many have actually been fetched, where they sit in the embedding pipeline, and how many technical issues are open.

Fetch this before drawing conclusions from any per-page citation metric. Coverage is the denominator under all of them.

GET /v1/brands/{brand_id}/website/summary

Authorization

HeaderTypeRequired
AuthorizationBearer asky_sk_…required

Path parameters

ParameterTypeRequiredDescription
brand_iduuidrequiredFrom List brands

Query parameters

None.

Any parameter you pass returns 400 invalid_request naming the offending key, rather than being ignored silently.

Request

curl --request GET \ --url 'https://api.askylabs.com/v1/brands/242546de-4cee-4a7d-952e-f6aa60c63ef8/website/summary' \ --header 'Authorization: Bearer <api-key>'

Response

{ "data": { "total_pages": 318, "fetched_pages": 302, "embedding_status_counts": { "embedded": 288, "pending": 12, "discovered": 14, "failed": 3, "skipped": 1 }, "open_issue_count": 7 }, "request_id": "req_bf7210ce49a3486d95f8" }

Response fields

FieldTypeDescription
data.total_pagesintegerrequired. HTML pages known to us
data.fetched_pagesintegerrequired. Pages that came back with a title. total − fetched is the crawl backlog
data.embedding_status_countsobjectrequired. Page count per embedding state
data.open_issue_countintegerrequired. Unresolved technical issues found on the site
request_idstringrequired. Also returned as the x-request-id header. Quote it when contacting support

Errors

StatusCodeWhen
400invalid_requestA parameter is unknown or malformed. The message names it
401invalid_tokenThe key is missing, malformed, or does not exist
401token_expiredThe key passed its expiry date
401token_revokedThe key was revoked
404not_foundThe brand does not exist, or this key is not allowed to reach it. The two are deliberately indistinguishable
429rate_limitedOver 300 requests per minute. See the Retry-After header

Notes

A large gap between total_pages and fetched_pages usually means the site is blocking our crawler rather than that the pages do not exist. That is worth checking before treating low citation rates as a content problem.

Last updated on