Search for interfaces containing the word

Hi, I am looking for a solution for an API (PHP) in which I will download an interface whose name contains a specific word.
For example, all EoIP interfers that contain the word NEW.
For example, eoip_MS_NEW but not eoip_MS_SEC.

Thank you in advance.

In RoOS CLI it will be so

/interface print where type="eoip" name~"NEW"

Ok, but according to the documentation, the ~ character is not supported in the API. I haven’t found any other example of how to do this.