Bad request 400 - www.googleapis.com:443

Hello I hope you can help me, I made a synthetic monitor of the Scripted API type, in which I use the google api but I get this error and it does not show me data.
I would like to know why it is.

This is the error:

{
“error”: {
“code”: 400,
“message”: “API key not valid. Please pass a valid API key.”,
“errors”: [
{
“message”: “API key not valid. Please pass a valid API key.”,
“domain”: “global”,
“reason”: “badRequest”
}
],
“status”: “INVALID_ARGUMENT”
}
}

This may be a google api request as opposed to a New Relic issue. The $http.post or .get does not need an apikey, so I am guessing the issue is in the formatting of the header. I would write out that header prior to the send and then compare that to the Google documentation and see if there are differences there that might explain this.

You will only need your NewRelic api key when calling back into NewRelic for queries and such.

Tim

Hi there @benchmarkheb - Wondering if the advice from @Tim.Walter helped you get to the bottom of the issue?