Call global API
Use the API compile inside scope & compile