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

Check if user A follows user B #1204

Open
muhitrhn opened this issue Oct 4, 2024 · 1 comment
Open

Check if user A follows user B #1204

muhitrhn opened this issue Oct 4, 2024 · 1 comment

Comments

@muhitrhn
Copy link

muhitrhn commented Oct 4, 2024

Is there any graphql endpoint to find out if a user if following another user?

@cmj
Copy link

cmj commented Oct 4, 2024

I don't see a graphql endpoint, but there still is v1 friendships/show:

https://developer.x.com/en/docs/x-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-friendships-show

curl -s -H "Authorization: Bearer AAAAAAAAAAAAAAAAAAAAAFQODgEAAAAAVHTp76lzh3rFzcHbmHVvQxYYpTw%3DckAlMINMjmCwxUcaXbAN4XqJVdgMJaHqNOFgPMK0zN1qLqLQCF" \
  'https://api.x.com/1.1/friendships/show.json?source_screen_name=nasa&target_screen_name=nasahubble' | jq

I'm not entirely sure how one would incorporate that into Nitter, however.

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