This is not easy to accomplish. Here's the brute force API method for finding Quote tweets.
Take your identifier, it will be something like 750176081987014657 .
GET search / tweets
Use the Twitter API and find the tweet.
https://dev.twitter.com/rest/reference/get/search/tweets
A GET request will look something like this:
https://api.twitter.com/1.1/search/tweets.json?q=750176081987014657&count=100
The q "query" argument is the id of the tweet. I set the result argument to count max (100).
Login
Of course, with the Twitter API, there is a whole bunch of complicated authorization header work that you have to do to complete the GET request. This is documented elsewhere and is beyond the scope of this answer.
Results and Conclusions
When you have the JSON results of this GET request, focus on the statuses collection. For each tweet in the collection (otherwise called âstatusâ), check to see if it contains the quoted_status_id field. If so, and the field value matches your tweet id, the tweet is the tweet tweet. If it is not, it is simply retweet without comment. You will also have to deal with iteration through pagination of the results if there are more than 100. This is done by looking for the search_metadata.next_results field and extracting the next GET request line from it, which will be provided to you.
source share