Calling bpy.ops.transform.translate on keyframes in 3D View?

Hello,
Since the operator works for both geometry and keyframes, I wanted to know if it’s possible to call either transform.translate or transform.transform(mode='TIME_TRANSLATE') from the 3D view and get the keyframes to move. The latter I know it’s not possible since it returns {CANCELLED}, but perhaps there’s something I’m missing about that one.

If not, is there a way to ‘emulate’ a context? Or get the focus on that specific area before running the operator?

Thanks in advance.