Median

GET /analytics/knowledge

Updated Oct 1, 20261 minute read

Knowledge coverage

The library's shape today, and what the review queue decided in the window.

Part of Analytics.

Parameters

NameInTypeRequiredDescription
fromqueryintegerNoThe window's start, unix ms. Defaults to days ago.
daysquery7 | 30 | 90NoDaily buckets after from. Default 30.

Responses

StatusDescription
200The library and the window.
400The request is malformed, and the message names the field.
401The bearer token is missing, revoked, or expired.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
docsobjectNo
docs.totalintegerNo
docs.bySourceobjectNo
docs.indexingintegerNo
docs.brokenintegerNo
reviewobjectNo
review.approvedintegerNo
review.dismissedintegerNo
review.pendingintegerNo
learnedintegerNo

Example request

curl https://api.median.sh/v1/analytics/knowledge \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc