Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Bluesky Profile

Docs da 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.

Preço
A partir de $0.0011USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 0 opcionais

Playground

Entrada
Bluesky handle, e.g. "bsky.app" or "jay.bsky.team".
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da 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.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
BlueskyA partir de $0.0011 por chamadaJSON
BlueskyA partir de $0.0011 por chamadaJSON
BlueskyA partir de $0.0011 por chamadaJSON

Perguntas

FAQ

Como eu uso a API Bluesky Profile?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/bluesky/profile com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Bluesky Profile?

A partir de $0.0011 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API Bluesky Profile aceita?

Obrigatórios: handle (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Bluesky Profile retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor Bluesky ou de uma chave de API?

Não. Bluesky Profile funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Bluesky separadamente.