POST /v1/data/bluesky/profile/run
Pricing: $0.0025 per profile ($2.50 per 1,000).
Request
Send the inputs underparams. Only the keys below are accepted; any other key returns 422 invalid_params.
Example
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"
]
}
}'
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
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 indata 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.{
"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
}
]
}