Check who's blocking you with twitter API - twitter

is there a way to check who is blocking you with twitter api?

If you are blocked by a user that you are following, your user_id will no longer appear in the list of follower ids for that user, which you can retrieve via GET followers/ids.

You can find out who you are blocking using these calls, but you can't find out who is blocking you.

Related

Twitter API How to know if a user is following another user?

I made a follow/following button so I need to know if the user A is already following the user B.
I know I can get all his/her friends with GET friends/ids but I'd like to know if there is a shorter way (without looping on the whole list, with cursors, etc.).
(Additional info: I'm using the iOS SDK)
Twitter API has a dedicated endpoint for this situation: friendships/show
The answer will give you all the information about the relationship between these two users, you just need to specify their screenname or user_id.

Not getting track list of some users in soundcloud api

By using below api for getting track list of soundcloud user
Not working example:
https://api.soundcloud.com/users/tycho/tracks.json?client_id=xxxx...
Working example:
https://api.soundcloud.com/users/chk-chk-chk/tracks.json?client_id=xxxx...
This api provides result for some user only
I am not able to get track of all user
Is there anything else that i forgot to do
Please help
Soundcloud API is blocking some requests from some countries for some users.
Users can choose not allowing api calls on their tracks.

Search any twitter users feed

Its been a while since i last used the twitter api, Using Javscript, I would like to be able to search any random twitter users feed.
On the page I would enter there Twitter username and the app would go and find the users data returned as JSON.
I'm not after the code, I would just like to know what is the best API to use for this?
Do I just need the REST API, I assume this:
https://dev.twitter.com/rest/public/search
Also, authentication do I need to authenticate my app? how should I do that if its needed?
thanks.
If you want all of my tweets (#edent) you will need to use the User Timeline API
For example:
https://dev.twitter.com/rest/reference/get/statuses/user_timeline?screen_name=edent
Yes, you will need your app to be authenticated. You will need to use OAuth

Can I get a list of users who have authorized my Twitter app?

I'm trying to get a list of users who have authorized my Twitter application. I've tried checking the API docs, but there seems to be no twitter application specific APIs that I can find. I'm trying to avoid having to store these twitter user names myself, since the user list would be the exact same as Twitter's authorized user list and even handle deauthorized users for me.
No, there's no way to obtain this information from the Twitter API. If you're interested in keeping track of the users who are using your application, you'll need to track it yourself.

find tweets mentioning any arbitrary twitter user

For statuses/mentions, I need to authenticate as a user. I want to see the user's mentions without asking him/her to authenticate. If the tweets are public, what are the mentions not public ?
I'm writing to do this
Check the Twitter search API
https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets.html
To find all user mentions: just use #username as search term.
I would like to add that Twitter's Search API returns only tweets from past 7 days. So if you want to retrieve ALL tweets mentioning an arbitrary user, you can't.If anyone finds a way to do this, please mention.
There is no way to get a user's mentions using the statuses/mentions endpoint because this is possible using the search api.
http://dev.twitter.com/doc/get/search

Resources