The Bluesky APIfor apps and AI agents
Public data from the platforms you work with, through one API.
No scrapers or proxies to build and maintain.
import { SocialAPI } from "@socialapihq/sdk";
const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });
const { data } = await client.bluesky.profile({ handle: "bsky.app" });
// {
// "data": {
// "username": "bsky.app",
// "displayName": "Bluesky",
// "verified": false,
// "followers": 35847780,
// "following": 44,
// "posts": 928,
// …
// }
// }import os
from socialapihq import SocialAPI
client = SocialAPI(api_key=os.environ["SOCIALAPI_API_KEY"])
data = client.bluesky.profile(handle="bsky.app").data
print(data.display_name, data.followers)
# {
# "data": {
# "username": "bsky.app",
# "displayName": "Bluesky",
# "verified": false,
# "followers": 35847780,
# "following": 44,
# "posts": 928,
# …
# }
# }curl -G https://api.socialapi.sh/v1/bluesky/profile \
-H "Authorization: Bearer $SOCIALAPI_API_KEY" \
--data-urlencode "handle=bsky.app"
# {
# "data": {
# "username": "bsky.app",
# "displayName": "Bluesky",
# "verified": false,
# "followers": 35847780,
# "following": 44,
# "posts": 928,
# …
# }
# }