search: Giphy search

Description Usage Arguments Details Author(s) Examples

Description

Search all Giphy GIFs for a word or phrase. Punctuation will be stripped and ignored.

Usage

1
2
search(q, limit = 25, offset = 0, rating = NULL, lang = NULL,
  sticker = FALSE, api_key = "dc6zaTOxFJmzC")

Arguments

q

Search query term or phrase

limit

- The number of results to return, up to 100. The default is limit=25.

offset

- An offset, to manage limited returns. The default is offset=0, for subsequent searches, can increment offset by the size of limit

rating

- A rating for age appropriate gifs. Options include "y", "g", "pg", "pg-13" and "r".

lang

- Regional content; see the allowed 2-letter ISO 639-1 country codes listed in the Details.

sticker

Should a GIF be returned or an animated sticker (with transparent background)? Default to FALSE.

api_key

- Giphy provides a default api_key value for public beta testing: "dc6zaTOxFJmzC". This is the default value.

Details

Search for a specific, or particular gif using the giphy API. May return a large number of gifs, so it is possible to move through multiple searches using limit and offset. Be aware that failure to use the rating tag may result in gifs that are not safe for work use. The default API key used here is for testing purposes only. More information on the use of the giphy API is available at https://github.com/Giphy/GiphyAPI

Author(s)

Simon J. Goring simon.j.goring@gmail.com

Examples

1
2
3
4
5
gif <- search('Simon Goring', rating = 'g')
plot(gif)

sticker <- search('Simon Goring', rating = 'g', sticker = TRUE)
plot(sticker)

SimonGoring/giphyR documentation built on May 9, 2019, 1:06 a.m.