Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

Bluesky Profile

Документация API
https://api.sandbase.ai/v1/api/bluesky/profile

Get a Bluesky user's public profile by handle - display name, bio, follower and post counts as clean JSON.

Цена
От $0.0011USD / вызов
Метод
POST
Ответ
JSON
Параметры
1 обязательных · 0 необязательных

Песочница

Ввод
Bluesky handle, e.g. "bsky.app" or "jay.bsky.team".
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

README по API

Bluesky Profile API

This API returns the public profile of a Bluesky account. It needs one input, the account handle, such as bsky.app. The response includes the display name, bio, avatar URL, follower and following counts, post count, and creation time.

Use cases

  • Show a Bluesky account card with name, bio, and avatar in a dashboard or CRM.
  • Track follower and post counts for an account over repeated calls.
  • Resolve a handle to its did:plc: ID before you call other Bluesky APIs.
  • Check whether a handle exists by reading the found flag.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bluesky/profile" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"handle": "bsky.app"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
handlestringYesBluesky handle, e.g. "bsky.app" or "jay.bsky.team".

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "avatarUrl": "https://cdn.bsky.app/img/avatar/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreihw…",
    "createdUtc": 1681275237,
    "description": "official Bluesky account (check username👆)\n\nBugs, feature requests, feedback: su…",
    "displayName": "Bluesky",
    "followers": 35503774,
    "following": 34,
    "handle": "bsky.app",
    "id": "did:plc:z72i7hdynmk6r22z27h6tvur",
    "postsCount": 907
  },
  "found": true
}

Response fields

FieldMeaning
foundtrue when the handle was found. A lookup that finds nothing returns false.
data.idThe account's permanent ID, in the form did:plc:....
data.handleThe Bluesky handle that was looked up.
data.displayNameThe name the account shows on its profile.
data.descriptionThe profile bio. It can contain line breaks written as \n.
data.followers / data.followingNumber of accounts that follow this account, and number of accounts it follows.
data.postsCountNumber of posts the account has made.
data.createdUtcAccount creation time as a Unix timestamp in seconds, in UTC.
data.avatarUrlURL of the profile picture image.

Notes

  • Use the handle without the @ sign, for example bsky.app or jay.bsky.team.
  • The data.id value is a did:plc: identifier that stays with the account.
  • To read what this account has posted, call Bluesky User Posts.
  • To fetch one specific post, call Bluesky Post.

Pricing

Billed at the actual cost of each call, about $0.0011 for the request above. Failed calls are not charged.

Посмотреть больше

Связанные APIs

Все APIs
APIЦенаОтвет
Bluesky ProfileЭтот API
Bluesky
От $0.0011 за запросJSON
BlueskyОт $0.0011 за запросJSON
BlueskyОт $0.0011 за запросJSON

Вопросы

FAQ

Как использовать API Bluesky Profile?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/bluesky/profile, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API Bluesky Profile?

От $0.0011 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API Bluesky Profile?

Обязательные: handle (string). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API Bluesky Profile?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика Bluesky или API key?

Нет. Bluesky Profile работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Bluesky.