Lottie Animation duration

I am creating a custom animation in adobe after effects. I am just not sure of what can be the maximum duration of the total animation supported by Lottie. However, I am aware of the fact that the maximum file size is 35kb. But what about the duration in seconds?

Any response will be highly appreciated.

I don’t believe there is a maximum file size, I’ve seen people export tiny file sizes and some file sizes in the MB’s.

I have never encountered a duration restriction, but I tend to keep mine under 30 seconds for what I do or shorter depending on our App, Website, etc. needs.