I looking for a Google shortener API to generate short url for youtube videos with youtu.be url. Is it possible to force Google url shortner API to generate YOUTU.BE urls instead of GOO.GL?
Below is what I can generate now using google API Request:
POST https://www.googleapis.com/urlshortener/v1/url?key={YOUR_API_KEY}
Content-Type: application/json
Authorization: Bearer xxx
{
"longUrl": "https://www.youtube.com/watch?v=pih6gTJNu7s"
}
Response
{
"kind": "urlshortener#url",
"id": "http://goo.gl/ruPUvs",
"longUrl": "http://google.com/"
}
No it is not possible to shorten a youtube link into a youtu.be using googles url shortener. Think about it as all the url shortened links are under the website goo.gl/ goo.gl is just the name of the website.