admin管理员组文章数量:1406060
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
本文标签: httpBluesky APIbulk retrieve Profile InformtionStack Overflow
版权声明:本文标题:http - Bluesky API - bulk retrieve Profile Informtion - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744965493a2634922.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论