n8n: Swap SerpApi for a Cheaper Search API in 5 Minutes
Описание и применение
В этом рецепте показано, как заменить SerpApi на Litescrape в n8n, чтобы снизить расходы и скрыть ключ API.
Задача
The SerpApi call is the most expensive part of an n8n workflow that pulls Google Shopping results, and its API key is exposed in the node’s query string.
Результат
The workflow now uses a cheaper search API, reduces cost per run, and secures the API key by moving it to an encrypted credential.
Рабочий процесс
- Change the URL to the Litescrape Google Shopping endpoint.
- Delete the engine and api_key query parameters.
- Configure Generic Credential Type as Bearer Auth and store the Litescrape API key.
- Rename the node and update any references.
- Execute the node to test the single request, then run the full workflow.
Доказательства
The search call is usually the most expensive part of the run.
The key travels as a query parameter.
Litescrape expects the key in the Authorization header as a bearer token.
- Дата записи: 2026-10-09T14:55:52.227Z