Credentials not working in custom google search api

Steps not working in n8n to setup custom google search api credentials.

Here is the instructions to setup in n8n.

  • In n8n, create a new credential (e.g. ‘Header Auth’). Name it Google Search Credentials.
  • Add a field with name apiKey and your API Key as the value. Add a second field with name cx and your Search Engine ID as the value.
  • The workflow is pre-configured to use this credential.

The problem is in n8n credentials that I can’t create a apiKey or cx key in the header auth credentials, there is no option to add a new field, there is only one field called “value”

I bought this template from @b4dr please assist.

hi there, welcome to the community
for the apiKey, you can fill it in the Name field that you provided in that image and the api key as the value

for the cx you can add it as a query, in the http request node theres a toggle to send query and just add your cx and your value there

and, if you are referring to this api right here

https://www.googleapis.com/customsearch/v1?key=INSERT_YOUR_API_KEY&cx=017576662512468239146:omuauf_lfve&q=lectures

this one does not use header auth, instead you should use a query auth

Thanks I got it to work with the query params, the template was supposed to be “out of the box”, I had to do a lot of manual changing to get it to work.