> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Bluesky Profile API

> Bluesky profiles with handle, display name, bio and follower and following counts. Pass the handles to look up.

`POST /v1/data/bluesky/profile/run`

**Pricing:** $0.0025 per profile ($2.50 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**handles** `string[]` *required*

One or more handles. One request reads them all.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/bluesky/profile/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "handles": [
      "bsky.app",
      "nytimes.com",
      "theonion.com"
    ]
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/bluesky/profile/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "handles": [
        "bsky.app",
        "nytimes.com",
        "theonion.com"
    ]
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/bluesky/profile/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "handles": [
    "bsky.app",
    "nytimes.com",
    "theonion.com"
  ]
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one profile, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `profileUrl` | Profile URL | url |
| `blueskyId` | Bluesky ID | text |
| `handle` | Handle | text |
| `displayName` | Display Name | text |
| `bio` | Bio | text |
| `followers` | Followers | number |
| `following` | Following | number |
| `posts` | Posts | number |
| `verified` | Verified | boolean |
| `trustedVerifier` | Trusted Verifier | boolean |
| `labeler` | Labeler | boolean |
| `accountCreated` | Account Created | text |
| `bioLinks` | Bio Links | array |
| `bioEmails` | Bio Emails | array |
| `lists` | Lists | number |
| `feeds` | Feeds | number |
| `starterPacks` | Starter Packs | number |
| `dmsAllowedFrom` | Dms Allowed From | text |
| `pinnedPostUrl` | Pinned Post URL | url |
| `profilePicture` | Profile Picture | url |
| `coverImage` | Cover Image | url |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "bluesky/profile",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "bioEmails": [
        "support@bsky.app"
      ],
      "starterPacks": 23,
      "bioLinks": [],
      "followers": 35548514,
      "accountCreated": "2023-04-12T04:53:57.057Z",
      "bio": "official Bluesky account (check username👆)\n\nBugs, feature requests, feedback: support@bsky.app",
      "profileUrl": "https://bsky.app/profile/bsky.app",
      "profilePicture": "https://cdn.bsky.app/img/avatar/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreihwihm6kpd6zuwhhlro75p5qks5qtrcu55jp3gddbfjsieiv7wuka",
      "pinnedPostUrl": "https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l",
      "trustedVerifier": true,
      "following": 40,
      "dmsAllowedFrom": "none",
      "labeler": false,
      "feeds": 7,
      "coverImage": "https://cdn.bsky.app/img/banner/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreichzyovokfzmymz36p5jibbjrhsur6n7hjnzxrpbt5jaydp2szvna",
      "lists": 26,
      "verified": false,
      "displayName": "Bluesky",
      "blueskyId": "did:plc:z72i7hdynmk6r22z27h6tvur",
      "handle": "bsky.app",
      "posts": 917
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.