There is no specific way to specify that I need only photos or videos but you can filter the results based on filter:links
or filter:images
or filter:videos
in your query along with include_entities=true
.
For Example: To get the tweets that contain links since 2012-01-31
, you query should have include_entities
parameter as well as filter:links
as shown as follows:
https://search.twitter.com/search.json?q=from%3Agoogle%20since%3A2012-01-31%20filter%3Alinks&include_entities=true"
As your need is to filter your tweets based on images/photos, I think you should use filter:images
.
An example of your case would look like:
https://search.twitter.com/search.json?q=from%3Agoogle%20since%3A2012-01-31%20filter%3Aimages&include_entities=true"
Hope this helps.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…