Skip to Content

Profile Following

The accounts an account follows, 100 a page.

GET
/v1/bluesky/profile/following

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

handle?string

The account's handle (bsky.app) or DID.

url?string

The profile's link, instead of handle.

cursor?string

nextCursor of the previous page.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.

data*array<>
pagination*
Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.bluesky.profileFollowing({ handle: "bsky.app" });
Example Response
{  "data": [    {      "id": "did:plc:jutmjylg2h4tpev7wrvy2ay3",      "username": "alyankovic.bsky.social",      "displayName": "Al Yankovic",      "bio": "You know... the weird one.",      "avatarUrl": "https://cdn.bsky.app/img/avatar/plain/did:plc:jutmjylg2h4tpev7wrvy2ay3/bafkreibrr7aidte4qfvmgvozn54c44eb4gfxj7ywy3wjmrpjsxzdyjnwpe",      "url": "https://bsky.app/profile/alyankovic.bsky.social",      "verified": true,      "private": false,      "followers": null,      "following": null,      "likes": null,      "posts": null,      "externalUrl": null,      "createdAt": "2023-05-24T22:03:10.185Z",      "ext": {        "bannerUrl": null,        "pronouns": null,        "pinnedPost": null,        "lists": null,        "feeds": null,        "starterPacks": null,        "trustedVerifier": false,        "labeler": false,        "liveUrl": null,        "labels": [],        "indexedAt": "2024-01-20T05:08:34.606Z"      }    },    {      "id": "did:plc:cguwfiesizkt4ssgx6q7d6yy",      "username": "marawilson.bsky.social",      "displayName": "Mara Wilson",      "bio": "Writer, actor, audiobook narrator, notorious tryhard",      "avatarUrl": "https://cdn.bsky.app/img/avatar/plain/did:plc:cguwfiesizkt4ssgx6q7d6yy/bafkreigtvfvdpptvyc5bj4teuyxr4nxwfvpkmj4jfidykmskfyl5vmhhoe",      "url": "https://bsky.app/profile/marawilson.bsky.social",      "verified": true,      "private": false,      "followers": null,      "following": null,      "likes": null,      "posts": null,      "externalUrl": null,      "createdAt": "2023-06-01T22:34:31.107Z",      "ext": {        "bannerUrl": null,        "pronouns": null,        "pinnedPost": null,        "lists": null,        "feeds": null,        "starterPacks": null,        "trustedVerifier": false,        "labeler": false,        "liveUrl": null,        "labels": [          "!no-unauthenticated"        ],        "indexedAt": "2024-08-10T23:40:28.474Z"      }    }  ],  "pagination": {    "nextCursor": null,    "hasMore": false  }}