Move API filtering to PHP
Ver 0.5