split file by api category