var API to var api