Questions tagged [goo.gl]

URL shortening service from Google

64 questions
1
vote
1 answer

Get better/more details stats from goo.gl URL shorterner service?

By default the goo.gl URL shorterner service just offers very coarse statistics for shortened links, last two hours, last day, last week and last month and all time. If you want to look at the statistics for yesterday you have to look at last week…
d-b
  • 695
  • 3
  • 14
  • 43
1
vote
1 answer

url shortener services API final link gets hit

I have used URL Shortener services, such as goo.gl or bit.ly, to shorten long URLs in my applications using their respective APIs. These APIs are very convenient, unfortunately I have noticed that the long URL gets hit when they shorten it. Let me…
Raphael C
  • 2,296
  • 1
  • 22
  • 22
1
vote
0 answers

Goo.gl URL Shortener dead link issues

With goo.gl service: If custom URL's link is dead, how do I keep custom URL and update the link? If its not possible, what's other URL shortener service that offer to update the dead link with working link for custom URL?
Darthvazor
  • 53
  • 1
  • 1
  • 6
1
vote
1 answer

Displaying shorten goo.gl urls statistics on goo.gl panel

I'm shortening my "news" page's long URLs by using this code. var api_key = 'AIzaSyCNGB0ddmvRkn5h************'; var docURL = document.URL; function makeRequest() { var request = gapi.client.urlshortener.url.insert({ …
1
vote
1 answer

PHP Strange code behaviour

Here is my goo.gl url shortener class. Using it like Googl::shorten("http://google.com"). I can't understand why it returns Null. What am I doing wrong?
heron
  • 3,611
  • 25
  • 80
  • 148
1
vote
1 answer

Using goo.gl API to shortlink many longlinks

I'm looking for a simple example where I can feed through a long link using the Google API and then shorten it with the API and output the results. I already have a DB setup with the long links, and want to loop through the DB and do this multiple…
JNB
  • 73
  • 1
  • 6
0
votes
1 answer

Rewrite htaccess, redirect if a "+" exisit in the url like goo.gl

my question is: how to redirect url when it contains a "+" like goo.gl and bit.ly a simple example http://goo.gl/gogl+ it will be redirect to http://goo.gl/info/gogl thank in advance.
webfan
  • 25
  • 3
0
votes
1 answer

pbcopy Specific Part of Shell Script

I am using the goo.gl URL shortener to shorten URL's with a curl command. The command is below: curl https://www.googleapis.com/urlshortener/v1/url \ -H 'Content-Type: application/json' \ -d '{"longUrl": "http://www.google.com/"}' This returns…
0
votes
1 answer

Parse Error Using jsonlib

I'm playing a bit with the goo.gl API and Javascript using the jsonlib like this: function googl(url, cb) { jsonlib.fetch({ url: 'https://www.googleapis.com/urlshortener/v1/url?key=', header: 'Content-Type:…
Nathan Campos
  • 28,769
  • 59
  • 194
  • 300
0
votes
1 answer

integrating goo.gl API with external script

I have a file vars.php passed in the header consisting of: $link="http://www.mysite.com"; I want to append a random a random string to mysite.com like this mysite.com/?(random string) using the code below: $code = md5(uniqid(rand(),…
0
votes
1 answer

Authorized used of goo.gl API to add URLs to user history

With Google opening the goo.gl API a few weeks ago, it's quite easy to use it with POST: curl -F "url=LONGURL" http://goo.gl/api/shorten The response is like this: {"short_url":"http://goo.gl/A9MR","added_to_history":false} So, does anyone know…
Manuel
  • 8,135
  • 10
  • 32
  • 29
0
votes
1 answer

How can I shorten a URL with google shortener programmatically using asp.net mvc?

SO. I have the following URL from a third party accessed with an API call. https://scontent.xx.fbcdn.net/v/t1.0-9/15665479_1260320054027269_4201232212927955955_n.jpg?oh=ee01f2ec47b2e972bc12f99d988db241&oe=5946A159 I'd like to shorten this URL with…
Dawar
  • 99
  • 3
  • 14
0
votes
0 answers

goo.gl urlshortener request works on localhost only

I have a urlshortener code working when I am on localhost but won't work if deployed elsewhere (or if I access my local app via the IP address) : Here is my code : insertUrl(longUrl) { let headers = new Headers({ 'Content-Type':…
ng-flo
  • 293
  • 4
  • 17
0
votes
1 answer

Collective stats of goo.gl short URLs

I am able to create a short URL using goo.gl API using following two lines of python code: longurl = 'http:/www.example.com/url' r = requests.post('https://www.googleapis.com/urlshortener/v1/url?key=API_KEY), json={"longUrl": longurl}) I was hoping…
Kevin
  • 901
  • 1
  • 7
  • 15
0
votes
2 answers

How to make my website avoid being redirected from the URL shortener site (Like goo.gl)?

I have make a website that I hope everyone can access it directly, not access via the shortened url. That is, I do not allow anyone to shorten my website address. How can I do to my website? Thanks.
Banana Code
  • 759
  • 1
  • 12
  • 28