Bluesky label inspector
Markdown versionGET/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
| Name | In | Type | Description |
|---|---|---|---|
| q (required) | query | string | A handle, DID, bsky.app profile or post link, or post AT URI. |
| all | query | boolean, default false | Ask all indexed labelers instead of the 100 most liked; stricter rate limit. |
| locale | query | string, default en | Preferred language of the labeler's definitions; falls back to English, then the raw value. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The tool's answer, with the canonical URL of its page. | ToolLabelInspector |
| 400 | Invalid query parameter (code `bad_request`). | Error |
| 401 | Unknown, expired or revoked token (code `unauthorized`). Without an `Authorization` header, the tool answers anonymously. | Error |
| 404 | Not found. Also returned on a bot's handle subdomain: the API is only served on the main site. | Error |
| 429 | Rate 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 |
| 500 | Unexpected error. | Error |
| 502 | The service the tool asks did not answer (code `upstream_error`). | Error |
Example
curl \
-G \
--data-urlencode "q=demo.bluesky.bot" \
-H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
https://bluesky.bot/api/v1/tools/label-inspectorSchemas
Error
| Field | Type | Description |
|---|---|---|
| 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.reason | string | With `invalid_handle`, `invalid_listing`, `conflict` and `forbidden`: e.g. `reserved`, `taken`, `too_long`, `no_handle`, `suspended`. |
| error.url | string, uri | With consent_required: open this dashboard page to grant profile editing. |
| error.field | string | With `invalid_listing`: the refused field. |
| error.scope | string | With `insufficient_scope`: the scope the token lacks. |
| error.parameter | string | The invalid query parameter. |
| error.retryAfterSeconds | integer (1–) | With `rate_limited`. |
ToolLabelInspector
| Field | Type | Description |
|---|---|---|
| tool (required) | string = "label-inspector" | The tool's slug. |
| url (required) | string | The canonical URL of the tool's page on Bluesky.bot. |
| result (required) | object | The tool's answer. |
| result.subject (required) | string: "account", "post" | The kind of inspected subject. |
| result.did (required) | string | The account's or post author's DID. |
| result.uri (required) | string | The 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) | string | The labeler's DID, or the subject DID for a self-label. |
| result.labels[].subject (required) | string | The DID or AT URI the label applies to. |
| result.labels[].value (required) | string | The label's raw value. |
| result.labels[].name (required) | string | The labeler's name for this value, with language fallback. |
| result.labels[].description (required) | string | null | The 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) | string | Label creation timestamp, ISO 8601. |
| result.labels[].expiresAt (required) | string | null | Label expiry timestamp, or null. |
| result.requestedLabelers (required) | integer | Labelers requested through the accept-labelers header. |
| result.appliedLabelers (required) | integer | Labelers confirmed by AppView response headers, not an assumption. |
| result.knownLabelers (required) | integer | Known labelers including Bluesky moderation and this site's labeler. |
| result.partial (required) | boolean | At least one batch or local source failed, a requested labeler was not applied, or the index is unavailable. |
| result.indexedAt (required) | string | null | The latest index observation, ISO 8601, or null before the first scan. |