Support API call from shortcode