add api_handler which is used to call external api