use api to share