Is There Any Way to Reference a Specific Animation Keyframe?

Here’s what I mean by animation frames/keyframes.

image

So;
My question is, is there any way to get an individual frame’s time position inside a script? (because if not I’ll have to do math calculations for every individual time position I want to set)

And yes, for those wondering, I have done my research, but found nothing regarding to distinctive individual frames within an animation.