# (已取代) 配置 Google 自定义搜索的 API 密钥

**URL:** https://meta.discourse.org/t/superseded-configure-api-keys-for-google-custom-search/284999
**Category:** Integrations
**Tags:** how-to, ai
**Created:** [2023年十一月9日 20:53 UTC](https://meta.discourse.org/t/superseded-configure-api-keys-for-google-custom-search/284999 "2023-11-09T20:53:32Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Aizada\_M](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aizada_m/32/352050_2.png) [@Aizada\_M](https://meta.discourse.org/u/Aizada_M)
#### Post date: [2023年十一月29日 16:19 UTC](https://meta.discourse.org/t/superseded-configure-api-keys-for-google-custom-search/284999/2 "2023-11-29T16:19:27Z")

</div>

> [@Saif](#):
>
> CX 参数

您好，如果我的问题看起来很愚蠢，请原谅我，我不是程序员 🙏 我生成了一个 API 密钥，现在如何获取 CX 参数？

编辑：  
我想我有点草率地问了这个问题，尽管找到我需要的说明花了很多时间。但我还是找到了[俄语说明](https://skine.ru/articles/706840/)。也许有人会觉得这很有用：

### 创建您自己的自定义搜索系统

要获取 CX 参数：

1. 访问 [Programmable Search Engine by Google](https://programmablesearchengine.google.com/about/)  

2. 点击“开始使用”并登录您的 Google 帐户。

3. 点击“新建搜索引擎”并按照说明设置自定义搜索引擎。  

- 输入搜索网站（例如 [https://www.nytimes.com/](https://www.nytimes.com/) 或 [https://www.bbc.com/）。](https://www.bbc.com/%EF%BC%89%E3%80%82)
- 为您的搜索引擎命名。
- 点击“创建”。

1. 通过调整“常规”和“要搜索的网站”选项卡中的设置来自定义您的搜索引擎。

2. 保存数据后，将出现“已创建搜索引擎”通知。转到“设置”选项卡以获取“cx”参数，该参数将显示在 `搜索引擎 ID` 旁边。

---

_[View the full topic](https://meta.discourse.org/t/superseded-configure-api-keys-for-google-custom-search/284999)._
