GoogleURLShortener

FREE
By zakutynsky
Updated 5 months ago
Tools
1.7/10
Popularity Score
239ms
Latency
100%
Success Rate

GoogleURLShortener API Documentation

Create, inspect, and manage goo.gl short links.

View API Details
POSTexpandShortUrl
POSTgetUrlAnalytics
POSTgetUserHistory
POSTshortenLongUrl
POSTexpandShortUrl

You can call this method to expand any goo.gl short URL.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
shortUrlSTRING
REQUIREDShort URL
apiKeyCREDENTIALS
REQUIREDYour application API key.
Code Snippet
unirest.post("https://GoogleURLShortenerzakutynskyV1.p.rapidapi.com/expandShortUrl")
.header("X-RapidAPI-Host", "GoogleURLShortenerzakutynskyV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://GoogleURLShortenerzakutynskyV1.p.rapidapi.com/expandShortUrl
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://GoogleURLShortenerzakutynskyV1.p.rapidapi.com/expandShortUrl")
.header("X-RapidAPI-Host", "GoogleURLShortenerzakutynskyV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication