add API support to demo