Giphy GIFs API

Search, trending, translate, random, and lookup endpoints for animated GIFs.

GitHub OpenAPI

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/gifs/search Search the GIF library · Search GIFs #
Ask an LLM
“How do I find a GIF for a given keyword?”
“Can I limit search results to a certain rating?”
Tell an agent
Search the GIF library for {q}.
Find {limit} {rating} GIFs matching {q}.
GET /v1/gifs/trending Get the trending GIFs · Get Trending GIFs #
Ask an LLM
“What's trending on GIPHY right now?”
“Can I see trending GIFs for a specific country?”
Tell an agent
Show the trending GIFs.
Get {limit} trending GIFs rated {rating}.
GET /v1/gifs/translate Turn a phrase into a GIF · Translate Term to GIF #
Ask an LLM
“Can I convert a phrase into a single relevant GIF?”
“How weird can the translated GIF be?”
Tell an agent
Translate {s} into a GIF.
Turn {s} into a {weirdness} weird GIF.
GET /v1/gifs/random Get a random GIF · Get Random GIF #
Ask an LLM
“Can I get a random GIF to surprise someone?”
“Is it possible to pick a random GIF for a specific tag?”
Tell an agent
Get a random GIF.
Pick a random {rating} GIF tagged {tag}.
GET /v1/gifs/{gif_id} Get one GIF's metadata · Get GIF by ID #
Ask an LLM
“How do I look up the metadata for a single GIF?”
“What details come back for one GIF ID?”
Tell an agent
Get the metadata for GIF {gif_id}.
Show me the details of GIF {gif_id}.
GET /v1/gifs Get metadata for several GIFs · Get GIFs by ID #
Ask an LLM
“Can I fetch metadata for up to 100 GIFs in one call?”
“How do I look up several GIFs by their IDs?”
Tell an agent
Get metadata for GIFs {ids}.
Fetch the details of these GIFs: {ids}.

Documentation

Specifications

Schemas & Data

Other Resources

🔗
Examples
https://artifacts.apis.io/giphy/examples/giphy-search-gifs-example.json
🔗
Examples
https://artifacts.apis.io/giphy/examples/giphy-get-trending-gifs-example.json
🔗
Examples
https://artifacts.apis.io/giphy/examples/giphy-translate-gif-example.json
🔗
Examples
https://artifacts.apis.io/giphy/examples/giphy-get-random-gif-example.json
🔗
Examples
https://artifacts.apis.io/giphy/examples/giphy-get-gif-by-id-example.json
🔗
Examples
https://artifacts.apis.io/giphy/examples/giphy-list-gif-categories-example.json
🔗
Examples
https://artifacts.apis.io/giphy/examples/giphy-autocomplete-search-tags-example.json
🔗
Examples
https://artifacts.apis.io/giphy/examples/giphy-get-related-search-terms-example.json
🔗
Examples
https://artifacts.apis.io/giphy/examples/giphy-get-trending-searches-example.json
🔗
Examples
https://artifacts.apis.io/giphy/examples/giphy-search-stickers-example.json
🔗
Examples
https://artifacts.apis.io/giphy/examples/giphy-list-emoji-example.json
🔗
Examples
https://artifacts.apis.io/giphy/examples/giphy-search-clips-example.json
🔗
Examples
https://artifacts.apis.io/giphy/examples/giphy-upload-gif-example.json
🔗
Examples
https://artifacts.apis.io/giphy/examples/giphy-register-search-action-example.json
🔗
SDKs
https://github.com/Giphy/giphy-ios-sdk
🔗
SDKs
https://github.com/Giphy/giphy-android-sdk
🔗
SDKs
https://github.com/Giphy/giphy-react-native-sdk
🔗
SDKs
https://github.com/Giphy/giphy-flutter-sdk
🔗
SDKs
https://github.com/Giphy/giphy-js
🔗
SDKs
https://github.com/Giphy/giphy-python-client
🔗
SDKs
https://github.com/Giphy/giphy-ruby-client
🔗
SDKs
https://github.com/Giphy/giphy-php-client
🔗
Pricing
https://artifacts.apis.io/giphy/plans/giphy-plans-pricing.yml

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/giphy:giphy-gifs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

giphy-gifs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GIPHY GIFs API
  description: 'The GIPHY API provides programmatic access to the world''s largest library of

    GIFs, stickers, animated emoji and Clips (GIFs with sound). Search, trending,

    translate, random, and category endpoints all return rich media objects with

    multiple image renditions optimized for any surface.


    Authentication is via API key. New developers receive a rate-limited Beta key;

    a Production key is granted after application review.'
  version: '1.0'
  contact:
    name: GIPHY Developers
    url: https://developers.giphy.com/
    email: support@giphy.com
  termsOfService: https://developers.giphy.com/terms/
  license:
    name: GIPHY API Terms of Service
    url: https://developers.giphy.com/terms/
servers:
- url: https://api.giphy.com
  description: Production API
- url: https://upload.giphy.com
  description: Upload API
security:
- ApiKeyAuth: []
tags:
- name: GIFs
  description: Search, trending, translate, random, and lookup endpoints for animated GIFs.
paths:
  /v1/gifs/search:
    get:
      tags:
      - GIFs
      operationId: searchGifs
      summary: Search GIFs
      description: Search GIPHY's library of millions of GIFs by keyword.
      parameters:
      - $ref: '#/components/parameters/ApiKey'
      - name: q
        in: query
        required: true
        description: Search query term or phrase, URL-encoded, max 50 characters.
        schema:
          type: string
          maxLength: 50
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Offset'
      - $ref: '#/components/parameters/Rating'
      - $ref: '#/components/parameters/Lang'
      - $ref: '#/components/parameters/Bundle'
      - $ref: '#/components/parameters/RandomId'
      - $ref: '#/components/parameters/CountryCode'
      responses:
        '200':
          $ref: '#/components/responses/GifListResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
  /v1/gifs/trending:
    get:
      tags:
      - GIFs
      operationId: getTrendingGifs
      summary: Get Trending GIFs
      description: Return the most relevant and engaging GIFs each day.
      parameters:
      - $ref: '#/components/parameters/ApiKey'
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Offset'
      - $ref: '#/components/parameters/Rating'
      - $ref: '#/components/parameters/Bundle'
      - $ref: '#/components/parameters/RandomId'
      - $ref: '#/components/parameters/CountryCode'
      responses:
        '200':
          $ref: '#/components/responses/GifListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
  /v1/gifs/translate:
    get:
      tags:
      - GIFs
      operationId: translateGif
      summary: Translate Term to GIF
      description: Convert words and phrases to a single, contextually relevant GIF.
      parameters:
      - $ref: '#/components/parameters/ApiKey'
      - name: s
        in: query
        required: true
        description: Search term to translate to a GIF.
        schema:
          type: string
      - $ref: '#/components/parameters/Weirdness'
      - $ref: '#/components/parameters/Rating'
      - $ref: '#/components/parameters/RandomId'
      responses:
        '200':
          $ref: '#/components/responses/SingleGifResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /v1/gifs/random:
    get:
      tags:
      - GIFs
      operationId: getRandomGif
      summary: Get Random GIF
      description: Return a single random GIF, optionally filtered by tag.
      parameters:
      - $ref: '#/components/parameters/ApiKey'
      - name: tag
        in: query
        required: false
        description: Filter results by tag.
        schema:
          type: string
      - $ref: '#/components/parameters/Rating'
      - $ref: '#/components/parameters/RandomId'
      responses:
        '200':
          $ref: '#/components/responses/SingleGifResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /v1/gifs/{gif_id}:
    get:
      tags:
      - GIFs
      operationId: getGifById
      summary: Get GIF by ID
      description: Retrieve metadata for a single GIF.
      parameters:
      - $ref: '#/components/parameters/ApiKey'
      - name: gif_id
        in: path
        required: true
        description: GIPHY ID of the GIF.
        schema:
          type: string
      responses:
        '200':
          $ref: '#/components/responses/SingleGifResponse'
        '404':
          $ref: '#/components/responses/NotFound'
  /v1/gifs:
    get:
      tags:
      - GIFs
      operationId: getGifsById
      summary: Get GIFs by ID
      description: Fetch metadata for up to 100 GIFs at once, by comma-separated IDs.
      parameters:
      - $ref: '#/components/parameters/ApiKey'
      - name: ids
        in: query
        required: true
        description: Comma-separated list of GIF IDs (max 100).
        schema:
          type: string
      responses:
        '200':
          $ref: '#/components/responses/GifListResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
components:
  schemas:
    Rendition:
      type: object
      properties:
        url:
          type: string
          format: uri
        width:
          type: string
          description: Width in pixels (string in API).
        height:
          type: string
          description: Height in pixels (string in API).
        size:
          type: string
          description: File size in bytes (string in API).
        mp4:
          type: string
          format: uri
        mp4_size:
          type: string
        webp:
          type: string
          format: uri
        webp_size:
          type: string
        frames:
          type: string
        hash:
          type: string
    Gif:
      type: object
      description: Standard GIPHY GIF object returned by most endpoints.
      properties:
        type:
          type: string
          enum:
          - gif
          - sticker
          - emoji
          description: Type of media object.
        id:
          type: string
          description: GIPHY ID for the object.
        slug:
          type: string
          description: URL slug used in giphy.com URLs.
        url:
          type: string
          format: uri
          description: Canonical GIPHY URL.
        bitly_gif_url:
          type: string
          format: uri
        bitly_url:
          type: string
          format: uri
        embed_url:
          type: string
          format: uri
        username:
          type: string
        source:
          type: string
        rating:
          type: string
          enum:
          - g
          - pg
          - pg-13
          - r
          - y
        content_url:
          type: string
        user:
          $ref: '#/components/schemas/User'
        source_tld:
          type: string
        source_post_url:
          type: string
          format: uri
        update_datetime:
          type: string
          format: date-time
        create_datetime:
          type: string
          format: date-time
        import_datetime:
          type: string
          format: date-time
        trending_datetime:
          type: string
          format: date-time
        images:
          $ref: '#/components/schemas/Images'
        title:
          type: string
        alt_text:
          type: string
        is_low_contrast:
          type: boolean
        analytics_response_payload:
          type: string
        analytics:
          $ref: '#/components/schemas/Analytics'
    Error:
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/Meta'
    User:
      type: object
      description: GIPHY user / channel associated with content.
      properties:
        avatar_url:
          type: string
          format: uri
        banner_image:
          type: string
          format: uri
        banner_url:
          type: string
          format: uri
        profile_url:
          type: string
          format: uri
        username:
          type: string
        display_name:
          type: string
        description:
          type: string
        instagram_url:
          type: string
          format: uri
        website_url:
          type: string
          format: uri
        is_verified:
          type: boolean
    Images:
      type: object
      description: Map of rendition keys to rendition metadata. Available renditions include fixed_height, fixed_height_still, fixed_height_downsampled, fixed_height_small, fixed_height_small_still, fixed_width, fixed_width_still, fixed_width_downsampled, fixed_width_small, fixed_width_small_still, downsized, downsized_still, downsized_large, downsized_medium, downsized_small, original, original_still, looping, preview, preview_gif.
      additionalProperties:
        $ref: '#/components/schemas/Rendition'
    Pagination:
      type: object
      properties:
        offset:
          type: integer
        total_count:
          type: integer
        count:
          type: integer
    Analytics:
      type: object
      description: Pingback URLs returned alongside each GIF for measuring user engagement.
      properties:
        onload:
          type: object
          properties:
            url:
              type: string
              format: uri
        onclick:
          type: object
          properties:
            url:
              type: string
              format: uri
        onsent:
          type: object
          properties:
            url:
              type: string
              format: uri
    Meta:
      type: object
      properties:
        msg:
          type: string
        status:
          type: integer
        response_id:
          type: string
  parameters:
    ApiKey:
      name: api_key
      in: query
      required: true
      description: GIPHY API key (Beta or Production).
      schema:
        type: string
    Lang:
      name: lang
      in: query
      required: false
      description: Default language (ISO 639-1) for regional content.
      schema:
        type: string
    Rating:
      name: rating
      in: query
      required: false
      description: Filter results by MPAA-style rating.
      schema:
        type: string
        enum:
        - g
        - pg
        - pg-13
        - r
        - y
    Limit:
      name: limit
      in: query
      required: false
      description: Maximum number of items to return per page.
      schema:
        type: integer
        default: 25
        maximum: 50
    Offset:
      name: offset
      in: query
      required: false
      description: Position in the result set for pagination.
      schema:
        type: integer
        default: 0
    Weirdness:
      name: weirdness
      in: query
      required: false
      description: Translate weirdness (0 conservative ... 10 most weird).
      schema:
        type: integer
        minimum: 0
        maximum: 10
    CountryCode:
      name: country_code
      in: query
      required: false
      description: ISO 3166-1 alpha-2 country code used to localize results.
      schema:
        type: string
    RandomId:
      name: random_id
      in: query
      required: false
      description: Privacy-preserving user identifier produced by /v1/randomid.
      schema:
        type: string
    Bundle:
      name: bundle
      in: query
      required: false
      description: Reduce response payload by requesting only the rendition bundle you need.
      schema:
        type: string
        enum:
        - low_bandwidth
        - messaging_non_clips
        - sticker_layering
        - clips_grid_picker
  responses:
    RateLimited:
      description: API rate limit exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    SingleGifResponse:
      description: A single GIF or Sticker object.
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                $ref: '#/components/schemas/Gif'
              meta:
                $ref: '#/components/schemas/Meta'
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    GifListResponse:
      description: A paginated list of GIF or Sticker objects.
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                type: array
                items:
                  $ref: '#/components/schemas/Gif'
              pagination:
                $ref: '#/components/schemas/Pagination'
              meta:
                $ref: '#/components/schemas/Meta'
    BadRequest:
      description: Malformed request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: query
      name: api_key
      description: API key issued via the GIPHY developer dashboard.