Skip to main content

A wrapper for the giphy public API

Project description

ezgiphy 0.0.4

A wrapper for the Giphy public API.

A package wrapper for the Giphy public API that allows you to work with all Giphy API endpoints.

Installing using pip

pip install ezgiphy

Examples (Giphy public api endpoints)

from ezgiphy import GiphyPublicAPI

giphy = GiphyPublicAPI('<giphy-api-key>')

Phrase search

Search all Giphy GIFs for a word or phrase. Supported parameters:

  • q : Search query term or phrase (required).
  • limit : The maximum number of records to return.
  • offset: An optional results offset.
  • rating: Filters results by rating (g/pg/pg-13/r)
  • lang: specify default country for regional content.
giphy.search(q='something',limit=25,rating='g')

Translate search

Experimental search endpoint for gif dialects. Supported parameters:

  • s : Search query term or phrase (required).
giphy.translate(s='something')

Trending gifs

Get all trending gifs. Supported parameters:

  • limit: The maximum number of records to return.
  • rating: Filters results by rating (g/pg/pg-13/r),
giphy.trending(limit=25,rating='g')

Random gifs

Random gif(s) filtered by tag. Supported parameters:

  • tag: The maximum number of records to return.
  • rating: Filters results by rating (g/pg/pg-13/r).
giphy.random(tag='something',rating='g')

Giphy Id search

Search Giphy gifs for a single Id. Supported parameters:

  • id: Filter result by specific gif id (required).
giphy.get_by_id(id='some id')

Search by ids

Search all Giphy gifs for an list of Id's. Supported parameters:

  • ids: List of specific ids (required).
giphy.get_by_ids(ids=['id one','id two','id three'])

Examples (Giphy sticker api endpoints)

from ezgiphy import GiphyStickerAPI

sticker =  GiphyStickerAPI('<giphy-api-key>')

Phrase search

Search all Giphy Stickers for a word or phrase. Supported parameters:

  • q : Search query term or phrase (required).
  • limit : The maximum number of records to return.
  • offset: An optional results offset.
  • rating: Filters results by rating (g/pg/pg-13/r)
  • lang: specify default country for regional content.
sticker.search(q='something',limit=25,rating='g')

Translate search

Experimental search endpoint for sticker dialects. Supported parameters:

  • s : Search query term or phrase (required).
sticker.translate(s='something')

Trending gifs

Get all trending stickers. Supported parameters:

  • limit: The maximum number of records to return.
  • rating: Filters results by rating (g/pg/pg-13/r),
sticker.trending(limit=25,rating='g')

Random gifs

Random sticker(s) filtered by tag. Supported parameters:

  • tag: The maximum number of records to return.
  • rating: Filters results by rating (g/pg/pg-13/r).
sticker.random(tag='something',rating='g')

Giphy Id search

Search Giphy stickers for a single Id. Supported parameters:

  • id: Filter result by specific gif id (required).
sticker.get_by_id(id='some id')

Search by ids

Search all Giphy sticker for an list of Id's. Supported parameters:

  • ids: List of specific ids (required).
sticker.get_by_ids(ids=['id one','id two','id three'])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ezgiphy-0.0.4.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ezgiphy-0.0.4-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file ezgiphy-0.0.4.tar.gz.

File metadata

  • Download URL: ezgiphy-0.0.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for ezgiphy-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d8cc7f4c0b380e708b7ead2bbfe7b599573d061795a51d04ebf8bc57a636be82
MD5 f06d3766cffaa496370abbce90a9cbca
BLAKE2b-256 8ce3f325167f7c66425696e2009784a1fe03f3f13a6b8238780efda1e837ba08

See more details on using hashes here.

File details

Details for the file ezgiphy-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: ezgiphy-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for ezgiphy-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9e9a8b3b4607ee3dbb6e00af72b56f3e39babf37a6b8405e0e60d309765d909b
MD5 dac83a58758534f6a1eeffda20e09f77
BLAKE2b-256 effab6b2f1679b0b521fa09ef38c70e4a38914d34a74b99e6b52e5387320f709

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page