Debt Consolidation - Debt Consolidation - Web directory - Gavin Newsom - Free Animated Greetings

PDA

View Full Version : When does the 1000 queries per license key "reset"


hulkster
Mar 23rd 2004, 7:03 pm
The Google API key allows you 1,000 queries/day - I was kinda curious what exactly a "day" is - i.e. does it reset every 24 hours (and when is that?) or is a "rolling limit" where it keeps track of when you made 'em, which would be more complicated to program/track.

There was some misc. discussion about this topic in another thead in this forum, (http://forums.digitalpoint.com/showthread.php?t=100&page=1&pp=10j) but I thought I would start a new thread summerizing my findings so this is easier to find for the next person that is interested in this piece of trivia.

Using a keyword tracker of my own (not as rockin' as Shawn's keyword tracker (http://www.digitalpoint.com/tools/keywords/)), I ran a buncha queries last night just before 2100 MST (0400 GMT) and exhausted it. I tried again this morning (thinking maybe the reset time was midnight Pacific time) and it still failed. I then fired it back up at 1820 MST (0120 GMT) and it still failed ... so I'm thinking "darn, looking like a 'rolling' reset, so this will take a slight bit more work to confirm".

But just for grins, I fired it back up at 1930 MST (0230 GMT) ... and it WORKED ... I was able to do a full 1,000 queries before it ran outa mojo again.

So .... this suggests the "key reset time" is between 0120 and 0230 GMT. Assuming this is handled via a cronjob that uses localtime, there may be an hour movement when daylight savings comes.

If I get motivated, I might try a test in the next week or so where I use up all the keys just before 0100 GMT and then see if I can do another 1,000 queries after 0230 to confirm my theory.

alek

P.S. If anyone from Google happens to read this, it would be really cool if you could do a "crontab -l" or whatever and let me know if I'm right ... or all wet! ;-)

Foxy
Mar 24th 2004, 12:30 am
I've found it to be 08.00 GMT which is Midnight+ in Pacific time

So I hang around twiddling here until 8am!
:D

hulkster
Mar 30th 2004, 5:34 am
I finally had a chance to do some more testing in the last 24 hours and I got some conflicting data/results - will do some more testing after my month-end keyword processing and see if I can determine a trend/pattern.

alek

hulkster
Apr 10th 2004, 3:31 pm
I guess I started this thread, and would like to be able to "finish" it, but the data I have gotten again seems a bit inconsistant again, so I don't know the definitive answer to this trivia question.

Using a "good" Google API key, I would do API queries until the key no longer worked (and while I didn't have an exact counter, it was right around a 1,000 each time, so I was starting "fresh"). I would then try to use the key at various other times, and it would either FAIL right off the bat, or work fine ... until I used up another 1,000 queries. All times below are MDT which is GMT-6 and these were sequential days. Here's my data:
1520 WORKED, used up all 1,000 keys
2024 Failed
2106 Failed
0657 WORKED - used up all 1,000 keys
2050 Failed
0028 WORKED - used up all 1,000 keys
0945 Failed
1455 Failed
2001 Failed
2253 WORKED - used up all 1,000 keys
I thought this would be a fairly straightforward task - i.e. there was "some" time when the key was reset - either a fixed time or a "rolling" time based on the last time the queries were used ... but I could not determine a pattern ... except to say possibly the "reset time" (assuming that exists and is fixed) exists between 2106-2253MDT (0306-0453GMT) ... but this isn't consistant with the data from my first post.

I doubt people are staying awake at night worrying about this, but that's my data! ;-)

alek

rustybrick
Apr 11th 2004, 7:38 am
Good to know, thank you for sharing.

novasoft
Apr 20th 2004, 5:05 am
Thanks for sharing those stats :)

Cheers
Satya
________________________________________________________________
Novasoft (http://www.novasoft-inc.com) makers of Hover Ad Generator (http://www.novasoft-inc.com/products/hoveradgen/internet-advertising.asp) and Covert Affiliate (http://www.novasoft-inc.com/products/covertaffiliate/affiliate-profits.asp) software

disgust
Jun 3rd 2004, 2:21 am
I'm just curious, why does it matter so much when it resets? surely it doesn't make that big of a difference at the end of the day?

murph
Oct 22nd 2006, 1:53 am
Any conclusion on when this resets?

Also, would it be ok for my friend who also uses my script to use his api own api after my one runs out, or beause it's the same server IP would get GG upset?

katulago
Oct 22nd 2006, 3:11 am
Is it possible to use multiple keys e.g. using the next API key when the first 1000 queries are made? Or does google ckeck the IP?

murph
Oct 22nd 2006, 3:16 am
Well they say you can't have more than one API key, so no you wouldn't be allowed. I was wondering if a group of you got together and each individual applied for the API key (which is within our rights to do so), what would be the situation of the keys being used from the same site or IP.

EDIT: sorry just re-read you post! Basically you're asking the same as me :)

GeoffreyF67
Nov 1st 2006, 8:22 am
I prefer the way that MSN does their API...5000 requests tracked by IP. Nice and straightforward.

G-Man