Search
Posts matching a query, 50 a page.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
query*stringWhat to search for.
sort?stringtop (by relevance, the default: one page) or latest (newest first, paged).
Value in
"top""latest"since?stringOnly posts from this time on (2026-11-01T00:00:00Z, or a date).
until?stringOnly posts before this time.
language?stringOnly posts in this language (en, tr).
mentions?stringOnly posts mentioning this account.
domain?stringOnly posts linking to this domain (nytimes.com).
link?stringOnly posts linking to this address.
tag?stringOnly posts with these hashtags, comma-separated, without #.
cursor?stringnextCursor of the previous page (with sort=latest).
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.search({ query: "coffee", sort: "latest", language: "en" });Example Response
{ "data": [ { "id": "at://did:plc:e2v5lqjh2gnw2gweuezbzd5l/app.bsky.feed.post/3n35tfarpif2e", "url": "https://bsky.app/profile/coffeelabadvisor.bsky.social/post/3n35tfarpif2e", "text": "Morning coffee, sorted. Keurig K-Compact Single-Serve K-Cup Pod: single-serve brewing ☕\n\nKeurig K-Compact Single-Serve K-Cup Pod Coffee Maker\n\n☕ https://www.amazon.com/dp/B0BV9HKMNT?tag=choosetoshop-20 #ad #paidlink #AmazonAffiliate #PourOver #Coffee", "createdAt": "2026-11-25T18:53:07.095Z", "author": { "id": "did:plc:e2v5lqjh2gnw2gweuezbzd5l", "username": "coffeelabadvisor.bsky.social", "displayName": "CoffeeLabAdvisor", "avatarUrl": "https://cdn.bsky.app/img/avatar/plain/did:plc:e2v5lqjh2gnw2gweuezbzd5l/bafkreia2esxpt3k4mogsonrytsmaqwxv2w7qmnzzhxnftjrhusr7mzqr4i", "verified": false, "url": "https://bsky.app/profile/coffeelabadvisor.bsky.social" }, "stats": { "views": null, "likes": 0, "comments": 0, "shares": 0, "saves": 0, "engagementRate": null }, "media": [], "hashtags": [ "ad", "paidlink", "AmazonAffiliate" ], "mentions": [], "ext": { "cid": "bafyreib5k4t4cwrcygae66ced5lviceoutcjgwcfvcfo4ypz3tkyfcdpyq", "rkey": "3n35tfarpif2e", "quotes": 0, "langs": [ "en" ], "replyTo": null, "repost": null, "pinned": false, "quoted": null, "link": { "url": "https://www.amazon.com/dp/B0BV9HKMNT?tag=choosetoshop-20", "title": "Keurig K-Compact Single-Serve K-Cup Pod Coffee Maker", "description": "Explore on Amazon", "thumbnailUrl": "https://cdn.bsky.app/img/feed_thumbnail/plain/did:plc:e2v5lqjh2gnw2gweuezbzd5l/bafkreiexxqesndilozdhkspr2eq7uqwwsluwl6texlli73g3nhy5y5obua" }, "altTexts": [], "repliesRestricted": false, "labels": [], "indexedAt": "2026-11-25T18:53:07.244Z" } }, { "id": "at://did:plc:363cn3qkdwze3yu73yqybmms/app.bsky.feed.post/3n35textenk2x", "url": "https://bsky.app/profile/jonbecker.bsky.social/post/3n35textenk2x", "text": "I am in the coolest coffee shop in St. Petersburg, FL. \n\n(I don't see @bubbaprog.xyz though)", "createdAt": "2026-11-25T18:52:57.695Z", "author": { "id": "did:plc:363cn3qkdwze3yu73yqybmms", "username": "jonbecker.bsky.social", "displayName": "Jon Becker", "avatarUrl": "https://cdn.bsky.app/img/avatar/plain/did:plc:363cn3qkdwze3yu73yqybmms/bafkreieemb7in54jnv5f52um37afrdhd4qbe5rxrkth6jvolgxgrcy6nua", "verified": false, "url": "https://bsky.app/profile/jonbecker.bsky.social" }, "stats": { "views": null, "likes": 0, "comments": 0, "shares": 0, "saves": 0, "engagementRate": null }, "media": [], "hashtags": [], "mentions": [ "bubbaprog.xyz" ], "ext": { "cid": "bafyreigmzjqn3tetrgjdzc7xkx3tqmlsxpxwsnx2xkt5e5vembaagu7pmu", "rkey": "3n35textenk2x", "quotes": 0, "langs": [ "en" ], "replyTo": null, "repost": null, "pinned": false, "quoted": null, "link": { "url": "https://thebuzz727.com/password", "title": "The BUZZ", "description": "The BUZZ", "thumbnailUrl": "https://cdn.bsky.app/img/feed_thumbnail/plain/did:plc:363cn3qkdwze3yu73yqybmms/bafkreidmkumyr2tv2nkijeyshuzgm4nk3nusscbtizzsbtqogbonamfqfq" }, "altTexts": [], "repliesRestricted": false, "labels": [], "indexedAt": "2026-11-25T18:52:59.849Z" } } ], "pagination": { "nextCursor": "1795631957|at://did:plc:ukzyde6xpmjmcpumfrbgzwdl/app.bsky.feed.post/3n35smjmlcc2r", "hasMore": true }}