Image Search

Feb 25, 2015 at 10:22 PM
Is there anyway to setup for tweets with images only... there is a search filter seen here

the TweetSearchFilter currently does not have an option
Feb 26, 2015 at 10:30 AM

This feature is not implemented in Tweetinvi. I have created a Work Item, make sure you subscribe to it in order to get updated when it is released.

You might want to use the TwitterAccessor to execute your query until the release of Here is how to use it.
var tweetDTOs = TwitterAccessor.ExecuteGETQueryFromPath<IEnumerable<ITweetDTO>>(@"", "statuses");
var tweets = Tweet.GenerateTweetsFromDTO(tweetDTOs);
Feb 26, 2015 at 10:33 AM
Sorry I just did not think it through, you can use the following code:
var tweets = Search.SearchTweets("filter:images");
Marked as answer by linvi on 2/26/2015 at 2:33 AM
Feb 26, 2015 at 2:50 PM
Edited Feb 26, 2015 at 2:59 PM

But I also want to search for #EXHIBITORLIVE plus if you want the image URL to be return you have to include &include_entities=true

so would this work or do you do a URL encode so the & symbol not be processed
var tweets = Search.SearchTweets("#EXHIBITORLIVE%20filter:images&include_entities=true");
Feb 26, 2015 at 3:05 PM
I get an error Object reference not set to an instance of an object.
Feb 26, 2015 at 4:09 PM
try the following :
var tweets = Search.SearchTweets("#EXHIBITORLIVE filter:images");
Feb 26, 2015 at 4:14 PM
I did that it works, but the searched items does not have the URL for the images... I think the "&include_entities=true" change the search to include the images... So I have to do another pull for twitter get the images...
 var tweet = Tweet.GetTweet(AllTweets[Index].Id);
Also does this second pull GetTweet count towards my RateLimit?
Feb 26, 2015 at 5:51 PM
This is working for me :
var tweets = Search.SearchTweets("#obama filter:images");
foreach (var tweet in tweets)
    var imageURL = tweet.Entities.Medias[0].ExpandedURL;
Marked as answer by linvi on 2/26/2015 at 2:38 PM
Feb 26, 2015 at 5:52 PM
Though I will add the IncludeEntities parameter for the next release.
Feb 26, 2015 at 9:04 PM
thanks... It's working great now... Great API

You have any for Instagram or Vine?
Feb 26, 2015 at 10:38 PM
I am happy you like it. Please take some time to review it if you can (

You have any for Instagram or Vine?

Tweetinvi is already taking too much of my time, so no sorry. I might consider it in the future ;)

Mar 12, 2015 at 2:20 AM

I wanted to let you know that this feature has now been implemented in
Feel free to download the source code if you want to use it.

Marked as answer by linvi on 3/11/2015 at 6:20 PM