@nprofile1q... Check the code, there's an API endpoint to get all the filters, and another one to add them.
Write a script, call it masto_filtering and give it two functions import, export, the parametre it should accept is a token for the app with only reading and writing filters as permissions.