Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot retrieve all accounts in a starterpack #3387

Closed
nwlandry opened this issue Jan 17, 2025 · 2 comments
Closed

Cannot retrieve all accounts in a starterpack #3387

nwlandry opened this issue Jan 17, 2025 · 2 comments

Comments

@nwlandry
Copy link

I figured out how to get all of the starter packs associated with a did with the getActorStarterPacks method. Using the URLs associated with each starter pack, I then used the getStarterPack method to attempt retrieving the list of accounts added to the starter pack. The problem is that the only method able to access this list is getItemsSample, which doesn't accept a cursor argument and is limited to outputting 12 accounts. Can this functionality be improved or am I missing an obvious workaround here? I suppose that the simplest solution would be to make the item limit 150 to coincide with the max starter pack size.

@orthanc
Copy link

orthanc commented Jan 18, 2025

I believe the getStarterPack returns a reference to a list which is the membership of the starterpack.

You can retrieve the contents of that list (which is the accounts in the starterpack) using https://docs.bsky.app/docs/api/app-bsky-graph-get-list

@nwlandry
Copy link
Author

@orthanc This worked! Thank you for helping me out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants