How to Scrape Bluesky with the AT Protocol — Free, No API Key

Bluesky is the fastest-growing social network — from 10M to 41M users in one year (+302%). And its AT Protocol makes it the easiest platform to build data tools for. Why Bluesky for Developers? Ful...

By · · 1 min read
How to Scrape Bluesky with the AT Protocol — Free, No API Key

Source: DEV Community

Bluesky is the fastest-growing social network — from 10M to 41M users in one year (+302%). And its AT Protocol makes it the easiest platform to build data tools for. Why Bluesky for Developers? Fully public API at public.api.bsky.app No API key needed for reading profiles and feeds No rate limits on public reads Rich data — posts, likes, reposts, replies, hashtags, mentions Quick Start: Get Any Profile const did = await fetch( "https://public.api.bsky.app/xrpc/com.atproto.identity.resolveHandle?handle=bsky.app" ).then(r => r.json()).then(d => d.did); const profile = await fetch( `https://public.api.bsky.app/xrpc/app.bsky.actor.getProfile?actor=${did}` ).then(r => r.json()); console.log(profile.displayName); // "Bluesky" console.log(profile.followersCount); // 32,420,172 Get Posts with Engagement const feed = await fetch( `https://public.api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed?actor=${did}&limit=50` ).then(r => r.json()); for (const item of feed.feed) { console.log