Get vertices with modifiers

I can’t apply modifiers to my export script’s target meshes because they often have shape keys. bpy.ops.object.modifier_apply() gives an error in these circumstances.

Is there any other way to access the vertices of a mesh after modifiers have acted on them?