index.js
function (options, callback) {
    if (!options) {
      return _handleErr('Search phrase cannot be empty.', callback);
    }

    return this._request({
      api: options.api || 'gifs',
      endpoint: 'search',
      query: typeof options === 'string' ? {
        q: options
      } : options
    }, callback);
  }
function (options, callback) {
    if (!options) {
      return _handleErr('Search phrase cannot be empty.', callback);
    }

    return this._request({
      api: options.api || 'gifs',
      endpoint: 'search',
      query: typeof options === 'string' ? {
        q: options
      } : options
    }, callback);
  }
function ( options , callback ) { if ( ! options ) { return _handleErr ( 'Search phrase cannot be empty.' , callback ) ; } return this . _request ( { api : options . api || 'gifs' , endpoint : 'search' , query : typeof options === 'string' ? { q : options } : options } , callback ) ; }
Search all Giphy gifs by word or phrase

@param options Giphy API search options
options.q {String} - search query term or phrase
options.limit {Number} - (optional) number of results to return, maximum 100. Default 25.
options.offset {Number} - (optional) results offset, defaults to 0.
options.rating {String}- limit results to those rated (y,g, pg, pg-13 or r).
options.fmt {String} - (optional) return results in html or json format (useful for viewing responses as GIFs to debug/test)
@param callback
Search all Giphy gifs by word or phrase