Cameron B
Cameron B

Reputation: 86

Is it possible to see which IP addresses are using your Google API key?

I have trawled all the way through GCP, GCP FAQ, GS & SO. Would anyone know if it is possible to get the IP address information from Google API key requests?

Thanks again.

Upvotes: 1

Views: 3145

Answers (1)

Ilan P
Ilan P

Reputation: 1792

You can’t obtain any parameters in the return from Google’s service, the responses are pretty much set in stone and the only modifiers are whatever parameters you pass, BUT you could include a custom script to trigger along the request with the remote host’s IP address and use a web service like http://ip-api.com to decode the IP and store it along your request, this way you can correlate the created time of the Google API execution with the data you captured using a “ride along” script; just an idea if there’s any other way I’d love to know myself but I’ve used nearly all of Google’s APIs to know API analytics doesn’t show the requests origin IP nor does it store it anywhere, that’s why I’m suggesting implement a small bridge-through call to a third party service to get the data you need. :)

Upvotes: 1

Related Questions