Call it
curl https://api.peume.com/v1/call/bluesky-user-posts-by-username-text-engagement \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"handle": "espn.com",
"user_id": "did:plc:x7d6j54pm22ufehkes6jo4jf"
}
}'const res = await fetch("https://api.peume.com/v1/call/bluesky-user-posts-by-username-text-engagement", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"handle": "espn.com",
"user_id": "did:plc:x7d6j54pm22ufehkes6jo4jf"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/bluesky-user-posts-by-username-text-engagement",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"handle": "espn.com",
"user_id": "did:plc:x7d6j54pm22ufehkes6jo4jf"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: bluesky-user-posts-by-username-text-engagement.
Parameters
handlestringBluesky handle
Example: espn.com
user_idstringBluesky 'did'. (For some reason Bluesky calls their user ids, 'did' for whatever reason)
Example: did:plc:x7d6j54pm22ufehkes6jo4jf
