Scrape Bluesky Posts by Keyword or Profile
Résumé
Pixel shares a guide to scraping Bluesky posts by keyword, hashtag, or profile using Apify, without a login or app password. It covers search filters, engagement and media data, CSV or JSON exports, and a Python snippet for repeatable research and social listening.
DEV Community
How to Scrape Bluesky Posts by Keyword or Profile
How to Scrape Bluesky Posts by Keyword or Profile Bluesky is small enough to study and large enough to matter for some communities. If you do social listening, research or an archive, you want posts with their engagement, links and media — not a pile of screenshots. You also should not have to hand a scraper your app password. This guide shows how to scrape Bluesky posts by keyword, hashtag or profile, with no login. You will use the Bluesky Post Scraper on Apify. Search by keyword or hashtag (latest or top), or export a profile's feed. Each post can include text, date, likes, reposts, replies, quotes, author, hashtags, links, images, video and link cards. Language and date filters are available. By the end of this article you will have a CSV or JSON file on your machine, and a short Python snippet you can rerun or schedule. The same Actor is also callable from JavaScript and from AI agents through the Apify MCP server. What you need An Apify account. The Free plan is enough to try a small run. A list of inputs for the Actor (URLs, IDs or search terms — details in the steps below). Optional: Python 3 with the apify-client package if you want to automate the run. No Bluesky account or app password is required. A search query is enough for a first run. How to run it in the Apify Console Step 1: Open the Actor Open https://apify.com/veenkes/veenkes-bluesky-posts and click Try for free. Step 2: Add queries or profiles A keyword such as web scraping or a hashtag works. You can also paste profile handles to export their posts. Step 3: Filter and cap Choose latest or top sort, a language, and optional since / until dates. Set max posts per source to 20 or 50 for a test. Decide whether a profile export should include replies or reposts. Step 4: Export CSV Start the run and download CSV or JSON. Engagement fields are already on the row, so you can sort by likes or reposts in a spreadsheet. Language and date filters keep a listening job from drifting. Large profile backfills should be dated or capped rather than pulled in one unlimited run. How to run it from Python Install the official client and call the Actor by its Store id veenkes/veenkes-bluesky-posts. Replace YOUR_APIFY_TOKEN with a token from Apify Console > Integrations. Do not commit the token to a public repository. pip install apify-client
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("veenkes/veenkes-bluesky-posts").call(run_input={
"searchQueries": [
"web scraping"
],
"sort": "latest",
"maxPostsPerSource": 50
})
Write every dataset item, then export from the Console or keep going in code.
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)
The JavaScript client (apify-client on npm) uses the same Actor id and the same input object. You can also start the run with a plain HTTP POST to the Apify API if you prefer. Sample output Here is a shortened example of one dataset record (field values are illustrative of the schema, taken from a real sample run shape): {
"sourceType": "profile",
"source": "bsky.app",
"url": "https://bsky.app/profile/bsky.app/post/3n22yg6lg2k2f",
"uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3n22yg6lg2k2f",
"text": "Rolling out now: a new notifications screen.\n\nFilter by type (replies, follows, post alerts) or see only people you follow. Similar notifications are now grouped, so there’s less n…",
"createdAt": "2026-11-11T22:19:56.200Z",
"indexedAt": "2026-11-11T22:20:13.482Z",
"languages": [
"en"
],
"authorHandle": "bsky.app",
"authorName": "Bluesky",
"authorDid": "did:plc:z72i7hdynmk6r22z27h6tvur",
"authorAvatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreihwihm6kpd6zuwhhlro75p5qks5qtrcu55jp3gddbfjsieiv7wuka",
"likeCount": 2007,
"repostCount": 357,
"replyCount": 172,
"quoteCount": 126,
"bookmarkCount": 134,
"isReply": false,
"replyToUri"...

Powered by Readybot.io