Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7678441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:38:55+00:00 2026-05-31T17:38:55+00:00

I use the TinyURL API in one of my web applications. Until now, it

  • 0

I use the TinyURL API in one of my web applications. Until now, it worked fine but, today, an error occurs and I don’t know why: I didn’t modify my script since September!

Below is the code I use:

function getTinyURL(longURL, success)
{
    var API = 'http://json-tinyurl.appspot.com/?url=',
        URL = API + encodeURIComponent(longURL) + '&callback=?';
    $.getJSON(URL, function(data){
        success && success(data);
    });                  
}

var url='http://[...]'; //A very long URL            
getTinyURL(url, function(data)
{
    if(data.tinyurl)
    {
        $('#link').text(data.tinyurl);
        $('#link').attr('href',encodeURI(data.tinyurl));
    }
    else
    {
        $('#link').text('An error occurs...');
        console.log('ERROR: '+data.error);
        $('#link').attr('href','#');
    }
});

As I already said, even if this code worked well before, today an error occurs. In the console log, this message is displayed: The API call urlfetch.Fetch() required more quota than is available.

I don’t understand this message: does it mean that the error comes from TinyURL?
Should I change my code or should I wait for TinyURL does something against this error?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:38:56+00:00Added an answer on May 31, 2026 at 5:38 pm

    The magic behind the json-appspot service is not particularly sophisticated.

    If you have ability to add logic to the server side, you can make and run something similar for yourself. You’d need to install a “shim” or gateway script that connects to tinyurl.com, and returns a formatted JSON string.

    Some examples:

    • PHP
    • ASP classic
    • ASPNET Handler
    • Python

    They do the same thing. With either one you could just drop it on your server, then invoke it from within your pages like this, in jQuery:

    var stub = "http://myserver.example.com/api/tinyurlshim.asp?url=",
        urlToEncode = "http://example.com/very/long/url/to/encode?with=query&params=too",
        url = stub + encodeURIComponent(urlToEncode);
    
    $.getJSON(url, function(data) { alert('response: ' + data.tiny);} );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

'''use Jython''' import shutil print dir(shutil) There is no, shutil.move, how does one move
use this website a lot but first time posting. My program creates a number
Use case: I've just entered insert mode, and typed some text. Now I want
I usually use the UUID class to generate unique IDs. This works fine if
Use of Unassigned local variable 'model'. Is what error message I'm getting. Its right
Use case: we have some project meta-data files which we want tracked, but are
I have no idea where ContainerBaCommand is coming from, but here's my error: I
use a reapeter to display data, but sometimes the data is to big to
Use case: User clicks a link, a modal window is displayed containing one big
Use case: A does something on his box and gots stuck. He asks B

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.