> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/products/cn/proxies/residential-proxies/endpoint-generator.md). Agents can also search and read this documentation through its [MCP server](https://developers.oxylabs.io/~gitbook/mcp).

# 端点生成器

通过端点生成器简化集成。配置住宅代理位置、会话和身份验证以导出列表。

Endpoint Generator 是一个通过以下方式访问的自动化工具： [Oxylabs 仪表板](https://dashboard.oxylabs.io/?route=/overview/RP/endpoint-generator) 并用于生成自定义的住宅代理端点列表。Endpoint Generator 可在您的住宅代理产品实例中找到 **概览**:

<figure><img src="https://3714446197-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBQ7Zf9paoN3FTeGcyfY1%2Fuploads%2FrHCBVyXaPFpP0V2ovcu5%2FScreenshot%202026-10-05%20at%2004.25.56.png?alt=media&amp;token=3fadc048-8e78-4638-81ed-ebdfeb532ce7" alt=""><figcaption></figcaption></figure>

它允许您选择位置、会话类型、协议格式和输出选项，然后以 CSV、JSON 或 TXT 格式导出可直接使用的代理列表。

### 如何生成代理端点

{% stepper %}
{% step %}

### 选择代理国家

选择住宅代理国家和城市。如果留空为 `任意`，将随机选择位置。

<figure><img src="https://3714446197-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBQ7Zf9paoN3FTeGcyfY1%2Fuploads%2FvAG0awF8ahTSrfjXOjZH%2FScreenshot%202026-10-05%20at%2004.31.30.png?alt=media&amp;token=3c6d50f3-4ec5-4c4a-aeb4-0cce6f4ae941" alt=""><figcaption></figcaption></figure>

查看 [位置设置](https://developers.oxylabs.io/products/cn/proxies/residential-proxies/location-settings.md) 页面以了解更多。
{% endstep %}

{% step %}

### 选择区域

根据客户端应用的位置选择连接区域：

* **全球：** 用于连接的标准入口节点。
* **香港 / 北京：** 针对来自以下位置的连接进行优化的专用入口节点 [中国](https://developers.oxylabs.io/products/cn/proxies/residential-proxies/location-settings.md#china-entry-nodes).

<figure><img src="https://3714446197-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBQ7Zf9paoN3FTeGcyfY1%2Fuploads%2FAh72IEamytZyFMXt4cjm%2FScreenshot%202026-10-05%20at%2004.27.29.png?alt=media&amp;token=f8cc197e-811c-444f-a982-82a7cd672487" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 设置代理协议

从可用的代理协议中选择：

* **HTTP：** `http://pr.oxylabs.io:7777`
* **HTTPS：** `https://pr.oxylabs.io:7777`
* **SOCKS5：** `socks5h://pr.oxylabs.io:7777`
  {% endstep %}

{% step %}

### 选择会话类型

* ​[**粘性会话**](https://app.gitbook.com/o/YFRJGnXcbhIMTe1cuCmz/sites/site_rPdpB/s/BQ7Zf9paoN3FTeGcyfY1/proxies/residential-proxies/session-control)**:** 允许您在指定时长内保持相同的 IP 地址（最长 1440 分钟）。
* **轮换会话：** 每次请求都会获得一个新的 IP 地址。
* [**粘性会话（单 IP）**](#single-ip-strict-session-binding-sessid_oneip)**:** 严格绑定到单个出口节点。若 IP 断开，将以 HTTP `502` 如果 IP 失效。
  {% endstep %}

{% step %}

### 设置时长（粘性会话）

在滑块上为您的粘性会话选择会话时长，范围为 `1` 分钟到 `1440` 分钟（默认值 – `10`).
{% endstep %}

{% step %}

### 选择输出格式

从以下项中选择输出格式：

* cURL
* Python
* PHP
* Node.js
* GO
* Java
* 集成

<figure><img src="https://3714446197-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBQ7Zf9paoN3FTeGcyfY1%2Fuploads%2Fm08UmoUrS3FzVextbTHO%2FScreenshot%202026-10-05%20at%2004.46.04.png?alt=media&amp;token=2c262214-27f4-4cf1-ae28-a2e2d33e5751" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

就是这样！您已成功创建可直接使用的住宅代理端点列表！


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.oxylabs.io/products/cn/proxies/residential-proxies/endpoint-generator.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
