Action Keyframe API?

I’ve been looking for a way to get the last key of an Action in the blender api docs for some time and haven’t been able to find it.

I need the frame number of the last key for this exporter so that I can export the length of the animation based off the last key, if someone could help me out it would be greatly appreciated, this is the only thing broke in the exporter :slight_smile: