get cpes from api