Skip to content

API to get members from List #254

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cadenshokat
Copy link

@cadenshokat cadenshokat commented May 13, 2025

2 new functions api.list_members_raw and api.list_members let users retrieve all members of a public Twitter List via the GraphQL API.

"Lists" are curated groups of subject matter "experts".

  • Ex lists: “Data Scientists,” “Tech Journalists,” “Solana Devs”
  • Use Cases: Direct access to curated groups without scraping followers/following feeds.

Additions

OP_ListMembers = "CDYIXKGINDLWntNdeXVUgQ"

Raw Function
async def list_members_raw(self, list_id: int, limit: int = -1, kv: KV = None):

Parsed
async def list_members(self, list_id: int, limit: int = -1, kv: KV = None):

Also changes to cli.py and test_api.py for consistency.

Changes to:
api.py
cli.py
test_api.py
@cadenshokat cadenshokat requested a review from vladkens as a code owner May 13, 2025 04:19
@cadenshokat cadenshokat changed the title Functionality to get members from a "List". Add api to get members from List May 13, 2025
@cadenshokat cadenshokat changed the title Add api to get members from List API to get members from List May 13, 2025
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

Successfully merging this pull request may close these issues.

1 participant