use api to get projects