Search Users
Accounts matching a query, 100 a page.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
query*stringWhat to search for.
cursor?stringnextCursor of the previous page.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.
data*array<>pagination*import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.bluesky.searchUsers({ query: "nasa" });Example Response
{ "data": [ { "id": "did:plc:ocmyknbwkxjyjkactio272im", "username": "nasawebb.extwitter.link", "displayName": "NASA Webb Telescope", "bio": "⚠️ MIRROR OF twitter.com/NASAWebb\n⚠️ If you own the original account and want to claim this, please contact @twttr-mirrors.bsky.social", "avatarUrl": "https://cdn.bsky.app/img/avatar/plain/did:plc:ocmyknbwkxjyjkactio272im/bafkreich4qumrtdmi7xcffg3bqquyijspjftc7ejaaodbujqyoo5lyagcu", "url": "https://bsky.app/profile/nasawebb.extwitter.link", "verified": false, "private": false, "followers": null, "following": null, "likes": null, "posts": null, "externalUrl": null, "createdAt": "2024-02-22T17:10:21.640Z", "ext": { "bannerUrl": null, "pronouns": null, "pinnedPost": null, "lists": null, "feeds": null, "starterPacks": null, "trustedVerifier": false, "labeler": false, "liveUrl": null, "labels": [ "bot" ], "indexedAt": "2026-03-30T15:37:13.249Z" } }, { "id": "did:plc:6udbhveni6zbejqdt5ancvkr", "username": "uahirise.bsky.social", "displayName": "HiRISE Beautiful Mars (NASA)", "bio": "Images from the High Resolution Imaging Science Experiment (HiRISE) on board the Mars Reconnaissance Orbiter (NASA). We are based out of the Lunar and Planetary Laboratory at the University of Arizona in Tucson, AZ. https://uahirise.org", "avatarUrl": "https://cdn.bsky.app/img/avatar/plain/did:plc:6udbhveni6zbejqdt5ancvkr/bafkreicu6s4y4e4nopdrbilvchfij4ar3t2nil4f7ctur67q7ktsdy3n3m", "url": "https://bsky.app/profile/uahirise.bsky.social", "verified": false, "private": false, "followers": null, "following": null, "likes": null, "posts": null, "externalUrl": null, "createdAt": "2023-10-17T23:54:39.050Z", "ext": { "bannerUrl": null, "pronouns": null, "pinnedPost": null, "lists": null, "feeds": null, "starterPacks": null, "trustedVerifier": false, "labeler": false, "liveUrl": null, "labels": [], "indexedAt": "2025-10-01T20:33:55.048Z" } } ], "pagination": { "nextCursor": "eyJzIjpbMTAwMCw5LjQ3OTU2MmUtOSwiZGlkOnBsYzphZDZ6bmh3ZmJkcTZrYWk3NDV4aTc2dmgiXX0", "hasMore": true }}