The Bluesky API shows an endpoint where you can batch up to 25 profiles in a single request: Bluesky Fetching Multiple Profiles
The Individual call works fine like this : /xrpc/app.bsky.actor.getProfile?actor=did:plc:iohbateayghxus42enyazewi
but the multiple endpoint seems to want something else, as this does not work /xrpc/app.bsky.actor.getProfiles?actors=did:plc:iohbateayghxus42enyazewi,did:plc:6ld2arsgbla45mkwluyih4ab
{ "error": "InvalidRequest", "message": "Error: actors/0 must be a valid did or a handle" }
The Bluesky API shows an endpoint where you can batch up to 25 profiles in a single request: Bluesky Fetching Multiple Profiles
The Individual call works fine like this : https://public.api.bsky.app/xrpc/app.bsky.actor.getProfile?actor=did:plc:iohbateayghxus42enyazewi
but the multiple endpoint seems to want something else, as this does not work https://public.api.bsky.app/xrpc/app.bsky.actor.getProfiles?actors=did:plc:iohbateayghxus42enyazewi,did:plc:6ld2arsgbla45mkwluyih4ab
Share Improve this question edited Mar 7 at 11:47 VLAZ 29.2k9 gold badges63 silver badges84 bronze badges asked Mar 6 at 15:34 GandalfGandalf 9,8558 gold badges58 silver badges91 bronze badges{ "error": "InvalidRequest", "message": "Error: actors/0 must be a valid did or a handle" }
1 Answer
Reset to default 0Well figured it out, sort of odd but the correct format is to use &
between each actor as such :
https://public.api.bsky.app/xrpc/app.bsky.actor.getProfiles?actors=did:plc:iohbateayghxus42enyazewi&actors=did:plc:6ld2arsgbla45mkwluyih4ab
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744965494a4603654.html
评论列表(0条)