# Any way to get duration for files?

**URL:** <https://forum.frame.io/t/any-way-to-get-duration-for-files/3148>\
**Category:** Help\
**Tags:** api, v4\
**Created:** [January 28, 2026, 3:52am UTC](https://forum.frame.io/t/any-way-to-get-duration-for-files/3148 "2026-01-28T03:52:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nhe](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nhe](https://forum.frame.io/u/nhe)\
**Post date:** [January 28, 2026, 3:52am UTC](https://forum.frame.io/t/any-way-to-get-duration-for-files/3148/1 "2026-01-28T03:52:43Z")

</div>

Is there a way to get duration/runtime for video files via API? Or frame count and fps?

---

<div class="post-metadata">

**Author:** ![CharlieAnderson](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.frame.io/charlieanderson/32/491_2.png) [@CharlieAnderson](https://forum.frame.io/u/CharlieAnderson)\
**Post date:** [January 28, 2026, 4:03pm UTC](https://forum.frame.io/t/any-way-to-get-duration-for-files/3148/2 "2026-01-28T16:03:39Z")

</div>

FPS is listed under `/v4/accounts/:account_id/files/:file_id/metadata`

 ![Screenshot 2026-01-28 at 10.57.53 AM](https://canada1.discourse-cdn.com/flex035/uploads/frame1/original/1X/9d9d1e241bd38d5f0658b43a73cf7d6344c921d1.png)

Same with duration (this is in seconds I believe)

 ![Screenshot 2026-01-28 at 10.58.08 AM](https://canada1.discourse-cdn.com/flex035/uploads/frame1/original/1X/0961ca15d1e3f686ae422a41a5f9c016c1b0aef1.png)

You can get number of frames by multiplying the duration by the frame rate  
`34.451*23.976=825.997176`

 ![Screenshot 2026-01-28 at 11.04.19 AM](https://canada1.discourse-cdn.com/flex035/uploads/frame1/original/1X/1a6387c86bb744f1e51d546e38011def4cc0673b.png)

---

<div class="post-metadata">

**Author:** ![nhe](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nhe](https://forum.frame.io/u/nhe)\
**Post date:** [January 28, 2026, 4:37pm UTC](https://forum.frame.io/t/any-way-to-get-duration-for-files/3148/3 "2026-01-28T16:37:06Z")

</div>

Ah ok great, thank you!

---

<div class="post-metadata">

**Author:** ![nhe](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nhe](https://forum.frame.io/u/nhe)\
**Post date:** [January 31, 2026, 6:40pm UTC](https://forum.frame.io/t/any-way-to-get-duration-for-files/3148/4 "2026-01-31T18:40:05Z")

</div>

Is there somewhere in the API docs (perhaps a @rosiec question?) where I can see all of the metadata fields I can expect to receive? The API Reference response definitions just give generic structures/types for everything in metadata. Even the sample responses (e.g. Show File) lack examples of the real metadata returned.

---

<div class="post-metadata">

**Author:** ![nhe](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nhe](https://forum.frame.io/u/nhe)\
**Post date:** [January 31, 2026, 8:56pm UTC](https://forum.frame.io/t/any-way-to-get-duration-for-files/3148/5 "2026-01-31T20:56:45Z")

</div>

Also on the topic of the developer documentation - I see there’s functionality for interactively testing the calls (and login seems, at first glance, to work). But all of the endpoints error out, either with token error or in the case of List accounts, which fails because the example has a page size of 0.

---

<div class="post-metadata">

**Author:** ![CharlieAnderson](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.frame.io/charlieanderson/32/491_2.png) [@CharlieAnderson](https://forum.frame.io/u/CharlieAnderson)\
**Post date:** [February 2, 2026, 3:41pm UTC](https://forum.frame.io/t/any-way-to-get-duration-for-files/3148/6 "2026-02-02T15:41:49Z")

</div>

@nhe the “try it” function works once you log in, however you will have to provide all of the uuids yourself (similar to postman) as the the fields that are populated are randomized via the openapi spec.

---

<div class="post-metadata">

**Author:** ![nhe](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nhe](https://forum.frame.io/u/nhe)\
**Post date:** [February 2, 2026, 5:03pm UTC](https://forum.frame.io/t/any-way-to-get-duration-for-files/3148/7 "2026-02-02T17:03:30Z")

</div>

I couldn’t find a way to edit on the dev portal, but that’s ok, I ended up getting Postman set up.

Still, is there a reference somewhere of all the metadata that can be expected? I imagine it changes depending on things like file type? It would be a great to see a reference of what all the possible permutations is.

---

<div class="post-metadata">

**Author:** ![CharlieAnderson](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.frame.io/charlieanderson/32/491_2.png) [@CharlieAnderson](https://forum.frame.io/u/CharlieAnderson)\
**Post date:** [February 2, 2026, 5:18pm UTC](https://forum.frame.io/t/any-way-to-get-duration-for-files/3148/8 "2026-02-02T17:18:10Z")

</div>

It’s all of the path parameters and query parameters that need to be supplied:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/frame1/original/1X/438ed296bd2d3cf539f74b3e9d7f1616884da140.jpeg)

All of the examples are auto-generated on our backend, I will add a ticket to make sure full responses are included in the examples to show real world responses.
