curl --request GET \
--url https://api.scraperize.com/v1/bluesky/profile \
--header 'x-api-key: <api-key>'import requests
url = "https://api.scraperize.com/v1/bluesky/profile"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.scraperize.com/v1/bluesky/profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.scraperize.com/v1/bluesky/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.scraperize.com/v1/bluesky/profile"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.scraperize.com/v1/bluesky/profile")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scraperize.com/v1/bluesky/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"profile": {
"did": "did:plc:x7d6j54pm22ufehkes6jo4jf",
"handle": "espn.com",
"displayName": "ESPN",
"url": "https://bsky.app/profile/espn.com",
"description": "Serving sports fans. Anytime. Anywhere.",
"pronouns": null,
"website": null,
"avatarUrl": "https://cdn.bsky.app/img/avatar/plain/did:plc:x7d6j54pm22ufehkes6jo4jf/bafkreie4oxawqqsfzvk47ysr3unsnmviedzpylxmwxnpa534to2bzas4ie",
"bannerUrl": null,
"followerCount": 302335,
"followingCount": 32,
"postCount": 872,
"listCount": 0,
"feedCount": 0,
"starterPackCount": 0,
"isLabeler": false,
"chatAllowIncoming": null,
"chatAllowGroupInvites": null,
"activitySubscriptionsAllowedFrom": "followers",
"isVerified": true,
"isTrustedVerifier": false,
"verification": {
"status": "valid",
"trustedVerifierStatus": "none",
"verifications": [
{
"issuerDid": "did:plc:z72i7hdynmk6r22z27h6tvur",
"issuerHandle": "bsky.app",
"issuerDisplayName": "Bluesky",
"uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.graph.verification/3lndppjqgb72f",
"isValid": true,
"createdAt": "2025-04-21T10:44:20.398Z"
}
]
},
"pinnedPost": null,
"status": null,
"joinedViaStarterPack": null,
"labels": [],
"createdAt": "2024-11-25T21:49:49.345Z",
"indexedAt": "2024-12-19T20:49:48.843Z"
},
"fetchedAt": "2026-10-17T19:15:41.345Z"
},
"meta": {
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"creditsCharged": 1,
"creditsRemaining": 4999,
"cached": false
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "API key required — pass it in the `x-api-key` header.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "INSUFFICIENT_CREDITS",
"message": "This request costs 1 credit, but your balance is 0. Top up to continue.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "The requested content was not found (it may not exist, be deleted, or be private).",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"details": [
{
"path": "url",
"message": "url is required"
}
]
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded — max 100 requests per 60s. Retry in ~30s.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "UPSTREAM_BLOCKED",
"message": "The source is temporarily unavailable. Please try again shortly.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}Profile
Fetches a public Bluesky profile by handle: DID, display name, bio, pronouns, website, avatar and banner, follower / following / post counts, how many lists, feeds and starter packs the account made, whether it is a labeler, its verification (and who verified it), DM settings, the pinned post, a live status, the starter pack it joined through, labels, and when the account was created.
curl --request GET \
--url https://api.scraperize.com/v1/bluesky/profile \
--header 'x-api-key: <api-key>'import requests
url = "https://api.scraperize.com/v1/bluesky/profile"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.scraperize.com/v1/bluesky/profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.scraperize.com/v1/bluesky/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.scraperize.com/v1/bluesky/profile"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.scraperize.com/v1/bluesky/profile")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scraperize.com/v1/bluesky/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"profile": {
"did": "did:plc:x7d6j54pm22ufehkes6jo4jf",
"handle": "espn.com",
"displayName": "ESPN",
"url": "https://bsky.app/profile/espn.com",
"description": "Serving sports fans. Anytime. Anywhere.",
"pronouns": null,
"website": null,
"avatarUrl": "https://cdn.bsky.app/img/avatar/plain/did:plc:x7d6j54pm22ufehkes6jo4jf/bafkreie4oxawqqsfzvk47ysr3unsnmviedzpylxmwxnpa534to2bzas4ie",
"bannerUrl": null,
"followerCount": 302335,
"followingCount": 32,
"postCount": 872,
"listCount": 0,
"feedCount": 0,
"starterPackCount": 0,
"isLabeler": false,
"chatAllowIncoming": null,
"chatAllowGroupInvites": null,
"activitySubscriptionsAllowedFrom": "followers",
"isVerified": true,
"isTrustedVerifier": false,
"verification": {
"status": "valid",
"trustedVerifierStatus": "none",
"verifications": [
{
"issuerDid": "did:plc:z72i7hdynmk6r22z27h6tvur",
"issuerHandle": "bsky.app",
"issuerDisplayName": "Bluesky",
"uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.graph.verification/3lndppjqgb72f",
"isValid": true,
"createdAt": "2025-04-21T10:44:20.398Z"
}
]
},
"pinnedPost": null,
"status": null,
"joinedViaStarterPack": null,
"labels": [],
"createdAt": "2024-11-25T21:49:49.345Z",
"indexedAt": "2024-12-19T20:49:48.843Z"
},
"fetchedAt": "2026-10-17T19:15:41.345Z"
},
"meta": {
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"creditsCharged": 1,
"creditsRemaining": 4999,
"cached": false
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "API key required — pass it in the `x-api-key` header.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "INSUFFICIENT_CREDITS",
"message": "This request costs 1 credit, but your balance is 0. Top up to continue.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "The requested content was not found (it may not exist, be deleted, or be private).",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"details": [
{
"path": "url",
"message": "url is required"
}
]
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded — max 100 requests per 60s. Retry in ~30s.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "UPSTREAM_BLOCKED",
"message": "The source is temporarily unavailable. Please try again shortly.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}cache_max_age) are free.Copy for AI assistant
Copy for AI assistant
I want to make an API call to /v1/bluesky/profile. Here are the details:
Endpoint: GET https://api.scraperize.com/v1/bluesky/profile
Description: Fetches a public Bluesky profile by handle: DID, display name, bio, pronouns, website, avatar and banner, follower / following / post counts, how many lists, feeds and starter packs the account made, whether it is a labeler, its verification (and who verified it), DM settings, the pinned post, a live status, the starter pack it joined through, labels, and when the account was created.
Required Headers:
- x-api-key: Your API key
Parameters:
- handle (string) [required]: Bluesky handle, e.g. `espn.com` or `name.bsky.social`. A leading `@`, a `bsky.app/profile/...` URL or the account DID (`did:plc:...`) also work.
- cache_max_age (select): Optional. Return a cached result if one this age or newer exists — served for **0 credits** with `meta.cached=true` and `meta.cachedAt`. Otherwise a fresh scrape runs (**1 credit**) and refreshes the cache. Omit to always scrape fresh.
Example Response:
{
"data": {
"profile": {
"did": "did:plc:x7d6j54pm22ufehkes6jo4jf",
"handle": "espn.com",
"displayName": "ESPN",
"url": "https://bsky.app/profile/espn.com",
"description": "Serving sports fans. Anytime. Anywhere.",
"pronouns": null,
"website": null,
"avatarUrl": "https://cdn.bsky.app/img/avatar/plain/did:plc:x7d6j54pm22ufehkes6jo4jf/bafkreie4oxawqqsfzvk47ysr3unsnmviedzpylxmwxnpa534to2bzas4ie",
"bannerUrl": null,
"followerCount": 302335,
"followingCount": 32,
"postCount": 872,
"listCount": 0,
"feedCount": 0,
"starterPackCount": 0,
"isLabeler": false,
"chatAllowIncoming": null,
"chatAllowGroupInvites": null,
"activitySubscriptionsAllowedFrom": "followers",
"isVerified": true,
"isTrustedVerifier": false,
"verification": {
"status": "valid",
"trustedVerifierStatus": "none",
"verifications": [
{
"issuerDid": "did:plc:z72i7hdynmk6r22z27h6tvur",
"issuerHandle": "bsky.app",
"issuerDisplayName": "Bluesky",
"uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.graph.verification/3lndppjqgb72f",
"isValid": true,
"createdAt": "2025-04-21T10:44:20.398Z"
}
]
},
"pinnedPost": null,
"status": null,
"joinedViaStarterPack": null,
"labels": [],
"createdAt": "2024-11-25T21:49:49.345Z",
"indexedAt": "2024-12-19T20:49:48.843Z"
},
"fetchedAt": "2026-10-17T19:15:41.345Z"
},
"meta": {
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"creditsCharged": 1,
"creditsRemaining": 4999,
"cached": false
}
}
Please help me write code in my preferred programming language to make this API call and handle the response appropriately. Include error handling and best practices.
Authorizations
Your API key. Send it in the x-api-key header (or Authorization: Bearer <key>). Create and manage keys from your dashboard.
Query Parameters
Bluesky handle, e.g. espn.com or name.bsky.social. A leading @, a bsky.app/profile/... URL or the account DID (did:plc:...) also work.
Optional. Return a cached result if one this age or newer exists — served for 0 credits with meta.cached=true and meta.cachedAt. Otherwise a fresh scrape runs (1 credit) and refreshes the cache. Omit to always scrape fresh.
1d, 3d, 7d, 14d, 30d