AT Protocol repository explorer

Markdown version

GET/tools/repo-explorer

Browse a Bluesky account's public PDS repository, collections and individual records. PDS requests use SSRF checks. Records are bounded JSON; blobs remain references. No sign-in or write access. Costs 2 calls.

Parameters

NameInTypeDescription
q (required)querystringA handle, DID or AT URI at repository, collection or record level.
cursorquerystring, default The next-page cursor of listRecords; empty for the first page.
reversequeryboolean, default falseOldest records first instead of newest first.

Responses

StatusDescriptionBody
200The tool's answer, with the canonical URL of its page.ToolRepoExplorer
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=bsky.app" \
  -H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
  https://bluesky.bot/api/v1/tools/repo-explorer

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`.

ToolRepoExplorer

FieldTypeDescription
tool (required)string = "repo-explorer"The tool's slug.
url (required)stringThe canonical URL of the tool's page on Bluesky.bot.
result (required)objectThe tool's answer.
result.level (required)string: "repo", "collection", "record"Which repository level was requested.
result.status (required)string: "ok", "pds_unreachable", "inactive"Whether public data could be read from the PDS.
result.did (required)stringThe repository's DID.
result.handle (required)string | nullThe PDS-reported handle at repository level, or null.
result.handleIsCorrect (required)boolean | nullThe PDS's handle check, or null outside describeRepo.
result.pdsHost (required)string | nullThe PDS host named by the DID document, or null.
result.relay (required)string: "active", "inactive", "not_found", "unknown"What the public relay reports; unknown means it could not be checked.
result.collections (required)string[]Collection NSIDs, at repository level.
result.collection (required)string | nullThe selected collection, or null.
result.records (required)object[]Up to 50 records in a collection, or the requested single record.
result.records[].uri (required)stringThe record's AT URI.
result.records[].cid (required)stringThe record's CID.
result.records[].rkey (required)stringThe record key.
result.records[].createdAt (required)string | nullThe TID key's timestamp, or null for a non-TID key.
result.records[].preview (required)stringA short text preview of the record.
result.records[].value (required)objectThe record's escaped JSON data; limited to 256 KB and depth 20.
result.cursor (required)string | nullNext-page cursor, or null at the end.
result.reverse (required)booleanWhether oldest-first order was requested.