GIFs

Trending GIFs

Trending GIFs via the OnlyFans Giphy proxy. Use to show a default GIF picker before any search is typed. Requires permission api_gifs_trending.

https://public-api.fansmetric.com
GET/v1/gifs/trending
Bearer

Authorization

default
AuthorizationBearer <token>

Send your FansMetric API key as a Bearer token in the Authorization header.

In: header

Query Parameters

  • limitinteger

    Default 20. Min 1, max 50.

  • offsetinteger

    Pagination offset.

Response Fields

  • data.data[].idstring

    Giphy GIF ID — pass as giphyId when sending a message.

  • data.data[].titlestring

    Human-readable GIF title from Giphy.

  • data.data[].alt_textstring

    Accessibility alt text. May be empty.

  • data.data[].ratingstring

    Giphy content rating (e.g. g, pg, pg-13, r).

  • data.data[].is_stickerinteger

    1 if the asset is a sticker, otherwise 0.

  • data.data[].typestring

    Asset type — typically gif.

  • data.data[].urlstring

    Canonical Giphy page URL.

  • data.data[].embed_urlstring

    Giphy embed URL.

  • data.data[].imagesobject

    Slim image rendition map: fixed_height, fixed_width, original, original_mp4, preview_gif. Per-rendition fields: url, width, height, and mp4 (only when present).

  • data.paginationobject

    Giphy pagination block: total_count, count, offset.

  • dataobject | array

    Endpoint-specific payload. See the fields below for this route.

  • _meta._credits.usedinteger

    Credits consumed by this request (currently always 1).

  • _meta._rate_limits.limit_minuteinteger

    Maximum requests per minute for the organization.

  • _meta._rate_limits.remaining_minuteinteger

    Remaining requests in the current minute window.

  • _meta._rate_limits.limit_dayinteger

    Maximum requests per day for the organization.

  • _meta._rate_limits.remaining_dayinteger

    Remaining requests in the current day window.

curl --request GET "https://public-api.fansmetric.com/v1/gifs/trending?limit=20&offset=0" \
  --header "Authorization: Bearer YOUR_API_KEY"

Response

200
{
"data":{
"data":[
0:{
"id":"cFyd0Xolac5zvmHvzx"
"title":"Timothee Chalamet Shimmy GIF"
"alt_text":""
"rating":"g"
"is_sticker":0
"type":"gif"
"url":"https://giphy.com/gifs/...-cFyd0Xolac5zvmHvzx"
"embed_url":"https://giphy.com/embed/cFyd0Xolac5zvmHvzx"
"images":{
"fixed_height":{
"url":"https://media4.giphy.com/.../200.gif"
"width":"356"
"height":"200"
"mp4":"https://media4.giphy.com/.../200.mp4"
}
"fixed_width":{
"url":"https://media4.giphy.com/.../200w.gif"
"width":"200"
"height":"112"
"mp4":"https://media4.giphy.com/.../200w.mp4"
}
"original":{
"url":"https://media4.giphy.com/.../giphy.gif"
"width":"480"
"height":"480"
}
"original_mp4":{
"width":"480"
"height":"480"
"mp4":"https://media4.giphy.com/.../giphy.mp4"
}
"preview_gif":{
"url":"https://media4.giphy.com/.../giphy-preview.gif"
"width":"100"
"height":"100"
}
}
}
]
"pagination":{
"total_count":253
"count":1
"offset":0
}
}
"_meta":{
"_credits":{
"used":1
}
"_rate_limits":{
"limit_minute":1000
"remaining_minute":999
"limit_day":50000
"remaining_day":49999
}
}
}