100 free credits. No credit card required. Get a key

Bluesky user search API

Bluesky accounts matching a name, handle or bio, up to 100 a page.

GET /v1/bluesky/search/users1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/bluesky/search/users?q=espresso&limit=5",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"actors": [
{
"did": "did:plc:3bbriohzj4twjioi2emlsnh5",
"handle": "mmiedl.bsky.social",
"displayName": "Magdalena Miedl aka espressozitron",
"avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:3bbriohzj4twjioi2emlsnh5/bafkreigblnz7aj2pwnqnavn7vawauwqulvrk57g4s7wpm6aa…",
"associated": {
"chat": {
"allowIncoming": "following"
},
"activitySubscription": {
"allowSubscriptions": "followers"
}
},
"labels": [],
"createdAt": "2023-08-19T06:37:43.960Z",
"description": "im mehrsaal-kopfkino.\nfeministin und antifaschistin mit katze. schreibt und redet über filme, serien, bücher, theater, k…",
"indexedAt": "2026-06-25T22:06:28.158Z"
},
{
"did": "did:plc:w6ijmqu55bhaakvlx634vw2j",
"handle": "happinesz.swifties.social",
"displayName": "that's that m¡a espresso",
"avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:w6ijmqu55bhaakvlx634vw2j/bafkreidp4cfrefmyth6vmrwuarzmnerzzgc7hwyjdgqnknih…",
"associated": {
"chat": {
"allowIncoming": "following"
},
"activitySubscription": {
"allowSubscriptions": "followers"
}
},
"labels": [],
"createdAt": "2023-04-21T14:56:24.343Z",
"description": "(🎧) 𖥻 the bolter - taylor swift",
"indexedAt": "2024-11-26T17:25:46.045Z"
},
"… 3 more"
],
"cursor": "eyJzIjpbMTAwMCwxLjY2MjE4MjZlLTcsImRpZDpwbGM6a2l0bzQ1bWU1azZhNXBzdWF0ZTd6bno1Il19"
}

Parameters

NameTypeDescription
qquery · requiredstringName, handle or words from a bio. Example: espresso.
limitqueryintegerItems per page, 1 to 100. Default 25.
afterquerystringCursor: the previous page’s cursor.
Response fields

200 with a BlueskySearchActors, in the AT Protocol’s own app.bsky lexicon JSON.

FieldTypeDescription
actorsBlueskyProfileView[]
cursorstringPass it as after for the next page; absent on the last page.
Status codes
StatusMeaning
200A page of accounts.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The account, post, feed, list or starter pack does not exist, was deleted or taken down.
429Too many requests. Wait for Retry-After seconds.
503Bluesky is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Questions

How do I get the next page?

Pass the response’s cursor back as after. Bluesky’s cursors are stateless, so they keep working.

Bluesky is a trademark of Bluesky Social PBC. We are not affiliated with or endorsed by Bluesky.