Api - is it possible to get the filter of a file

Hello,

I have a question concerning one of my plugin:

Is it possible through the API to get the FILTER (not the format) used for the ongoing file ?

example : in the context of a plugin linked to the editor

Thank you