method api()