Access uploaded GIF via REST API

If I have a document with some added GIFs, is there a way to access the original GIFs I uploaded via the REST API?

I tried the images (/v1/images/:key) and image fills (/v1/files/:key/images) endpoints, but both of those seem to return PNGs of the first frame of the GIF, not the GIF itself.

Thanks!

Did you ever resolve this, I’m having the same issue now ( just posted same on SO ).

Just experienced that.

The Value of the gif URL is in the gifRef property right after the imageRef property (in the JSON output), this property exists only if the file is a gif of course.
You can then find the gifRef value in the Get Images request.
[I guess Figma generates a thumb for preview the (imageRef property) , instead of a Gif playing endlessly and stores the original as gifRef property (with another file name).

But I have not found an endpoint directly to gifRef in the API docs/playground.
so a CURL script is the only way to go (&/or use the component name or part of name to detect the node).

If a Figma team can explain better, I am all ears :heart_eyes:

Hope that helps.
:confused:

By the way, a pain in the ar… since there is no ‘originalFileName’ Property!!! :rage: