The Google API client libraries, which are available in a number of popular programming languages, make it easy to use the Google URL Shortener API.
In the tables below, the first column shows each library's stage of development; note that some are still in early stages. The second column links to the main page for each library.
The set of mature libraries includes:
Client library | Documentation | All client library samples |
---|---|---|
Google APIs Client Library for .NET | Google APIs Client Library for .NET | .NET samples |
Google APIs Client Library for Java (rc) | google-api-java-client/ | Java samples |
Google APIs Client Library for JavaScript (beta) | Google APIs Client Library for JavaScript | JavaScript samples td> |
Google APIs Client Library for Objective-C | google-api-objectivec-client/ | Objective-C samples |
Google APIs Client Library for PHP (beta) | google-api-php-client | PHP samples |
Google APIs Client Library for Python | Google APIs Client Library for Python | Python samples |
These early-stage libraries are also available:
Client library | Documentation | All client library samples |
---|---|---|
Google APIs Client Library for Go (alpha) | google-api-go-client/ | Go samples |
Google API Libraries for Google Web Toolkit (alpha) | gwt-google-apis/ | GWT samples |
Google APIs Client Library for Node.js (alpha) | google-api-nodejs-client/ | Node.js samples td> |
Google APIs Client Library for Ruby (alpha) | Google APIs Client Library for Ruby | Ruby samples |
In addition to the Google-supported client libraries listed in the table above, a set of third-party Dart libraries (with samples) is available for the Dart language.
Other ways to access the API
The table below lists some other convenient ways to access the Google URL Shortener API.
Access method | Description |
---|---|
Apps Script | A JavaScript cloud scripting language that makes it easy to automate tasks across Google products and third party services. |
APIs Explorer | An interactive tool that lets you easily try out Google APIs right from your browser. |
Featured samples
Often, the easiest way to learn how to use an API can be to look at sample code. The table above provides links to some basic samples for each of the languages shown. Currently, there are no additional featured samples available for the Google URL Shortener API.