Given a full URL, returns an goo.gl short URL. The returned resource contains the short URL and the long URL. Note that the returned long URL may be loosely canonicalized, e.g. to convert "google.com" into "http://google.com/". See the Authentication googl_auth section for more details.
- a long URL to be shortened (example: http://betaworks.com/).
- show URL which has been build and requested from server. For debug purposes.
id is the short URL that expands to the long URL you provided. If your request includes an auth token, then this URL will be unique. If not, then it might be reused from a previous request to shorten the same URL.
longURL - longUrl is the long URL to which it expands. In most cases, this will be the same as the URL you provided. In some cases, the server may canonicalize the URL. For instance, if you pass http://www.google.com, the server will add a trailing slash.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.