100 free credits. No credit card required. Get a key

Bluesky handle to DID API

The permanent DID behind a Bluesky handle.

GET /v1/bluesky/handles/{handle}1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/bluesky/handles/espn.com",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"did": "did:plc:x7d6j54pm22ufehkes6jo4jf"
}

Parameters

NameTypeDescription
handlepath · requiredstringHandle (espn.com, @jay.bsky.social), DID (did:plc:…) or a bsky.app profile URL. Example: espn.com.
Response fields

200 with a BlueskyResolvedHandle, in the AT Protocol’s own app.bsky lexicon JSON.

FieldTypeDescription
didstringThe account’s DID: its permanent id.
Status codes
StatusMeaning
200The DID.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The account, post, feed, list or starter pack does not exist, was deleted or taken down.
429Too many requests. Wait for Retry-After seconds.
503Bluesky is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Bluesky is a trademark of Bluesky Social PBC. We are not affiliated with or endorsed by Bluesky.