Bluesky label inspector

Markdown version

GET/tools/label-inspector

Inspect attributed moderation and self-labels on a Bluesky account or post. Checks the top 100 known labelers, or all on request; reports actual AppView coverage and partial failures. No sign-in. Costs 3 calls (12 for all).

Parameters

NameInTypeDescription
q (required)querystringA handle, DID, bsky.app profile or post link, or post AT URI.
allqueryboolean, default falseAsk all indexed labelers instead of the 100 most liked; stricter rate limit.
localequerystring, default enPreferred language of the labeler's definitions; falls back to English, then the raw value.

Responses

StatusDescriptionBody
200The tool's answer, with the canonical URL of its page.ToolLabelInspector
400Invalid query parameter (code `bad_request`).Error
401Unknown, expired or revoked token (code `unauthorized`). Without an `Authorization` header, the tool answers anonymously.Error
404Not found. Also returned on a bot's handle subdomain: the API is only served on the main site.Error
429Rate limited: `toolsApi` (60 a minute) and `toolsApiDaily` (2,000 a day) per IP, or 10 times both per account with a creator's token. A tool that fans out costs more than one call.Error
500Unexpected error.Error
502The service the tool asks did not answer (code `upstream_error`).Error

Example

bash
curl \
  -G \
  --data-urlencode "q=demo.bluesky.bot" \
  -H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
  https://bluesky.bot/api/v1/tools/label-inspector

Schemas

Error

FieldTypeDescription
error (required)object
error.code (required)string: "bad_request", "invalid_handle", "not_found", "rate_limited", "internal_error", "unauthorized", "forbidden", "conflict", "invalid_grant", "upstream_error", "insufficient_scope", "invalid_listing", "consent_required"
error.message (required)string
error.reasonstringWith `invalid_handle`, `invalid_listing`, `conflict` and `forbidden`: e.g. `reserved`, `taken`, `too_long`, `no_handle`, `suspended`.
error.urlstring, uriWith consent_required: open this dashboard page to grant profile editing.
error.fieldstringWith `invalid_listing`: the refused field.
error.scopestringWith `insufficient_scope`: the scope the token lacks.
error.parameterstringThe invalid query parameter.
error.retryAfterSecondsinteger (1–)With `rate_limited`.

ToolLabelInspector

FieldTypeDescription
tool (required)string = "label-inspector"The tool's slug.
url (required)stringThe canonical URL of the tool's page on Bluesky.bot.
result (required)objectThe tool's answer.
result.subject (required)string: "account", "post"The kind of inspected subject.
result.did (required)stringThe account's or post author's DID.
result.uri (required)stringThe inspected account DID or post AT URI.
result.labels (required)object[]Current, non-negated, unexpired labels, deduplicated by source, value and subject.
result.labels[].source (required)stringThe labeler's DID, or the subject DID for a self-label.
result.labels[].subject (required)stringThe DID or AT URI the label applies to.
result.labels[].value (required)stringThe label's raw value.
result.labels[].name (required)stringThe labeler's name for this value, with language fallback.
result.labels[].description (required)string | nullThe labeler's description; null when not defined.
result.labels[].group (required)string: "bluesky", "self", "ours", "community"Who applied the label.
result.labels[].effect (required)string: "hidden", "warned", "informational"The default effect; actual viewing preferences can differ.
result.labels[].createdAt (required)stringLabel creation timestamp, ISO 8601.
result.labels[].expiresAt (required)string | nullLabel expiry timestamp, or null.
result.requestedLabelers (required)integerLabelers requested through the accept-labelers header.
result.appliedLabelers (required)integerLabelers confirmed by AppView response headers, not an assumption.
result.knownLabelers (required)integerKnown labelers including Bluesky moderation and this site's labeler.
result.partial (required)booleanAt least one batch or local source failed, a requested labeler was not applied, or the index is unavailable.
result.indexedAt (required)string | nullThe latest index observation, ISO 8601, or null before the first scan.