Add filter for type of record at API