# GIPHY on Onekey > 2 endpoints for GIPHY (0 stable, 2 beta), 5 credits each. Category: Entertainment, art & culture. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/giphy Reference (Markdown): https://onekey.dev/docs/api/giphy.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 2 mapped GIPHY endpoints return each: - `author.username` (string): 2 - `content.createdAt` (ISO 8601 date): 2 - `content.id` (string): 2 - `content.title` (string): 2 - `content.url` (URL): 2 - `entity.stats.rating` (number): 2 - `media.thumbnailUrl` (URL): 2 - `media.url` (URL): 2 ## Endpoints ### giphy.search Search GIPHY GIFs. - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/giphy/search?q=cat` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Search text - Fields returned: `content.id`, `content.title`, `content.url`, `author.username`, `media.url`, `media.thumbnailUrl`, `content.createdAt`, `entity.stats.rating` - Reference: https://onekey.dev/docs/api/giphy/search.md ### giphy.trending Trending GIPHY GIFs. - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/giphy/trending` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `content.id`, `content.title`, `content.url`, `author.username`, `media.url`, `media.thumbnailUrl`, `content.createdAt`, `entity.stats.rating` - Reference: https://onekey.dev/docs/api/giphy/trending.md ## Sample request ```bash curl "https://api.onekey.dev/v1/giphy/search?q=cat" \ -H "x-api-key: YOUR_API_KEY" ```