How to Use Bitly api

You will need to use the wix-fetch API and should interface with the API from the backend code. See the article Accessing 3rd-Party Services for details.