> Documentation index: https://docs.scrapier.io/llms.txt
> Auth: header `X-API-Key: <key>` · Base: https://api.scrapier.io/api/v2 · Synchronous; paginate with `cursor` ← `data.next_cursor`.

# Bluesky Profile Info

Structured Bluesky data: send `handles`. Single lookup, 1 credit per successful call.

`GET|POST https://api.scrapier.io/api/v2/bluesky-profile-info/` · 1 credit per successful call · Single lookup

## Overview

Call `GET /api/v2/bluesky-profile-info/` with `handles`. The results are in `data.profile`. 8 optional parameters refine the call (see Parameters).

## Request

```bash
curl -G "https://api.scrapier.io/api/v2/bluesky-profile-info/" \
  -H "X-API-Key: YOUR_API_KEY" \
  --data-urlencode "handles=bsky.app" \
  --max-time 210
```

```python
import requests

resp = requests.get(
    "https://api.scrapier.io/api/v2/bluesky-profile-info/",
    headers={"X-API-Key": "YOUR_API_KEY"},
    params={"handles": "bsky.app"},
    timeout=210,
)
body = resp.json()
if not resp.ok:
    raise RuntimeError(body.get("error") or body.get("detail"))

print(body["data"]["profile"])
```

POST with a JSON body works too (same parameters; the body is merged over the query string).

## Parameters

| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| `X-API-Key` (header) | string | yes | — | Your API key. |
| `handles` | string | yes | e.g. `bsky.app` | The Bluesky account: a handle ("espn.com", "@espn.com"), a profile URL (https://bsky.app/profile/espn.com, any host with the /profile/<actor> path), a DID ("did:plc:..", "did:web:..") or an at:// URI -> ONE profile record (did, handle, display_name, bio, avatar_url, banner, verified, followers, following, posts_count, likes_count, joined_at, labels, associated / verification blocks) + computed{engagement_rate, language, content_category, estimated_reach}. Single lookup: next_cursor is always null. An unknown / deactivated / taken-down account answers a status record (not_found \| account_deactivated \| account_takedown \| invalid_input). |
| `cursor` | string | no | — | Pagination cursor returned in the previous response's `next_cursor`. Pass it back unchanged to fetch the next page. When `next_cursor` is null, you have reached the last page. |
| `compute_metrics` | boolean | no | `true` | true (default) = sample the latest `feed_sample` original posts for computed.language / engagement_rate / content_category and resolve the amplifiers of the newest `reach_sample` posts for computed.estimated_reach. false = profile only (1 request; engagement_rate / estimated_reach null, language and category from the bio). Locked in cursor. |
| `feed_sample` | integer | no | `30` | Original posts sampled for the computed block (1..100, default 30). Locked in cursor. |
| `reach_sample` | integer | no | `5` | Newest sampled posts whose reposters / quoters are resolved for estimated_reach. Capped at 5 so the call fits the timeout; 0 = skip. Locked in cursor. |
| `amplifier_pages` | integer | no | `1` | Pages of 100 reposters / quoters read per sampled post before extrapolating. Capped at 1. Locked in cursor. |
| `count_likes` | boolean | no | `true` | true (default) = walk the post history (100 posts a call) and sum likeCount -> likes_count (likes received). false = likes_count null. Locked in cursor. |
| `likes_max_posts` | integer | no | `1000` | Cap on the likes walk. Capped at 1000 (= 10 calls): past it likes_count is a lower bound (stats.likes_count_complete false + warning). Locked in cursor. |
| `page_fallback` | boolean | no | `true` | true (default) = bsky.app og-meta partial profile when the AppView is unreachable; false = status fetch_failed. Locked in cursor. |
| `use_proxy` | boolean | no | `true` | Route the request through Scrapier's residential proxy pool. Default: `true`. Leave as is unless support tells you otherwise. |
| `raw_data` | boolean | no | `false` | When true, the response carries the full raw upstream payload(s) the scraper received (GraphQL / JSON API bodies, HTML, embedded JSON-LD -- exactly as the platform returned them) under `raw_responses`, in place of the formatted items. When false (default) you get the formatted output. Pagination (`cursor` / `next_cursor`) works the same in both modes. |

## Response

HTTP 200. Results are in `data.profile`. Sample from the live catalog, arrays trimmed to 3 items.

```json
{
  "success": true,
  "data": {
    "handles": "espn.com",
    "profile": {
      "input_handle": "espn.com",
      "handle": "espn.com",
      "did": "did:plc:x7d6j54pm22ufehkes6jo4jf",
      "status": "ok",
      "note": null,
      "http_status": 200,
      "id": "did:plc:x7d6j54pm22ufehkes6jo4jf",
      "username": "espn.com",
      "display_name": "ESPN",
      "avatar_url": "https://cdn.bsky.app/img/avatar/plain/did:plc:x7d6j54pm22ufehkes6jo4jf/bafkreie4oxawqqsfzvk47ysr3unsnmviedzpylxmwxnpa534to2bzas4ie",
      "bio": "Serving sports fans. Anytime. Anywhere.",
      "verified": true,
      "followers": 296582,
      "following": 32,
      "posts_count": 872,
      "likes_count": 220484,
      "url": "https://bsky.app/profile/espn.com",
      "joined_at": "2024-11-25",
      "associated": {
        "lists": 0,
        "feedgens": 0,
        "starter_packs": 0,
        "labeler": false,
        "activity_subscription": {
          "allow_subscriptions": "followers"
        }
      },
      "labels": [],
      "verification": {
        "verifications": [
          {
            "issuer": "did:plc:z72i7hdynmk6r22z27h6tvur",
            "issuer_display_name": "Bluesky",
            "issuer_handle": "bsky.app",
            "uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.graph.verification/3lndppjqgb72f",
            "is_valid": true,
            "created_at": "2025-04-21T10:44:20.398Z"
          }
        ],
        "verified_status": "valid",
        "trusted_verifier_status": "none"
      },
      "indexed_at": "2024-12-19T20:49:48.843Z",
      "computed": {
        "engagement_rate": 0.0512,
        "language": "en",
        "content_category": "sports",
        "estimated_reach": 438639
      },
      "partial": false,
      "warnings": [],
      "stats": {
        "requests": 28,
        "retries": 0,
        "api_calls": 28,
        "page_loads": 0,
        "proxy": true,
        "source": "api",
        "posts_sampled": 30,
        "feed_sample": 30,
        "reach_posts_sampled": 5,
        "amplifiers_resolved": 174,
        "likes_posts_scanned": 872,
        "likes_count_complete": true,
        "language_source": "post_text+langs",
        "category_keywords": [
          "espn",
          "sports"
        ]
      },
      "duration_ms": 17756,
      "scraped_at": "2026-09-22T08:31:44.102Z"
    },
    "next_cursor": null
  }
}
```

## Response fields

| Field | Type | Example | Description |
|---|---|---|---|
| `handles` | string | `espn.com` |  |
| `profile` | object | `{…}` | The results. |
| `next_cursor` | null | `null` | Pass back as `cursor` for the next page. `null` on the last page. |
| `profile.input_handle` | string | `espn.com` |  |
| `profile.handle` | string | `espn.com` |  |
| `profile.did` | string | `did:plc:x7d6j54pm22ufehkes6jo4jf` |  |
| `profile.status` | string | `ok` |  |
| `profile.note` | null | `null` |  |
| `profile.http_status` | integer | `200` |  |
| `profile.id` | string | `did:plc:x7d6j54pm22ufehkes6jo4jf` |  |
| `profile.username` | string | `espn.com` |  |
| `profile.display_name` | string | `ESPN` |  |
| `profile.avatar_url` | string | `https://cdn.bsky.app/img/avatar/plain/did:plc…` |  |
| `profile.bio` | string | `Serving sports fans. Anytime. Anywhere.` |  |
| `profile.verified` | boolean | `true` |  |
| `profile.followers` | integer | `296582` |  |
| `profile.following` | integer | `32` |  |
| `profile.posts_count` | integer | `872` |  |
| `profile.likes_count` | integer | `220484` |  |
| `profile.url` | string | `https://bsky.app/profile/espn.com` |  |
| `profile.joined_at` | string | `2024-11-25` |  |
| `profile.associated` | object | `{…}` |  |
| `profile.labels` | array | `[]` |  |
| `profile.verification` | object | `{…}` |  |
| `profile.indexed_at` | string | `2024-12-19T20:49:48.843Z` |  |
| `profile.computed` | object | `{…}` |  |
| `profile.partial` | boolean | `false` |  |
| `profile.warnings` | array | `[]` |  |
| `profile.stats` | object | `{…}` |  |
| `profile.duration_ms` | integer | `17756` |  |
| `profile.scraped_at` | string | `2026-09-22T08:31:44.102Z` |  |

## Pagination

Single lookup: everything comes back in one call and `next_cursor` is always `null`.

## Errors

Failed calls are free. Branch on HTTP status; the message is in `error` (or `detail`). See https://docs.scrapier.io/errors.md

- **400** Bad input. The exact message varies by endpoint. `{"success":false,"error":"…"}`
- **402** Balance below the endpoint's price. `{"error":"Insufficient credits. Buy more to scrape more.","balance":1,"required":2}`
- **403** Invalid or unknown API key. `{"detail":"Authentication service unavailable or invalid API key."}`
- **429** Throttled — wait for Retry-After. `{"detail":"Request was throttled. Expected available in N seconds."}`
- **404** unknown slug · **503** busy (retry after `Retry-After`) · **5xx** upstream failure or timeout (retry with backoff).

## Notes

- Nothing special: send the inputs, read the result.

## Related

- [Bluesky Single Posts](https://docs.scrapier.io/api-reference/bluesky/bluesky-single-posts.md): Structured Bluesky data: send `urls`. Cursor-paginated, 1 credit per successful call.
- [Bluesky User Posts](https://docs.scrapier.io/api-reference/bluesky/bluesky-user-posts.md): Structured Bluesky data: send `handles`. Cursor-paginated, 1 credit per successful call.
