This is a fairly common issue. Generally, it's caused by a typo in the API key or a misconfiguration in how you've restricted it. Particularly, check for domain and/or IP address restrictions that may be incorrect.
Also, for future reference, this is a mpderated group. So sometimes, posts - particularly first-time posts - don't show up immediately.
Jg
| API key: | AIzaSyChWV0NI7GTbvnUHr0XzoqWt3HyCyyMTJA |
|---|---|
| IPs: | 66.231.1.171 |
| Activated on: | Jul 12, 2012 2:03 PM |
| API key: | AIzaSyAdEgxFfgKU525LpJrN1qBg_ZZzfYvmyUU |
|---|---|
| Referers: | |
| Activated on: | Jul 12, 2012 10:00 AM |
On Jul 13, 2012 10:44 AM, "Patrick Ziegler" <> wrote:
Are you sending the appropriate http_referer headers? This would explain why it doesn't return when you call it directly from the browser. And if you're calling from a server, you would have to explicitly set the header to one of the specified referers.
Jg
--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
https://groups.google.com/d/msg/google-ajax-search-api/-/hJZfwgWvWGQJ
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
On Jul 13, 2012 10:44 AM, "Patrick Ziegler" <> wrote:
Then it is definitely a header issue. With PHP, you willl need to use curl. There used to be some code samples for this, but I don't know that they are still available. Actually, you might want to check out the client library Google has supplied for PHP. Alternatively, you could remove those referer restrictions, but I don't think I would recommend that, especially if you're going to enable billing. (Wouldn't want someone stealing your queries or money!)
Jg
Then it is definitely a header issue. With PHP, you willl need to use curl. There used to be some code samples for this, but I don't know that they are still available. Actually, you might want to check out the client library Google has supplied for PHP. Alternatively, you could remove those referer restrictions, but I don't think I would recommend that, especially if you're going to enable billing. (Wouldn't want someone stealing your queries or money!)
Jg
On Jul 13, 2012 11:44 AM, "Patrick Ziegler" <> wrote:
If you're going to call it from the client side, you will use the referer restriction method. Restrict it to the servers and domains that will be using it.
If you're calling the API server-side (e.g., from PHP), and it's manageable, then leave it on IP-based restriction.
Jg
--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
If you're going to call it from the client side, you will use the referer restriction method. Restrict it to the servers and domains that will be using it.
If you're calling the API server-side (e.g., from PHP), and it's manageable, then leave it on IP-based restriction.
Jg
On Jul 13, 2012 12:00 PM, "Patrick Ziegler" <pzi...@hotmail.com> wrote:
I added my IP to Key for server apps (with IP locking) and it is now working... Prior to this I had the Web server IP in this... I can work with this as we only have a few IP's that will need to access this. However, I am curious as how one would set it up so any visitor to our site could use the ap...Thanks for all of your input!Pat--
On Friday, July 13, 2012 11:54:40 AM UTC-5, jgeerdes [AJAX APIs "Guru"] wrote:Then it is definitely a header issue. With PHP, you willl need to use curl. There used to be some code samples for this, but I don't know that they are still available. Actually, you might want to check out the client library Google has supplied for PHP. Alternatively, you could remove those referer restrictions, but I don't think I would recommend that, especially if you're going to enable billing. (Wouldn't want someone stealing your queries or money!)
Jg
On Jul 13, 2012 11:44 AM, "Patrick Ziegler" <> wrote:
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
To unsubscribe from this group, send email to