chrisstump
chrisstump
1/12/18 at 10:11 am
JavaScript
jquery, api, ajax

AJAX Call to Google URL Shortener API

Use the Google URL Shortener API to convert a regular URL to a tiny URL. The API service is free and you can obtain an API key here. This example sends a long URL to the API via an AJAX call and returns a response object. The tiny URL is the id of the returned object.

Don't Have an Account?

Stop digging through old code examples. Get organized. Get Code Snipper.

Learn More Start Free 14 Day Trial