Questions tagged [google-url-shortener]

The Google URL Shortener at goo.gl is a service that takes long URLs and squeezes them into fewer characters to make a link that is easier to share, tweet, or email to friends.

The Google URL Shortener at goo.gl is a service that takes long URLs and squeezes them into fewer characters to make a link that is easier to share, tweet, or email to friends. Users can create these short links through the web interface at goo.gl, or they can programmatically create them through the URL Shortener API. With the URL Shortener API you can write applications that use simple HTTP methods to create, inspect, and manage goo.gl short links from desktop, mobile, or web.

Links that users create through the URL Shortener can also open directly in your mobile applications that can handle those links. This automatic behavior provides the best possible experience to your app users who open goo.gl links, no matter what platform or device they are on.

Useful Links:

  1. Overview of URL Shortener
  2. Web Applications - for questions about using Google's URL shortener, not programming for/with it
147 questions
19
votes
4 answers

Google URL Shortener 403 Rate Limit Exceeded

Using the google url shortener api, it was working fine till I started testing at load. Quickly started getting back 403 Rate Limit Exceeded errors from Google, even though I signed up to use the API and it comes with 1,000,000 hits a day. I can…
MyBrokenGnome
  • 646
  • 2
  • 5
  • 16
11
votes
1 answer

Google Analytics for short urls

In javascript, I am trying to access analytics data for google shorten urls, for example. I tired 'URL Shortener API', which worked fine and I received data. But this data doesn't have analytics report for each hour in the day or for each day in the…
shaaaa
  • 425
  • 3
  • 7
  • 18
11
votes
3 answers

how to use Google Shortener API with Python

I want to write an app to shorten url. This is my code: import urllib, urllib2 import json def goo_shorten_url(url): post_url = 'https://www.googleapis.com/urlshortener/v1/url' postdata = urllib.urlencode({'longUrl':url}) headers =…
YuYang
  • 321
  • 5
  • 11
9
votes
2 answers

Google UrlShortener "ipRefererBlocked"

I have a site hosted on Azure where the calls to the Google UrlShortner API are being blocked. I receive the error: { "error": { "errors": [ { "domain": "usageLimits", "reason": "ipRefererBlocked", "message": "There is a per-IP or…
Kevin Schultz
  • 886
  • 3
  • 20
  • 42
8
votes
3 answers

Django creating/making POST request with headers

I want to make a POST request programmatically with a custom headers. How can I do that? Actually i am trying to do this; use google shortener api. Maybe i misunderstood :/ Thanks you in advance :)
iskorum
  • 1,137
  • 1
  • 16
  • 27
8
votes
1 answer

Unable to get token using Google APIs [google-oauth-java-client-1.12.0-beta] for service account flow

I am using Google APIs (version google-oauth-java-client-1.12.0-beta) to get a OAuth2 access token but got back "invalid_grant". Ref: https://developers.google.com/accounts/docs/OAuth2ServiceAccount Here is the code: import…
dan22
  • 131
  • 1
  • 2
  • 5
7
votes
0 answers

How to set the user for the Google URL Shortener API Quota?

The Google API console shows a Quota of "1,000,000 queries per day" and "100 queries per 100 seconds per user". Both of these quotas are editable in the console, but the maximum enterable value is 1,000,000 and 100 respectively. I am bumping up…
Levitron
  • 1,033
  • 9
  • 14
6
votes
2 answers

Google UrlShortener 403 Rate Limit Exceeded

suddenly as of 6pm yesterday I started getting a 403 from Google { "error": { "errors": [ { "domain": "usageLimits", "reason": "rateLimitExceeded", "message": "Rate Limit Exceeded" } ], …
Franklin
  • 589
  • 1
  • 4
  • 20
6
votes
4 answers

How do I use the Google URL Shortener API on Android?

After much fiddling with trying to import the libraries myself, I finally managed to find out that I can do so using the Google Plugin for Eclipse, here. However, I seem to be unable to find any examples of how to actually use the API on Android, at…
Ogre
  • 781
  • 3
  • 10
  • 30
5
votes
1 answer

Google URL Shortener API 403 forbidden

I've been exploring google APIs lately and have been playing around with their URL shortening API. I am authenticating using oAuth and have that part down pat. I have managed to successfully use the get and list functions of the API but am having…
5
votes
3 answers

Cross Domain Issue with implementing Google URL shortener API

I am trying to implement the Google URL shortener API with the help of jQuery by making an AJAX call. I have done something like this: $(function() { $('#btnshorten').click(function() { var longURL = $('#tboxLongURL').val(); …
Mac
  • 6,991
  • 8
  • 35
  • 67
5
votes
1 answer

Google Url shortner API not loging Short link history with API key

I am using the Goo.gl API to shorten some links. The calls to the POST method are working good and the short URLs are working also, but I have a question regarding the short link history. If I create a short url from the goo.gl page it will be…
lcmp
  • 117
  • 1
  • 6
5
votes
3 answers

Guzzle POST request not working

I would like to use Google URL Shortener API. Now, I need to send a JSON POST request to the Google API. I'm using Guzzle 6.2 in PHP. Here is what I have tried so far: $client = new GuzzleHttp\Client(); $google_api_key = …
Hamed Kamrava
  • 12,359
  • 34
  • 87
  • 125
5
votes
3 answers

accessNotConfigured : Google URL Shorten API on iOS Simulator

I have integrated the Google URL-Shorten API in my iOS App just for testing purpose. The Bundle ID of my app is added by me in the list of Authorized iOS Applications to send the request. But whenever I send an HTTP POST request using NSURLRequest,…
vinay
  • 73
  • 1
  • 4
5
votes
2 answers

Disabling visually ambiguous characters in Google URL-shortener output

Is there a way to say (programmatically, I mean their API) the Google URL shortener not to produce short URL with characters like: 0 O 1 l Because people often make mistake when reading those characters from displays and typing them elsewhere.
Jiri Kremser
  • 12,471
  • 7
  • 45
  • 72
1
2 3
9 10