searchSuggestions method
Search suggestions helps a user narrow their search or discover related search terms to find a more precise GIF. Results are returned in order of what is most likely to drive a share for a given term, based on historic user search and share behavior.
var api = Tenor(apiKey: 'Tenor Api');
List<String> suggestions = await api.searchSuggestions('un', limit: 5);
Implementation
Future<List<String>> searchSuggestions(
String search, {
int limit = 20,
}) async {
var url =
'https://g.tenor.com/v1/search_suggestions?key=$apiKey&locale=$language&q=$search';
return await _requestSearchSuggestions(
url,
limit: limit,
);
}