Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

n8n: Swap SerpApi for a Cheaper Search API in 5 Minutes

说明与用途

本教程展示如何在 n8n 中将 SerpApi 替换为 Litescrape,以降低成本并保护 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