Skip to Content

Profile Media

An account's posts with images or video.

GET
/v1/bluesky/profile/media

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.profileMedia({ handle: "bsky.app" });
Example Response
{  "data": [    {      "id": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3n2opitysuc2j",      "url": "https://bsky.app/profile/bsky.app/post/3n2opitysuc2j",      "text": "We’ve also made it easier to share posts from Bluesky. When you tap the arrow icon on mobile, you’ll now have the option of sharing directly to your other apps.",      "createdAt": "2026-11-19T18:33:36.814Z",      "author": {        "id": "did:plc:z72i7hdynmk6r22z27h6tvur",        "username": "bsky.app",        "displayName": "Bluesky",        "avatarUrl": "https://cdn.bsky.app/img/avatar/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreihwihm6kpd6zuwhhlro75p5qks5qtrcu55jp3gddbfjsieiv7wuka",        "verified": false,        "url": "https://bsky.app/profile/bsky.app"      },      "stats": {        "views": null,        "likes": 1009,        "comments": 46,        "shares": 89,        "saves": 42,        "engagementRate": null      },      "media": [        {          "kind": "video",          "url": "https://video.bsky.app/watch/did%3Aplc%3Az72i7hdynmk6r22z27h6tvur/bafkreiapzmyzxc72yow7zhko4fgykat7ppbcvnz4wv7okwcwnesbasy5um/playlist.m3u8",          "thumbnailUrl": "https://video.bsky.app/watch/did%3Aplc%3Az72i7hdynmk6r22z27h6tvur/bafkreiapzmyzxc72yow7zhko4fgykat7ppbcvnz4wv7okwcwnesbasy5um/thumbnail.jpg",          "width": 1080,          "height": 1620,          "durationSeconds": null        }      ],      "hashtags": [],      "mentions": [],      "ext": {        "cid": "bafyreicukrrriqobyd7rnkyheos3afuubvwrqddmhvjjkxu4bpt6bz2jnq",        "rkey": "3n2opitysuc2j",        "quotes": 15,        "langs": [          "en"        ],        "replyTo": {          "parent": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3n2opitxdyc2j",          "root": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3n2opitxdyc2j"        },        "repost": null,        "pinned": false,        "quoted": null,        "link": null,        "altTexts": [          "A video demonstrating the new share sheet. Kiki (a cat) has posted a snarling selfie with the text \"My face when someone says they're 'not really a cat person.' Send this to someone who needs to hear it.\" When the share button is tapped, we see the share sheet pop up with profile images of Kiki's animal friends, plus icons of messaging and social apps on Kiki's phone. Kiki chooses \"Messages\" and s…"        ],        "repliesRestricted": false,        "labels": [],        "indexedAt": "2026-11-19T18:33:38.544Z"      }    },    {      "id": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3n2opitxdyc2j",      "url": "https://bsky.app/profile/bsky.app/post/3n2opitxdyc2j",      "text": "v1.138 is live!\n\nView counts are available in beta! Now you can see how many people your posts are reaching. The numbers are private — they only appear on your own posts and only to you. To turn them on, enable beta features here: bsky.app/settings/bet.... Let us know what you think.",      "createdAt": "2026-11-19T18:33:36.813Z",      "author": {        "id": "did:plc:z72i7hdynmk6r22z27h6tvur",        "username": "bsky.app",        "displayName": "Bluesky",        "avatarUrl": "https://cdn.bsky.app/img/avatar/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreihwihm6kpd6zuwhhlro75p5qks5qtrcu55jp3gddbfjsieiv7wuka",        "verified": false,        "url": "https://bsky.app/profile/bsky.app"      },      "stats": {        "views": null,        "likes": 2038,        "comments": 787,        "shares": 349,        "saves": 218,        "engagementRate": null      },      "media": [        {          "kind": "video",          "url": "https://video.bsky.app/watch/did%3Aplc%3Az72i7hdynmk6r22z27h6tvur/bafkreiavlqznqay24hdpwzzr7tjsy65gbjggiwug2djr6nfw7lszaztrk4/playlist.m3u8",          "thumbnailUrl": "https://video.bsky.app/watch/did%3Aplc%3Az72i7hdynmk6r22z27h6tvur/bafkreiavlqznqay24hdpwzzr7tjsy65gbjggiwug2djr6nfw7lszaztrk4/thumbnail.jpg",          "width": 1080,          "height": 1728,          "durationSeconds": null        }      ],      "hashtags": [],      "mentions": [],      "ext": {        "cid": "bafyreihjpuz225u5djer7b6oqj5aszoqcblsjogyzlkr2ipw65cz3sk45m",        "rkey": "3n2opitxdyc2j",        "quotes": 1173,        "langs": [          "en"        ],        "replyTo": null,        "repost": null,        "pinned": false,        "quoted": null,        "link": null,        "altTexts": [          "A video demonstrating the new post views feature—now in beta. Hoagie the dog has posted, \"Day 47 of asking for a second breakfast. Morale remains high.\" We zoom in and see the view count pop up in small gray type between the date and the reply settings."        ],        "repliesRestricted": true,        "labels": [],        "indexedAt": "2026-11-19T18:33:38.543Z"      }    }  ],  "pagination": {    "nextCursor": "2025-08-29T16:49:14.626Z",    "hasMore": true  }}