<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>Manuals &#8211; ProxySP</title>
	<atom:link href="https://proxysp.com/zh/manuals/feed/" rel="self" type="application/rss+xml" />
	<link>https://proxysp.com/zh</link>
	<description>2025 年最佳代理服务提供商评测</description>
	<lastbuilddate>Thu, 10 Oct 2024 03:55:46 +0000</lastbuilddate>
	<language>zh-Hans</language>
	<sy:updateperiod>
	每小时	</sy:updateperiod>
	<sy:updatefrequency>
	1	</sy:updatefrequency>
	<generator>https://wordpress.org/?v=6.4.6</generator>

<image>
	<url>https://proxysp.com/wp-content/uploads/2021/01/icon-90x90.jpeg</url>
	<title>Manuals &#8211; ProxySP</title>
	<link>https://proxysp.com/zh</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">149675634</site>	<item>
		<title>How to Use Proxy-IPV4 API</title>
		<link>https://proxysp.com/zh/how-to-use-proxy-ipv4-api/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-use-proxy-ipv4-api</link>
					<comments>https://proxysp.com/zh/how-to-use-proxy-ipv4-api/#respond</comments>
		
		<dc:creator><![CDATA[proxysp]]></dc:creator>
		<pubdate>Fri, 16 Jun 2023 09:14:05 +0000</pubdate>
				<category><![CDATA[APIs]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=11249</guid>

					<description><![CDATA[Proxy-IPV4 API 可让您将代理的购买和续订集成到您的服务或应用程序中。合作伙伴与代理服务器之间的互动 ...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/how-to-use-proxy-ipv4-api/"> <span class="screen-reader-text">如何使用 Proxy-IPV4 API</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<p class="documentation-descriptions documentation-mb"><a href="https://proxy-zone.net/pz/proxy-ipv4" target="_blank" rel="nofollow noopener">Proxy-IPV4 应用程序接口</a> 可让您将代理的购买和续订集成到您的服务或应用程序中。合作伙伴与系统的交互，以及系统与合作伙伴的交互，都是通过 "应用程序/json "请求和响应进行的。所有通信均采用 UTF-8 编码。系统实施了防止 DOS 攻击的保护措施；每秒不允许有一个以上的请求。如果每秒发送的请求超过一个，响应将为 <span class="documentation-red">error_id=2</span>在这种情况下，我们建议再次发送请求。</p>
<h2>一般要求</h2>
<h3></h3>
<h3>获取余额信息</h3>
<p class="descriptions"><img decoding="async" src="https://proxy-ipv4.com/img/ui/infoApi.svg" alt="icon" width="16" height="16" />该请求允许查看当前余额</p>
<div class="api-item-request">
<div class="type">获取</div>
<p>/client-api/v1/<span class="key">&lt;apiKey</span>/get/balance</p>
</div>
<p><span class="sub-title">正文答案示例：</span></p>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":13.09、
"货币": "美元
}
</pre>
<div class="api-item-contain mb-48">
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"成功"</span><span class="descriptions"> - 运行状态</span> &#8211;<span class="data">"真/假"</span>,</li>
<li class="list-item"><span class="list-item-params params">"平衡"</span><span class="descriptions"> - 当前余额</span>.</li>
</ul>
</div>
<div class="api-item-contain mb-48">
<hr />
<h3><strong><span class="title">获取完整的购买代理列表</span></strong></h3>
<div class="line"><span style="font-size: 16px;">获取</span></div>
<div class="api-item-request">
<p>/client-api/v1/<span class="key">&lt;apiKey</span>/get/proxies</p>
</div>
<p><span class="sub-title">正文答案示例：</span></p>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":13.09、
"currency": "USD"、
"countOfProxy":6、
"ipv4"：
[
{
"id": "id1"、
"ip":"185.81.112.215",
"country": "GBR"、
"dateStart":"2022-08-29T14:55:38.293+00:00",
"dateEnd":"2022-08-30T23:59:38.293+00:00",
"httpsPort": "49162"、
"socks5Port":"49163",
"authInfo"：
{
"login":"authLogin123",
"密码": "authPassword"
}
},
{
"id": "id2"、
"ip":"107.181.142.223",
"country": "GBR"、
"dateStart":"2022-08-29T14:55:38.293+00:00",
"dateEnd":"2022-08-30T23:59:38.293+00:00",
"httpsPort": "49162"、
"socks5Port":"49163",
"authInfo"：
{
"login":"authLogin123",
"密码": "authPassword"
}
}
],
"ipv6"：
[
{
"orderId": "orderId1"、
"ips"：
[
{
"id": "id3"、
"ip":"140.82.53.23:10002",
"country": "FRA"、
"dateStart":"2022-08-03T14:04:59.131+00:00",
"dateEnd":"2022-10-02T14:04:59.159+00:00",
"protocol": "SOCKS5"、
"authInfo"：
{
"login":"authLogin123",
"密码": "authPassword"
}
},
{
"id": "id4"、
"ip":"140.82.53.23:10004",
"country": "FRA"、
"dateStart":"2022-08-03T14:04:59.131+00:00",
"dateEnd":"2022-10-02T14:04:59.159+00:00",
"protocol": "SOCKS5"、
"authInfo"：
{
"login":"authLogin123",
"密码": "authPassword"
}
}
]
}
],
"移动"：
[
{
"id": "id5"、
"IP"："61.62.63.64"、
"country": "FRA"、
"dateStart":"2022-08-30T14:54:25.414+00:00",
"dateEnd":"2022-09-29T23:59:25.414+00:00",
"httpsPort": "7781"、
"socks5Port": "8891"、
"mobileOperator": "freemobilesas_france"、
"rotationTime":0、
"rebootLink":"https://proxy-ipv4.com/modem/reboot/448eac96-8546-4389-8f56-54b2sb4798d12",
"authInfo"：
{
"login":"authLogin123",
"密码": "authPassword"
}
},
{
"id": "id6"、
"IP": "61.62.63.64"、
"country": "FRA"、
"dateStart":"2022-08-30T14:54:25.414+00:00",
"dateEnd":"2022-09-29T23:59:25.414+00:00",
"httpsPort": "7782"、
"socks5Port": "8892"、
"mobileOperator": "freemobilesas_france"、
"rotationTime":0、
"rebootLink":"https://proxy-ipv4.com/modem/reboot/44cf7d39-b682-4296-8909-7038ba99008b5",
"authInfo"：
{
"login":"authLogin123",
"密码": "authPassword"
}
}
]
}
</pre>
</div>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"ipv4"</span><span class="descriptions"> - 活动 IPv4 代理列表</span>,</li>
<li class="list-item"><span class="list-item-params params">"ipv6"</span><span class="descriptions"> - 活动 IPv6 代理列表</span>,</li>
<li class="list-item"><span class="list-item-params params">"移动"</span><span class="descriptions"> - 活动的移动代理列表</span>,</li>
<li class="list-item"><span class="list-item-params params">"id"</span><span class="descriptions"> - 代理 ID。扩展代理</span>,</li>
<li class="list-item"><span class="list-item-params params">"orderId"</span><span class="descriptions"> - 订单 ID。与其他代理类型不同，Ipv6 只允许按顺序扩展所有代理。</span>,</li>
<li class="list-item"><span class="list-item-params params">"国家"</span><span class="descriptions"> - alfa3 国家代码</span>,</li>
<li class="list-item"><span class="list-item-params params">"日期开始"</span><span class="descriptions"> - 租金开始日期</span>,</li>
<li class="list-item"><span class="list-item-params params">"日期结束"</span><span class="descriptions"> - 租金终止日期</span>,</li>
<li class="list-item"><span class="list-item-params params">"authInfo"</span><span class="descriptions"> - 授权数据</span>,</li>
<li class="list-item"><span class="list-item-params params">"协议"</span><span class="descriptions"> - 规程</span> &#8211;<span class="data">"HTTPS/SOCKS5"</span>,</li>
<li class="list-item"><span class="list-item-params params">"旋转时间"</span><span class="descriptions"> - IP 地址的轮转时间（分钟）。0 表示链路随时轮换</span>,</li>
<li class="list-item"><span class="list-item-params params">"重启链接"</span><span class="descriptions"> - IP 重启链接</span>,</li>
<li class="list-item"><span class="list-item-params params">"移动操作员"</span><span class="descriptions"> - 移动运营商</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><strong><span class="title">获取代理购买/续订的可用天数</span></strong></h3>
</div>
<div></div>
<div>
<p class="descriptions"><img decoding="async" src="https://proxy-ipv4.com/img/ui/infoApi.svg" alt="icon" width="16" height="16" />可用天数因代理类型而异</p>
<div class="api-item-request">
<div class="type">获取</div>
<p>/client-api/v1/<span class="key">&lt;apiKey</span>/get/days</p>
</div>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型。值有三种类型</span> &#8211;<span class="data">"IPV4/IPV6/移动"</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/days?proxyType=ipv4</div>
<p><span class="sub-title">正文答案示例：</span></p>
</div>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":13.09、
"currency": "USD"、
"天数"：
[
1,
7,
14,
30,
60,
90
]
}
</pre>
<div>
<hr />
<h3><span class="title">获取可购买的国家列表</span></h3>
<p class="descriptions"><img decoding="async" src="https://proxy-ipv4.com/img/ui/infoApi.svg" alt="icon" width="16" height="16" />可用国家列表可能因代理类型而异</p>
<div class="api-item-request">
<div class="type">获取</div>
<p>/client-api/v1/<span class="key">&lt;apiKey</span>/get/countries</p>
</div>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型。值有三种类型</span> &#8211;<span class="data">"IPV4/IPV6/移动"</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/countries?proxyType=ipv4</div>
<p><span class="sub-title">正文答案示例：</span></p>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":13.09、
"currency": "USD"、
"国家"：
[
{
"name": "ENGLAND"、
"alpha3code"："GBR
},
{
"名称"："美国
"字母3代码": "USA"
},
{
"名称"："法国
"阿尔法3代码": "FRA"
}
]
}</pre>
</div>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"姓名"</span><span class="descriptions"> - 国名</span>,</li>
<li class="list-item"><span class="list-item-params params">"alpha3code"</span><span class="descriptions"> - alfa3 国家代码。该字段的值将用于下订单</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain"><span class="title">获取可供购买的目标列表</span></h3>
<div class="api-item-contain">
<p><span style="font-size: 16px;">获取</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/goals</div>
<p><span class="sub-title">正文答案示例：</span></p>
</div>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":13.09、
"货币": "美元
目标
[
"instagram"、
"facebook"、
"vk"、
"博彩公司"、
"avito"、
"亚马逊
"cs go"、
"tiktok
]
}
</pre>
<div>
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"目标"</span><span class="descriptions"> - 可用目标列表。下订单时必须使用该参数。如果列表中没有您需要的内容，您可以在下订单时使用 "自定义目标 "字段</span>.</li>
</ul>
<hr />
</div>
</div>
<h2>IPv4 请求</h2>
<h3><span class="title">获取已购买代理的 IPv4 列表</span></h3>
<p>获取<br />
/client-api/v1/<span class="key">&lt;apiKey</span>/get/proxies</p>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型</span> &#8211;<span class="data">"ipv4"</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/proxies?proxyType=ipv4</div>
<p><span class="sub-title">正文答案示例：</span></p>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":13.09、
"currency": "USD"、
"proxyType": "ipv4"、
"countOfProxy":2、
"代理"：
[
{
"id": "id1"、
"ip":"185.81.112.215",
"country": "GBR"、
"dateStart":"2022-08-29T14:55:38.293+00:00",
"dateEnd":"2022-08-30T23:59:38.293+00:00",
"httpsPort": "49162"、
"socks5Port":"49163",
"authInfo"：
{
"login":"authLogin123",
"密码": "authPassword"
}
},
{
"id": "id2"、
"ip":"107.181.142.223",
"country": "GBR"、
"dateStart":"2022-08-29T14:55:38.293+00:00",
"dateEnd":"2022-08-30T23:59:38.293+00:00",
"httpsPort": "49162"、
"socks5Port":"49163",
"authInfo"：
{
"login":"authLogin123",
"密码": "authPassword"
}
}
]
}
</pre>
<div class="api-item-contain mb-48">
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理"</span><span class="descriptions"> - 活动 IPv4 代理列表</span>,</li>
<li class="list-item"><span class="list-item-params params">"id"</span><span class="descriptions"> - 代理 ID。扩展代理</span>,</li>
<li class="list-item"><span class="list-item-params params">"国家"</span><span class="descriptions"> - alfa3 国家代码</span>,</li>
<li class="list-item"><span class="list-item-params params">"日期开始"</span><span class="descriptions"> - 租金开始日期</span>,</li>
<li class="list-item"><span class="list-item-params params">"日期结束"</span><span class="descriptions"> - 租金终止日期</span>,</li>
<li class="list-item"><span class="list-item-params params">"authInfo"</span><span class="descriptions"> - 授权数据</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">计算购买价格</span></h3>
<div></div>
<div class="api-item-contain mb-48">
<p><span style="font-size: 16px;">获取</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/order/price</div>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型</span> &#8211;<span class="data">"ipv4"</span>,</li>
<li class="list-item"><span class="list-item-params params">"天"</span><span class="descriptions"> - 租用天数（可通过其他请求获得可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"目标"</span><span class="descriptions"> - 使用代理的目的（可通过其他请求获取可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"自定义目标"</span><span class="descriptions"> - 如果目标列表中没有您需要的目标，您可以指定自己的目标。字段的长度必须为 5 个字符或以上（请求中必须有一个参数--目标或自定义目标）</span>,</li>
<li class="list-item"><span class="list-item-params params">"国家"</span><span class="descriptions"> - alfa3 国家代码（可通过其他请求获取可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"计数"</span><span class="descriptions"> - 代表人数</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/order/price?proxyType=ipv4&amp;days=7&amp;goal=instagram&amp;country=FRA&amp;count=2</div>
<p><span class="sub-title">正文答案示例：</span></p>
</div>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":13.09、
"currency": "USD"、
"proxyType": "ipv4"、
"天数":7、
"count":2、
"目标": "instagram"、
"amount":2.78、
"价格":1.39
}
</pre>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"金额"</span><span class="descriptions"> - 总金额</span>,</li>
<li class="list-item"><span class="list-item-params params">"价格"</span><span class="descriptions"> - 一个代理的价格</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">计算扩展价格</span></h3>
<div class="api-item-contain mb-48">
<p><span style="font-size: 16px;">获取</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/extend/price</div>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型</span> &#8211;<span class="data">"ipv4"</span>,</li>
<li class="list-item"><span class="list-item-params params">"天"</span><span class="descriptions"> - 续订天数（可用值与购买时相同）</span>,</li>
<li class="list-item"><span class="list-item-params params">"IpId"</span><span class="descriptions"> - 需要更新的代理 ID（允许用逗号分隔多个 ID）</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/extend/price?proxyType=ipv4&amp;days=7&amp;IpId=id1,id2,id3</div>
<p><span class="sub-title">正文答案示例：</span></p>
</div>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":13.09、
"currency": "USD"、
"proxyType": "ipv4"、
"天数":7、
"count":3、
"amount":9.13、
"price":3.04、
"ipId"：
[
"id1"、
"id2"、
"id3
]
}
</pre>
</div>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"金额"</span><span class="descriptions"> - 总金额</span>,</li>
<li class="list-item"><span class="list-item-params params">"价格"</span><span class="descriptions"> - 延长一个代理权的价格</span>,</li>
<li class="list-item"><span class="list-item-params params">"ipId"</span><span class="descriptions"> - 的代理 ID 列表，用于扩展</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">下订单</span></h3>
<div> <span style="font-size: 16px;">职位</span></div>
<div class="api-item-contain mb-48">
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/订购</div>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型</span> &#8211;<span class="data">"ipv4"</span>,</li>
<li class="list-item"><span class="list-item-params params">"天"</span><span class="descriptions"> - 租用天数（可通过其他请求获得可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"目标"</span><span class="descriptions"> - 使用代理的目的（可通过其他请求获取可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"自定义目标"</span><span class="descriptions"> - 如果目标列表中没有您需要的目标，您可以指定自己的目标。字段的长度必须为 5 个字符或以上（请求中必须有一个参数--目标或自定义目标）</span>,</li>
<li class="list-item"><span class="list-item-params params">"国家"</span><span class="descriptions"> - alfa3 国家代码</span>,</li>
<li class="list-item"><span class="list-item-params params">"计数"</span><span class="descriptions"> - 代表人数</span>,</li>
<li class="list-item"><span class="list-item-params params">"authType"</span><span class="descriptions"> - 授权类型</span> &#8211;<span class="data">"login/ip"</span>,</li>
<li class="list-item"><span class="list-item-params params">"authIp"</span><span class="descriptions"> - 授权 IP 地址。只有在 authType = ip 时才需要填写此字段。</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/订购</div>
<p><span class="sub-title">例文 reqwest：</span></p>
</div>
<pre>{
"proxyType": "ipv4"、
"天数":90 天
"goal": "instagram"、
"country": "GBR"、
"count":2、
"authType": "login" }
}
</pre>
</div>
<div>正文答案示例：</div>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":4.09、
"currency": "USD"、
"proxyType": "ipv4"、
"orderNumber":"DV-16620211552356-jA"
}
</pre>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"订单号"</span><span class="descriptions"> - 订单号</span>,</li>
<li class="list-item"><span class="list-item-params params">"平衡"</span><span class="descriptions"> - 购买后的余额</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain"><span class="title">扩展代理</span></h3>
<div class="api-item-contain">
<p><span style="font-size: 16px;">职位</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/扩展</div>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型</span> &#8211;<span class="data">"ipv4"</span>,</li>
<li class="list-item"><span class="list-item-params params">"天"</span><span class="descriptions"> - 续订天数（可用值与购买时相同）</span>,</li>
<li class="list-item"><span class="list-item-params params">"IpId"</span><span class="descriptions"> - 要扩展的代理 ID 列表</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/扩展</div>
<p><span class="sub-title">例文 reqwest：</span></p>
</div>
<pre>{
"proxyType": "ipv4"、
"天数":30、
"IpId"：
[
"id1"、
"id2
]
}
</pre>
<p>正文答案示例：</p>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":4.09、
"currency": "USD
}
</pre>
<div>
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"平衡"</span><span class="descriptions"> - 延长后的余额</span>.</li>
</ul>
<hr />
</div>
</div>
<h2>IPv6 请求</h2>
<h3>获取已购买代理的 IPv4 列表</h3>
<p><span style="font-size: 16px;">获取</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/proxies</div>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型</span> &#8211;<span class="data">"ipv6"</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/proxies?proxyType=ipv6</div>
<p><span class="sub-title">正文答案示例：</span></p>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":13.09、
"currency": "USD"、
"proxyType": "ipv6"、
"countOfProxy":2、
"代理"：
[
{
"orderId": "orderId1"、
"ips"：
[
{
"id": "id1"、
"ip":"140.82.53.23:10002",
"country": "FRA"、
"dateStart":"2022-08-03T14:04:59.131+00:00",
"dateEnd":"2022-10-02T14:04:59.159+00:00",
"protocol": "SOCKS5"、
"authInfo"：
{
"login":"authLogin123",
"密码": "authPassword"
}
},
{
"id": "id2"、
"ip":"140.82.53.23:10004",
"country": "FRA"、
"dateStart":"2022-08-03T14:04:59.131+00:00",
"dateEnd":"2022-10-02T14:04:59.159+00:00",
"protocol": "SOCKS5"、
"authInfo"：
{
"login":"authLogin123",
"密码": "authPassword"
}
}
]
}
]
}
</pre>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理"</span><span class="descriptions"> - 活动 IPv4 代理列表</span>,</li>
<li class="list-item"><span class="list-item-params params">"orderId"</span><span class="descriptions"> - //太</span>,</li>
<li class="list-item"><span class="list-item-params params">"id"</span><span class="descriptions"> - 代理 ID</span>,</li>
<li class="list-item"><span class="list-item-params params">"国家"</span><span class="descriptions"> - alfa3 国家代码</span>,</li>
<li class="list-item"><span class="list-item-params params">"日期开始"</span><span class="descriptions"> - 租金开始日期</span>,</li>
<li class="list-item"><span class="list-item-params params">"日期结束"</span><span class="descriptions"> - 租金终止日期</span>,</li>
<li class="list-item"><span class="list-item-params params">"协议"</span><span class="descriptions"> - 规程</span> &#8211;<span class="data">"HTTPS/SOCKS5"</span>,</li>
<li class="list-item"><span class="list-item-params params">"authInfo"</span><span class="descriptions"> - 授权数据</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">计算购买价格</span></h3>
<div class="api-item-request">
<div class="type">获取</div>
<p>/client-api/v1/<span class="key">&lt;apiKey</span>/get/order/price</p>
</div>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型</span> &#8211;<span class="data">"ipv6"</span>,</li>
<li class="list-item"><span class="list-item-params params">"天"</span><span class="descriptions"> - 租用天数（可通过其他请求获得可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"目标"</span><span class="descriptions"> - 使用代理的目的（可通过其他请求获取可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"自定义目标"</span><span class="descriptions"> - 如果目标列表中没有您需要的目标，您可以指定自己的目标。字段的长度必须为 5 个字符或以上（请求中必须有一个参数--目标或自定义目标）</span>,</li>
<li class="list-item"><span class="list-item-params params">"国家"</span><span class="descriptions"> - alfa3 国家代码（可通过其他请求获取可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"计数"</span><span class="descriptions"> - 代理的数量。该值必须大于 10</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/order/price?proxyType=ipv6&amp;days=30&amp;goal=instagram&amp;country=FRA&amp;count=10</div>
<p><span class="sub-title">正文答案示例：</span></p>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":13.09、
"currency": "USD"、
"proxyType": "ipv6"、
"天数":30
"count":10、
"目标": "instagram"、
"amount":7.25、
"价格":0.72
}
</pre>
</div>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"金额"</span><span class="descriptions"> - 总金额</span>,</li>
<li class="list-item"><span class="list-item-params params">"价格"</span><span class="descriptions"> - 一个代理的价格</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">计算扩展价格</span></h3>
<div class="api-item-contain mb-48">
<p><span style="font-size: 16px;">获取</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/extend/price</div>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型</span> &#8211;<span class="data">"ipv6"</span>,</li>
<li class="list-item"><span class="list-item-params params">"天"</span><span class="descriptions"> - 续订天数（可用值与购买时相同）</span>,</li>
<li class="list-item"><span class="list-item-params params">"orderId"</span><span class="descriptions"> - 需要续订的订单 ID（允许用逗号分隔多个 ID）</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/extend/price?proxyType=ipv6&amp;days=30&amp;orderId=orderId1,orderId2</div>
<p><span class="sub-title">正文答案示例：</span></p>
</div>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":13.09、
"currency": "USD"、
"proxyType": "ipv6"、
"天数":30、
"count":20、
"amount":123.42、
"price":6.17、
"ordersId"：
[
"orderId1"、
"orderId2
],
"ipId"：
[
"id1"、
"id2"、
"id3"、
"id4"、
"id5"、
"id6"、"id7
"id7"、"id8
"id8"、"id9
"id9"、"id10
"id10"、"id11
"id11"、"id12
"id12"、"id13
"id13"、"id14
"id14"、"id15
"id15"、"id16
"id16"、"id17
"id17"、"id18
"id18
"id19"、"id20
"id20"
]
}
</pre>
</div>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"金额"</span><span class="descriptions"> - 总金额</span>,</li>
<li class="list-item"><span class="list-item-params params">"价格"</span><span class="descriptions"> - 延长一个代理权的价格</span>,</li>
<li class="list-item"><span class="list-item-params params">"ordersId"</span><span class="descriptions"> - 的订单 ID 列表，用于扩展</span>,</li>
<li class="list-item"><span class="list-item-params params">"ipId"</span><span class="descriptions"> - 的代理 ID 列表，用于扩展</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">下订单</span></h3>
<div class="api-item-contain mb-48">
<p><span style="font-size: 16px;">职位</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/订购</div>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型</span> &#8211;<span class="data">"ipv6"</span>,</li>
<li class="list-item"><span class="list-item-params params">"天"</span><span class="descriptions"> - 租用天数（可通过其他请求获得可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"目标"</span><span class="descriptions"> - 使用代理的目的（可通过其他请求获取可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"自定义目标"</span><span class="descriptions"> - 如果目标列表中没有您需要的目标，您可以指定自己的目标。字段的长度必须为 5 个字符或以上（请求中必须有一个参数--目标或自定义目标）</span>,</li>
<li class="list-item"><span class="list-item-params params">"国家"</span><span class="descriptions"> - alfa3 国家代码</span>,</li>
<li class="list-item"><span class="list-item-params params">"计数"</span><span class="descriptions"> - 代理的数量。数值可以大于 10</span>,</li>
<li class="list-item"><span class="list-item-params params">"authType"</span><span class="descriptions"> - 授权类型</span> &#8211;<span class="data">"login/ip"</span>,</li>
<li class="list-item"><span class="list-item-params params">"authIp"</span><span class="descriptions"> - 授权 IP 地址。只有在 authType = ip 时才需要填写此字段。</span>,</li>
<li class="list-item"><span class="list-item-params params">"协议"</span><span class="descriptions"> - 规程</span> &#8211;<span class="data">"HTTPS/SOCKS5"</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/订购</div>
<p><span class="sub-title">例文 reqwest：</span></p>
<pre>{
"proxyType": "ipv6"、
"天数":30 天
"goal": "instagram"、
"country": "GBR"、
"count":10、
"authType": "login"、
"协议": "SOCKS5"
}</pre>
</div>
<div>正文答案示例：</div>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":4.09、
"currency": "USD"、
"proxyType": "ipv6"、
"orderNumber":"DV-211552356-jA"
}
</pre>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"订单号"</span><span class="descriptions"> - 订单号</span>,</li>
<li class="list-item"><span class="list-item-params params">"平衡"</span><span class="descriptions"> - 购买后的余额</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain"><span class="title">扩展代理</span></h3>
<div></div>
<div class="api-item-contain">
<p><span style="font-size: 16px;">职位</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/扩展</div>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型</span> &#8211;<span class="data">"ipv6"</span>,</li>
<li class="list-item"><span class="list-item-params params">"天"</span><span class="descriptions"> - 续订天数（可用值与购买时相同）</span>,</li>
<li class="list-item"><span class="list-item-params params">"orderId"</span><span class="descriptions"> - 要扩展的订单 ID 列表</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/扩展</div>
<p><span class="sub-title">例文 reqwest：</span></p>
</div>
<pre>{
"proxyType": "ipv6"、
"天数":30、
"orderId"：
[
"orderId1" [
]
}
</pre>
</div>
<div>正文答案示例：</div>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":4.09、
"currency": "USD
}
</pre>
<div>
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"平衡"</span><span class="descriptions"> - 延长后的余额</span>.</li>
</ul>
<hr />
</div>
<div>
<div class="api-item documentation-mb">
<div class="api-item-dropdown">
<div class="api-item-dropdown-container">
<div class="api-item-contain">
<h2>移动请求</h2>
<h3></h3>
<h3><span class="title">获取可用移动资费列表</span></h3>
<div class="line"><span style="font-size: 16px;">获取</span></div>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/tariffs</div>
<p><span class="sub-title">正文答案示例：</span></p>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":13.09、
"货币": "美元
"关税"：
[
{
"country": "GBR"、
"mobileOperator"：
[
{
"名称"："Three
"rotationTime"：
[
0,
5,
10
]
},
{
"名称"："O2"、
"旋转时间
[
5,
10
]
}
]
},
{
"country": "USA"、
"移动运营商"：
[
{
"name"："AT&amp;T Wireless"、
"rotationTime"：
[
0,
5,
10
]
}
]
}
]
}
</pre>
<div class="api-item-contain mb-48">
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"关税"</span><span class="descriptions"> - 关税清单</span>,</li>
<li class="list-item"><span class="list-item-params params">"国家"</span><span class="descriptions"> - alfa3 国家代码</span>,</li>
<li class="list-item"><span class="list-item-params params">"移动操作员"</span><span class="descriptions"> - 该国可用的运营商列表</span>,</li>
<li class="list-item"><span class="list-item-params params">"旋转时间"</span><span class="descriptions"> - IP 地址的可用轮转时间（分钟）。0 表示链路随时轮转</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">活动的移动代理列表</span></h3>
<div></div>
<div class="api-item-contain mb-48">
<p><span style="font-size: 16px;">获取</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/proxies</div>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型</span> &#8211;<span class="data">"移动"</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/proxies?proxyType=mobile</div>
<p><span class="sub-title">正文答案示例：</span></p>
</div>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":13.09、
"货币": "美元
"proxyType": "mobile"、
"countOfProxy":2、
"代理"：
[
{
"id": "id1"、
"ip": "61.62.63.64"、
"country": "FRA"、
"dateStart":"2022-08-30T14:54:25.414+00:00",
"dateEnd":"2022-09-29T23:59:25.414+00:00",
"httpsPort": "7781"、
"socks5Port": "8891"、
"mobileOperator": "freemobilesas_france"、
"rotationTime":0、
"rebootLink":"https://proxy-ipv4.com/modem/reboot/448eac96-8546-4389-8f56-54b2sb4798d12",
"authInfo"：
{
"login":"authLogin123",
"密码": "authPassword"
}
},
{
"id": "id2"、
"IP": "61.62.63.64"、
"country": "FRA"、
"dateStart":"2022-08-30T14:54:25.414+00:00",
"dateEnd":"2022-09-29T23:59:25.414+00:00",
"httpsPort": "7782"、
"socks5Port": "8892"、
"mobileOperator": "freemobilesas_france"、
"rotationTime":0、
"rebootLink":"https://proxy-ipv4.com/modem/reboot/44cf7d39-b682-4296-8909-7038ba99008b5",
"authInfo"：
{
"login":"authLogin123",
"密码": "authPassword"
}
}
]
}</pre>
</div>
</div>
</div>
</div>
</div>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理"</span><span class="descriptions"> - 活动代理列表</span>,</li>
<li class="list-item"><span class="list-item-params params">"id"</span><span class="descriptions"> - 代理 ID。扩展代理</span>,</li>
<li class="list-item"><span class="list-item-params params">"国家"</span><span class="descriptions"> - alfa3 国家代码</span>,</li>
<li class="list-item"><span class="list-item-params params">"日期开始"</span><span class="descriptions"> - 租金开始日期</span>,</li>
<li class="list-item"><span class="list-item-params params">"日期结束"</span><span class="descriptions"> - 租金终止日期</span>,</li>
<li class="list-item"><span class="list-item-params params">"旋转时间"</span><span class="descriptions"> - IP 地址的轮转时间（分钟）。0 表示链路随时轮转</span>,</li>
<li class="list-item"><span class="list-item-params params">"重启链接"</span><span class="descriptions"> - 旋转 IP 的链接</span>,</li>
<li class="list-item"><span class="list-item-params params">"authInfo"</span><span class="descriptions"> - 授权数据</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">计算购买价格</span></h3>
<div></div>
<div class="api-item-contain mb-48">
<p><span style="font-size: 16px;">获取</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/order/price</div>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型</span> &#8211;<span class="data">"移动"</span>,</li>
<li class="list-item"><span class="list-item-params params">"天"</span><span class="descriptions"> - 租用天数（可通过其他请求获得可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"目标"</span><span class="descriptions"> - 使用代理的目的（可通过其他请求获取可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"自定义目标"</span><span class="descriptions"> - 如果目标列表中没有您需要的目标，您可以指定自己的目标。字段的长度必须为 5 个字符或以上（请求中必须有一个参数--目标或自定义目标）</span>,</li>
<li class="list-item"><span class="list-item-params params">"国家"</span><span class="descriptions"> - alfa3 国家代码（可通过其他请求获取可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"计数"</span><span class="descriptions"> - 代表人数</span>,</li>
<li class="list-item"><span class="list-item-params params">"移动操作员"</span><span class="descriptions"> - 移动运营商（可通过其他请求获取可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"旋转时间"</span><span class="descriptions"> - IP 地址的轮换时间，以分钟为单位（可用值可通过其他请求获取）。</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/order/price?proxyType=mobile&amp;days=7&amp;goal=instagram&amp;country=FRA&amp;count=1&amp;mobileOperator=freemobilesas_france&amp;rotationTime=5</div>
<p><span class="sub-title">正文答案示例：</span></p>
</div>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":13.09、
"货币": "美元
"proxyType": "mobile"、
"rotationTime":5、
"mobileOperator": "freemobilesas_france"、
"天数":7、
"count":1、
"目标": "instagram"、
"金额":1.78、
"价格":1.78
}
</pre>
</div>
</div>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"金额"</span><span class="descriptions"> - 总金额</span>,</li>
<li class="list-item"><span class="list-item-params params">"价格"</span><span class="descriptions"> - 一个代理的价格</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">计算扩展价格</span></h3>
<div></div>
<div class="api-item-contain mb-48">
<p><span style="font-size: 16px;">获取</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/extend/price</div>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型</span> &#8211;<span class="data">"移动"</span>,</li>
<li class="list-item"><span class="list-item-params params">"天"</span><span class="descriptions"> - 续订天数（可用值与购买时相同）</span>,</li>
<li class="list-item"><span class="list-item-params params">"IpId"</span><span class="descriptions"> - 需要更新的代理 ID（允许用逗号分隔多个 ID）</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/get/extend/price?proxyType=mobile&amp;days=7&amp;IpId=id1,id2,id3</div>
<p><span class="sub-title">正文答案示例：</span></p>
</div>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":13.09、
"货币": "美元
"代理类型": "移动"、
"天数":7 天
"count":3、
"amount":9.13、
"price":3.04、
"ipId"：
[
"id1"、
"id2"、
"id3
]
}
</pre>
</div>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"金额"</span><span class="descriptions"> - 总金额</span>,</li>
<li class="list-item"><span class="list-item-params params">"价格"</span><span class="descriptions"> - 延长一个代理权的价格</span>,</li>
<li class="list-item"><span class="list-item-params params">"ipId"</span><span class="descriptions"> - 的代理 ID 列表，用于扩展</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">下订单</span></h3>
<div></div>
<div class="api-item-contain mb-48">
<p><span style="font-size: 16px;">职位</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/订购</div>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型</span> &#8211;<span class="data">"移动"</span>,</li>
<li class="list-item"><span class="list-item-params params">"天"</span><span class="descriptions"> - 租用天数（可通过其他请求获得可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"目标"</span><span class="descriptions"> - 使用代理的目的（可通过其他请求获取可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"自定义目标"</span><span class="descriptions"> - 如果目标列表中没有您需要的目标，您可以指定自己的目标。字段的长度必须为 5 个字符或以上（请求中必须有一个参数--目标或自定义目标）</span>,</li>
<li class="list-item"><span class="list-item-params params">"国家"</span><span class="descriptions"> - alfa3 国家代码</span>,</li>
<li class="list-item"><span class="list-item-params params">"计数"</span><span class="descriptions"> - 代表人数</span>,</li>
<li class="list-item"><span class="list-item-params params">"authType"</span><span class="descriptions"> - 授权类型</span> &#8211;<span class="data">"login/ip"</span>,</li>
<li class="list-item"><span class="list-item-params params">"authIp"</span><span class="descriptions"> - 授权 IP 地址。只有在 authType = ip 时才需要填写此字段。</span>,</li>
<li class="list-item"><span class="list-item-params params">"移动操作员"</span><span class="descriptions"> - 移动运营商（可通过其他请求获取可用值）</span>,</li>
<li class="list-item"><span class="list-item-params params">"旋转时间"</span><span class="descriptions"> - IP 地址的轮换时间，以分钟为单位（可用值可通过其他请求获取）。</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/订购</div>
<p><span class="sub-title">例文 reqwest：</span></p>
</div>
<pre>{
"proxyType": "移动"、
"天数":30、
"目标": "instagram"、
"country": "FRA"、
"count":1、
"authType": "login"、
"mobileOperator": "freemobilesas_france"、
"rotationTime":5
}
</pre>
</div>
<div>正文答案示例：</div>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":4.09、
"currency": "USD"、
"proxyType": "移动"、
"orderNumber":"DV-21x1552356-jA"
}
</pre>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"订单号"</span><span class="descriptions"> - 订单号</span>,</li>
<li class="list-item"><span class="list-item-params params">"平衡"</span><span class="descriptions"> - 购买后的余额</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain"><span class="title">扩展代理</span></h3>
<div></div>
<div class="api-item-contain">
<p><span style="font-size: 16px;">职位</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/扩展</div>
<p><span class="sub-title">Reqwest 参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"代理类型"</span><span class="descriptions"> - 代理类型</span> &#8211;<span class="data">"移动"</span>,</li>
<li class="list-item"><span class="list-item-params params">"天"</span><span class="descriptions"> - 续订天数（可用值与购买时相同）</span>,</li>
<li class="list-item"><span class="list-item-params params">"IpId"</span><span class="descriptions"> - 要扩展的代理 ID 列表</span>.</li>
</ul>
<p><span class="sub-title">例如：reqwest：</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey</span>/扩展</div>
<p><span class="sub-title">例文 reqwest：</span></p>
</div>
<pre>{
"proxyType": "移动"、
"天数":30、
"IpId"：
[
"id1"、
"id2
]
}
</pre>
</div>
<div>正文答案示例：</div>
<pre>{
"成功":true、
"用户": "client@gmail.com"、
"余额":4.09、
"currency": "USD
}
</pre>
<div>
<p><span class="sub-title">响应参数：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"平衡"</span><span class="descriptions"> - 延长后的余额</span>.</li>
</ul>
<hr />
</div>
<div>
<div class="api-item documentation-mb">
<div class="api-item-dropdown">
<div class="api-item-dropdown-container">
<div class="api-item-contain">
<h2>可能出现的错误</h2>
<p class="descriptions"><img decoding="async" src="https://proxy-ipv4.com/img/ui/infoApi.svg" alt="icon" width="16" height="16" />如果查询失败，您将收到一条错误信息</p>
<p><span class="sub-title">错误示例：</span></p>
<pre>{
"success":false、
"error_id":2、
"error": "您发送请求的频率过高。每秒不允许超过一个"
}
</pre>
</div>
</div>
</div>
</div>
</div>
<div>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">"error_id"</span><span class="descriptions"> - 错误 ID</span>,</li>
<li class="list-item"><span class="list-item-params params">"错误"</span><span class="descriptions"> - 错误信息</span>.</li>
</ul>
<p><span class="sub-title">ID 错误：</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;1&#8221;</span><span class="descriptions"> - 在服务器上禁用 API</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;2&#8221;</span><span class="descriptions"> - 您发送请求的频率过高。每秒不允许超过一个</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;3&#8221;</span><span class="descriptions"> - 认证错误。您的 IP 没有访问权限</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;4&#8221;</span><span class="descriptions"> - 不支持的方法</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;5&#8221;</span><span class="descriptions"> - 代理类型不正确</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;6&#8221;</span><span class="descriptions"> - 服务器上的 Ipv4 代理被禁用</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;7&#8221;</span><span class="descriptions"> - 服务器上的 Ipv6 代理被禁用</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;8&#8221;</span><span class="descriptions"> - 在服务器上禁用移动代理</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;9&#8221;</span><span class="descriptions"> - 不正确的字段 [天数]</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;10&#8221;</span><span class="descriptions"> - 字段 [国家] 不正确</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;11&#8221;</span><span class="descriptions"> - 不正确的[进球]区域</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;12&#8221;</span><span class="descriptions"> - 字段 [authType] 不正确</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;13&#8221;</span><span class="descriptions"> - 协议]字段不正确。必须为 [HTTPS] 或 [SOCKS5] 字段</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;14&#8221;</span><span class="descriptions"> - 字段 [authIp] 不正确</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;15&#8221;</span><span class="descriptions"> - 字段 [count] 不正确</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;16&#8221;</span><span class="descriptions"> - 字段 [mobileOperator] 不正确</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;17&#8221;</span><span class="descriptions"> - 字段 [rotationTime] 不正确</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;18&#8221;</span><span class="descriptions"> - 字段 [IpId] 不正确</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;19&#8221;</span><span class="descriptions"> - 字段 [orderId] 不正确</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;20&#8221;</span><span class="descriptions"> - OrderId {orderId} 没有活动 IP！</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;21&#8221;</span><span class="descriptions"> - 未找到 ID {ip}！</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;22&#8221;</span><span class="descriptions"> - 请求必须包含 [goal] 或 [customGoal] （自定义目标</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;23&#8221;</span><span class="descriptions"> - 未知错误</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;24&#8221;</span><span class="descriptions"> - 余额不足</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;25&#8221;</span><span class="descriptions"> - 错误键</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;26&#8221;</span><span class="descriptions"> - 字段 [customGoal] 的长度必须为 5 个字符或更长</span>.</li>
</ul>
</div>
<blockquote>
<div><strong>点击此处获取 <a href="https://proxy-zone.net/pz/proxy-ipv4" target="_blank" rel="nofollow noopener">Proxy-IPV4 应用程序接口</a></strong></div>
</blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/how-to-use-proxy-ipv4-api/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">11249</post-id>	</item>
		<item>
		<title>Dedicated Proxies (By BlazingSEO) : Learn Manuals Before You Buy</title>
		<link>https://proxysp.com/zh/dedicated-proxies-blazingseo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dedicated-proxies-blazingseo</link>
					<comments>https://proxysp.com/zh/dedicated-proxies-blazingseo/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[BlazingSEO Proxies]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7664</guid>

					<description><![CDATA[想了解有关 Blazing SEO 专用代理的更多信息吗？本文将讨论它们的优势以及与其他类型代理的区别！...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/dedicated-proxies-blazingseo/"> <span class="screen-reader-text">专用代理 (由 BlazingSEO 提供) ：购买前了解手册</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>想了解有关 Blazing SEO 专用代理的更多信息吗？本文将讨论它们的优势以及与其他类型代理的区别！</p></blockquote>
<h2>关于 BlazingSEO 的专用代理服务器</h2>
<h3 class="heading">什么是专用代理？</h3>
<p>专用代理是只供一个人使用的代理。这就是它们被称为 "专用 "的原因。它们只供一个人使用。</p>
<h4><strong>优势</strong></h4>
<ul>
<li>专用代理是仅供您使用的代理。</li>
<li>它可以隐藏你的 IP（或 MAC）地址，同时增加安全性并保护你的隐私。</li>
<li>专用代理可提供完全匿名的网上冲浪服务。重要的是要记住，在使用网络时，您会以 IP 地址的形式留下数字足迹。这意味着几乎任何人都能看到您上网，包括黑客和垃圾邮件发送者。专用代理服务器几乎可以保证您的 IP 地址不被发现。</li>
<li>速度更快，因为没有其他人使用相同的代理服务器。</li>
<li>能够绕过过滤器和防火墙，因为代理服务器可以绕过这类被屏蔽的网站。</li>
<li>能够解封大量应用程序，绕过大量互联网限制（即解封 <a href="https://www.proxysp.com/youtube-proxies/" target="_blank" rel="noopener">YouTube</a>, <a href="https://www.proxysp.com/best-facebook-proxy/" target="_blank" rel="noopener">在 Facebook 上</a>, <a href="https://www.proxysp.com/twitter-proxies/" target="_blank" rel="noopener">推特</a> 在公司或学校，"IT 管理员 "限制您访问这些网站或类似网站）。</li>
<li>保护隐私，让您在购物或上网时尽量不用担心个人信息被泄露或泄漏。</li>
<li>由于专用代理为您提供唯一的互联网地址，因此可提供更高水平的互联网安全性。</li>
<li>成功避免和拦截垃圾邮件。</li>
<li>绕过地理限制（基于国家的限制内容）。</li>
</ul>
<p>这些代理最好用于账户使用，因为代理永远不会更改（除非您希望代理更改）。</p>
<p>专用代理也可用于游戏。人们可以通过代理创建游戏账户，并使用代理玩游戏。</p>
<p>专用代理最好，因为只有一个人在使用。这意味着代理速度更快，网站可靠性更高。相比之下，如果代理是共享的（半专用/旋转），使用代理的其他人可能已经为某个网站创建了账户。因此，代理上的其他用户将无法在同一网站上使用同一代理并创建另一个账户。</p>
<p>你可能会问，为什么不能为运动鞋网站使用专用代理？请阅读本文，了解这背后的原因。</p>
<h4><strong>专用代理的典型用途：</strong></h4>
<ul>
<li>社交媒体</li>
<li>游戏</li>
<li>账户创建/使用</li>
<li>一般浏览</li>
<li>搜索引擎优化</li>
</ul>
<h4><strong>地点</strong></h4>
<ul>
<li>美国</li>
<li>巴西</li>
<li>德国</li>
<li>英国</li>
<li>印度</li>
<li>加拿大</li>
<li>日本</li>
</ul>
<hr />
<h3>什么是半专用代理？</h3>
<p>半专用代理是最多可由 3 人使用的代理 (<a href="https://www.proxysp.com/shared-proxy/" target="_blank" rel="noopener">共享代理</a>).这就是它们被称为 "半专用 "的原因。它们由最多 2 人共享。不过，这使得代理服务器的价格更加实惠。您可能不需要完全为您专用的代理，如果需要，这将是一个不错的选择。</p>
<h4><strong>优势</strong></h4>
<ul>
<li>价格低廉</li>
<li>共享代理服务器可以分担服务器成本</li>
<li>对于需要多个代理但每个代理只使用几个小时的用户来说，这些代理非常有用</li>
<li>对于一些需要从互联网上获取数据（如关键词排名或页面排名）的搜索引擎优化软件来说，代理很有帮助。</li>
<li>它们可同时支持 HTTP 和 SOCKS 服务</li>
<li>代理还可与支持使用代理的网络浏览器和其他应用程序一起使用</li>
<li>绕过地理限制（基于国家的限制内容）</li>
</ul>
<blockquote><p>这些代理最好用于普通浏览，不建议用于社交媒体网站的账户创建/管理。</p></blockquote>
<h4><strong>授权类型：</strong></h4>
<ul>
<li>IP 授权 - HTTP (3128)、SOCKS (1080)</li>
<li>用户名/密码 - (4444)</li>
</ul>
<h4><strong>地点</strong></h4>
<ul>
<li>美国</li>
<li>巴西</li>
<li>德国</li>
</ul>
<hr />
<h3>专用代理服务器和 Sneaker 代理服务器有什么区别？</h3>
<p>Blazing SEO 美国专用代理与运动鞋代理之间有什么区别？区别很大--如果您是运动鞋买家的话。专用代理服务器允许您在购买后选择 "位置"，但是，大多数人没有意识到的是，位置是地理位置，而不是代理服务器的托管位置。</p>
<p>地理位置是一个任意设置的位置，看起来好像你来自某个地方，但实际上你的代理服务器位于美国各地的不同数据中心。 <a href="https://www.proxysp.com/sneaker-proxies-blazingseo/" target="_blank" rel="noopener">运动鞋代理</a> 允许您在购买后选择托管地点：洛杉矶或纽约。这样，您就可以选择离您的服务器/计算机最近的城市。</p>
<p>代理服务器离您的服务器最近是获得最快速度的理想情况。我们建议您使用专门为鞋类网站优化的运动鞋代理服务器。</p>
<hr />
<h2>专用代理与旋转代理</h2>
<p>BlazingSEO 还提供 <a href="https://www.proxysp.com/backconnect-proxies/" target="_blank" rel="noopener">旋转代理</a>要了解专用代理和旋转代理之间的区别，我建议您先了解这一部分、</p>
<h3 class="heading">什么是旋转代理？</h3>
<p>轮换代理是共享代理，但 IP 每隔一定分钟会从一个更大的 IP 池更换到另一个代理 IP。这就是它们被称为 "旋转 "的原因。它们会在设定的分钟数（10-120 分钟）后将 IP 更改为不同的 IP。这些 IP 由其他用户共享，这可能意味着速度较慢和潜在的网站阻塞。</p>
<p>Blazing SEO 轮流代理是一种在 10 分钟间隔内切换公共 IP 地址的代理。一旦您成功购买了旋转代理套餐，您将获得一个带有不同端口号的 IP 地址，如下所示</p>
<p>108.46.12.64:1081</p>
<p>108.46.12.64:1082</p>
<p>108.46.12.64:1083</p>
<p>108.46.12.64:1084</p>
<p>108.46.12.64:1085</p>
<p>代理 IP 有不同的端口号，会显示不同的公共 IP 地址。当您在火狐浏览器上加载代理进行测试，并浏览 whatismyipaddress.com 时，您将不会看到 108.46.12.64 作为您的公共 IP，而是像这样的 106.39.12.61。</p>
<p>如果您购买了 10 个旋转代理端口，就可以访问拥有 200 个唯一 IP 的 IP 池。如果您购买了 100 个旋转代理端口，则可以访问池中的 2000 个唯一 IP。在整个计费周期内，IP 池将保持不变。</p>
<p>如果您在账单周期结束时让您的旋转代理订阅过期，并在过期后重新购买，这样您就可以访问另一个 IP 池 - 请注意，IP 是随机分配的，因此我们不能保证所有 IP 都与您之前的池不同。</p>
<h4><strong>地点</strong></h4>
<ul>
<li>美国</li>
<li>巴西</li>
<li>德国</li>
</ul>
<div class="icon">
<div class="icon"></div>
</div>
<div>
<p><strong><div class="su-heading su-heading-style-modern-2-orange su-heading-align-center" id="" style="font-size:30px;margin-bottom:20px"><div class="su-heading-inner">常见问题</div></div></strong></p>
<p class="heading"><strong>1.带宽和线程有什么限制？</strong></p>
<p>无！没错，Blazing SEO 允许无限线程和未计量/未节流带宽。大多数代理服务器都会通过公开限制线程或带宽来降低成本，但很多代理服务器都会在你不知情的情况下偷偷限制线程或带宽。例如，如果他们将您的带宽速度降低一半，每天只需一个小时，他们就能降低大量成本......而您甚至不会知道！</p>
<hr />
<p class="heading"><strong>2.Blazing SEO 是否有可用于社交媒体的代理？</strong></p>
<p>Blazing SEO 代理可以有多种用途。社交媒体账户管理是其代理的最大用途之一。我们强烈推荐使用 Blazing SEO 专用代理。他们的专用代理仅供单个用户使用，最适合用于社交媒体。半专用代理和旋转代理可由 3 个用户共享。</p>
<p>我们强烈建议每个账户使用 1 个代理。超过这个数量会增加被封/禁的几率。您可以在 Blazing SEO 网站上查看 Blazing SEO 代理订阅情况。 <a href="https://www.proxysp.com/redirect/blazingseollc" target="_blank" rel="nofollow noopener">这里</a>.</p>
<hr />
<p class="heading"><strong>3.我可以在多台计算机上使用代理服务器吗？</strong></p>
<p>Blazing SEO 允许多台计算机访问 Blazing SEO 代理服务器 - 请确保已授权<span dir="ltr"> 希望通过代理控制面板访问代理的计算机的 IP 地址。</span></p>
<div class="su-youtube su-u-responsive-media-yes"><iframe width="600" height="400" src="https://www.youtube.com/embed/Q-NSzU1GDp8?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<hr />
<p><strong>4.Blazing SEO 代理的速度有多快？</strong></p>
<p>所有 Blazing SEO 代理都使用 1 Gbps 的专用网络线路。与其他大多数提供商不同的是，他们不会超额销售代理服务器，并确保所有测试速度均达到 1 Gbps。</p>
<hr />
<h4 id="references" class="ftwp-heading">参考资料</h4>
<ul>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256598-what-are-dedicated-proxies-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256598-what-are-dedicated-proxies-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256622-what-are-semi-dedicated-proxies-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256622-what-are-semi-dedicated-proxies-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256675-what-is-the-difference-between-dedicated-proxies-and-sneaker-proxies-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256675-what-is-the-difference-between-dedicated-proxies-and-sneaker-proxies-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262796-what-limits-do-you-have-for-bandwidth-and-threads-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262796-what-limits-do-you-have-for-bandwidth-and-threads-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256633-do-you-have-proxies-that-can-be-used-for-social-media-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256633-do-you-have-proxies-that-can-be-used-for-social-media-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262805-can-i-use-my-proxies-on-multiple-computers-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262805-can-i-use-my-proxies-on-multiple-computers-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262797-how-fast-are-your-proxies-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262797-how-fast-are-your-proxies-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256631-what-are-rotating-proxies-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256631-what-are-rotating-proxies-</a></li>
</ul>
<p>&nbsp;</p>
</div>
<hr />
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/dedicated-proxies-blazingseo/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7664</post-id>	</item>
		<item>
		<title>How to Use PrivateProxy.me API</title>
		<link>https://proxysp.com/zh/how-to-use-privateproxy-me-api/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-use-privateproxy-me-api</link>
					<comments>https://proxysp.com/zh/how-to-use-privateproxy-me-api/#respond</comments>
		
		<dc:creator><![CDATA[proxysp]]></dc:creator>
		<pubdate>Wed, 22 Feb 2023 04:59:15 +0000</pubdate>
				<category><![CDATA[Manuals]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=10980</guid>

					<description><![CDATA[您知道如何使用 PrivateProxy.me API 吗？这是来自 PrivateProxy.me 官方的最全面介绍。基本信息 API 需要激活软件包 ...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/how-to-use-privateproxy-me-api/"> <span class="screen-reader-text">如何使用 PrivateProxy.me API</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>您知道如何使用 <a href="https://app.privateproxy.me/from/662" target="_blank" rel="nofollow noopener">PrivateProxy.me</a> API？这是 PrivateProxy.me 官方最全面的介绍。</p></blockquote>
<h2>基本信息</h2>
<div>
<p>软件包必须处于激活状态，API 才能工作。</p>
<p>您的 API 密钥： <b>08c5fa8dd63c8adc4b08803df5f68f9d</b></p>
<p>API 基本 URL： <b>https://app.privateproxy.me/api/v1</b></p>
<p>授权是标准的基本 auth，api 为用户名，api key 为密码，也可以使用 key 查询参数。</p>
<pre>curl -u api:08c5fa8dd63c8adc4b08803df5f68f9d https://app.privateproxy.me/api/v1/package_subscriptions/1/...
curl https://app.privateproxy.me/api/v1/package_subscriptions/1/...?key=08c5fa8dd63c8adc4b08803df5f68f9d</pre>
<p>API 请求中不能使用非活动订阅。</p>
<p>所有其他示例都使用基本授权。</p>
</div>
<hr />
<h2>所有示例的通用代码</h2>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="5" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python 3 + 请求</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP + libcurl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Node.js + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Ruby + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Golang + stdlib</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python 3 + requests&lt;/strong&gt;">
<pre># 文件名 proxy_api.py
导入 json
导入请求
导入 pprint

类 ProxyAPIException(Exception)：
  通过

class RequestError(ProxyAPIException)：
  通过

class ResponseError(ProxyAPIException)：
  通过

class ResponseParseError(ProxyAPIException): 通过
  通过

类 ProxyAPI：
  def __init__(self, base, api_key)：
    if base.endswith('/')：
      self.base = base
    else：
      self.base = base + '/'
    self.api_key = api_key

  def __is_json_response(self, response)：
    if 'Content-Type' not in response.headers：
      返回 False
    for part in response.headers['Content-Type'].split(';')：
      if part == "application/json"：
        返回 True

    返回 False

  def __process_response(self, response)：
    if response.status_code == 200：
      error = None
      if self.__is_json_response(response)：
        try：
          obj = json.loads(response.text)
        except Exception as e：
          error = e
        if error：
          raise ResponseParseError("Error parsing JSON response from the server：%s" % str(error))
        返回 obj
      else：
        return response.text
    else：
      if self.__is_json_response(response)：
        failed = False
        try：
          error_json = json.loads(response.text)
        except Exception as e：
          failed = True
        if failed：
          raise ResponseError("Received non-200 code from the server, but failed to parse json response：%s" % response.text)
        否则
          raise ResponseError("Received error from server: %s" % error_json['error'])
      else：
        raise ResponseError("从服务器收到非 200 代码")


  def get(self, endpoint, query_params = {})：
    if endpoint[0] == '/'：
      endpoint = endpoint[1:]
    fin_url = self.base + endpoint
    error = None
    try：
      response = requests.get(fin_url, auth=('api', self.api_key), params = query_params)
    except requests.exceptions.RequestException as e：
      error = e

    if error：
      raise RequestError("An error occurred while making a request: %s" % str(error))

    return self.__process_response(response)

  def put(self, endpoint, body = {})：
    if endpoint[0] == '/'：
      endpoint = endpoint[1:]
    fin_url = self.base + endpoint
    error = None
    try：
      response = requests.put(
        fin_url、
        auth=('api', self.api_key)、
        data = json.dumps(body)、
        headers = {'Content-Type': 'application/json'} )
      )
    except requests.exceptions.RequestException as e：
      error = e

    if error：
      raise RequestError("An error occurred while making a request: %s" % str(error))

    return self.__process_response(response)</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP + libcurl&lt;/strong&gt;">
<pre>&lt;?php
// filename proxy_api.php
class ProxyAPIException extends Exception {}
class RequestError extends ProxyAPIException {}
class ResponseError extends ProxyAPIException {}
class ResponseParseError extends ProxyAPIException {}

class ProxyAPI {
  private $api_base, $api_key;

  public function __construct($api_base, $api_key) {
    $this-&gt;api_base = preg_replace("/\/+$/", "", $api_base);
    $this-&gt;api_key = $api_key;
  }

  public function get($endpoint, $query_params = null) {
    $endpoint = "/".preg_replace("/^\/+/", "", $endpoint);
    $url = $this-&gt;api_base.$endpoint;

    $query_string = "";
    if ($query_params !== null) {
      $q = null;
      if (is_string($query_params)) {
        $q = explode($url, '&');
      } elseif (is_array($query_params)) {
        $q = $query_params;
      }
      $tmp = [];
      foreach ($q as $key =&gt; $value) {
        $tmp[] = urlencode($key) . "=" . urlencode($value);
      }
      $query_string = implode("&", $tmp);
    }

    if ($query_string !== "") {
      $url .= "?".$query_string;
    }

    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
    curl_setopt($ch, CURLOPT_USERNAME, "api");
    curl_setopt($ch, CURLOPT_PASSWORD, $this-&gt;api_key);
    $response = curl_exec($ch);

    return $this-&gt;process_response($ch, $response);
  }

  public function put($endpoint, $body = null) {
    $endpoint = "/" . preg_replace("/^\/+/", "", $endpoint);
    $url = $this-&gt;api_base . $endpoint;

    $data_json = json_encode($body);
    if (json_last_error()) {
      throw new RequestError("Error encoding body as json: ".json_last_error_msg());
    }

    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_USERNAME, "api");
    curl_setopt($ch, CURLOPT_PASSWORD, $this-&gt;api_key);
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
    curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type:application/json", "Content-Length:".strlen($data_json)]);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data_json);
    $response = curl_exec($ch);

    return $this-&gt;process_response($ch, $response);
  }

  private function process_response($ch, $response) {
    if (curl_error($ch)) {
      throw new RequestError("Received error during request: ".curl_error($ch));
    }
    $response_code = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
    $content_type = curl_getinfo($ch, CURLINFO_CONTENT_TYPE);
    $is_json = strstr($content_type, 'application/json') !== false;
    curl_close($ch);

    if ($response_code == '200') {
      if ($is_json) {
        $res = json_decode($response, true, 512);
        $le = json_last_error();
        if ($le != JSON_ERROR_NONE) {
          throw new ResponseParseError("Error parsing response from server as JSON: ".json_last_error_msg());
        }
        return $res;
      } else {
        return $response;
      }
    } else {
      if ($is_json) {
        $res = json_decode($response, true, 512);
        $le = json_last_error();
        if ($le != JSON_ERROR_NONE) {
          throw new ResponseError("Received ".$response_code." code from server, but failed to parse JSON response: ".json_last_error_msg());
        }
        throw new ResponseError("Received ".$response_code." code from server: ".$res['error']);
      } else {
        throw new ResponseError("Received ".$response_code." code from server: ".$response);
      }
    }
  }
}</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Node.js + stdlib&lt;/strong&gt;">
<pre>// filename proxy_api.js
const https = require('https')
const http = require('http')
const querystring = require('querystring');

function process_response(response, body, resolve, reject) {
  const ct = response.headers['content-type'] || '';
  let isJson = false;
  if (ct.includes("application/json")) {
    isJson = true;
  }

  if (response.statusCode == 200) {
    if (isJson) {
      let json;
      try {
        json = JSON.parse(body);
      } catch(e) {
        reject(e);
        return;
      }
      resolve(json);
    } else {
      resolve(body);
    }
  } else {
    const err = "Received status " + response.statusCode + " from server";
    if (isJson) {
      let json;
      try {
        json = JSON.parse(body);
      } catch(e) {
        reject(new Error(err + ", but failed to parse JSON: " + body));
        return;
      }
      reject(new Error(err + ": " + json['error']));
    } else {
      reject(new Error(err + ": " + body));
    }
  }
}

async function get(url, api_key, query_params = {}) {
  const qs = querystring.stringify(query_params);
  let final_url = url;
  if (qs != '') {
    final_url += '?' + qs;
  }
  const options = {
    method: 'GET',
    auth: "api:" + api_key
  }

  const result = await new Promise((resolve, reject) =&gt; {
    let t;
    if (final_url.startsWith("http://")) {
      t = http;
    } else if (final_url.startsWith("https://")) {
      t = https;
    }
    const req = t.request(final_url, options, (res) =&gt; {
      res.setEncoding('utf8');
      const chunks = [];
      res.on('data', (chunk) =&gt; {
        chunks.push(chunk);
      });

      res.on('end', () =&gt; {
        const body = chunks.join('');
        process_response(res, body, resolve, reject);
      });
    });

    req.on('error', (e) =&gt; {
      reject(e);
    });

    req.end();
  }).catch((e) =&gt; (e));

  return result;
}

async function put(url, api_key, request_body = {}) {
  const request_body_str = JSON.stringify(request_body);
  const options = {
    method: 'PUT',
    auth: "api:" + api_key,
    headers: {
      'Content-Type': 'application/json',
      'Content-Length': request_body_str.length
    }
  }

  const result = await new Promise((resolve, reject) =&gt; {
    let t;
    if (url.startsWith("http://")) {
      t = http;
    } else if (url.startsWith("https://")) {
      t = https;
    }
    const req = t.request(url, options, (res) =&gt; {
      res.setEncoding('utf8');
      const ct = res.headers['content-type'] || '';
      let isJson = false;
      if (ct.includes("application/json")) {
        isJson = true;
      }
      const chunks = []
      res.on('data', (chunk) =&gt; {
        chunks.push(chunk);
      });

      res.on('end', () =&gt; {
        const body = chunks.join('');
        process_response(res, body, resolve, reject);
      });
    });

    req.on('error', (e) =&gt; {
      reject(e);
    });

    req.write(request_body_str);
    req.end();
  }).catch((e) =&gt; (e));

  return result;
}

module.exports = {
  get: get,
  put: put
}</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Ruby + stdlib&lt;/strong&gt;">
<pre># 文件名 proxy_api.rb
require 'net/http
需要 'uri
需要 'json

类 ProxyAPIException &lt; StandardError
结束

class RequestError &lt; ProxyAPIException
结束

类 ResponseError &lt; 代理 APIException
  attr_accessor :code
结束

类 ResponseParseError  e
      err = RequestError.new(e.message)
    结束

    raise err if err

    return process_response(response)
  结束

  def put(endpoint, body = {})
    endpoint = endpoint.gsub(/^\/+/, '/')
    if endpoint[0] != '/'
      endpoint = '/' + endpoint
    结束
    final_url = @base_url + endpoint
    uri = URI.parse(final_url)
    request = Net::HTTP::Put.new(uri)
    req_options = {
      use_ssl: uri.scheme == "https"、
    }
    request.basic_auth('api', @api_key)
    request['Content-Type'] = "application/json
    request.body = body.to_json

    响应 = nil
    err = nil
    开始
      response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http|
        response = http.request(request)
      结束
    救援 =&gt; e
      err = RequestError.new(e.message)
    结束

    raise err if err

    return process_response(response)
  结束

  私有

  def process_response(response)
    如果 response.code == '200'
      err = nil
      res = begin
        if is_json_response?(response)
          则 JSON.parse（response.body）
        否则
          响应正文
        结束
      救援 =&gt; e
        err = ResponseParseError.new(e.message)
      结束
      如果出现 err，则引发 err
      返回 res
    否则
      if is_json_response?(response)
        b = JSON.parse(response.body) 返回 nil
        如果 b
          ex = ResponseError.new("Received code #{response.code} from server: #{b['error']}")
          ex.code = response.code.to_i
          引发 ex
        否则
          ex = ResponseError.new("Received code #{response.code} from server, but failed to parse JSON: #{response.body}")
          ex.code = response.code.to_i
          引发 ex
        结束
      否则
        ex = ResponseError.new("Received code #{response.code} from server: #{response.body}")
        ex.code = response.code.to_i
        引发 ex
      结束
    结束
  结束

  def is_json_response?(response)
    response['Content-Type'].to_s.split(';').each do |part|
      如果 part == 'application/json' 则返回 true
    结束
    返回 false
  结束
结束</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Golang + stdlib&lt;/strong&gt;">
<div>
<div class="tab-content">
<div id="golang_common_code" class="tab-pane tab-padding active" role="tabpanel">
<pre># 文件名 proxy_api.rb
require 'net/http
需要 'uri
需要 'json

类 ProxyAPIException &lt; StandardError
结束

class RequestError &lt; ProxyAPIException
结束

类 ResponseError &lt; 代理 APIException
  attr_accessor :code
结束

类 ResponseParseError  e
      err = RequestError.new(e.message)
    结束

    raise err if err

    return process_response(response)
  结束

  def put(endpoint, body = {})
    endpoint = endpoint.gsub(/^\/+/, '/')
    if endpoint[0] != '/'
      endpoint = '/' + endpoint
    结束
    final_url = @base_url + endpoint
    uri = URI.parse(final_url)
    request = Net::HTTP::Put.new(uri)
    req_options = {
      use_ssl: uri.scheme == "https"、
    }
    request.basic_auth('api', @api_key)
    request['Content-Type'] = "application/json
    request.body = body.to_json

    响应 = nil
    err = nil
    开始
      response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http|
        response = http.request(request)
      结束
    救援 =&gt; e
      err = RequestError.new(e.message)
    结束

    raise err if err

    return process_response(response)
  结束

  私有

  def process_response(response)
    如果 response.code == '200'
      err = nil
      res = begin
        if is_json_response?(response)
          则 JSON.parse（response.body）
        否则
          响应正文
        结束
      救援 =&gt; e
        err = ResponseParseError.new(e.message)
      结束
      如果出现 err，则引发 err
      返回 res
    否则
      if is_json_response?(response)
        b = JSON.parse(response.body) 返回 nil
        如果 b
          ex = ResponseError.new("Received code #{response.code} from server: #{b['error']}")
          ex.code = response.code.to_i
          引发 ex
        否则
          ex = ResponseError.new("Received code #{response.code} from server, but failed to parse JSON: #{response.body}")
          ex.code = response.code.to_i
          引发 ex
        结束
      否则
        ex = ResponseError.new("Received code #{response.code} from server: #{response.body}")
        ex.code = response.code.to_i
        引发 ex
      结束
    结束
  结束

  def is_json_response?(response)
    response['Content-Type'].to_s.split(';').each do |part|
      如果 part == 'application/json' 则返回 true
    结束
    返回 false
  结束
结束</pre>
</div>
</div>
</div>
</div></div></div>
<hr />
<h2>获取订阅列表</h2>
<div>
<div class="pre-parent">
<div class="pre-description">该端点允许获取所有订阅的列表。</div>
<div class="pre-params">
<table class="table table-condensed table-bordered">
<tbody>
<tr>
<td>终点</td>
<td>/package_subscriptions</td>
</tr>
<tr>
<td>方法</td>
<td>获取</td>
</tr>
<tr>
<td>参数</td>
<td>无</td>
</tr>
<tr>
<td>查询参数</td>
<td>无</td>
</tr>
<tr>
<td>JSON 参数</td>
<td>无</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="6" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>在 *nix shell 中使用 curl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python 3 + 请求</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP + libcurl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Node.js + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Ruby + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button">Golang + stdlib</span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;curl in *nix shell&lt;/strong&gt;">
<div class="tab-content">
<div id="curl_get_subscriptions_list" class="tab-pane tab-padding active" role="tabpanel">
<pre>curl -u api:08c5fa8dd63c8adc4b08803df5f68f9d https://app.privateproxy.me/api/v1/package_subscriptions</pre>
</div>
</div>
<p>答复示例：</p>
<pre>[
  {
    "id":8644、
    "类型": "Backconnect"、
    "包": "Backconnect 入门 (200K 请求)"、
    "活动":false
  },
  {
    "id":8643、
    "类型": "代理"、
    "package": "3 Private Proxies"、
    "活动":true
  }
]</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python 3 + requests&lt;/strong&gt;">
<div class="tab-content">
<div id="python_get_subscriptions_list" class="tab-pane tab-padding active" role="tabpanel">
<pre>从 proxy_api 导入 *

api = ProxyAPI("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d")
try：
  result = api.get("/package_subscriptions")
  pprint.PrettyPrinter(indent=2).pprint(result)
except ProxyAPIException as e：
  print(str(e))</pre>
</div>
</div>
<p>答复示例：</p>
<pre>[
  {
    "id":8644、
    "类型": "Backconnect"、
    "包": "Backconnect 入门 (200K 请求)"、
    "活动":false
  },
  {
    "id":8643、
    "类型": "代理"、
    "package": "3 Private Proxies"、
    "活动":true
  }
]</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP + libcurl&lt;/strong&gt;">
<div class="tab-content">
<div id="php_get_subscriptions_list" class="tab-pane tab-padding active" role="tabpanel">
<pre>get("/package_subscriptions"))；
} catch(ProxyAPIException $e) {
  echo $e；
}</pre>
</div>
</div>
<p>答复示例：</p>
<pre>[
  {
    "id":8644、
    "类型": "Backconnect"、
    "包": "Backconnect 入门 (200K 请求)"、
    "活动":false
  },
  {
    "id":8643、
    "类型": "代理"、
    "package": "3 Private Proxies"、
    "活动":true
  }
]</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Node.js + stdlib&lt;/strong&gt;">
<div class="tab-content">
<div id="nodejs_get_subscriptions_list" class="tab-pane tab-padding active" role="tabpanel">
<pre>const proxy_api = require('./proxy_api')；

async 函数 main() {
  const res = await proxy_api.get('https://app.privateproxy.me/api/v1/package_subscriptions', '08c5fa8dd63c8adc4b08803df5f68f9d')；
  if (res instanceof Error) {
    console.log("Error:")+ res.toString())；
  } else {
    console.log(res)；
  }
}

main()；</pre>
</div>
</div>
<p>答复示例：</p>
<pre>[
  {
    "id":8644、
    "类型": "Backconnect"、
    "包": "Backconnect 入门 (200K 请求)"、
    "活动":false
  },
  {
    "id":8643、
    "类型": "代理"、
    "package": "3 Private Proxies"、
    "活动":true
  }
]</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Ruby + stdlib&lt;/strong&gt;">
<div class="tab-content">
<div id="ruby_get_subscriptions_list" class="tab-pane tab-padding active" role="tabpanel">
<pre>require_relative './proxy_api

开始
  api = ProxyAPI.new("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d")
  puts(api.get("/package_subscriptions").inspect)
rescue ProxyAPIException =&gt; e
  puts e.message
结束</pre>
</div>
</div>
<p>答复示例：</p>
<pre>[
  {
    "id":8644、
    "类型": "Backconnect"、
    "包": "Backconnect 入门 (200K 请求)"、
    "活动":false
  },
  {
    "id":8643、
    "类型": "代理"、
    "package": "3 Private Proxies"、
    "活动":true
  }
]</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="Golang + stdlib">
<div class="tab-content">
<div id="golang_get_subscriptions_list" class="tab-pane tab-padding active" role="tabpanel">
<pre>主包

导入 (
  "编码/json"
  "fmt"
  "net/http"
)

类型 subscriptionEl struct {
  ID int `json: "id"`
  类型字符串 `json: "type"`
  Package string `json: "package"`
  活动 bool `json: "active"`
}

类型 subscriptionsList []*subscriptionEl

func main() {
  api := NewProxyAPI("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d", &amp;http.Client{})

  resp, isJSON, err := api.Get("/package_subscriptions", nil)
  if err != nil {
    fmt.Println(err)
  } else {
    if isJSON {
      var subscriptions subscriptionsList
      json.Unmarshal([]byte(resp), &amp;subscriptions)
      for _, v := range subscriptions {
        fmt.Println(v)
      }
    } else {
      fmt.Println(resp)
    }
  }
}</pre>
</div>
</div>
<p>答复示例：</p>
<pre>[
  {
    "id":8644、
    "类型": "Backconnect"、
    "包": "Backconnect 入门 (200K 请求)"、
    "活动":false
  },
  {
    "id":8643、
    "类型": "代理"、
    "package": "3 Private Proxies"、
    "活动":true
  }
]</pre>
</div></div></div>
<hr />
<h2>获取订阅</h2>
<div>
<div class="pre-parent">
<div class="pre-description">通过该端点，您可以获取特定的订购信息，如计费周期的开始和结束日期，或当前计费周期内 backconnect 套餐的请求数。</div>
<div class="pre-params">
<table class="table table-condensed table-bordered">
<tbody>
<tr>
<td>终点</td>
<td>/package_subscriptions/:id</td>
</tr>
<tr>
<td>方法</td>
<td>获取</td>
</tr>
<tr>
<td>参数</td>
<td>id - 订阅的 id</td>
</tr>
<tr>
<td>查询参数</td>
<td>无</td>
</tr>
<tr>
<td>JSON 参数</td>
<td>无</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="6" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>在 *nix shell 中使用 curl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python 3 + 请求</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP + libcurl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Node.js + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Ruby + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Golang + stdlib</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;curl in *nix shell&lt;/strong&gt;">
<div class="tab-content">
<div id="curl_get_subscription" class="tab-pane tab-padding active" role="tabpanel">
<pre>curl -u api:08c5fa8dd63c8adc4b08803df5f68f9d https://app.privateproxy.me/api/v1/package_subscriptions/1</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>代理订阅</th>
<th>订阅 Backconnect</th>
</tr>
<tr>
<td>
<pre>{
  "id":8643、
  "类型": "代理
  "目的": "谷歌"、
  "国家": "任何国家
  "ip_type": "proxy"、
  包": "3 个私人代理"、
  "price_cents":900、
  "billing_cycle_start":1599563902,
  "billing_cycle_end":1602155902,
  "last_invoice_amount_cents":900、
  "付款方式": "卡"、
  "IP_count":3
}</pre>
</td>
<td>
<pre>{
  "id":8644、
  "类型": "backconnect"、
  "目的": "谷歌"、
  "country": "Any"、
  "ip_type": "proxy"、
  "软件包": "Backconnect 初级（20 万次请求）"、
  "price_cents":5900、
  "billing_cycle_start":1599563939,
  "billing_cycle_end":1602155939,
  "last_invoice_amount_cents":5900、
  "付款方式": "卡"、
  "requests_limit":200000,
  "port_count":5、
  "connection_limit":1000,
  "billing_cycle_requests":15749
}</pre>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python 3 + requests&lt;/strong&gt;">
<div class="tab-content">
<div id="python_get_subscription" class="tab-pane tab-padding active" role="tabpanel">
<pre>从 proxy_api 导入 *

api = ProxyAPI("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d")
try：
  result = api.get("/package_subscriptions/1")
  pprint.PrettyPrinter(indent=2).pprint(result)
except ProxyAPIException as e：
  print(str(e))</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>代理订阅</th>
<th>订阅 Backconnect</th>
</tr>
<tr>
<td>
<pre>{
  "id":8643、
  "类型": "代理
  "目的": "谷歌"、
  "国家": "任何国家
  "ip_type": "proxy"、
  包": "3 个私人代理"、
  "price_cents":900、
  "billing_cycle_start":1599563902,
  "billing_cycle_end":1602155902,
  "last_invoice_amount_cents":900、
  "付款方式": "卡"、
  "IP_count":3
}</pre>
</td>
<td>
<pre>{
  "id":8644、
  "类型": "backconnect"、
  "目的": "谷歌"、
  "country": "Any"、
  "ip_type": "proxy"、
  "软件包": "Backconnect 初级（20 万次请求）"、
  "price_cents":5900、
  "billing_cycle_start":1599563939,
  "billing_cycle_end":1602155939,
  "last_invoice_amount_cents":5900、
  "付款方式": "卡"、
  "requests_limit":200000,
  "port_count":5、
  "connection_limit":1000,
  "billing_cycle_requests":15749
}</pre>
</td>
</tr>
</tbody>
</table>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP + libcurl&lt;/strong&gt;">
<div class="tab-content">
<div id="php_get_subscription" class="tab-pane tab-padding active" role="tabpanel">
<pre>get("/package_subscriptions/1"))；
} catch(ProxyAPIException $e) {
  echo $e；
}</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>代理订阅</th>
<th>订阅 Backconnect</th>
</tr>
<tr>
<td>
<pre>{
  "id":8643、
  "类型": "代理
  "目的": "谷歌"、
  "国家": "任何国家
  "ip_type": "proxy"、
  包": "3 个私人代理"、
  "price_cents":900、
  "billing_cycle_start":1599563902,
  "billing_cycle_end":1602155902,
  "last_invoice_amount_cents":900、
  "付款方式": "卡"、
  "IP_count":3
}</pre>
</td>
<td>
<pre>{
  "id":8644、
  "类型": "backconnect"、
  "目的": "谷歌"、
  "country": "Any"、
  "ip_type": "proxy"、
  "软件包": "Backconnect 初级（20 万次请求）"、
  "price_cents":5900、
  "billing_cycle_start":1599563939,
  "billing_cycle_end":1602155939,
  "last_invoice_amount_cents":5900、
  "付款方式": "卡"、
  "requests_limit":200000,
  "port_count":5、
  "connection_limit":1000,
  "billing_cycle_requests":15749
}</pre>
</td>
</tr>
</tbody>
</table>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Node.js + stdlib&lt;/strong&gt;">
<div class="tab-content">
<div id="nodejs_get_subscription" class="tab-pane tab-padding active" role="tabpanel">
<pre>const proxy_api = require('./proxy_api')；

async 函数 main() {
  const res = await proxy_api.get('https://app.privateproxy.me/api/v1/package_subscriptions/1', '08c5fa8dd63c8adc4b08803df5f68f9d')；
  if (res instanceof Error) {
    console.log("Error:")+ res.toString())；
  } else {
    console.log(res)；
  }
}

main()；</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>代理订阅</th>
<th>订阅 Backconnect</th>
</tr>
<tr>
<td>
<pre>{
  "id":8643、
  "类型": "代理
  "目的": "谷歌"、
  "国家": "任何国家
  "ip_type": "proxy"、
  包": "3 个私人代理"、
  "price_cents":900、
  "billing_cycle_start":1599563902,
  "billing_cycle_end":1602155902,
  "last_invoice_amount_cents":900、
  "付款方式": "卡"、
  "IP_count":3
}</pre>
</td>
<td>
<pre>{
  "id":8644、
  "类型": "backconnect"、
  "目的": "谷歌"、
  "country": "Any"、
  "ip_type": "proxy"、
  "软件包": "Backconnect 初级（20 万次请求）"、
  "price_cents":5900、
  "billing_cycle_start":1599563939,
  "billing_cycle_end":1602155939,
  "last_invoice_amount_cents":5900、
  "付款方式": "卡"、
  "requests_limit":200000,
  "port_count":5、
  "connection_limit":1000,
  "billing_cycle_requests":15749
}</pre>
</td>
</tr>
</tbody>
</table>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Ruby + stdlib&lt;/strong&gt;">
<div class="tab-content">
<div id="ruby_get_subscription" class="tab-pane tab-padding active" role="tabpanel">
<pre>require_relative './proxy_api

开始
  api = ProxyAPI.new("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d")
  puts(api.get("/package_subscriptions/1").inspect)
rescue ProxyAPIException =&gt; e
  puts e.message
结束</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>代理订阅</th>
<th>订阅 Backconnect</th>
</tr>
<tr>
<td>
<pre>{
  "id":8643、
  "类型": "代理
  "目的": "谷歌"、
  "国家": "任何国家
  "ip_type": "proxy"、
  包": "3 个私人代理"、
  "price_cents":900、
  "billing_cycle_start":1599563902,
  "billing_cycle_end":1602155902,
  "last_invoice_amount_cents":900、
  "付款方式": "卡"、
  "IP_count":3
}</pre>
</td>
<td>
<pre>{
  "id":8644、
  "类型": "backconnect"、
  "目的": "谷歌"、
  "country": "Any"、
  "ip_type": "proxy"、
  "软件包": "Backconnect 初级（20 万次请求）"、
  "price_cents":5900、
  "billing_cycle_start":1599563939,
  "billing_cycle_end":1602155939,
  "last_invoice_amount_cents":5900、
  "付款方式": "卡"、
  "requests_limit":200000,
  "port_count":5、
  "connection_limit":1000,
  "billing_cycle_requests":15749
}</pre>
</td>
</tr>
</tbody>
</table>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Golang + stdlib&lt;/strong&gt;">
<div class="tab-content">
<div id="golang_get_subscription" class="tab-pane tab-padding active" role="tabpanel">
<pre>主包

导入 (
  "编码/json"
  "fmt"
  "net/http"
)

类型 订阅 结构 {
  ID int `json: "id"`
  类型字符串 `json: "type"`
  目的字符串 `json: "purpose"`
  国家字符串 `json: "country"`
  IPType string `json: "IP_type"`
  包装字符串 `json: "package"`
  PriceCents int `json: "price_cents"`
  BillingCycleStart uint64 `json: "billing_cycle_start"`
  BillingCycleEnd uint64 `json: "billing_cycle_end"`
  LastInvoiceAmountCents int `json: "last_invoice_amount_cents"`
  付款方式字符串 `json: "payment_method"`

  // 仅代理
  IPCount int `json: "IP_count"`

  // 仅反向连接
  RequestsLimit int `json: "requests_limit"`
  PortCount int `json: "port_count"`
  ConnectionLimit int `json: "connection_limit"`
  BillingCycleRequests int `json: "billing_cycle_requests"`
}

func main() {
  api := NewProxyAPI("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d", &amp;http.Client{})

  resp, isJSON, err := api.Get("/package_subscriptions/1", nil)
  if err != nil {
    fmt.Println(err)
  } else {
    if isJSON {
      子订阅
      json.Unmarshal([]byte(resp), &amp;sub)
      fmt.Println(sub)
    } else {
      fmt.Println(resp)
    }
  }
}</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>代理订阅</th>
<th>订阅 Backconnect</th>
</tr>
<tr>
<td>
<pre>{
  "id":8643、
  "类型": "代理
  "目的": "谷歌"、
  "国家": "任何国家
  "ip_type": "proxy"、
  包": "3 个私人代理"、
  "price_cents":900、
  "billing_cycle_start":1599563902,
  "billing_cycle_end":1602155902,
  "last_invoice_amount_cents":900、
  "付款方式": "卡"、
  "IP_count":3
}</pre>
</td>
<td>
<pre>{
  "id":8644、
  "类型": "backconnect"、
  "目的": "谷歌"、
  "country": "Any"、
  "ip_type": "proxy"、
  "软件包": "Backconnect 初级（20 万次请求）"、
  "price_cents":5900、
  "billing_cycle_start":1599563939,
  "billing_cycle_end":1602155939,
  "last_invoice_amount_cents":5900、
  "付款方式": "卡"、
  "requests_limit":200000,
  "port_count":5、
  "connection_limit":1000,
  "billing_cycle_requests":15749
}</pre>
</td>
</tr>
</tbody>
</table>
</div></div></div>
<hr />
<h2>IP/Port 列表</h2>
<div>
<div class="pre-parent">
<div class="pre-description">该端点允许获取软件包的代理/后连接网关 IP 列表。</div>
<div class="pre-params">
<table class="table table-condensed table-bordered">
<tbody>
<tr>
<td>终点</td>
<td>/package_subscriptions/:id/ips</td>
</tr>
<tr>
<td>方法</td>
<td>获取</td>
</tr>
<tr>
<td>参数</td>
<td>id - 订阅的 id</td>
</tr>
<tr>
<td>查询参数</td>
<td>hide_auth - 如果存在，从列表中隐藏证书<br />
hide_port - 隐藏端口（仅限静态软件包）<br />
端口 - 显示不同的端口，可用值为 2534、3389、5432 和 5433，默认值为 5432（仅限静态软件包）</td>
</tr>
<tr>
<td>JSON 参数</td>
<td>无</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="6" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>在 *nix shell 中使用 curl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python 3 + 请求</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP + libcurl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Node.js + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Ruby + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Golang + stdlib</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;curl in *nix shell&lt;/strong&gt;">
<div class="tab-content">
<div id="curl_ip_list" class="tab-pane tab-padding active" role="tabpanel">
<pre>curl -u api:08c5fa8dd63c8adc4b08803df5f68f9d https://app.privateproxy.me/api/v1/package_subscriptions/1/ips</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>无 hide_auth</th>
<th>使用 hide_auth</th>
</tr>
<tr>
<td>
<pre>1.1.1.1:5432:login:password
2.2.2.2:5432:login:password
3.3.3.3:5432:login:password</pre>
</td>
<td>
<pre>1.1.1.1:5432
2.2.2.2:5432
3.3.3.3:5432</pre>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python 3 + requests&lt;/strong&gt;">
<div class="tab-content">
<div id="python_ip_list" class="tab-pane tab-padding active" role="tabpanel">
<pre>从 proxy_api 导入 *

api = ProxyAPI("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d")
try：
  result = api.get("/package_subscriptions/1/ips")
  pprint.PrettyPrinter(indent=2).pprint(result)
  result = api.get("/package_subscriptions/1/ips", query_params={'hide_auth': ''})
  pprint.PrettyPrinter(indent=2).pprint(result)
except ProxyAPIException as e：
  print(str(e))</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>无 hide_auth</th>
<th>使用 hide_auth</th>
</tr>
<tr>
<td>
<pre>1.1.1.1:5432:login:password
2.2.2.2:5432:login:password
3.3.3.3:5432:login:password</pre>
</td>
<td>
<pre>1.1.1.1:5432
2.2.2.2:5432
3.3.3.3:5432</pre>
</td>
</tr>
</tbody>
</table>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP + libcurl&lt;/strong&gt;">
<div class="tab-content">
<div id="php_ip_list" class="tab-pane tab-padding active" role="tabpanel">
<pre>get("/package_subscriptions/1/ips"))；
  var_dump($api-&gt;get("/package_subscriptions/1/ips", [
    "hide_auth" =&gt; ""
  ]));
} catch(ProxyAPIException $e) {
  echo $e；
}</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>无 hide_auth</th>
<th>使用 hide_auth</th>
</tr>
<tr>
<td>
<pre>1.1.1.1:5432:login:password
2.2.2.2:5432:login:password
3.3.3.3:5432:login:password</pre>
</td>
<td>
<pre>1.1.1.1:5432
2.2.2.2:5432
3.3.3.3:5432</pre>
</td>
</tr>
</tbody>
</table>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Node.js + stdlib&lt;/strong&gt;">
<div class="tab-content">
<div id="nodejs_ip_list" class="tab-pane tab-padding active" role="tabpanel">
<pre>const proxy_api = require('./proxy_api')；

async 函数 main() {
  const res = await proxy_api.get('https://app.privateproxy.me/api/v1/package_subscriptions/1/ips', '08c5fa8dd63c8adc4b08803df5f68f9d')；
  if (res instanceof Error) {
    console.log("Error:")+ res.toString())；
  } else {
    console.log(res)；
  }
  const res2 = await proxy_api.get('https://app.privateproxy.me/api/v1/package_subscriptions/1/ips', '08c5fa8dd63c8adc4b08803df5f68f9d', {
    "hide_auth"：""
  });
  if (res2 instanceof Error) {
    console.log("Error:")+ res2.toString())；
  } else {
    console.log(res2)；
  }
}

main()；</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>无 hide_auth</th>
<th>使用 hide_auth</th>
</tr>
<tr>
<td>
<pre>1.1.1.1:5432:login:password
2.2.2.2:5432:login:password
3.3.3.3:5432:login:password</pre>
</td>
<td>
<pre>1.1.1.1:5432
2.2.2.2:5432
3.3.3.3:5432</pre>
</td>
</tr>
</tbody>
</table>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Ruby + stdlib&lt;/strong&gt;">
<div class="tab-content">
<div id="ruby_ip_list" class="tab-pane tab-padding active" role="tabpanel">
<pre>require_relative './proxy_api

开始
  api = ProxyAPI.new("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d")
  puts(api.get("/package_subscriptions/1/ips").inspect)
  puts(api.get("/package_subscriptions/1/ips", hide_auth: '').inspect)
rescue ProxyAPIException =&gt; e
  puts e.message
结束</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>无 hide_auth</th>
<th>使用 hide_auth</th>
</tr>
<tr>
<td>
<pre>1.1.1.1:5432:login:password
2.2.2.2:5432:login:password
3.3.3.3:5432:login:password</pre>
</td>
<td>
<pre>1.1.1.1:5432
2.2.2.2:5432
3.3.3.3:5432</pre>
</td>
</tr>
</tbody>
</table>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Golang + stdlib&lt;/strong&gt;">
<div class="tab-content">
<div id="golang_ip_list" class="tab-pane tab-padding active" role="tabpanel">
<pre>主包

导入 (
  "fmt"
  "net/http"
)

func main() {
  api := NewProxyAPI("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d", &amp;http.Client{})

  resp, _, err := api.Get("/package_subscriptions/1/ips", nil)
  if err != nil {
    fmt.Println(err)
  } else {
    fmt.Println(resp)
  }

  resp，_，err = api.Get("/package_subscriptions/1/ips"，map[string]string{"hide_auth": ""})
  if err != nil {
    fmt.Println(err)
  } else {
    fmt.Println(resp)
  }
}</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>无 hide_auth</th>
<th>使用 hide_auth</th>
</tr>
<tr>
<td>
<pre>1.1.1.1:5432:login:password
2.2.2.2:5432:login:password
3.3.3.3:5432:login:password</pre>
</td>
<td>
<pre>1.1.1.1:5432
2.2.2.2:5432
3.3.3.3:5432</pre>
</td>
</tr>
</tbody>
</table>
</div></div></div>
<hr />
<h2>获取订阅设置</h2>
<div>
<div class="pre-parent">
<div class="pre-description">该端点允许获取软件包的特定设置，如授权 ips 和交换间隔（用于 backconnect）。</div>
<div class="pre-params">
<table class="table table-condensed table-bordered">
<tbody>
<tr>
<td>终点</td>
<td>/package_subscriptions/:id/settings</td>
</tr>
<tr>
<td>方法</td>
<td>获取</td>
</tr>
<tr>
<td>参数</td>
<td>id - 订阅的 id</td>
</tr>
<tr>
<td>查询参数</td>
<td>无</td>
</tr>
<tr>
<td>JSON 参数</td>
<td>无</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="6" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>在 *nix shell 中使用 curl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button">Python 3 + 请求</span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP + libcurl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Node.js + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Ruby + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Golang + stdlib</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;curl in *nix shell&lt;/strong&gt;">
<div class="tab-content">
<div id="curl_get_package_settings" class="tab-pane tab-padding active" role="tabpanel">
<pre>curl -u api:08c5fa8dd63c8adc4b08803df5f68f9d https://app.privateproxy.me/api/v1/package_subscriptions/1/settings</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>代理订阅</th>
<th>订阅 Backconnect</th>
</tr>
<tr>
<td>
<pre>{
  "authorized_ips":[
    "15.25.5.11"
  ]
}</pre>
</td>
<td>
<pre>{
  "authorized_ips":[
    "15.25.5.11",
    "1.1.1.1"
  ],
  "swap_interval":120
}</pre>
</td>
</tr>
</tbody>
</table>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="Python 3 + requests">
<div class="tab-content">
<div id="python_get_package_settings" class="tab-pane tab-padding active" role="tabpanel">
<pre>从 proxy_api 导入 *

api = ProxyAPI("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d")
try：
  result = api.get("/package_subscriptions/1/settings")
  pprint.PrettyPrinter(indent=2).pprint(result)
except ProxyAPIException as e：
  print(str(e))</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>代理订阅</th>
<th>订阅 Backconnect</th>
</tr>
<tr>
<td>
<pre>{
  "authorized_ips":[
    "15.25.5.11"
  ]
}</pre>
</td>
<td>
<pre>{
  "authorized_ips":[
    "15.25.5.11",
    "1.1.1.1"
  ],
  "swap_interval":120
}</pre>
</td>
</tr>
</tbody>
</table>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP + libcurl&lt;/strong&gt;">
<div class="tab-content">
<div id="php_get_package_settings" class="tab-pane tab-padding active" role="tabpanel">
<pre>get("/package_subscriptions/1/settings"))；
} catch(ProxyAPIException $e) {
  echo $e；
}</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>代理订阅</th>
<th>订阅 Backconnect</th>
</tr>
<tr>
<td>
<pre>{
  "authorized_ips":[
    "15.25.5.11"
  ]
}</pre>
</td>
<td>
<pre>{
  "authorized_ips":[
    "15.25.5.11",
    "1.1.1.1"
  ],
  "swap_interval":120
}</pre>
</td>
</tr>
</tbody>
</table>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Node.js + stdlib&lt;/strong&gt;">
<div class="tab-content">
<div id="nodejs_get_package_settings" class="tab-pane tab-padding active" role="tabpanel">
<pre>const proxy_api = require('./proxy_api')；

async 函数 main() {
  const res = await proxy_api.get('https://app.privateproxy.me/api/v1/package_subscriptions/1/settings', '08c5fa8dd63c8adc4b08803df5f68f9d')；
  if (res instanceof Error) {
    console.log("Error:")+ res.toString())；
  } else {
    console.log(res)；
  }
}

main()；</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>代理订阅</th>
<th>订阅 Backconnect</th>
</tr>
<tr>
<td>
<pre>{
  "authorized_ips":[
    "15.25.5.11"
  ]
}</pre>
</td>
<td>
<pre>{
  "authorized_ips":[
    "15.25.5.11",
    "1.1.1.1"
  ],
  "swap_interval":120
}</pre>
</td>
</tr>
</tbody>
</table>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Ruby + stdlib&lt;/strong&gt;">
<div class="tab-content">
<div id="ruby_get_package_settings" class="tab-pane tab-padding active" role="tabpanel">
<pre>require_relative './proxy_api

开始
  api = ProxyAPI.new("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d")
  puts(api.get("/package_subscriptions/1/settings").inspect)
rescue ProxyAPIException =&gt; e
  puts e.message
结束</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>代理订阅</th>
<th>订阅 Backconnect</th>
</tr>
<tr>
<td>
<pre>{
  "authorized_ips":[
    "15.25.5.11"
  ]
}</pre>
</td>
<td>
<pre>{
  "authorized_ips":[
    "15.25.5.11",
    "1.1.1.1"
  ],
  "swap_interval":120
}</pre>
</td>
</tr>
</tbody>
</table>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Golang + stdlib&lt;/strong&gt;">
<div class="tab-content">
<div id="golang_get_package_settings" class="tab-pane tab-padding active" role="tabpanel">
<pre>主包

导入 (
  "编码/json"
  "fmt"
  "net/http"
)

类型 packageSettings struct {
  授权 IPs []string `json: "authorized_ips"`

  //仅回连
  交换间隔 int `json: "swap_interval"`
}

func main() {
  api := NewProxyAPI("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d", &amp;http.Client{})

  resp, _, err := api.Get("/package_subscriptions/1/settings", nil)
  if err != nil {
    fmt.Println(err)
  } else {
    var ps packageSettings
    json.Unmarshal([]byte(resp), &amp;ps)
    fmt.Println(ps)
  }
}</pre>
</div>
</div>
<p>答复示例：</p>
<table class="table">
<tbody>
<tr>
<th>代理订阅</th>
<th>订阅 Backconnect</th>
</tr>
<tr>
<td>
<pre>{
  "authorized_ips":[
    "15.25.5.11"
  ]
}</pre>
</td>
<td>
<pre>{
  "authorized_ips":[
    "15.25.5.11",
    "1.1.1.1"
  ],
  "swap_interval":120
}</pre>
</td>
</tr>
</tbody>
</table>
</div></div></div>
<hr />
<h2>设置订阅设置</h2>
<div>
<div class="pre-parent">
<div class="pre-description">该端点允许设置软件包的特定设置，如授权 ips 或交换间隔（用于 backconnect）。</div>
<div class="pre-params">
<table class="table table-condensed table-bordered">
<tbody>
<tr>
<td>终点</td>
<td>/package_subscriptions/:id</td>
</tr>
<tr>
<td>方法</td>
<td>输入</td>
</tr>
<tr>
<td>必要的 HTTP 标头</td>
<td>Content-Type: 应用程序/json</td>
</tr>
<tr>
<td>参数</td>
<td>id - 订阅的 id</td>
</tr>
<tr>
<td>查询参数</td>
<td>无</td>
</tr>
<tr>
<td>JSON 参数</td>
<td>authorized_ips - 列表 - 允许无凭证访问代理的授权 IP 地址<br />
swap_interval - 整数 &gt;= 0 - 为反向连接代理更换 IP 的频率，0 表示每次请求都更换。普通代理软件包忽略不计。</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="6" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>在 *nix shell 中使用 curl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python 3 + 请求</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP + libcurl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Node.js + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Ruby + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button">Golang + stdlib</span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;curl in *nix shell&lt;/strong&gt;">
<div class="tab-content">
<div id="curl_set_package_settings" class="tab-pane tab-padding active" role="tabpanel">
<pre>curl -X PUT -H "Content-Type: application/json" -u api:08c5fa8dd63c8adc4b08803df5f68f9d --data '{"swap_interval"：180, "authorized_ips":["1.1.1.1"]}' https://app.privateproxy.me/api/v1/package_subscriptions/1</pre>
</div>
</div>
<p>成功时 {"success":true}将返回 JSON 文件，错误时，哈希值中的 success 将为 false，error 将包含任何错误：</p>
<pre>{
  "success": false、
  "error"："Authorized ips contain invalid IP 441.2.3.4 on line 1, Swap interval must be greater than or equal to 0" (授权的 ips 在第 1 行包含无效 IP 441.2.3.4，交换间隔必须大于或等于 0)
}</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python 3 + requests&lt;/strong&gt;">
<div class="tab-content">
<div id="python_set_package_settings" class="tab-pane tab-padding active" role="tabpanel">
<pre>从 proxy_api 导入 *

api = ProxyAPI("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d")
try：
  result = api.put("/package_subscriptions/1", body = {'swap_interval': 180, 'authorized_ips'：['1.2.3.4', '2.5.6.7']})
  print(result)
  result = api.put("/package_subscriptions/1", body = {'swap_interval': -180, 'authorized_ips'：['441.2.3.4']})
  print(result)
except ProxyAPIException as e：
  print(str(e))</pre>
</div>
</div>
<p>成功时 {"success":true}将返回 JSON 文件，错误时，哈希值中的 success 将为 false，error 将包含任何错误：</p>
<pre>{
  "success": false、
  "error"："Authorized ips contain invalid IP 441.2.3.4 on line 1, Swap interval must be greater than or equal to 0" (授权的 ips 在第 1 行包含无效 IP 441.2.3.4，交换间隔必须大于或等于 0)
}</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP + libcurl&lt;/strong&gt;">
<div class="tab-content">
<div id="php_set_package_settings" class="tab-pane tab-padding active" role="tabpanel">
<pre>put("/package_subscriptions/1", [
    "authorized_ips" =&gt; ["1.5.4.4", "1.5.6.7"]、
    "swap_interval" =&gt; 3600
  ]));
  var_dump($api-&gt;put("/package_subscriptions/1", [
    "authorized_ips" =&gt; ["1.5.4.444", "1.5.6.7"]、
    "swap_interval" =&gt; -3600
  ]));
} catch(ProxyAPIException $e) {
  echo $e；
}</pre>
</div>
</div>
<p>成功时 {"success":true}将返回 JSON 文件，错误时，哈希值中的 success 将为 false，error 将包含任何错误：</p>
<pre>{
  "success": false、
  "error"："Authorized ips contain invalid IP 441.2.3.4 on line 1, Swap interval must be greater than or equal to 0" (授权的 ips 在第 1 行包含无效 IP 441.2.3.4，交换间隔必须大于或等于 0)
}</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Node.js + stdlib&lt;/strong&gt;">
<div class="tab-content">
<div id="nodejs_set_package_settings" class="tab-pane tab-padding active" role="tabpanel">
<pre>const proxy_api = require('./proxy_api')；

async 函数 main() {
  const res = await proxy_api.put(
    'https://app.privateproxy.me/api/v1/package_subscriptions/1'、
    '08c5fa8dd63c8adc4b08803df5f68f9d',
    {
      "authorized_ips"：["77.66.55.44", "1.87.31.3"],
      "swap_interval"：1200
    }
  );
  if (res instanceof Error) {
    console.log("Error:")+ res.toString())；
  } else {
    console.log(res)；
  }
}

main()；</pre>
</div>
</div>
<p>成功时 {"success":true}将返回 JSON 文件，错误时，哈希值中的 success 将为 false，error 将包含任何错误：</p>
<pre>{
  "success": false、
  "error"："Authorized ips contain invalid IP 441.2.3.4 on line 1, Swap interval must be greater than or equal to 0" (授权的 ips 在第 1 行包含无效 IP 441.2.3.4，交换间隔必须大于或等于 0)
}</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Ruby + stdlib&lt;/strong&gt;">
<div class="tab-content">
<div id="ruby_set_package_settings" class="tab-pane tab-padding active" role="tabpanel">
<pre>require_relative './proxy_api

开始
  api = ProxyAPI.new("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d")
  puts(api.put("/package_subscriptions/1", authorized_ips: ['1.2.3.2'], swap_interval: 30).inspect)
  puts(api.put("/package_subscriptions/1", authorized_ips：[412.2.3.2'], swap_interval: -30).inspect)
rescue ProxyAPIException =&gt; e
  puts e.message
结束</pre>
</div>
</div>
<p>成功时 {"success":true}将返回 JSON 文件，错误时，哈希值中的 success 将为 false，error 将包含任何错误：</p>
<pre>{
  "success": false、
  "error"："Authorized ips contain invalid IP 441.2.3.4 on line 1, Swap interval must be greater than or equal to 0" (授权的 ips 在第 1 行包含无效 IP 441.2.3.4，交换间隔必须大于或等于 0)
}</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="Golang + stdlib">
<div class="tab-content">
<div id="golang_set_package_settings" class="tab-pane tab-padding active" role="tabpanel">
<pre>主包

导入 (
  "fmt"
  "net/http"
  "字符串
)

func main() {
  api := NewProxyAPI("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d", &amp;http.Client{})

  ips := strings.Join([]string{"1.2.3.1", "1.3.1.2", "1.1.1.1"}, "\",\"")
  settings := fmt.Sprintf("{\"authorized_ips\": [\"%s\"], \"swap_interval\": 4242}", ips)

  resp, _, err := api.Put("/package_subscriptions/1", settings)
  if err != nil {
    fmt.Println(err)
  } else {
    fmt.Println(resp)
  }

  ips = strings.Join([]string{"1.2.3.1", "1.3.1.2", "1.1.1.1000"}, "\",\"")
  settings = fmt.Sprintf("{\"authorized_ips\": [\"%s\"], \"swap_interval\": -4242}", ips)

  resp, _, err = api.Put("/package_subscriptions/1", settings)
  if err != nil {
    fmt.Println(err)
  } else {
    fmt.Println(resp)
  }
}</pre>
</div>
</div>
<p>成功时 {"success":true}将返回 JSON 文件，错误时，哈希值中的 success 将为 false，error 将包含任何错误：</p>
<pre>{
  "success": false、
  "error"："Authorized ips contain invalid IP 441.2.3.4 on line 1, Swap interval must be greater than or equal to 0" (授权的 ips 在第 1 行包含无效 IP 441.2.3.4，交换间隔必须大于或等于 0)
}</pre>
</div></div></div>
<hr />
<h2>添加授权 IP</h2>
<div>
<div class="pre-parent">
<div class="pre-description">该端点允许在授权 IP 列表中添加新的授权 IP，而不会为了方便而列出所有 IP。</div>
<div class="pre-params">
<table class="table table-condensed table-bordered">
<tbody>
<tr>
<td>终点</td>
<td>/package_subscriptions/:id/add_authorized_ip</td>
</tr>
<tr>
<td>方法</td>
<td>输入</td>
</tr>
<tr>
<td>必要的 HTTP 标头</td>
<td>Content-Type: 应用程序/json</td>
</tr>
<tr>
<td>参数</td>
<td>id - 订阅的 id</td>
</tr>
<tr>
<td>查询参数</td>
<td>无</td>
</tr>
<tr>
<td>JSON 参数</td>
<td>ip - 字符串 - 要添加的 IP 地址</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="6" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>在 *nix shell 中使用 curl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python 3 + 请求</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP + libcurl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Node.js + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Ruby + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Golang + stdlib</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;curl in *nix shell&lt;/strong&gt;">
<pre>curl -X PUT -H "Content-Type: application/json" -u api:08c5fa8dd63c8adc4b08803df5f68f9d --data '{"ip"："1.1.1.1"}' https://app.privateproxy.me/api/v1/package_subscriptions/1/add_authorized_ip</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python 3 + requests&lt;/strong&gt;">
<pre>从 proxy_api 导入 *

api = ProxyAPI("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d")
try：
  result = api.put("/package_subscriptions/1/add_authorized_ip", body = {'ip': '121.23.1.25'})
  print(result)
  result = api.put("/package_subscriptions/1/add_authorized_ip", body = {'ip': '266.1.2.3'})
  print(result)
except ProxyAPIException as e：
  print(str(e))</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP + libcurl&lt;/strong&gt;">
<pre>put("/package_subscriptions/1/add_authorized_ip", [
    "ip" =&gt; "7.7.7.7" [ "ip" =&gt; "7.7.7.7"
  ]));
} catch(ProxyAPIException $e) {
  echo $e；
}</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Node.js + stdlib&lt;/strong&gt;">
<pre>const proxy_api = require('./proxy_api')；

async 函数 main() {
  const res = await proxy_api.put(
    'https://app.privateproxy.me/api/v1/package_subscriptions/1/add_authorized_ip'、
    '08c5fa8dd63c8adc4b08803df5f68f9d',
    {
      "ip"："1.2.3.4"
    }
  );
  if (res instanceof Error) {
    console.log("Error:")+ res.toString())；
  } else {
    console.log(res)；
  }
}

main()；</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Ruby + stdlib&lt;/strong&gt;">
<pre>require_relative './proxy_api

开始
  api = ProxyAPI.new("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d")
  puts(api.put("/package_subscriptions/1/add_authorized_ip", ip: '1.2.3.2').inspect)
  puts(api.put("/package_subscriptions/1/add_authorized_ip", ip: '412.2.3.2').inspect)
rescue ProxyAPIException =&gt; e
  puts e.message
结束</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Golang + stdlib&lt;/strong&gt;">
<pre>主包

导入 (
  "fmt"
  "net/http"
)

func main() {
  api := NewProxyAPI("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d", &amp;http.Client{})

  ip := "{\"ip\"：\"1.7.2.5\"}"
  resp, _, err := api.Put("/package_subscriptions/1/add_authorized_ip", ip)
  if err != nil {
    fmt.Println(err)
  } else {
    fmt.Println(resp)
  }
}</pre>
</div></div></div>
<hr />
<h2>删除授权 IP</h2>
<div>
<div class="pre-parent">
<div class="pre-description">为方便起见，该端点允许删除授权 IP，而无需列出所有 IP。如果没有提供 IP，该端点将返回错误信息，否则即使没有删除 IP，也会成功删除。</div>
<div class="pre-params">
<table class="table table-condensed table-bordered">
<tbody>
<tr>
<td>终点</td>
<td>/package_subscriptions/:id/remove_authorized_ip</td>
</tr>
<tr>
<td>方法</td>
<td>输入</td>
</tr>
<tr>
<td>必要的 HTTP 标头</td>
<td>Content-Type: 应用程序/json</td>
</tr>
<tr>
<td>参数</td>
<td>id - 订阅的 id</td>
</tr>
<tr>
<td>查询参数</td>
<td>无</td>
</tr>
<tr>
<td>JSON 参数</td>
<td>ip - 字符串 - 要删除的 IP 地址</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="6" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>在 *nix shell 中使用 curl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python 3 + 请求</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP + libcurl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Node.js + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Ruby + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Golang + stdlib</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;curl in *nix shell&lt;/strong&gt;">
<pre>curl -X PUT -H "Content-Type: application/json" -u api:08c5fa8dd63c8adc4b08803df5f68f9d --data '{"ip"："1.1.1.1"}' https://app.privateproxy.me/api/v1/package_subscriptions/1/remove_authorized_ip</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python 3 + requests&lt;/strong&gt;">
<pre>从 proxy_api 导入 *

api = ProxyAPI("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d")
try：
  result = api.put("/package_subscriptions/1/remove_authorized_ip", body = {'ip'：'121.23.1.25'})
  print(result)
except ProxyAPIException as e：
  print(str(e))</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP + libcurl&lt;/strong&gt;">
<pre>put("/package_subscriptions/1/remove_authorized_ip", [
    "ip" =&gt; "7.7.7.7" [ "ip" =&gt; "7.7.7.7"
  ]));
} catch(ProxyAPIException $e) {
  echo $e；
}</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Node.js + stdlib&lt;/strong&gt;">
<pre>const proxy_api = require('./proxy_api')；

async 函数 main() {
  const res = await proxy_api.put(
    'https://app.privateproxy.me/api/v1/package_subscriptions/1/remove_authorized_ip'、
    '08c5fa8dd63c8adc4b08803df5f68f9d',
    {
      "ip"："1.2.3.4"
    }
  );
  if (res instanceof Error) {
    console.log("Error:")+ res.toString())；
  } else {
    console.log(res)；
  }
}

main()；</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Ruby + stdlib&lt;/strong&gt;">
<pre>require_relative './proxy_api

开始
  api = ProxyAPI.new("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d")
  puts(api.put("/package_subscriptions/1/add_authorized_ip", ip: '11.22.33.212').inspect)
rescue ProxyAPIException =&gt; e
  puts e.message
结束</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Golang + stdlib&lt;/strong&gt;">
<pre>主包

导入 (
  "fmt"
  "net/http"
)

func main() {
  api := NewProxyAPI("https://app.privateproxy.me/api/v1", "08c5fa8dd63c8adc4b08803df5f68f9d", &amp;http.Client{})

  ip := "{\"ip\"：\"1.7.2.5\"}"
  resp, _, err := api.Put("/package_subscriptions/1/remove_authorized_ip", ip)
  if err != nil {
    fmt.Println(err)
  } else {
    fmt.Println(resp)
  }
}</pre>
</div></div></div>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/how-to-use-privateproxy-me-api/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">10980</post-id>	</item>
		<item>
		<title>How to Use PrivateProxy.me Backconnect Proxy</title>
		<link>https://proxysp.com/zh/privateproxy-me-backconnect-proxy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=privateproxy-me-backconnect-proxy</link>
					<comments>https://proxysp.com/zh/privateproxy-me-backconnect-proxy/#respond</comments>
		
		<dc:creator><![CDATA[proxysp]]></dc:creator>
		<pubdate>Wed, 22 Feb 2023 04:22:55 +0000</pubdate>
				<category><![CDATA[Manuals]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=10973</guid>

					<description><![CDATA[您知道如何使用 PrivateProxy.me Backconnect 代理服务器吗？这是来自 PrivateProxy.me 官方的最全面的介绍。不同语言的使用示例 http://api.privateproxy.me:10738 - 显示 ...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/privateproxy-me-backconnect-proxy/"> <span class="screen-reader-text">如何使用 PrivateProxy.me Backconnect 代理服务器</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>您知道如何使用 <a href="https://app.privateproxy.me/from/662" target="_blank" rel="nofollow noopener">PrivateProxy.me</a> Backconnect 代理服务器？这是 PrivateProxy.me 官方最全面的介绍。</p></blockquote>
<h2>不同语言的用法示例</h2>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="7" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>在 *nix shell 中使用 curl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python 3 + 请求</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP + libcurl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Node.js + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Ruby + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Golang + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>C# + stdlib</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;curl in *nix shell&lt;/strong&gt;">
<pre>curl -x http://login:password@1.1.1.1:5432 http://api.privateproxy.me:10738 #1.1.1.1</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python 3 + requests&lt;/strong&gt;">
<pre>导入请求
代理服务器 = {
  'http'：http://login:password@1.1.1.1:5432'、
  https': 'http://login:password@1.1.1.1:5432'.
}
response = requests.get('http://api.privateproxy.me:10738', proxies=proxies)
// response.text = "1.1.1.1\\n"</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP + libcurl&lt;/strong&gt;">
<pre>$ch = curl_init()；
curl_setopt($ch, CURLOPT_URL, "http://api.privateproxy.me:10738")；
curl_setopt($ch, CURLOPT_PROXY, "1.1.1.1:5432")；
curl_setopt($ch, CURLOPT_PROXYUSERPWD, "login:password")；
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1)；
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1)；
curl_setopt($ch, CURLOPT_HEADER, 1)；
$curl_scraped_page = curl_exec($ch)；
curl_close($ch)；

echo $curl_scraped_page; // "1.1.1.1\\n"</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Node.js + stdlib&lt;/strong&gt;">
<pre>const http = require('http');
const https = require('https');

function getWithProxy(url, proxy) {
  const parsedUrl = new URL(url);
  const proxy_ip = proxy['ip']
  const proxy_port = proxy['port']
  const proxy_auth = 'Basic ' + Buffer.from(proxy['login'] + ':' + proxy['password']).toString('base64')

  let host = parsedUrl.hostname;
  if (parsedUrl.port !== '') {
    host += ':' + parsedUrl.port;
  } else {
    if (parsedUrl.protocol == 'http:') {
      host += ':80';
    } else if(parsedUrl.protocol == 'https:') {
      host += ':443';
    }
  }
  const res = new Promise((resolve, reject) =&gt; {
    http.request({
      port:   proxy_port,
      host:   proxy_ip,
      method: 'CONNECT',
      path:   host,
      headers: {
        'Host': host,
        'Proxy-Authorization': proxy_auth
      }
    }).on('connect', (res, socket, head) =&gt; {
      if (res.statusCode !== 200) {
        reject(new Error(`Non-200 status code returned from proxy: ${res.statusCode} ${res.statusMessage}`));
        return;
      }
      let t, real_opts = {};
      if (parsedUrl.protocol == "http:") {
        real_opts['createConnection'] = () =&gt; socket
        t = http;
      } else {
        real_opts['socket'] = socket;
        t = https;
      }
      const real_req = t.request(url, real_opts, (res) =&gt; {
        res.setEncoding('utf-8')
        let rawData = []
        res.on('data', (chunk) =&gt; rawData.push(chunk));
        res.on('end', () =&gt; resolve(rawData.join('')));
      });
      real_req.on('error', (e) =&gt; reject(e));
      real_req.end();
    }).end();
  });

  return res;
}

getWithProxy("https://httpbin.org/ip", {
  ip: '1.1.1.1',
  port: 5432,
  login: 'login',
  password: 'password'
}).then(
    (data) =&gt; console.log(data.trim()),
    (e) =&gt; console.log("Error: " + e.toString())
).then(
  () =&gt; getWithProxy("http://api.privateproxy.me:10738", {
    ip: '1.1.1.1',
    port: 5432,
    login: 'login',
    password: 'password'
  })
).then(
  (data) =&gt; console.log(data.trim()),
  (e) =&gt; console.log("Error: " + e.toString())
)</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Ruby + stdlib&lt;/strong&gt;">
<pre>需要 "net/http

resp = Net::HTTP.start("api.privateproxy.me", 10738, "1.1.1.1", "5432", "login", "password") do |h|
  request = Net::HTTP::Get.new('/')
  h.request(request)
结束

puts resp.body # "1.1.1.1\\n"</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Golang + stdlib&lt;/strong&gt;">
<pre>主包

导入 (
  "fmt"
  "io/ioutil"
  "net/http"
  "net/url"
  "时间"
)

func main() {
  proxy, err := url.Parse("http://login:password@1.1.1.1:5432")
  if err != nil {
    返回
  }
  proxyFunc := http.ProxyURL(proxy)
  tr := &amp;http.Transport{
    MaxIdleConns：       10,
    IdleConnTimeout：    30 * time.Second、
    DisableCompression: true、
    代理：proxyFunc、
  }
  客户端 := &amp;http.Client{
    Transport: tr、
  }
  resp, err := client.Get("http://api.privateproxy.me:10738")
  if err != nil {
    返回
  }
  defer resp.Body.Close()
  bytes, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    返回
  }
  fmt.Print(string(bytes))// "1.1.1.1\\n"
}</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;C# + stdlib&lt;/strong&gt;">
<pre>var handler = new HttpClientHandler()；
handler.Proxy = new WebProxy("http://login:password@1.1.1.1:5432/")；

using (var httpClient = new HttpClient(handler))
{
  using (var request = new HttpRequestMessage(new HttpMethod("GET"), "http://api.privateproxy.me:10738"))
  {
    var response = await httpClient.SendAsync(request)；
    // response.Content - "1.1.1.1\\n"
  }
}</pre>
</div></div></div>
<p>http://api.privateproxy.me:10738 - 以文本模式显示您当前的 IP 地址</p>
<p>使用反向连接代理与使用普通代理没有区别。Backconnect 代理服务器的作用与普通代理服务器相同，只是目标网站看到的 IP 地址不同，具体取决于交换间隔设置/手动交换。</p>
<p>如果您已将自己的 IP 地址添加到授权 IP 列表中，则无需指定证书。授权 IP 并不是强制性的，您可以继续使用证书授权，哪种方式更方便都可以。</p>
<p>如果您要编写自己的软件来访问某个网站，请添加 User-Agent 等标头，以便请求看起来像是来自浏览器。</p>
<hr />
<h2>浏览器使用建议</h2>
<div>
<ul>
<li>关闭 WebRTC，因为即使使用代理服务器，它也会破坏你的真实 IP 地址，甚至你的本地内网 IP 地址。这里有一个针对不同浏览器的禁用指南链接： <a href="https://www.vpnunlimitedapp.com/blog/how-to-disable-webrtc-in-chrome-and-other-browsers" target="_blank" rel="nofollow noopener">https://www.vpnunlimitedapp.com/blog/how-to-disable-webrtc-in-chrome-and-other-browsers</a></li>
<li>使用 Chrome 浏览器的 ghostery 等禁用跟踪器插件，网站仍能通过浏览器指纹识别你的身份。</li>
<li>如果可能，将本地计算机时间设置为代理服务器时区。</li>
<li>如果使用 backconnect，最好将交换时间间隔设置为 5 分钟或更长，这样就不会经常出现 IP 变更。</li>
</ul>
</div>
<hr />
<h2>使用 Python-Selenium 代理</h2>
<h3>python-selenium + Firefox(geckodriver)</h3>
<p>要在 firefox 中使用 selenium，你需要安装这些项目：</p>
<ul>
<li><a href="https://pypi.org/project/selenium/" target="_blank" rel="nofollow noopener">https://pypi.org/project/selenium/</a></li>
<li>geckodriver： <a href="https://github.com/mozilla/geckodriver/releases" target="_blank" rel="nofollow noopener">https://github.com/mozilla/geckodriver/releases</a></li>
<li>已安装的 Firefox 实例</li>
</ul>
<p>如果使用凭据认证，还需要</p>
<ul>
<li><a href="https://pypi.org/project/selenium-wire/" target="_blank" rel="nofollow noopener">https://pypi.org/project/selenium-wire/</a></li>
</ul>
<p>例如，使用代理凭据：</p>
<pre>from seleniumwire import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

path_to_firefox_binary = '' # !!! 设置此变量 !!!
path_too_geckodriver_binary = '' # !!! 设置此变量 !!!

wire_options = {
  代理'：{
    'http'：http://login:password@1.1.1.1:5432'、
    https': 'http://login:password@1.1.1.1:5432'、
    no_proxy'：localhost,127.0.0.1'。
  }
}
binary = FirefoxBinary(path_to_firefox_binary)

options = Options()
options.headless = True
browser = webdriver.Firefox(
  options=options、
  firefox_binary=binary、
  executable_path=path_to_geckodriver_binary、
  seleniumwire_options=wire_options
)

browser.get("http://api.privateproxy.me:10738")
element = WebDriverWait(browser, 10).until(
  EC.visibility_of_element_located((By.CSS_SELECTOR, "pre"))
)
print(element.text)
browser.quit()</pre>
<p>使用 IP 授权的示例：</p>
<pre>from selenium import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

path_to_firefox_binary = '' # !!! 设置此变量 !!!
path_too_geckodriver_binary = '' # !!! 设置此变量 !!!
proxy_ip = '1.1.1.1'
代理端口 = 5432

profile = webdriver.FirefoxProfile()
profile.set_preference("network.proxy.type", 1)
profile.set_preference("network.proxy.http", proxy_ip)
profile.set_preference("network.proxy.http_port", proxy_port)
profile.set_preference("network.proxy.ssl", proxy_ip)
profile.set_preference("network.proxy.ssl_port", proxy_port)
profile.update_preferences()

binary = FirefoxBinary(path_to_firefox_binary)
options = Options()
options.headless = True
浏览器 = webdriver.Firefox(
  options=options、
  firefox_binary=binary、
  executable_path=path_to_geckodriver_binary、
  firefox_profile=profile
)
browser.get("http://api.privateproxy.me:10738")
element = WebDriverWait(browser, 10).until(
  EC.visibility_of_element_located((By.CSS_SELECTOR, "pre"))
)
print(element.text)
browser.quit()</pre>
<p>这两个示例都以无头模式启动 firefox，因此在执行这些示例时浏览器将保持隐藏状态。</p>
<hr />
<h3>python-selenium + Chrome(chromedriver)</h3>
<p>要在 Chrome 浏览器中使用硒，你需要安装这些项目：</p>
<ul>
<li><a href="https://pypi.org/project/selenium/" target="_blank" rel="nofollow noopener">https://pypi.org/project/selenium/</a></li>
<li>cromedriver： <a href="https://chromedriver.chromium.org/downloads" target="_blank" rel="nofollow noopener">https://chromedriver.chromium.org/downloads</a></li>
<li>已安装的 Chrome 浏览器实例</li>
</ul>
<p>使用凭证授权的示例：</p>
<pre>导入 os
导入 zipfile
导入 hashlib
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

proxy = "1.1.1.1:5432" 代理
凭证 = "login:password"
path_to_chrome_binary = '' !!! 设置此变量 !!!
path_too_chromedriver_binary = '' !!! 设置此变量!!!

def generate_extension(proxy, credentials)：
  IP、端口 = proxy.split(':')
  login, password = credentials.split(':')
  manifest_json = """
  {
      版本"1.0.0",
      "manifest_version"：2,
      "名称"："Chrome 代理"、
      "权限"： [[
          "代理"、
          "选项卡"、
          "unlimitedStorage"、
          "存储"、
          "",
          "网络请求"、
          "网络请求阻塞"
      ],
      "背景"：{
          "脚本"：["background.js"]
      },
      "minimum_chrome_version":"22.0.0"
  }
  """

  background_js = """
  var config = {
          mode："fixed_servers"、
          rules：{
          singleProxy：{
              scheme："http"、
              host: "%s"、
              port: parseInt(%s)
          },
          bypassList：["localhost"]（本地主机
          }
      };

  chrome.proxy.settings.set({value: config, scope："regular"}, function() {})；

  function callbackFn(details) {
      返回 {
          authCredentials：{
              username: "%s"、
              password: "%s".
          }
      };
  }

  chrome.webRequest.onAuthRequired.addListener(
              callbackFn、
              {urls：[""]},
              ['阻塞']
  );
  """% （IP、端口、登录名、密码）

  sha1 = hashlib.sha1()
  sha1.update(("%s:%s" % (proxy, credentials)).encode('utf-8'))
  文件名 = sha1.hexdigest() + ".zip"

  with zipfile.ZipFile(filename, 'w') as zp：
    zp.writestr("manifest.json", manifest_json)
    zp.writestr("background.js", background_js)

  返回文件名

extension_name = generate_extension(proxy, credentials)
options = Options()
options.binary_location = path_to_chrome_binary
options.add_extension(extension_name)
驱动程序 = webdriver.Chrome(
  executable_path = path_to_chromedriver_binary、
  options=options、
)
driver.get('http://api.privateproxy.me:10738/')
element = WebDriverWait(driver, 30).until(
  EC.visibility_of_element_located((By.CSS_SELECTOR, "pre"))
)
print(element.text)
driver.quit()
os.remove(extension_name)</pre>
<p>遗憾的是，在使用凭证时存在一些限制：</p>
<ul>
<li>没有无头模式</li>
<li>必须为每个代理 + 凭据集生成并存储扩展名。我们找不到更简单的方法。</li>
</ul>
<p>使用 ip 授权的示例：</p>
<pre>from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

path_too_chrome_binary = '' # !!! 设置此变量 !!!
path_too_chromedriver_binary = '' # !!! 设置此变量 !!!
代理 = "1.1.1.1:5432"

options = Options()
options.binary_location = path_to_chrome_binary
options.headless = True
options.add_argument("--proxy-server=%s" % proxy)

驱动程序 = webdriver.Chrome(
  executable_path = path_to_chromedriver_binary、
  options=options、
)
driver.get('http://api.privateproxy.me:10738/')
element = WebDriverWait(driver, 30).until(
  EC.visibility_of_element_located((By.CSS_SELECTOR, "pre"))
)
print(element.text)
driver.quit()</pre>
<hr />
<h2>使用 Node.JS Puppeteer 代理</h2>
<p><strong>Puppeteer + Node.js + chrome 浏览器</strong></p>
<p>目前，我们只有一个如何在 puppeteer 和 Chrome 浏览器中使用代理的示例。</p>
<p>为此，您需要在安装 puppeteer 时使用环境变量 PUPPETEER_PRODUCT=chrome：</p>
<pre>PUPPETEER_PRODUCT=chrome npm install puppeteer</pre>
<p>您还需要代理链软件包：</p>
<pre>npm install proxy-chain</pre>
<p>代码示例</p>
<pre>const puppeteer = require('puppeteer')；
const proxyChain = require('proxy-chain')；

(async() =&gt; {
  const oldProxyUrl = 'http://login:password@1.1.1.1:5432'；
  const newProxyUrl = await proxyChain.anonymizeProxy(oldProxyUrl)；

  const browser = await puppeteer.launch({
    args: [`--proxy-server=${newProxyUrl}`]、
  });

  const page = await browser.newPage()；
  await page.goto('https://httpbin.org/ip')；
  const element = await page.$('pre')；
  const text = await page.evaluate(element =&gt; element.textContent, element)；
  console.log(text)；
  await browser.close()；

  await proxyChain.closeAnonymizedProxy(newProxyUrl, true)；
})();</pre>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/privateproxy-me-backconnect-proxy/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">10973</post-id>	</item>
		<item>
		<title>How to Use PrivateProxy.me Proxy</title>
		<link>https://proxysp.com/zh/privateproxy-me-proxy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=privateproxy-me-proxy</link>
					<comments>https://proxysp.com/zh/privateproxy-me-proxy/#respond</comments>
		
		<dc:creator><![CDATA[proxysp]]></dc:creator>
		<pubdate>Wed, 22 Feb 2023 03:43:07 +0000</pubdate>
				<category><![CDATA[Manuals]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=10959</guid>

					<description><![CDATA[您知道如何使用 PrivateProxy.me 代理服务器吗？这是来自 PrivateProxy.me 官方的最全面的介绍。不同语言的使用示例 警告：这些示例 ...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/privateproxy-me-proxy/"> <span class="screen-reader-text">如何使用 PrivateProxy.me 代理服务器</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>您知道如何使用 <a href="https://app.privateproxy.me/from/662" target="_blank" rel="nofollow noopener">PrivateProxy.me</a> 代理？这是 PrivateProxy.me 官方最全面的介绍。</p></blockquote>
<h2>不同语言的用法示例</h2>
<p><em><strong>警告</strong> 这些示例旨在演示代理服务器的工作原理。未经大量修改，请勿在生产中使用。</em></p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="7" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>在 *nix shell 中使用 curl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python 3 + 请求</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP + libcurl</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Node.js + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Ruby + stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Golang+stdlib</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>C# + stdlib</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;curl in *nix shell&lt;/strong&gt;">
<div class="tab-content">
<div id="curl_proxy_usage" class="tab-pane tab-padding active" role="tabpanel">
<pre>curl -x http://pvtyproxies:ajd89akjdAdk@2.57.20.194:5432 http://api.privateproxy.me:10738 #2.57.20.194</pre>
</div>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python 3 + requests&lt;/strong&gt;">
<pre>导入请求
代理服务器 = {
  'http'：http://pvtyproxies:ajd89akjdAdk@2.57.20.194:5432'、
  https': 'http://pvtyproxies:ajd89akjdAdk@2.57.20.194:5432'.
}
response = requests.get('http://api.privateproxy.me:10738', proxies=proxies)
// response.text = "2.57.20.194\\n"</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP + libcurl&lt;/strong&gt;">
<pre>$ch = curl_init()；
curl_setopt($ch, CURLOPT_URL, "http://api.privateproxy.me:10738")；
curl_setopt($ch, CURLOPT_PROXY, "2.57.20.194:5432")；
curl_setopt($ch, CURLOPT_PROXYUSERPWD, "pvtyproxies:ajd89akjdAdk")；
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1)；
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1)；
curl_setopt($ch, CURLOPT_HEADER, 1)；
$curl_scraped_page = curl_exec($ch)；
curl_close($ch)；

echo $curl_scraped_page; // "2.57.20.194\\n"</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Node.js + stdlib&lt;/strong&gt;">
<pre>const http = require('http');
const https = require('https');

function getWithProxy(url, proxy) {
  const parsedUrl = new URL(url);
  const proxy_ip = proxy['ip']
  const proxy_port = proxy['port']
  const proxy_auth = 'Basic ' + Buffer.from(proxy['login'] + ':' + proxy['password']).toString('base64')

  let host = parsedUrl.hostname;
  if (parsedUrl.port !== '') {
    host += ':' + parsedUrl.port;
  } else {
    if (parsedUrl.protocol == 'http:') {
      host += ':80';
    } else if(parsedUrl.protocol == 'https:') {
      host += ':443';
    }
  }
  const res = new Promise((resolve, reject) =&gt; {
    http.request({
      port:   proxy_port,
      host:   proxy_ip,
      method: 'CONNECT',
      path:   host,
      headers: {
        'Host': host,
        'Proxy-Authorization': proxy_auth
      }
    }).on('connect', (res, socket, head) =&gt; {
      if (res.statusCode !== 200) {
        reject(new Error(`Non-200 status code returned from proxy: ${res.statusCode} ${res.statusMessage}`));
        return;
      }
      let t, real_opts = {};
      if (parsedUrl.protocol == "http:") {
        real_opts['createConnection'] = () =&gt; socket
        t = http;
      } else {
        real_opts['socket'] = socket;
        t = https;
      }
      const real_req = t.request(url, real_opts, (res) =&gt; {
        res.setEncoding('utf-8')
        let rawData = []
        res.on('data', (chunk) =&gt; rawData.push(chunk));
        res.on('end', () =&gt; resolve(rawData.join('')));
      });
      real_req.on('error', (e) =&gt; reject(e));
      real_req.end();
    }).end();
  });

  return res;
}

getWithProxy("https://httpbin.org/ip", {
  ip: '2.57.20.194',
  port: 5432,
  login: 'pvtyproxies',
  password: 'ajd89akjdAdk'
}).then(
    (data) =&gt; console.log(data.trim()),
    (e) =&gt; console.log("Error: " + e.toString())
).then(
  () =&gt; getWithProxy("http://api.privateproxy.me:10738", {
    ip: '2.57.20.194',
    port: 5432,
    login: 'pvtyproxies',
    password: 'ajd89akjdAdk'
  })
).then(
  (data) =&gt; console.log(data.trim()),
  (e) =&gt; console.log("Error: " + e.toString())
)</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Ruby + stdlib&lt;/strong&gt;">
<pre>需要 "net/http

resp = Net::HTTP.start("api.privateproxy.me", 10738, "2.57.20.194", "5432", "pvtyproxies", "ajd89akjdAdk") do |h|
  request = Net::HTTP::Get.new('/')
  h.request(request)
结束

puts resp.body # "2.57.20.194\\n"</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Golang+stdlib&lt;/strong&gt;">
<pre>主包

导入 (
  "fmt"
  "io/ioutil"
  "net/http"
  "net/url"
  "时间"
)

func main() {
  proxy, err := url.Parse("http://pvtyproxies:ajd89akjdAdk@2.57.20.194:5432")
  if err != nil {
    返回
  }
  proxyFunc := http.ProxyURL(proxy)
  tr := &amp;http.Transport{
    MaxIdleConns：       10,
    IdleConnTimeout：    30 * time.Second、
    DisableCompression: true、
    代理：proxyFunc、
  }
  客户端 := &amp;http.Client{
    Transport: tr、
  }
  resp, err := client.Get("http://api.privateproxy.me:10738")
  if err != nil {
    返回
  }
  defer resp.Body.Close()
  bytes, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    返回
  }
  fmt.Print(string(bytes))// "2.57.20.194\\n"
}</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;C# + stdlib&lt;/strong&gt;">
<pre>var handler = new HttpClientHandler()；
handler.Proxy = new WebProxy("http://pvtyproxies:ajd89akjdAdk@2.57.20.194:5432/")；

using (var httpClient = new HttpClient(handler))
{
  using (var request = new HttpRequestMessage(new HttpMethod("GET"), "http://api.privateproxy.me:10738"))
  {
    var response = await httpClient.SendAsync(request)；
    // response.Content - "2.57.20.194\\n"
  }
}</pre>
</div></div></div>
<div>
<p>http://api.privateproxy.me:10738 - 以文本模式显示您当前的 IP 地址</p>
<p>使用反向连接代理与使用普通代理没有区别。Backconnect 代理服务器的作用与普通代理服务器相同，只是目标网站看到的 IP 地址不同，具体取决于交换间隔设置/手动交换。</p>
<p>如果您已将自己的 IP 地址添加到授权 IP 列表中，则无需指定证书。授权 IP 并不是强制性的，您可以继续使用证书授权，哪种方式更方便都可以。</p>
<p>如果您要编写自己的软件来访问某个网站，请添加 User-Agent 等标头，以便请求看起来像是来自浏览器。</p>
</div>
<hr />
<h2>浏览器使用建议</h2>
<div>
<ul>
<li>关闭 WebRTC，因为即使使用代理服务器，它也会破坏你的真实 IP 地址，甚至你的本地内网 IP 地址。这里有一个针对不同浏览器的禁用指南链接： <a href="https://www.vpnunlimitedapp.com/blog/how-to-disable-webrtc-in-chrome-and-other-browsers" target="_blank" rel="nofollow noopener">https://www.vpnunlimitedapp.com/blog/how-to-disable-webrtc-in-chrome-and-other-browsers</a></li>
<li>使用 Chrome 浏览器的 ghostery 等禁用跟踪器插件，网站仍能通过浏览器指纹识别你的身份。</li>
<li>如果可能，将本地计算机时间设置为代理服务器时区。</li>
<li>如果使用 backconnect，最好将交换时间间隔设置为 5 分钟或更长，这样就不会经常出现 IP 变更。</li>
</ul>
</div>
<hr />
<h2>使用 Python-Selenium 代理</h2>
<h3>python-selenium + Firefox(geckodriver)</h3>
<p>要在 firefox 中使用 selenium，你需要安装这些项目：</p>
<ul>
<li><a href="https://pypi.org/project/selenium/" target="_blank" rel="nofollow noopener">https://pypi.org/project/selenium/</a></li>
<li>geckodriver： <a href="https://github.com/mozilla/geckodriver/releases" target="_blank" rel="nofollow noopener">https://github.com/mozilla/geckodriver/releases</a></li>
<li>已安装的 Firefox 实例</li>
</ul>
<p>如果使用凭据认证，还需要</p>
<ul>
<li><a href="https://pypi.org/project/selenium-wire/" target="_blank" rel="nofollow noopener">https://pypi.org/project/selenium-wire/</a></li>
</ul>
<p>例如，使用代理凭据：</p>
<pre>from seleniumwire import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

path_to_firefox_binary = '' # !!! 设置此变量 !!!
path_too_geckodriver_binary = '' # !!! 设置此变量 !!!

wire_options = {
  代理'：{
    'http'：http://pvtyproxies:ajd89akjdAdk@2.57.20.194:5432'、
    https': 'http://pvtyproxies:ajd89akjdAdk@2.57.20.194:5432'、
    no_proxy'：localhost,127.0.0.1'。
  }
}
binary = FirefoxBinary(path_to_firefox_binary)

options = Options()
options.headless = True
browser = webdriver.Firefox(
  options=options、
  firefox_binary=binary、
  executable_path=path_to_geckodriver_binary、
  seleniumwire_options=wire_options
)

browser.get("http://api.privateproxy.me:10738")
element = WebDriverWait(browser, 10).until(
  EC.visibility_of_element_located((By.CSS_SELECTOR, "pre"))
)
print(element.text)
browser.quit()</pre>
<p>使用 IP 授权的示例：</p>
<pre>from selenium import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

path_to_firefox_binary = '' # !!! 设置此变量 !!!
path_too_geckodriver_binary = '' # !!! 设置此变量 !!!
proxy_ip = '2.57.20.194
代理端口 = 5432

profile = webdriver.FirefoxProfile()
profile.set_preference("network.proxy.type", 1)
profile.set_preference("network.proxy.http", proxy_ip)
profile.set_preference("network.proxy.http_port", proxy_port)
profile.set_preference("network.proxy.ssl", proxy_ip)
profile.set_preference("network.proxy.ssl_port", proxy_port)
profile.update_preferences()

binary = FirefoxBinary(path_to_firefox_binary)
options = Options()
options.headless = True
浏览器 = webdriver.Firefox(
  options=options、
  firefox_binary=binary、
  executable_path=path_to_geckodriver_binary、
  firefox_profile=profile
)
browser.get("http://api.privateproxy.me:10738")
element = WebDriverWait(browser, 10).until(
  EC.visibility_of_element_located((By.CSS_SELECTOR, "pre"))
)
print(element.text)
browser.quit()</pre>
<p>这两个示例都以无头模式启动 firefox，因此在执行这些示例时浏览器将保持隐藏状态。</p>
<hr />
<h3>python-selenium + Chrome(chromedriver)</h3>
<p>要在 Chrome 浏览器中使用硒，你需要安装这些项目：</p>
<ul>
<li><a href="https://pypi.org/project/selenium/" target="_blank" rel="noopener">https://pypi.org/project/selenium/</a></li>
<li>cromedriver： <a href="https://chromedriver.chromium.org/downloads" target="_blank" rel="noopener">https://chromedriver.chromium.org/downloads</a></li>
<li>已安装的 Chrome 浏览器实例</li>
</ul>
<p>使用凭证授权的示例：</p>
<pre>导入 os
导入 zipfile
导入 hashlib
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

代理="2.57.20.194:5432"。
凭证 = "pvtyproxies:ajd89akjdAdk"
path_to_chrome_binary = '' !!! 设置此变量 !.！
path_too_chromedriver_binary = '' !!! 设置此变量 !!!

def generate_extension(proxy, credentials)：
  IP、端口 = proxy.split(':')
  login, password = credentials.split(':')
  manifest_json = """
  {
      版本"1.0.0",
      "manifest_version"：2,
      "名称"："Chrome 代理"、
      "权限"： [[
          "代理"、
          "选项卡"、
          "unlimitedStorage"、
          "存储"、
          "",
          "网络请求"、
          "网络请求阻塞"
      ],
      "背景"：{
          "脚本"：["background.js"]
      },
      "minimum_chrome_version":"22.0.0"
  }
  """

  background_js = """
  var config = {
          mode："fixed_servers"、
          rules：{
          singleProxy：{
              scheme："http"、
              host: "%s"、
              port: parseInt(%s)
          },
          bypassList：["localhost"]（本地主机
          }
      };

  chrome.proxy.settings.set({value: config, scope："regular"}, function() {})；

  function callbackFn(details) {
      返回 {
          authCredentials：{
              username: "%s"、
              password: "%s".
          }
      };
  }

  chrome.webRequest.onAuthRequired.addListener(
              callbackFn、
              {urls：[""]},
              ['阻塞']
  );
  """% （IP、端口、登录名、密码）

  sha1 = hashlib.sha1()
  sha1.update(("%s:%s" % (proxy, credentials)).encode('utf-8'))
  文件名 = sha1.hexdigest() + ".zip"

  with zipfile.ZipFile(filename, 'w') as zp：
    zp.writestr("manifest.json", manifest_json)
    zp.writestr("background.js", background_js)

  返回文件名

extension_name = generate_extension(proxy, credentials)
options = Options()
options.binary_location = path_to_chrome_binary
options.add_extension(extension_name)
驱动程序 = webdriver.Chrome(
  executable_path = path_to_chromedriver_binary、
  options=options、
)
driver.get('http://api.privateproxy.me:10738/')
element = WebDriverWait(driver, 30).until(
  EC.visibility_of_element_located((By.CSS_SELECTOR, "pre"))
)
print(element.text)
driver.quit()
os.remove(extension_name)</pre>
<p>遗憾的是，在使用凭证时存在一些限制：</p>
<ul>
<li>没有无头模式</li>
<li>必须为每个代理 + 凭据集生成并存储扩展名。我们找不到更简单的方法。</li>
</ul>
<p>使用 ip 授权的示例：</p>
<pre>from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

path_too_chrome_binary = '' # !!! 设置此变量 !!!
path_too_chromedriver_binary = '' # !!! 设置此变量 !!!
代理 = "2.57.20.194:5432"

options = Options()
options.binary_location = path_to_chrome_binary
options.headless = True
options.add_argument("--proxy-server=%s" % proxy)

驱动程序 = webdriver.Chrome(
  executable_path = path_to_chromedriver_binary、
  options=options、
)
driver.get('http://api.privateproxy.me:10738/')
element = WebDriverWait(driver, 30).until(
  EC.visibility_of_element_located((By.CSS_SELECTOR, "pre"))
)
print(element.text)
driver.quit()</pre>
<hr />
<h2>使用 Node.JS Puppeteer 代理</h2>
<p><strong>Puppeteer + Node.js + chrome 浏览器</strong></p>
<p>目前，我们只有一个如何在 puppeteer 和 Chrome 浏览器中使用代理的示例。</p>
<p>为此，您需要在安装 puppeteer 时使用环境变量 PUPPETEER_PRODUCT=chrome：</p>
<pre>PUPPETEER_PRODUCT=chrome npm install puppeteer</pre>
<p>您还需要代理链软件包：</p>
<pre>npm install proxy-chain</pre>
<p>代码示例</p>
<pre>const puppeteer = require('puppeteer')；
const proxyChain = require('proxy-chain')；

(async() =&gt; {
  const oldProxyUrl = 'http://pvtyproxies:ajd89akjdAdk@2.57.20.194:5432'；
  const newProxyUrl = await proxyChain.anonymizeProxy(oldProxyUrl)；

  const browser = await puppeteer.launch({
    args: [`--proxy-server=${newProxyUrl}`]、
  });

  const page = await browser.newPage()；
  await page.goto('https://httpbin.org/ip')；
  const element = await page.$('pre')；
  const text = await page.evaluate(element =&gt; element.textContent, element)；
  console.log(text)；
  await browser.close()；

  await proxyChain.closeAnonymizedProxy(newProxyUrl, true)；
})();</pre>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/privateproxy-me-proxy/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">10959</post-id>	</item>
		<item>
		<title>How to Use 911 Proxies</title>
		<link>https://proxysp.com/zh/how-to-use-911-proxies/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-use-911-proxies</link>
					<comments>https://proxysp.com/zh/how-to-use-911-proxies/#respond</comments>
		
		<dc:creator><![CDATA[proxysp]]></dc:creator>
		<pubdate>Mon, 13 Jun 2022 23:31:51 +0000</pubdate>
				<category><![CDATA[Manuals]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=9978</guid>

					<description><![CDATA[您是否已经购买了 P11 代理，现在正在寻找如何使用这些代理的相关指南？那么您猜怎么着，您现在就在...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/how-to-use-911-proxies/"> <span class="screen-reader-text">如何使用 911 代理</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>您是否已经购买了 P11 代理，现在正在寻找如何使用这些代理的相关指南？猜猜看，您找对地方了。我们将指导您如何开始并使用 911 代理服务。</p></blockquote>
<p>如果您从未起诉过 <a href="https://911.re/" target="_blank" rel="nofollow noopener">911 代理</a> 确保您在任何地方都不会出错。这就是我们提供最新、最专业的 911 代理使用指南的地方。如果没有掌握正确的程序，您可能会很容易弄乱代理。</p>
<p>编写本指南的目的在于，911 代理是独一无二的，其用法与普通代理不同。设置程序和使用方法不同，复杂程度也不同。不过，网上也有许多公司提供私人代理，以达到相同的目的。它们中的大多数旨在掩盖 IP 地址，以便您可以根据 IP 不受限制地访问某些内容。</p>
<p>实际上，911 代理在大多数情况下看似复杂，实则简单。与市场上的普通代理相比，程序非常简单。在详细介绍之前，让我们先来了解一下 911 代理的概况。</p>
<hr />
<h2><strong>关于 911 S5 代理</strong></h2>
<p><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-7425" src="http://www.proxysp.com/wp-content/uploads/2021/08/911-S5-Proxy-Homepage.jpg" alt="911 S5 Proxy Homepage" width="1000" height="573" srcset="https://proxysp.com/wp-content/uploads/2021/08/911-S5-Proxy-Homepage.jpg 1000w, https://proxysp.com/wp-content/uploads/2021/08/911-S5-Proxy-Homepage-300x172.jpg 300w, https://proxysp.com/wp-content/uploads/2021/08/911-S5-Proxy-Homepage-768x440.jpg 768w" sizes="(max-width: 1000px) 100vw, 1000px" /></p>
<p>911 S5 代理公司专门提供 <a href="https://www.proxysp.com/residential-proxies/" target="_blank" rel="noopener">住宅代理</a> 市场。不过，他们在市场上有独特的产品。他们的代理服务器覆盖全球近 192 个国家。因此，911 S5 代理是位置覆盖范围最好的住宅代理提供商之一。 <a href="https://www.proxysp.com/socks-proxy/" target="_blank" rel="noopener">Socks5 代理</a>.这意味着他们只专门从事 Socks5 代理。</p>
<p>有趣的是，911 S5 代理服务器提供的代理服务器没有过期时间限制；只要您还在使用这些代理服务器，它们就会一直存在。这些代理的另一个优点是，与其他普通代理相比，它们具有很高的性价比。</p>
<p>然而，这些代理仅适用于 Windows 使用情况。因此，当您需要在其他操作系统上起诉时，也许您必须安装虚拟机，这可能会增加额外的费用，而这是任何人都不需要的。</p>
<p>因此，只有通过客户端应用程序才能访问住宅代理。您还可以使用应用程序添加请求或用户代理的自定义引用程序。然后输入您的详细信息。此外，他们还保证为您提供安全加密、未计量的带宽、开发人员 API 访问权限以及具有许多有用功能的免费软件，以确保您的隐私得到控制。</p>
<hr />
<h2><strong>如何使用 911 S5 代理</strong></h2>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/VOECo8D7nYY?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<p>911 S5 Proxies 是一家提供高级服务的公司。在继续使用之前，您应该牢记这一点，因此，您必须购买一个套餐来起诉这些住宅代理。因此，请访问其官方网站并创建账户，然后购买套餐。</p>
<p>下载客户端软件后，您就可以开始使用这些代理服务器了。此外，还要谨防潜在的骗子利用 911.gg 和 911s5.com 等镜像网站进行诈骗。否则，您必须遵循以下步骤：</p>
<p><strong>步骤 1：</strong> 下载客户端软件后，将其安装到桌面上，桌面应为 Windows 操作系统，如果是其他最新的 Windows 操作系统，则必须在虚拟机上运行。客户端应用程序只与 Windows 操作系统兼容。</p>
<p><strong>步骤 2：</strong> 然后点击客户端应用程序启动。在那里，提供注册时使用的验证详细信息。之后，您就可以访问应用程序，开始使用代理服务器了。您可以访问多个选项卡，如代理列表、程序、用户代理、转换跟踪、今日列表，甚至是阻止网站和设置等。</p>
<p><strong>步骤 3：</strong> 您将在标签上方找到用户名，并找到本地代理和代理余额等其他信息。</p>
<p><strong>步骤 4：</strong> 因此，请确保您已将程序准备就绪。在这一阶段，你必须添加应用程序，在其中起诉你购买的代理。你会发现，在界面上可以找到删除和添加图标。同样，如果这很费时间，你也可以拖放你想使用代理的应用程序。如果你希望其他浏览器也能遵循该指南，那么请确保你的应用程序。</p>
<p><strong>步骤 5：</strong> 要使用代理时，请前往代理列表部分。你可以浏览可用代理列表及其位置、国家、州、Ping、ISP 和邮政编码。您可以利用过滤选项，根据目标国家、州甚至 ISP 来缩小选择范围。</p>
<p><strong>步骤 6：</strong> 然后从列表菜单中选择使用某个代理。当你双击列表中的代理时，它会自动连接你。但你仍然可以右键单击所选代理，然后点击连接选项。然后前往名称顶部的代理信息部分，确认是否使用了红色显示的正确 IP 地址。</p>
<p><strong>步骤 7：</strong> 现在回到程序部分。假设你添加了浏览器，现在就可以从客户端程序启动和浏览了。您在线发送的所有连接请求都将通过您从列表菜单中选择的代理服务器转发。您还可以访问 IPinfo.io 网站，查看所选代理服务器是否正常工作。您将看到与您所选位置相对应的 IP 地址。</p>
<hr />
<h2><strong>如何同时使用不同的 911 代理 </strong></h2>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/0nhEf-L5MHA?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<p>同样，您也可以同时使用不同的 911 S5 代理。但必须注意的是，如果是传统方式，则无法同时使用这些代理。这是因为您每次只能连接到一个代理。但通过端口转发，总有办法同时使用不同的 911 S5 代理。因此在本节中，我们将带您了解如何通过端口转发使用 911 S5 代理。</p>
<p>请记住，这只能在一台机器上使用。因此，911 S5 客户端倾向于创建一个服务器，然后开放端口，以便有效使用代理。请按照以下步骤操作：</p>
<p><strong>步骤 1：</strong> 首先要访问官方网站，下载客户端应用程序，并将其安装到机器上。在网站的用户仪表板上可以看到骗子的信息。</p>
<p><strong>步骤 2：</strong> 然后打开客户端应用程序，确保输入了相关登录或验证信息。如果您已激活订阅并成功登录应用程序，现在就可以开始使用可用的代理服务器了。</p>
<p><strong>步骤 3：</strong> 根据 911 S5 代理服务器客户端仪表板的提示，你可以在这里找到不同的选项卡，包括设置、用户代理、代理列表等；你需要点击设置图标。</p>
<p><strong>步骤 4：</strong> 然后，您必须在设置部分进行配置，以便同时使用不同的 911 S5 代理。因此，首先确保 "取消选中代理更改时自动关闭程序"，然后取消选中自动更改时区，之后在代理工具下从菜单中选择 "其他代理工具"。</p>
<p><strong>步骤 5：</strong> 保存设置后，前往 "代理列表 "选项卡，根据不同方面过滤可用代理列表。之后，您可以从列表中选择代理，然后右键单击所选代理。因此，除了像上一节那样使用连接选项外，还可以点击 "将端口转发给代理"，然后从列表中选择可用端口。根据你希望同时使用的代理数量重复此过程。</p>
<p><strong>步骤 6：</strong> 然后，点击用户界面屏幕底部的 "端口转发列表 "图标，访问要开始使用的 IP 和端口对。你必须明白，IP 地址是保留的，但端口不同。因此，对于每一个 IP 地址和端口配对，你都可以访问映射到的真实 IP 和有关该特定 IP 地址的详细信息。</p>
<p><strong>步骤 7：</strong> 现在，您必须将 IP 地址和端口对复制到要使用它们的软件或应用程序中。这可以是多个浏览器配置文件，如 <a href="https://www.proxysp.com/multilogin/" target="_blank" rel="noopener">多重登录</a> 或任何普通浏览器。它们与任何软件都兼容。</p>
<p>例如，在下一节中，我们将指导您在 Proxifier 上使用这些代理。</p>
<hr />
<h2><strong>如何将 Proxifier 与 911 代理一起使用</strong></h2>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/5Fm6LYvZIJg?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<p>我们选择了 <a href="https://www.proxysp.com/proxifier/" target="_blank" rel="noopener">Proxifier</a> 代理客户端是有原因的。还有很多其他方面也会让你喜欢它。简而言之，该应用程序旨在与任何第三方软件无缝集成。其中，911.re S5 代理窗口客户端与 Proxifier 完美集成。</p>
<p>这意味着，有了 911.re S5 代理窗口客户端和代理服务器这对组合。您就能拥有一个完美的代理客户端，毫不费力地通过 Socks5 代理强制传输互联网流量。这些 Socks5 代理可以开箱即用。这意味着 Proxifier 是帮助您解决任何与 911.re S5 代理相关问题的最佳工具。</p>
<p>在本节中，我们将指导您如何将这些代理服务器与 proxifier 应用程序整合在一起。首先要在桌面上安装这两个应用程序。911. 关于 S5 代理窗口，客户端可在官方网站上找到。否则，请按以下步骤操作：</p>
<p><strong>步骤 1：</strong> 确保您的代理订阅仍然有效。如果您没有代理服务器，则必须从其官方网站购买，并下载客户端应用程序将其安装到您的桌面上。</p>
<p><strong>步骤 2：</strong> 然后访问 proxifier 官方网站，下载 proxifier 应用程序并安装到您的机器上。对于新客户，即使您购买的是高级套餐，也有 3 天的免费试用期。此外，请记住，911.re S5 代理窗口客户端有时会附带标准 proxifier 应用程序。如果您拥有它，那就再好不过了。</p>
<p><strong>步骤 3：</strong> 确保将下载的所有应用程序都安装到机器上。然后，首先打开 proxifier 软件并输入许可证密钥。</p>
<p><strong>步骤 4：</strong> 然后，打开 911 代理客户端应用程序。在那里输入相关的验证信息，如用户名和密码。</p>
<p><strong>步骤 5：</strong> 正确设置软件后，进入设置，前往代理设置部分，从菜单中选择 proxifier 标准版。</p>
<p><strong>步骤 6：</strong> 然后在代理规则下方的菜单中选择 "代理整个系统的所有应用程序网络连接，包括通过代理工作的系统连接"。选择该选项后，proxifier 软件将通过 911 强制整个互联网流量。</p>
<hr />
<h2><strong>如何更改 911 用户代理和推荐人</strong></h2>
<p>当您使用 911 S5 代理服务时，您可以享受到许多功能。其中一个好处是，911 S5 代理服务为您提供了调整请求用户代理引用程序头部的功能。这是市场上其他代理服务提供商无法做到的。</p>
<p>因此，当你想更改用户代理标头时，可以选择你喜欢使用的客户端浏览器，并识别当前浏览器以外的其他浏览器。</p>
<p>当您点击链接时，推荐人会向网络服务发送有关网站的信息，而当您直接访问网站时，推荐人也会发送同样的信息。更改这一点非常容易。如果需要选择特定的用户代理，请进入标签菜单，选择用户代理部分。然后，您就可以访问可用的著名浏览器用户代理列表，并选择您希望使用的用户代理。</p>
<p>不过，你也可以选择或添加自定义用户代理字符串。还有一个选项是选择随机使用，应用程序会为你决定使用哪一个。有时，伪造你的推荐人也是不错的选择。进入该选项卡后，你可以从列出的菜单中选择任何形式或添加自定义字符串。</p>
<hr />
<h2><strong>如何使用 911 设置选项卡</strong></h2>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-10010" src="http://www.proxysp.com/wp-content/uploads/2022/06/911-Setting-Tabs.jpg" alt="911 Setting Tabs" width="992" height="656" srcset="https://proxysp.com/wp-content/uploads/2022/06/911-Setting-Tabs.jpg 992w, https://proxysp.com/wp-content/uploads/2022/06/911-Setting-Tabs-300x198.jpg 300w, https://proxysp.com/wp-content/uploads/2022/06/911-Setting-Tabs-768x508.jpg 768w" sizes="(max-width: 992px) 100vw, 992px" /></p>
<p>在 911 代理客户端应用程序的所有选项卡中，设置都很复杂，而且有多个选项。因此，除非你学会如何操作，否则你会发现使用 911 代理非常复杂。大多数人甚至害怕点击它。但是，当你必须这样做时，这就是你鼓起勇气面对它的时候了。</p>
<p>你必须知道，设置选项卡功能强大，可为你提供许多设置菜单。因此，以下是设置中最重要和最常被使用的几个选项卡：</p>
<p><strong>步骤 1：</strong> 选择使用代理服务器或 911 代理客户端应用程序。</p>
<p><strong>步骤 2：</strong> 限制代理列表中的地理位置</p>
<p><strong>步骤 3：</strong> 设置屏幕分辨率</p>
<p><strong>步骤 4：</strong> 重置所有被起诉的代理</p>
<p><strong>步骤 5：</strong> 此外，还要配置代理连接等待时间以及代理端口和其他任何事项。</p>
<hr />
<h2><strong>结论</strong></h2>
<p>总之，在这篇文章中，我们将带您了解设置和使用 911 代理客户端软件的过程。这个过程很快就能告诉你，911 代理的限制非常多，甚至不像其他代理那样给客户自由。否则，如果你知道限制和如何去做，这些代理终身便宜，而不是其他在线供应商。</p>
<p>因此，只能在不需要频繁轮换 IP 地址的浏览器或应用程序上使用 911 代理。如果不需要，那就选择灵活的提供商，但好消息是，您可以在同一台设备上同时起诉多个 911 代理，这是一个额外的优势。</p>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/how-to-use-911-proxies/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">9978</post-id>	</item>
		<item>
		<title>Proxy Knowledge Base (By BlazingSEO) : Learn Manuals Before You Buy</title>
		<link>https://proxysp.com/zh/proxy-knowledge-base-blazingseo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=proxy-knowledge-base-blazingseo</link>
					<comments>https://proxysp.com/zh/proxy-knowledge-base-blazingseo/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[BlazingSEO Proxies]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7646</guid>

					<description><![CDATA[您想了解所提供的炽热代理和代理类型吗？我们会花时间研究他们的客户支持手册，了解其形式 ...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/proxy-knowledge-base-blazingseo/"> <span class="screen-reader-text">代理知识库 (By BlazingSEO) ：购买前学习手册</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>您想了解所提供的炽热代理和代理类型吗？我们会花时间研究他们的客户支持手册，并在此学习、</p></blockquote>
<hr />
<h2 class="heading">什么是代理？</h2>
<p><span style="font-size: 16px;">代理是一个 IP，可以转发您的互联网请求/数据，而您所连接的网站不会发现您的实际 IP 地址。代理可用于多种用途，包括匿名浏览、社交媒体、搜刮等。</span></p>
<hr />
<h2 class="heading">什么是代理匿名？</h2>
<p>代理是一个 IP，可以转发您的互联网请求/数据，而您所连接的网站不会发现您的实际 IP 地址。代理可用于多种用途，包括匿名浏览、社交媒体、搜刮等。</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-7683 size-full" src="https://www.proxysp.com/wp-content/uploads/2021/09/check-proxy-anonymity.png" alt="check proxy anonymity" width="775" height="373" srcset="https://proxysp.com/wp-content/uploads/2021/09/check-proxy-anonymity.png 775w, https://proxysp.com/wp-content/uploads/2021/09/check-proxy-anonymity-300x144.png 300w, https://proxysp.com/wp-content/uploads/2021/09/check-proxy-anonymity-768x370.png 768w" sizes="(max-width: 775px) 100vw, 775px" /></p>
<p>&nbsp;</p>
<hr />
<h2 class="heading">代理如何工作，MS 如何测量 Ping？</h2>
<h3><strong>了解代理的网络路径</strong></h3>
<p>代理的网络路径被定义为您访问网站时发送的数据。</p>
<p>为了让您在电脑上 "下载 "网站内容，您的请求会被发送到网站服务器，然后再返回到您的家用电脑。</p>
<p>不幸的是，您的电脑与网站服务器之间没有直接的以太网电缆连接，因此需要在许多互联网服务提供商（POP）之间进行网络跳转，才能到达最终目标。</p>
<p>考虑到这一点，您的代理的网络路径看起来就像这样：</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-7685 size-full" src="https://www.proxysp.com/wp-content/uploads/2021/09/proxy-network-path.png" alt="proxy network path" width="867" height="725" srcset="https://proxysp.com/wp-content/uploads/2021/09/proxy-network-path.png 867w, https://proxysp.com/wp-content/uploads/2021/09/proxy-network-path-300x251.png 300w, https://proxysp.com/wp-content/uploads/2021/09/proxy-network-path-768x642.png 768w" sizes="(max-width: 867px) 100vw, 867px" /></p>
<p>根据上图，使用代理服务器时，从发送请求到将数据下载回电脑所需的总时间为 <strong>620 毫秒</strong>.</p>
<p>现在，如果将代理从等式中移除，或将计算机移到离代理服务器更近的地方，就能减少 Blue 的网络延迟（理论上）。</p>
<p>因此，遇到网速慢的客户很多时候可以证明，他们是从非常遥远（数千英里）的计算机/服务器连接到我们遍布全国的代理服务器（洛杉矶、布雅洛等），而该计算机/服务器又连接到数千英里之外的网站，因此产生了明显的延迟。</p>
<hr />
<h2>我的互联网服务供应商能否发现我在使用代理服务器或阻止我使用代理服务器？</h2>
<p>我们执行高级代理匿名协议，确保您的 IP 不会泄露。您的 ISP 无法识别我们使用的代理 IP。</p>
<hr />
<h2 class="heading">Blazing SEO 代理使用什么端口？</h2>
<p>对于 IP 授权、 <a href="https://www.proxysp.com/blazing-seo/" target="_blank" rel="noopener">炽热的 SEO 代理</a> 使用端口 3128。对于用户名/密码授权，其代理服务器使用 4444 端口。而对于 <a href="https://www.proxysp.com/socks-protocol-blazingseo/">SOCKS 连接</a>我们的代理服务器使用 1080 端口。</p>
<hr />
<h2>BlazingSEO 提供什么类型的代理？</h2>
<p>现在，BlazingSEO 提供、</p>
<ul>
<li><a href="https://www.proxysp.com/residential-proxies-blazingseo/"><strong>住宅代理</strong></a></li>
<li><strong><a href="https://www.proxysp.com/dedicated-proxies-blazingseo/">专用 IP 代理（DC 代理）</a></strong></li>
<li><a href="https://www.proxysp.com/dedicated-proxies-blazingseo/#what-are-rotating-proxies">轮流代理</a></li>
<li><a href="https://www.proxysp.com/ipv6-proxies-blazingseo/"><strong>IPv6 代理</strong></a></li>
<li><a href="https://www.proxysp.com/proxy-pilot/"><strong>代理试点</strong></a></li>
<li>移动代理（开发中）</li>
</ul>
<div class="icon">
<div class="icon">
<hr />
</div>
</div>
<div>
<h4 id="references" class="ftwp-heading">参考资料</h4>
</div>
<ul>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262799-what-are-proxies-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262799-what-are-proxies-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256610-what-is-your-proxy-anonymity-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256610-what-is-your-proxy-anonymity-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256636-how-do-proxies-work-and-how-is-ping-measured-in-ms-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256636-how-do-proxies-work-and-how-is-ping-measured-in-ms-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262802-can-my-isp-see-that-i-m-using-a-proxy-or-block-it-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262802-can-my-isp-see-that-i-m-using-a-proxy-or-block-it-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000263273-what-port-do-your-proxies-use-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000263273-what-port-do-your-proxies-use-</a></li>
</ul>
<hr />
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/proxy-knowledge-base-blazingseo/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7646</post-id>	</item>
		<item>
		<title>Residential Proxies (By BlazingSEO) : Learn Manuals Before You Buy</title>
		<link>https://proxysp.com/zh/residential-proxies-blazingseo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=residential-proxies-blazingseo</link>
					<comments>https://proxysp.com/zh/residential-proxies-blazingseo/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[BlazingSEO Proxies]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7665</guid>

					<description><![CDATA[您对 Blazing SEO 住宅代理了解多少？您知道如何设置吗？请务必在购买前阅读本文！...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/residential-proxies-blazingseo/"> <span class="screen-reader-text">住宅代理（由 BlazingSEO 提供） ：购买前了解手册</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>您对 Blazing SEO 住宅代理了解多少？您知道如何设置吗？请务必在购买前阅读本文！</p></blockquote>
<h2 class="heading">Blazing SEO 是否提供住宅代理？</h2>
<p dir="ltr">住宅代理服务器目前处于开放测试阶段。目前，我们提供高级数据中心代理，并将很快推出道德支持的住宅代理。</p>
<p dir="ltr"><span dir="ltr">对我们来说，以周到的道德实践提供最高质量的住宅代理服务器非常重要。不幸的是，许多住宅代理服务器提供商提供的 IP 都是在未经来源方明确同意的情况下以不道德的方式出售和转售的。这不仅是不道德的商业行为，而且还会使用户在使用这些服务时面临 IP 风险。 </span></p>
<p dir="ltr"><span dir="ltr">这就是为什么我们努力以更高的标准来要求我们的产品和服务--它更加公平、合法，而且每个人都能从合乎道德的住宅代理实践中受益。</span></p>
<hr />
<h2 class="heading">住宅代理设置指南</h2>
<p dir="ltr">欢迎加入 Blazing SEO 住宅区轮播测试计划！要开始使用旋转住宅代理，只需按照您选择的编程语言说明安装我们的代理控制器软件即可：</p>
<ul>
<li dir="ltr"><a href="https://www.proxysp.com/proxy-pilot/#programming-language-implementations" target="_blank" rel="noopener">Node.js (请求)</a></li>
<li dir="ltr"><a href="https://www.proxysp.com/proxy-pilot/#programming-language-implementations" target="_blank" rel="noopener">使用 Puppeteer 的 Node.js</a></li>
<li dir="ltr"><a href="https://www.proxysp.com/proxy-pilot/#programming-language-implementations" target="_blank" rel="noopener">卷曲</a></li>
<li dir="ltr"><a href="https://www.proxysp.com/proxy-pilot/#programming-language-implementations" target="_blank" rel="noopener">Python (请求)</a></li>
<li dir="ltr"><a href="https://www.proxysp.com/proxy-pilot/#programming-language-implementations" target="_blank" rel="noopener">火狐浏览器</a></li>
</ul>
<p dir="ltr">需要以上未列出语言的说明？请联系您的客户经理。有关详细信息，请参阅 <a href="https://www.proxysp.com/proxy-pilot/" target="_blank" rel="noopener">代理试点</a>.</p>
<hr />
<h3 dir="ltr"><strong>我在安装什么？</strong></h3>
<p dir="ltr">Proxy Pilot 是 Blazing SEO 的全新 100% 免费代理管理应用程序，它为像您这样的住宅代理用户带来了许多好处。</p>
<p dir="ltr">要使用我们的代理，您需要在软件中添加一行代码，以 "忽略 "证书警告（推荐选项），或者在服务器上安装我们的安全证书。该证书允许我们拦截您的流量并进行解密，从而模拟对您的连接进行中间人攻击。</p>
<p dir="ltr">然后，该证书会将您的数据洞察力存储在功能强大的 <a href="https://www.elastic.co/what-is/elk-stack" target="_blank" rel="noopener">ELK 堆栈</a>您和您的团队完全可以访问。您可以看到类似下面列表的数据，以及更多：</p>
<ul>
<li dir="ltr">向 domain.com 发送了多少个连接？</li>
<li dir="ltr">有多少个非 200 HTTP 响应代码？</li>
<li dir="ltr">我消耗了多少带宽？</li>
<li dir="ltr">过去 7 天共连接了多少次？</li>
<li dir="ltr">特定域名的带宽是多少？</li>
<li dir="ltr">查看发送到目标网站的完整标头，以了解为什么会收到非 200 HTTP 响应（很多情况下是禁言）。</li>
</ul>
<hr />
<h3 dir="ltr"><strong>我为什么需要这个？</strong></h3>
<p dir="ltr">我们希望您能在使用 Blazing SEO 代理服务器时获得最佳体验，而 Proxy Pilot 证书将使您的刮擦项目更加成功。</p>
<p dir="ltr">您必须使用该证书有两个主要原因。</p>
<p dir="ltr"><strong>1.利用高级统计数据改进刮擦</strong></p>
<p dir="ltr">Proxy Pilot 可让您随手访问令人惊叹的统计数据，其详细程度远远超出了大多数用户的内部解决方案。如果没有这些数据，我们相信客户只是在我们竞争对手的池中 "喷洒 "连接，而不会真正了解发生了什么或他们被收取了什么费用。有了我们的解决方案，您将知晓一切！</p>
<p dir="ltr">以下是 ELK 仪表板的实际截图：</p>
<p dir="ltr"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7849" src="https://www.proxysp.com/wp-content/uploads/2021/09/ELK-dashboard-one.jpg" alt="ELK dashboard one" width="612" height="451" srcset="https://proxysp.com/wp-content/uploads/2021/09/ELK-dashboard-one.jpg 612w, https://proxysp.com/wp-content/uploads/2021/09/ELK-dashboard-one-300x221.jpg 300w" sizes="(max-width: 612px) 100vw, 612px" /></p>
<p dir="ltr"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7850" src="https://www.proxysp.com/wp-content/uploads/2021/09/ELK-dashboard-two.jpg" alt="ELK dashboard two" width="616" height="337" srcset="https://proxysp.com/wp-content/uploads/2021/09/ELK-dashboard-two.jpg 616w, https://proxysp.com/wp-content/uploads/2021/09/ELK-dashboard-two-300x164.jpg 300w" sizes="(max-width: 616px) 100vw, 616px" /></p>
<p dir="ltr">而在 <a href="https://screencast-o-matic.com/watch/crhwXNVhrBQ" target="_blank" rel="nofollow noopener">这段十分钟的视频</a>我们的技术副总裁向您展示了安装我们的简单证书所能带来的各种好处。</p>
<hr />
<p dir="ltr"><strong>2.保护我们的用户和代理池</strong></p>
<p dir="ltr">大多数代理服务提供商在技术上无法禁止客户打开隧道并向单个设备发送 10 万个请求。</p>
<p dir="ltr">Blazing SEO 的工作方式略有不同。我们知道，设定高道德标准不仅是为了保护委托我们使用其 IP 地址的用户，也是为了保护您不被您想搜索的网站禁止/屏蔽。</p>
<p dir="ltr">通过让我们的软件深入了解发送的每个连接，我们就能以合乎道德的方式将连接分散到住宅设备上。</p>
<div>
<hr />
<h2 class="heading">静态住宅 IP ASN</h2>
<p dir="ltr">我们努力为所有用户提供最优质的 IP。这一过程的一部分就是提供更多不同的 IP 池，以确保我们的客户能看到满足其需求的最佳结果。作为这一过程的一部分，我们从全美大大小小的多家公司采购静态住宅 IP。</p>
<p dir="ltr">所有这些 IP 都是真正的 ISP 代理--有些来自你听说过的提供商，有些来自你可能不知道的提供商。</p>
<p dir="ltr">"我没有从 X 公司获得 IP，因此它们对我不起作用"</p>
<p dir="ltr">我们的 IP 都经过多次大规模测试。我们亲自确保我们所有的静态住宅 IP 都能在大量的使用案例中提供高质量的结果。我们还确保主要的 IP 数据库将其视为住宅 IP 地址，而不是数据中心 IP。请看下面来自 IP2location 的一些示例，IP2location 是许多大公司使用的主要 IP 信息数据库。</p>
<p dir="ltr">静态住宅： <a href="https://www.ip2location.com/demo/161.77.96.3" target="_blank" rel="nofollow noopener">https://www.ip2location.com/demo/161.77.96.3</a></p>
<p dir="ltr">静态住宅： <a href="https://www.ip2location.com/demo/65.215.17.0" target="_blank" rel="nofollow noopener">https://www.ip2location.com/demo/65.215.17.0</a></p>
<p dir="ltr">静态住宅： <a href="https://www.ip2location.com/demo/50.231.88.0" target="_blank" rel="nofollow noopener">https://www.ip2location.com/demo/50.231.88.0</a></p>
<p dir="ltr">数据中心： <a href="https://www.ip2location.com/demo/104.244.100.0" target="_blank" rel="nofollow noopener">https://www.ip2location.com/demo/104.244.100.0</a></p>
<p dir="ltr">我们查找的关键信息是 "使用类型"，以确保不是数据中心/托管。如图所示，这些演示中的静态住宅 IP 被列为 "固定 ISP "使用类型，这将向任何网站表明这是一个住宅 IP，而数据中心 IP 在使用类型字段中被标记为 "数据中心/托管服务提供商"。</p>
<p dir="ltr">因此，正如您所看到的，无论公司规模大小，您试图访问的网站都会看到我们所有的静态住宅 IP。</p>
<p>请联系 <a href="mailto:support@blazingseo.com" target="_blank" rel="nofollow noopener">support@blazingseo.com</a> 如果您对我们通过静态住宅 IP 为您提供的服务有任何疑问，请联系我们。</p>
<p><strong><div class="su-heading su-heading-style-modern-2-orange su-heading-align-center" id="" style="font-size:30px;margin-bottom:20px"><div class="su-heading-inner">常见问题</div></div></strong></p>
<p><strong>1.Blazing SEO 代理的来源符合道德标准吗？</strong></p>
<p dir="ltr">是的！有些竞争对手的采购方法含糊不清，而他们则不同，他们开诚布公......这是理所应当的。</p>
<p dir="ltr"><span dir="ltr">Blazing SEO 主要从其合作伙伴产品中获取资源 <a href="http://cashraven.io/" target="_blank" rel="nofollow noopener">cashraven.io</a>.他们还从符合其道德标准的其他供应商处采购，这些供应商要求他们为出售的带宽向最终用户提供补偿。 </span></p>
<p dir="ltr"><span dir="ltr">通过 CashRaven，他们与最终用户或开发者签订双方都同意的合同，就最终用户真正签约的 "内容 "提供清晰一致的信息。他们没有任何隐瞒！</span></p>
<hr />
<p><strong>2.Blazing SEO 网络允许哪些网站和使用案例？</strong></p>
<p>Blazing SEO 目前与希望使用其住宅代理网络大规模聚合公开数据的数据搜刮公司合作最为密切。但是，如果您认为您的使用情况合法且符合道德规范，请联系 support@blazingseollc.com，他们将很乐意评估您的使用情况是否允许在我们的网络中使用。</p>
</div>
<div>
<hr />
<p dir="ltr"><strong>3.Blazing SEO 是否允许针对某些城市/地区/州/国家进行地理定位？</strong></p>
<p dir="ltr">截至 2021 年 4 月 23 日，Blazing SEO 尚未内置此功能。不过，他们已经将其列入了工作计划，并将尽快实施！<u></u></p>
<hr />
<p dir="ltr"><strong>4.Blazing SEO 代理池有多大？</strong></p>
<p dir="ltr">Blazing SEO 代理池的规模每天都在变化。对于所有中小型客户而言，他们的代理池足够大，足以满足您的需求（超过 100,000 个 IP）。对于需要处理大量业务的企业客户，请联系他们，他们会更详细地讨论您的需求。</p>
<hr />
<p dir="ltr"><strong>5.我可以转售 Blazing SEO 住宅代理吗？</strong></p>
<p dir="ltr">鉴于 Blazing SEO 对道德生态系统的承诺，他们会根据具体情况考虑经销商。他们的首要任务是确保任何使用其网络的客户都遵守与他们对客户同样的审查流程。如果您认为自己适合转售他们的服务，请联系我们。</p>
<hr />
<h4 id="references" class="ftwp-heading">参考资料</h4>
</div>
<ul>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256604-does-blazing-seo-offer-residential-proxies-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256604-does-blazing-seo-offer-residential-proxies-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000264222-residential-proxies-setup-guide" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000264222-residential-proxies-setup-guide</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000263384-residential-proxy-faq" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000263384-residential-proxy-faq</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000264987-static-residential-ip-asns" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000264987-static-residential-ip-asns</a></li>
</ul>
<hr />
<blockquote><p><strong>免责声明</strong> 这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/residential-proxies-blazingseo/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7665</post-id>	</item>
		<item>
		<title>BlazingSEO Proxies Troubleshooting (Manuals by Blazing SEO)</title>
		<link>https://proxysp.com/zh/blazingseo-proxies-troubleshooting/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=blazingseo-proxies-troubleshooting</link>
					<comments>https://proxysp.com/zh/blazingseo-proxies-troubleshooting/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[BlazingSEO Proxies]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7666</guid>

					<description><![CDATA[您在使用 BlazingSEO 时遇到问题了吗？本文将告诉您如何排除 BlazingSEO 代理服务器的故障。为什么我的代理不起作用？本文涉及以下问题：代理服务器...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/blazingseo-proxies-troubleshooting/"> <span class="screen-reader-text">BlazingSEO 代理服务器故障排除（Blazing SEO 提供的手册）</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>您在使用 BlazingSEO 时遇到问题了吗？本文将告诉您如何排除 BlazingSEO 代理服务器的故障。</p></blockquote>
<h2 class="heading">为什么我的代理不起作用？</h2>
<p>本文涉及</p>
<ul>
<li>代理服务器未显示在代理服务器仪表板中</li>
<li>死亡代理</li>
</ul>
<p>注意：代理服务器完全失效（完全无法加载任何网站）与代理服务器被特定网站屏蔽但不 "失效 "是不同的。</p>
<h3><strong>诊断代理问题的步骤：</strong></h3>
<p><strong>1.您的电脑/设备 IP 是否已在代理控制面板中授权？</strong></p>
<p>可以根据这篇文章进行检查： <a href="https://www.proxysp.com/how-to-use-blazingseo-proxies/#how-do-i-authorize-my-proxies" target="_blank" rel="noopener">如何授权代理？</a></p>
<p dir="ltr">此外，您还可以通过浏览器访问 <a href="https://whatismyip.com/" target="_blank" rel="nofollow noopener">whatismyip.com</a> 以验证您的 IP 地址。  (最好能截取屏幕截图，这样如果您进行了其他步骤但仍有问题，可以将截图与支持单一起发送）。</p>
<p>确认 IP 已获授权并等待 30 分钟完成授权后，继续执行步骤 2。</p>
<hr />
<p><strong>2.所有代理服务器是否都已加载到您的账户仪表板中？</strong></p>
<p>如果 <strong>是</strong>然后转到步骤 3</p>
<p>如果 <strong>没有</strong>您选择的地点可能暂时缺货。这种情况并不经常发生，但如果我们最近收到了意外的大订单，就有可能出现这种情况。我们通常会在 24-48 小时内有新的库存，如果您可以接受这个时间段，请抓紧时间！我们会在补货后立即将它们添加到您的账户中。</p>
<p>但是，如果您的需求更为迫切，则应在代理控制面板的 "位置首选项 "选项卡中将位置更改为 "混合"。设置为 "混合位置 "将提供更好的子网多样性，这在连接网站时是最好不过的了。您将跨越更多 ISP、ASN 和 A+B+C 类子网。</p>
<p>您的代理服务器将在 5-10 分钟内全部加载完毕，您只需花比买巨无霸汉堡和薯条更短的时间就能恢复业务。</p>
<p><strong>3.您的代理是否能访问其他网站，但不能访问您首选的网站？</strong></p>
<p>好消息  您的代理没有死。不幸的是，这意味着您可能会遇到一个更具挑战性的问题：您试图使用代理访问的网站出于某种原因禁止或屏蔽了代理。请阅读 <a href="https://www.proxysp.com/how-to-use-blazingseo-proxies/#why-are-my-proxies-not-working-on-some-sites" target="_blank" rel="noopener">本条</a> 当代理服务器无法在所有网站上正常工作时该怎么办？</p>
<p>我们还提供每 30 天免费更换一次 IP 的服务，您可以在有关更换代理的知识库文章中了解更多信息。</p>
<p><strong>4.我已经更换了代理服务器，但它们仍然无法在我喜欢的网站上运行！</strong></p>
<p>遗憾的是，如果某个网站出于网站安全考虑而禁止代理访问其网站，但代理仍可在其他网站上使用，那么我们对该代理就无能为力了。</p>
<p>但等等，您还有更多选择！  您可以尝试不同的代理位置和各种类型的代理（例如，从半专用代理转为专用代理，尝试 IPv6，或者购买高级代理）。</p>
<hr />
<div class="icon">
<div class="icon">
<h2 class="heading">如何检查代理是否被某个网站屏蔽？</h2>
<p>您可以通过本指南 100% 确认代理是否被网站屏蔽。</p>
<p>首先，您应确保您的代理设置正确，并在文章中使用了正确的端口或代理的用户名/密码。</p>
<p>完成后，您就可以继续下面的操作。</p>
<p>有两种方法。一种是使用 Chrome 浏览器，另一种是使用火狐浏览器。请选择适合您的方法。</p>
<hr />
<p><strong>铬：</strong></p>
<p>打开 Chrome 浏览器，点击右上角的 3 个点</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-7944" src="https://www.proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome1.jpg" alt="BlazingSEO Check with Chrome1" width="900" height="289" srcset="https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome1.jpg 1000w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome1-300x96.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome1-768x247.jpg 768w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>在菜单中选择 "设置</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-7945" src="https://www.proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome2.jpg" alt="BlazingSEO Check with Chrome2" width="729" height="321" srcset="https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome2.jpg 868w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome2-300x132.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome2-768x338.jpg 768w" sizes="(max-width: 729px) 100vw, 729px" /></p>
<p>滚动到 "设置 "页面底部，选择 "高级</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-7946" src="https://www.proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome3.jpg" alt="BlazingSEO Check with Chrome3" width="728" height="298" srcset="https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome3.jpg 956w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome3-300x123.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome3-768x314.jpg 768w" sizes="(max-width: 728px) 100vw, 728px" /></p>
<p>滚动到 "高级 "部分底部，选择 "打开代理设置</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-7947" src="https://www.proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome4.png" alt="BlazingSEO Check with Chrome4" width="724" height="378" srcset="https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome4.png 933w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome4-300x157.png 300w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome4-768x401.png 768w" sizes="(max-width: 724px) 100vw, 724px" /></p>
<p>在下一个窗口中选择 "局域网设置 "按钮</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-7948" src="https://www.proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome5.jpg" alt="BlazingSEO Check with Chrome5" width="525" height="485" srcset="https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome5.jpg 702w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome5-300x277.jpg 300w" sizes="(max-width: 525px) 100vw, 525px" /></p>
<p>然后点击 "使用代理服务器... "复选框。</p>
<p>然后输入代理 IP 和端口，单击 "确定"。</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-7949" src="https://www.proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome6.jpg" alt="BlazingSEO Check with Chrome6" width="766" height="387" srcset="https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome6.jpg 989w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome6-300x152.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome6-768x388.jpg 768w" sizes="(max-width: 766px) 100vw, 766px" /></p>
<p>要确认您的代理已加载到浏览器中，请访问 google 并输入 "我的 IP"。代理 IP 应显示</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-7950" src="https://www.proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome7.jpg" alt="BlazingSEO Check with Chrome7" width="794" height="302" srcset="https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome7.jpg 983w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome7-300x114.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Chrome7-768x292.jpg 768w" sizes="(max-width: 794px) 100vw, 794px" /></p>
<p>如果您的代理 IP 出现在谷歌上，您可以尝试加载您喜欢的网站。如果能加载，那么您的代理很可能没有被屏蔽。</p>
<ul>
<li><em>要删除代理，只需反向执行上述步骤即可。</em></li>
</ul>
<p>我们有一段视频演示如何通过 IP 授权完成此操作</p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/XO-Qj_jgdKM?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<p>我们有一段视频演示如何通过用户名/密码授权完成此操作</p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/0mzVhOCOHZ8?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<hr />
<p><strong>火狐</strong></p>
<p>打开火狐浏览器，点击右上角的 3 个栏</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7953" src="https://www.proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-1.jpg" alt="BlazingSEO Check with Firefox 1" width="306" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-1.jpg 306w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-1-184x300.jpg 184w" sizes="(max-width: 306px) 100vw, 306px" /></p>
<p>在菜单中选择 "选项</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7954" src="https://www.proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-2.jpg" alt="BlazingSEO Check with Firefox 2" width="278" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-2.jpg 278w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-2-167x300.jpg 167w" sizes="(max-width: 278px) 100vw, 278px" /></p>
<p>滚动到 "选项 "页面底部，选择 "设置</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-7955" src="https://www.proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-3.jpg" alt="BlazingSEO Check with Firefox 3" width="694" height="159" srcset="https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-3.jpg 843w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-3-300x69.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-3-768x176.jpg 768w" sizes="(max-width: 694px) 100vw, 694px" /></p>
<p>在下一个窗口中，选择 "手动代理配置气泡</p>
<p>然后在 HTTP 代理区域输入代理 IP</p>
<p>然后在端口空白处输入代理端口</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7957" src="https://www.proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-5.jpg" alt="BlazingSEO Check with Firefox 5" width="539" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-5.jpg 539w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-5-300x278.jpg 300w" sizes="(max-width: 539px) 100vw, 539px" /></p>
<p>确保选中此框</p>
<p>要确认您的代理已加载到浏览器中，请访问 google 并输入 "我的 IP"。代理 IP 应显示</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-7958" src="https://www.proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-6.jpg" alt="BlazingSEO Check with Firefox 6" width="736" height="277" srcset="https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-6.jpg 885w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-6-300x113.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/BlazingSEO-Check-with-Firefox-6-768x289.jpg 768w" sizes="(max-width: 736px) 100vw, 736px" /></p>
<p>如果您的代理 IP 出现在谷歌上，您可以尝试加载您喜欢的网站。如果能加载，那么您的代理很可能没有被屏蔽。</p>
<ul>
<li><em>要删除代理，只需反向执行上述步骤即可。 </em></li>
</ul>
<p>我们有一段视频演示如何通过 IP 授权完成此操作</p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/bTipqNk11SQ?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<p>我们有一段视频演示如何通过用户名/密码授权完成此操作</p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/iIT3pGLeHMw?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<hr />
<h2 class="heading">什么是 Virgin/24 C Block IP？</h2>
<article id="article-body" class="article-body">Virgin/24 C Block 代理服务器是仅由一个人使用的代理服务器，该代理服务器位于一个仅由他们使用的代理服务器子网中，该代理服务器之前未被其他人使用过。这就是它们被称为 "处女 "的原因。整个子网完全为您专用，允许完全控制，可靠性极高。<strong>优势</strong></p>
<ul>
<li>专属于您的整个子网</li>
<li>全面控制通过代理发送的流量质量</li>
<li>严格的审核程序，确保知识产权区块的质量长期保持不变。</li>
<li>标明用途，以确保最大限度地控制任何潜在的滥用活动。</li>
<li>它可以隐藏你的 IP（或 MAC）地址，同时增加安全性并保护你的隐私。</li>
<li>私人代理提供完全匿名的网上冲浪服务。重要的是要记住，在使用网络时，您会以 IP 地址的形式留下数字足迹。这意味着几乎任何人都能看到您的在线情况，包括黑客和垃圾邮件发送者。私人代理服务器几乎可以保证您的 IP 地址不被发现。</li>
<li>速度更快，因为没有其他人使用相同的代理服务器。</li>
<li>绕过过滤器和防火墙的能力，因为私人代理服务器可以绕过这类被屏蔽的网站。</li>
<li>能够解除对许多应用程序的封禁，绕过许多互联网限制（例如，在 "IT 管理员 "限制您访问这些网站或类似网站的情况下，在工作或学校解除对 You-Tube、Facebook、Twitter 的封禁）。</li>
<li>保护隐私，让您在购物或上网时尽量不用担心个人信息被泄露或泄漏。</li>
<li>由于私人代理为您提供唯一的互联网地址，因此可提供更高水平的互联网安全。</li>
<li>成功避免和拦截垃圾邮件。</li>
<li>绕过地理限制（基于国家的限制内容）。</li>
</ul>
<p>这些代理最好根据需要用于任何目的。除非特别要求，代理权不会每月轮换。</p>
<p>我们无法提供少于 256 个用户，因为这意味着可能有多个用户控制着子网，增加了整个子网被其中一个用户的网站屏蔽的风险。</p>
<p><strong>专用代理的典型用途：</strong></p>
<p>社交媒体<br />
游戏<br />
账户创建/使用<br />
一般浏览<br />
搜索引擎优化</p>
<p><strong>地点</strong></p>
<p>美国 - 洛杉矶</p>
<hr />
<h2>我的互联网服务供应商能否发现我在使用代理服务器或阻止我使用代理服务器？</h2>
<p>我们执行高级代理匿名协议，确保您的 IP 不会泄露。您的 ISP 无法识别我们使用的代理 IP。</p>
<hr />
<h2>为什么不断提示我输入用户名/密码？</h2>
<p>IP 授权使用端口 3128。如果您错误地将代理端口设置为 4444（用于用户名/密码授权），代理将不断提示您输入用户名/密码。请确保在代理 DASHBOARD 上设置正确的授权方式。如果选择 IP 授权，代理控制面板应相应设置为 IP 授权。请确保您已在控制面板中正确授权 IP。您只需按照下面的视频指南进行操作即可。</p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/Q-NSzU1GDp8?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<p>否则，如果代理控制面板设置为用户名/密码授权，并且如果您将代理配置为使用 3128 端口进行 IP 授权，代理将持续提示您输入用户名/密码，因为代理将遵循代理控制面板的设置。</p>
<hr />
<h2><strong>如果我的</strong> 目的<strong> 是否被禁止？</strong></h2>
<p>我 们 提 供 免 费 的 代 理 替 代 服 务，您 可 以 用 它 来 替 代 被 禁 用 的 代 理 IP。请登录您的代理 DASHBOARD 并浏览 "代理替换 "选项卡，然后替换您认为不适合您使用的代理 IP。更换后，我们的系统会分配一个新的代理 IP 作为替代。您也可以按照下面的视频指南了解如何在仪表板中更换代理。</p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/oxL8OAxPeRQ?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<p>免责声明：每次更换将使用一个代理更换点数。如果您购买了 10 个代理，则每个账单周期有权更换 10 个代理。更换点数将在下一个账单周期补充。请谨慎使用更换的代理，因为我们无法手动补充信用额度。</p>
</article>
<hr />
</div>
</div>
<div>
<h4 id="references" class="ftwp-heading">参考资料</h4>
</div>
<ul>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256628-why-are-my-proxies-not-working-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256628-why-are-my-proxies-not-working-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256603-how-can-i-check-to-see-if-a-proxy-is-blocked-from-a-certain-website" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256603-how-can-i-check-to-see-if-a-proxy-is-blocked-from-a-certain-website</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256611-what-are-virgin-24-c-block-ips" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256611-what-are-virgin-24-c-block-ips</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262802-can-my-isp-see-that-i-m-using-a-proxy-or-block-it-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262802-can-my-isp-see-that-i-m-using-a-proxy-or-block-it-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262806-why-am-i-continuously-prompted-for-username-password" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262806-why-am-i-continuously-prompted-for-username-password</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000263276-what-should-i-do-if-my-proxy-is-banned-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000263276-what-should-i-do-if-my-proxy-is-banned-</a></li>
</ul>
<hr />
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/blazingseo-proxies-troubleshooting/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7666</post-id>	</item>
		<item>
		<title>Proxy Pilot (By BlazingSEO) : Learn Manuals Before You Buy</title>
		<link>https://proxysp.com/zh/proxy-pilot/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=proxy-pilot</link>
					<comments>https://proxysp.com/zh/proxy-pilot/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[BlazingSEO Proxies]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7668</guid>

					<description><![CDATA[你知道 Proxy Pilot 的作用和工作原理吗？通过学习本文，您将掌握上述知识和诀窍，以排除 Proxy Pilot 的故障。<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/proxy-pilot/"> <span class="screen-reader-text">Proxy Pilot (By BlazingSEO) ：购买前了解手册</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>你知道 Proxy Pilot 的作用和工作原理吗？通过学习本文，您将掌握上述知识和诀窍，从而排除 Proxy Pilot 的故障。</p></blockquote>
<h2 class="heading">什么是代理试点？</h2>
<h3 id="Description" dir="ltr" data-identifyelement="495"><span data-identifyelement="496">说明</span></h3>
<p dir="ltr" data-identifyelement="497"><span data-identifyelement="498">Proxy Pilot 是一款完全智能管理代理列表的软件。这意味着，通过使用这种 "微服务"，您可以构建更加灵活的系统。</span></p>
<hr />
<h3 id="Features" dir="ltr" data-identifyelement="501"><span data-identifyelement="502">特点</span></h3>
<p>目前的功能包括</p>
<ul>
<li>每次代理尝试之间的特定冷却时间</li>
<li>检测到禁令后的特定冷却时间</li>
<li>禁言检测（您在服务器上安装的证书允许我们以中间人攻击的方式对您的流量进行解密，并读取由此产生的 HTML 以获取禁言信息），每个网站都有特定的功能</li>
<li>最佳使用代理（一开始是循环使用，一旦启动各种冷却计时器，就会使用冷却时间最长的代理）</li>
<li>从代理 API 端点自动下载代理列表</li>
<li>如果在代理列表中使用多个国家，则可实现地理定位</li>
<li>由 ELK 支持的高级统计数据（见下文）</li>
</ul>
<hr />
<h3 id="Powered-by-ELK" dir="ltr" data-identifyelement="534"><span data-identifyelement="535">由 ELK 提供技术支持</span></h3>
<p dir="ltr" data-identifyelement="536"><span data-identifyelement="537">"(《世界人权宣言》) </span><a href="https://www.elastic.co/what-is/elk-stack" target="_blank" rel="nofollow noopener" data-identifyelement="538"><span data-identifyelement="539">ELK 堆栈</span></a><span data-identifyelement="540"> Kibana 是过去几年来大受欢迎的一款软件......Proxy Pilot 就是由它提供支持的！通过 Kibana 令人惊叹的可视化功能，您可以看到触手可及的惊人统计数据：</span></p>
<p dir="ltr" data-identifyelement="536"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7900" src="https://www.proxysp.com/wp-content/uploads/2021/09/Powered-by-ELK1.jpg" alt="Powered by ELK1" width="615" height="451" srcset="https://proxysp.com/wp-content/uploads/2021/09/Powered-by-ELK1.jpg 615w, https://proxysp.com/wp-content/uploads/2021/09/Powered-by-ELK1-300x220.jpg 300w" sizes="(max-width: 615px) 100vw, 615px" /></p>
<p dir="ltr" data-identifyelement="536"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8000" src="https://www.proxysp.com/wp-content/uploads/2021/09/Powered-by-ELK11.jpg" alt="Powered by ELK11" width="614" height="338" srcset="https://proxysp.com/wp-content/uploads/2021/09/Powered-by-ELK11.jpg 614w, https://proxysp.com/wp-content/uploads/2021/09/Powered-by-ELK11-300x165.jpg 300w" sizes="(max-width: 614px) 100vw, 614px" /></p>
<hr />
<div class="icon">
<div class="icon">
<h3 id="what-it-is-and-is-not" dir="ltr" data-identifyelement="555"><span dir="ltr" data-identifyelement="556">它是什么，它不是什么</span></h3>
<p dir="ltr" data-identifyelement="557"><span dir="ltr" data-identifyelement="558">我们从对 Proxy Pilot 感兴趣的用户那里得到的一个困惑是，Proxy Pilot 能做什么，不能做什么。下面是我们的 <a href="#general-troubleshooting-for-proxy-pilot">一般故障排除</a>.</span></p>
<p dir="ltr" data-identifyelement="557"><span dir="ltr" data-identifyelement="558">因此，必须区分代理领航员如何能够 <em dir="ltr">帮助</em> 而当你使用自己的软件时，它却无法阻止许多常见的反窃听技术。</span></p>
<p dir="ltr" data-identifyelement="561"><span data-identifyelement="562">它的作用</span></p>
<ul data-identifyelement="563">
<li dir="ltr" data-identifyelement="564">
<p dir="ltr" data-identifyelement="565"><span data-identifyelement="566">上述所有功能</span></p>
</li>
<li dir="ltr" data-identifyelement="567">
<p dir="ltr" data-identifyelement="568"><span data-identifyelement="569">允许您将代理代码从主代码库中分离出来，并将其放入单独的微服务中</span></p>
</li>
<li dir="ltr" data-identifyelement="570">
<p dir="ltr" data-identifyelement="571"><span dir="ltr" data-identifyelement="572">100% 已开源（将于 2021 年第四季度推出）</span></p>
</li>
</ul>
<p dir="ltr" data-identifyelement="577"><span data-identifyelement="578">它的作用 </span><span data-identifyelement="579">不</span><span data-identifyelement="580"> 做：</span></p>
<ul data-identifyelement="581">
<li dir="ltr" data-identifyelement="582">
<p dir="ltr" data-identifyelement="583"><span data-identifyelement="584">如果您的代理池和设置不合适，它不能保证 100% 的成功率。</span></p>
</li>
<li dir="ltr" data-identifyelement="582">
<p dir="ltr" data-identifyelement="583"><span style="font-size: 16px;">例如：如果您想以每小时 100 万次请求的速度搜索 domain.com，但只在代理池中输入了 10 个代理，那么您很可能会在目标网站上收到禁止请求。出现这种情况时，您的所有 10 个代理都会进入 "禁用冷却 "状态，Proxy Pilot 会返回 "无代理 "的错误信息。</span></p>
</li>
<li dir="ltr" data-identifyelement="582">
<p dir="ltr" data-identifyelement="583"><span dir="ltr" style="font-size: 16px;" data-identifyelement="594">Proxy Pilot 不会 "按每次成功搜索收费"。如果您想卸载 </span><span style="font-size: 16px;" data-identifyelement="595">一应俱全</span><span style="font-size: 16px;" data-identifyelement="596"> 那么我们建议您考虑我们的 </span><a style="font-size: 16px; background-color: #ffffff;" href="http://scrapingrobot.com/api" data-identifyelement="597" target="_blank" rel="noopener"><span data-identifyelement="598">搜索机器人应用程序接口</span></a><span dir="ltr" style="font-size: 16px;" data-identifyelement="599">.我们的 Scraping Robot API 可处理所有浏览器管理、代理管理，并确保 100% 成功返回到您的软件。Proxy Pilot 只是一个代理管理器，它高度依赖于您提供的代理。如果您提供的代理 IP 地址质量不高，或者您的软件配置不正确，那么您将得到低质量的结果。</span></p>
</li>
<li dir="ltr" data-identifyelement="582">
<p dir="ltr" data-identifyelement="583"><span dir="ltr" data-identifyelement="605">Proxy Pilot 不为您提供免费代理服务器或访问特定代理服务器池的权限。您必须向它提供您希望使用的代理服务器。同样，如果您根本不想购买代理服务器或管理代理服务器，那么建议使用我们的 Scraping Robot API。 </span></p>
</li>
</ul>
<hr />
<h2 class="heading">代理领航员设置说明</h2>
<h3 id="Technical-Setup-Explanation---How-Does-It-Work?" dir="ltr">技术设置说明--它是如何工作的？</h3>
<p>如果您还没有阅读过《什么是代理试点？</p>
<p>本文概述了如何实施代理试点的技术细节。首先，让我们定义一下它是如何工作的：</p>
<p dir="ltr"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7902" src="https://www.proxysp.com/wp-content/uploads/2021/09/Technical-Setup-Explanation.jpg" alt="Technical Setup Explanation" width="629" height="389" srcset="https://proxysp.com/wp-content/uploads/2021/09/Technical-Setup-Explanation.jpg 629w, https://proxysp.com/wp-content/uploads/2021/09/Technical-Setup-Explanation-300x186.jpg 300w" sizes="(max-width: 629px) 100vw, 629px" /></p>
<p dir="ltr"><strong>主要组成部分：</strong></p>
<ol>
<li dir="ltr">
<p dir="ltr">在软件中安装自定义证书。对于大多数软件来说，这只需 1-2 行代码即可完成。</p>
<p>安装后，我们就可以模拟中间人攻击，对 HTTPS 流量进行解密，从而读取 HTML。一旦我们能读取您请求的完整 HTML，我们就能检测禁止并进行适当的重试。</li>
<li dir="ltr">
<p dir="ltr">您可以连接到中央 Proxy Pilot 服务器（自托管或托管）。</p>
<p>我们将为您提供一个代理 IP（IP：端口，IP 授权；或 IP：端口：用户：通行证，用户：通行证授权）。您将向该单一代理网关发送所有请求，Proxy Pilot 系统将从该网关接管并将您的请求转发给相应的代理。</li>
<li dir="ltr">
<p dir="ltr">您的实际代理列表</p>
<p>正如《什么是 Proxy Pilot？Proxy Pilot 会将您的请求转发给这些代理。</li>
</ol>
<hr />
<h3 id="Programming-Language-Implementations" dir="ltr">编程语言实现</h3>
<p dir="ltr">请参阅以下链接，了解如何使用您选择的编程语言实施代理领航程序。对于大多数语言来说，安装自定义证书只需不到两行代码，从那时起，您就可以像使用普通代理一样使用代理网关了。</p>
<p dir="ltr">请参阅以下语言的设置说明：</p>
<hr />
<h4 dir="ltr"><strong>1.Node.js (请求)</strong></h4>
<div data-identifyelement="482">
<h5 data-identifyelement="485"><strong><span dir="ltr" data-identifyelement="486">先决条件</span></strong></h5>
</div>
<p dir="ltr" data-identifyelement="504"><span dir="ltr" data-identifyelement="505">您应安装以下程序</span></p>
<ul data-identifyelement="506">
<li dir="ltr" data-identifyelement="507">
<p dir="ltr" data-identifyelement="508"><span data-identifyelement="509">最新 Node.js 版本</span></p>
</li>
<li dir="ltr" data-identifyelement="510">
<p dir="ltr" data-identifyelement="511"><span dir="ltr" data-identifyelement="512">请求图书馆：</span><br />
<a href="https://www.npmjs.com/package/request" target="_blank" rel="nofollow noopener">https://www.npmjs.com/package/request</a></p>
</li>
</ul>
<h5 dir="ltr" data-identifyelement="533"><strong><span dir="ltr" data-identifyelement="534">代码示例</span></strong></h5>
<p dir="ltr" data-identifyelement="537"><strong>使用代理试点所需的线路：</strong></p>
<ul>
<li dir="ltr">rejectUnauthorized: false
<ul>
<li dir="ltr">rejectUnauthorized: false "忽略 "证书警告</li>
</ul>
</li>
<li dir="ltr">(可选）- 如果您希望在您的服务器和我们的服务器之间建立安全连接，可以安装我们的证书并在 Node.js 中使用。对于大多数用户来说，这并非必要，您只需 "忽略 "证书错误即可。您可以 <a dir="ltr" href="https://drive.google.com/file/d/1_GTicu0qgdVQZVwzPyBGzH_lv0k_Sonh/view" target="_blank" rel="nofollow noopener">在此下载证书</a>.
<ul>
<li dir="ltr" data-identifyelement="540">// const cert = fs.readFileSync(path.resolve(__dirname, './public/ca.pem'))；</li>
<li dir="ltr" data-identifyelement="541">// ca: cert</li>
<li dir="ltr" data-identifyelement="542">// tunnel: true、</li>
<li dir="ltr" data-identifyelement="543">(可选项--如果不进行地理定位，请勿使用）
<ul data-identifyelement="544">
<li dir="ltr" data-identifyelement="545">// proxyHeaderWhiteList：['X-Sprious-Region']、<br data-identifyelement="546" />headers：{<br data-identifyelement="547" />// 'X-ProxyPilot-Region': 'GB'、</li>
</ul>
</li>
</ul>
</li>
</ul>
<div>
<pre class="line-numbers language-javascript" contenteditable="false" data-code-brush="JavaScript"><code class="language-javascript"><span class="token keyword">缢</span> fs <span class="token operator">=</span> <span class="token function">要求</span><span class="token punctuation">(</span><span class="token string">fs</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token keyword">缢</span> 路 <span class="token operator">=</span> <span class="token function">要求</span><span class="token punctuation">(</span><span class="token string">路径</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token comment" spellcheck="true">/* 注意：如果不需要使用地理定位功能，请将 ./public/ca.pem 替换为服务器上 ca.pem 文件的本地路径，并删除带有 X-ProxyPilot-Region 的行*/。</span>

<span class="token comment" spellcheck="true">// const cert = fs.readFileSync(path.resolve(__dirname, './public/ca.pem'))；</span>
<span class="token keyword">缢</span> 要求 <span class="token operator">=</span> <span class="token function">要求</span><span class="token punctuation">(</span><span class="token string">请求</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token function">要求</span><span class="token punctuation">(</span>
    <span class="token punctuation">{</span>
        网址<span class="token punctuation">:</span> <span class="token string">'https://www.amazon.com/dp/B07HNW68ZC/'</span><span class="token punctuation">,</span>
        代理<span class="token punctuation">:</span> <span class="token string">http://PROXY_LOGIN:PROXY_PASS@proxy_ip:proxy_port</span><span class="token punctuation">,</span>
        <span class="token comment" spellcheck="true">// ca: cert、</span>
        <span class="token comment" spellcheck="true">// tunnel: true、</span>
        followAllRedirects<span class="token punctuation">:</span> <span class="token boolean">真</span><span class="token punctuation">,</span>
        超时<span class="token punctuation">:</span> <span class="token number">60000</span><span class="token punctuation">,</span>
        方法<span class="token punctuation">:</span> <span class="token string">"GET"</span><span class="token punctuation">,</span>
        拒绝未授权<span class="token punctuation">:</span> <span class="token boolean">错误</span><span class="token punctuation">,</span>
        压缩<span class="token punctuation">:</span> <span class="token boolean">真</span><span class="token punctuation">,</span>
        <span class="token comment" spellcheck="true">// proxyHeaderWhiteList：['X-Sprious-Region']、</span>
        页眉<span class="token punctuation">:</span> <span class="token punctuation">{</span>
            <span class="token comment" spellcheck="true">// 'X-ProxyPilot-Region': 'GB'、</span>
            <span class="token string">用户代理</span><span class="token punctuation">:</span> <span class="token string">Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36'</span><span class="token punctuation">,</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">(</span>打错<span class="token punctuation">,</span> 回应<span class="token punctuation">,</span> 机构<span class="token punctuation">)</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token punctuation">{</span>
        游戏机<span class="token punctuation">.</span><span class="token function">登录</span><span class="token punctuation">(</span>打错<span class="token punctuation">,</span> 机构<span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre>
</div>
<hr />
<h4 dir="ltr"><strong>2.使用 Puppeteer 的 Node.js</strong></h4>
<h5 data-identifyelement="485"><strong><span dir="ltr" data-identifyelement="486">先决条件</span></strong></h5>
</div>
<div class="icon">
<p><span style="font-size: 16px;">您应安装以下程序</span></p>
<ul>
<li dir="ltr">
<p dir="ltr">最新 Node.js 版本</p>
</li>
<li dir="ltr">
<p dir="ltr"><span dir="ltr">最新 <a href="https://www.npmjs.com/package/puppeteer" target="_blank" rel="nofollow noopener">木偶师</a></span></p>
</li>
<li dir="ltr"><span dir="ltr">(可选建议） <a href="https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-stealth" target="_blank" rel="nofollow noopener">傀儡廻隐身</a></span></li>
</ul>
<h5>代码示例</h5>
<p dir="ltr"><strong dir="ltr">使用代理试点所需的线路：</strong></p>
<ul>
<li dir="ltr">const browser = await puppeteer.launch({<br />
args: ['-no-sandbox', '-disable-setuid-sandbox', '-proxy-server=' + anonymizeProxy、 <strong>忽略证书错误</strong>],<br />
});</p>
<ul>
<li dir="ltr">如果忽略服务器上的证书，则无需安装证书。</li>
</ul>
</li>
</ul>
<div>
<div>
<div class="prism-show-language">
<div class="prism-show-language-label">JavaScript</div>
</div>
<pre class="line-numbers language-javascript" contenteditable="false" data-code-brush="JavaScript"><code class="language-javascript"><span class="token keyword">缢</span> 木偶 <span class="token operator">=</span> <span class="token function">要求</span><span class="token punctuation">(</span><span class="token string">木偶人</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token keyword">缢</span> 代理链 <span class="token operator">=</span> <span class="token function">要求</span><span class="token punctuation">(</span><span class="token string">代理链</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token punctuation">(</span><span class="token keyword">异步</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token punctuation">{</span>
    <span class="token keyword">缢</span> 匿名代理 <span class="token operator">=</span> <span class="token keyword">等</span> 代理链<span class="token punctuation">.</span><span class="token function">匿名代理</span><span class="token punctuation">(</span><span class="token string">http://PROXY_LOGIN:PROXY_PASS@proxy_ip:proxy_port</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

    <span class="token keyword">缢</span> 浏览器 <span class="token operator">=</span> <span class="token keyword">等</span> 木偶<span class="token punctuation">.</span><span class="token function">启动</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
        参数<span class="token punctuation">:</span> <span class="token punctuation">[</span><span class="token string">--无沙箱</span><span class="token punctuation">,</span> <span class="token string">禁用-setuid-沙箱</span><span class="token punctuation">,</span> <span class="token string">'--代理服务器='</span> <span class="token operator">+</span> 匿名代理<span class="token punctuation">,</span> <span class="token string">忽略证书错误</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">缢</span> 页码 <span class="token operator">=</span> <span class="token keyword">等</span> 浏览器<span class="token punctuation">.</span><span class="token function">新页面</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">等</span> 页码<span class="token punctuation">.</span><span class="token function">开始</span><span class="token punctuation">(</span><span class="token string">'https://www.amazon.com/p/dp/B08GL2XTV6'</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

    <span class="token keyword">告诉</span> 页面标题 <span class="token operator">=</span> <span class="token keyword">等</span> 页码<span class="token punctuation">.</span><span class="token function">标题</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">告诉</span> 内容 <span class="token operator">=</span> <span class="token keyword">等</span> 页码<span class="token punctuation">.</span><span class="token function">$</span><span class="token punctuation">(</span><span class="token string">"#priceblock_我们的价格"</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">告诉</span> 价格 <span class="token operator">=</span> <span class="token keyword">等</span> <span class="token punctuation">(</span><span class="token keyword">等</span> 内容<span class="token punctuation">.</span><span class="token function">获取属性</span><span class="token punctuation">(</span><span class="token string">文本内容</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">jsonValue</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token punctuation">;</span>

    游戏机<span class="token punctuation">.</span><span class="token function">登录</span><span class="token punctuation">(</span>价格 <span class="token operator">+</span> <span class="token string">' - '</span> <span class="token operator">+</span> 页面标题<span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token comment" spellcheck="true">// 应该是'$199.00 - LOVESHACKFANCY 女式安东内拉连衣裙，亮蓝色，4码，亚马逊女装专卖店'。</span>

    <span class="token keyword">等</span> 浏览器<span class="token punctuation">.</span><span class="token function">关闭</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">等</span> 代理链<span class="token punctuation">.</span><span class="token function">关闭匿名代理</span><span class="token punctuation">(</span>匿名代理<span class="token punctuation">,</span> <span class="token boolean">真</span><span class="token punctuation">)</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre>
</div>
</div>
<div data-identifyelement="550">
<hr />
</div>
<h4 dir="ltr"><strong>3.卷曲</strong></h4>
<div data-identifyelement="482">
<h5 data-identifyelement="485"><span dir="ltr" data-identifyelement="486">先决条件</span></h5>
</div>
<p dir="ltr" data-identifyelement="495"><span data-identifyelement="496">您应安装以下程序</span></p>
<ul data-identifyelement="497">
<li dir="ltr" data-identifyelement="498">
<p dir="ltr" data-identifyelement="499"><span dir="ltr" data-identifyelement="500">你应该可以在机器上运行 curl<br data-identifyelement="501" /></span></p>
</li>
</ul>
<h5 dir="ltr" data-identifyelement="513"><span data-identifyelement="514">代码示例</span></h5>
<p dir="ltr" data-identifyelement="517"><strong dir="ltr" data-identifyelement="518">使用代理试点所需的线路：</strong></p>
<ul data-identifyelement="519">
<li dir="ltr" data-identifyelement="520">-K -压缩
<ul data-identifyelement="521">
<li dir="ltr" data-identifyelement="522">通过在 curl 中使用"-k "参数，它将忽略使用代理试点的自定义证书要求。</li>
</ul>
</li>
<li dir="ltr" data-identifyelement="523">(可选）如果您想使用地理定位功能，请通过：
<ul data-identifyelement="524">
<li dir="ltr" data-identifyelement="525">-proxy-header'X-Sprious-Region：美国</li>
</ul>
</li>
</ul>
<div data-identifyelement="528">
<div data-identifyelement="529">
<pre class="line-numbers language-generic" contenteditable="false" data-code-brush="Generic Language" data-identifyelement="530"><code class="Language language-generic">curl -s 'https://www.amazon.com/dp/B07HNW68ZC/' \<br data-identifyelement="531" />     -H 'User-Agent：Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36'。<br data-identifyelement="532" />     -k --压缩<br data-identifyelement="533" />     -x "PROXY_LOGIN:PROXY_PASS@PROXY_IP:PROXY_PORT</code></pre>
</div>
</div>
<hr />
<h4 dir="ltr"><strong>4.Python (请求)</strong></h4>
<div>
<h5><span dir="ltr">先决条件</span></h5>
</div>
<p dir="ltr">您应安装以下程序</p>
<ul>
<li dir="ltr">
<p dir="ltr"><span dir="ltr">最新 Python</span></p>
</li>
<li dir="ltr">
<p dir="ltr"><span dir="ltr">请求图书馆：<br />
</span><a dir="ltr" href="https://docs.python-requests.org/en/latest/" target="_blank" rel="noopener"> https://docs.python-requests.org/en/latest/</a></p>
</li>
</ul>
<h5 dir="ltr">代码示例</h5>
<p dir="ltr"><strong dir="ltr">使用代理试点所需的线路：</strong></p>
<ul>
<li dir="ltr">r = requests.get(url, headers=headers, proxies=proxies、 <strong>验证=假</strong>)
<ul>
<li dir="ltr">verify=False "忽略 "证书警告</li>
</ul>
</li>
<li dir="ltr">(可选） # r = requests.get(url, headers=headers, proxies=proxies, verify='./public/ca.pem")
<ul>
<li dir="ltr">如果您希望在您的服务器和我们的服务器之间建立安全连接，可以安装我们的证书并在 Python 中使用。对于大多数用户来说，这并非必要，您只需 "忽略 "证书错误即可。您可以 <a href="https://drive.google.com/file/d/1_GTicu0qgdVQZVwzPyBGzH_lv0k_Sonh/view" target="_blank" rel="noopener noreferrer">在此下载证书。</a></li>
</ul>
</li>
</ul>
<div></div>
<div>
<pre class="line-numbers language-python" contenteditable="false" data-code-brush="Python"><code class="language-python">进口请求

url = "https://www.amazon.com/dp/B07HNW68ZC/"
代理服务器 = {
    "https": f "http://PROXY_LOGIN:PROXY_PASS@PROXY_IP:PROXY_PORT/"、
    "http": f "http://PROXY_LOGIN:PROXY_PASS@PROXY_IP:PROXY_PORT/"
}
headers = {
    'user-agent'：'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36'、
    content-encoding': 'gzip'.
}

# r = requests.get(url, headers=headers, proxies=proxies, verify='./public/ca.pem'')
r = requests.get(url, headers=headers, proxies=proxies, verify=False)

print(f "Response Body: {r.text}\n"
    "请求头："
    f"{r.request.headers}\n\n"
    f "响应时间: {r.elapsed.total_seconds()}\n"
    f "Response Code：{r.status_code}\n"
    f "Response Headers：{r.headers}\n/n"
    f "Response Cookies：{r.cookies.items()}\n\n"
    f "请求 {url}\n"
)</code></pre>
</div>
<hr />
<h4 dir="ltr"><strong><span dir="ltr">5.火狐浏览器</span></strong></h4>
<div>
<h5><span dir="ltr">先决条件</span></h5>
</div>
<p dir="ltr">您应安装以下程序</p>
<ul>
<li dir="ltr">
<p dir="ltr"><span dir="ltr">最新火狐浏览器版本<br />
</span></p>
</li>
</ul>
<p dir="ltr"><span dir="ltr">您应下载自定义证书：</span></p>
<ul>
<li dir="ltr"><span dir="ltr"><a href="https://drive.google.com/file/d/1_GTicu0qgdVQZVwzPyBGzH_lv0k_Sonh/view" target="_blank" rel="nofollow noopener">https://drive.google.com/file/d/1_GTicu0qgdVQZVwzPyBGzH_lv0k_Sonh/view</a><br />
</span></li>
</ul>
<h5 dir="ltr"><span dir="ltr">如何在火狐浏览器中使用代理领航员<br />
</span></h5>
<p dir="ltr"><strong dir="ltr"><span dir="ltr">注意事项 </span></strong>按照下面的说明操作，您就等于允许我们的服务器读取您访问的页面。如果您打算使用浏览器进行正常活动（如使用银行账户），这样做是很危险的。只有当您打算使用我们的证书进行代理活动（如网页搜索）时，才请继续操作，切勿将其用于个人用途！</p>
<p><span dir="ltr">在 Firefox 中，您可以按照以下步骤导入证书：</span></p>
<ol>
<li dir="ltr">
<p dir="ltr"><span dir="ltr">设置"→"隐私与安全"→"查看证书"→"导入"。</span></p>
</li>
<li dir="ltr">
<p dir="ltr"><span dir="ltr">选择之前保存的 CA.pem 文件</span></p>
</li>
<li dir="ltr">
<p dir="ltr">选中复选框 "信任此功能可识别网站"→"确定</p>
</li>
<li dir="ltr">
<p dir="ltr">点击 "确定</p>
</li>
</ol>
<p>然后，您需要指定浏览器使用 PM 代理服务器：</p>
<ol>
<li dir="ltr">
<p dir="ltr">设置"→"常规"→"网络设置"→"设置</p>
</li>
<li dir="ltr">
<p dir="ltr">手动代理设置</p>
</li>
<li dir="ltr">
<p dir="ltr">HTTP 代理：PROXY_IP 端口：端口： PROXY_PORT</p>
</li>
<li dir="ltr">
<p dir="ltr">选择 "也将此代理用于 FTP 和 HTTPS"。</p>
</li>
<li dir="ltr">
<p dir="ltr">点击 "确定"。</p>
</li>
</ol>
<p dir="ltr">参观<a href="http://amazon.com/" target="_blank" rel="nofollow noopener"> 亚马逊网站</a>.当浏览器要求输入登录名和密码时，请输入：</p>
<ul>
<li dir="ltr"><span dir="ltr">登录： </span>代理登录</li>
<li dir="ltr"><span dir="ltr">密码 </span>通行证</li>
</ul>
<hr />
<h3 id="Proxy-Manager-Error-codes" data-pm-slice="1 1 []">代理管理器错误代码</h3>
<table data-autosize="false" data-layout="default" data-number-column="false">
<thead>
<tr>
<th class="pm-table-header-content-wrap" data-colwidth="140"><strong>HTTP 响应代码</strong></th>
<th class="pm-table-header-content-wrap" data-colwidth="165"><strong>答复内容</strong></th>
<th class="pm-table-header-content-wrap" data-colwidth="454"><strong>说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td class="pm-table-cell-content-wrap" data-colwidth="140"><span class="code">500</span></td>
<td class="pm-table-cell-content-wrap" data-colwidth="165"><span class="code">错误重试限制</span></td>
<td class="pm-table-cell-content-wrap" data-colwidth="454">
<p dir="ltr">代理试点尝试获取特定 URL 的重试次数达到上限</p>
<p dir="ltr">您可以再次重试您的请求。</p>
</td>
</tr>
<tr>
<td class="pm-table-cell-content-wrap" data-colwidth="140"><span class="code">500</span></td>
<td class="pm-table-cell-content-wrap" data-colwidth="165"><span class="code">无代理</span></td>
<td class="pm-table-cell-content-wrap" data-colwidth="454">
<p dir="ltr">您的代理服务器池中目前没有足够的代理服务器。这可能表明所有代理服务器都处于冷却状态，或者如果指定了地理目标头，也可能表明代理服务器池中没有该地区的代理服务器。</p>
<p dir="ltr">要么重试请求，要么检查指定的地理目标头是否与代理池中的可用代理匹配。阅读此处了解更多有关 <a href="#what-it-is-and-is-not">什么是代理试点，什么不是代理试点</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<hr />
<div class="icon">
<h3 id="How-do-retries-work?-Are-you-doing-the-scraping-on-my-behalf?" dir="ltr">重试如何进行？您是在替我进行搜索吗？</h3>
<p dir="ltr">鉴于解决方案的复杂性，这个问题很常见。简单的回答是：不，我们不代表您进行刮擦。</p>
<p dir="ltr">当出现以下流程时</p>
<ol>
<li dir="ltr">
<p dir="ltr">您向代理试点网关发送请求，要求对 domain.com 进行搜刮</p>
</li>
<li dir="ltr">
<p dir="ltr">代理 Pilot 会将您的请求转发给代理 A</p>
</li>
<li dir="ltr">
<p dir="ltr">proxyA 向代理领航员返回被禁止的 HTML 页面</p>
</li>
<li dir="ltr">
<p dir="ltr">代理 Pilot 发现这是一个禁令，于是向代理 B 发送了同样的请求</p>
</li>
<li dir="ltr">
<p dir="ltr">proxyB 向代理引航员返回成功的 HTML 页面</p>
</li>
<li dir="ltr">
<p dir="ltr">代理 Pilot 会将成功的 HTML 返回给您（用户）。</p>
</li>
</ol>
<p dir="ltr">......在步骤 #4 中，我们会遇到一个常见问题，问我们是否在使用我们的服务器资源进行刮擦，或者是你的服务器计算资源在进行刮擦。答案是，你的服务器仍在进行刮擦。</p>
<p dir="ltr">最好的理解方式是，当你的网络在连接一个网站时中途断开，你的浏览器会显示一个比平时更长的 "正在加载 "符号，因为你的网络在尝试重试。这就是 Proxy Pilot 的主要作用： 当它代表您进行重试时，您的软件在等待 Proxy Pilot 响应的同时会保持连接通道打开。</p>
<p dir="ltr">计算消耗实际上是通过重新发送完全相同的请求头和请求体在代理试点上发生的。通过重新发送完全相同的标题和正文，我们已经通过大量测试证明，这不会影响您的刮擦结果（例如，如果您在 Chromium 上使用 Puppeteer）。</p>
<p dir="ltr">使用 Proxy Pilot 亲自证明这一点的最佳方法是：用浏览器连接到一个仅使用 javascript 的网站（如谷歌地图）。你会发现你可以加载页面，因为在隧道连接打开时，浏览器仍在执行 javascript。</p>
<p dir="ltr">令人困惑？我们同意！请注册 Proxy Pilot，我们很乐意为您提供免费代理试用。</p>
<hr />
<h2 id="general-troubleshooting-for-proxy-pilot" class="heading">代理试点的一般故障排除</h2>
<p dir="ltr">在本文中，我们将讨论在尝试通过 Proxy Pilot 使用代理时，可以采取哪些步骤来帮助排除任何意外问题。需要提醒的是，Proxy Pilot 是一款<span dir="ltr"> 它依赖于最终用户的正确配置才能正常工作。如果设置了错误的标头或 cookie、使用了错误的代理等，那么结果还是会很糟糕。</span></p>
<p dir="ltr"><span dir="ltr">网络搜刮的核心是，如果您无法使用您的家庭/工作 IP 地址在浏览器上加载请求，那么您就不可能使用软件+代理源来搜刮网页。 </span></p>
<p dir="ltr">检测刮擦软件的方法有很多（请参阅 <a href="https://amiunique.org/" target="_blank" rel="nofollow noopener">示例1</a> 和 <a href="https://github.com/fingerprintjs/fingerprintjs" target="_blank" rel="nofollow noopener">示例2</a>因此，你在加载网站时添加的自定义功能越多（你的软件+代理），你的足迹就越大，也就越容易被发现。</p>
<p dir="ltr"><span dir="ltr">如果您不希望担心此类防刮伤战斗，请访问我们的 API： </span><a href="https://scrapingrobot.com/api/" target="_blank" rel="nofollow noopener">https://scrapingrobot.com/api/</a><span dir="ltr">  </span><span dir="ltr">我们的 Scraping Robot API 正是为了解决这一问题而设计的：让您专注于核心业务，而不是与反搜索技术作斗争。</span></p>
<p dir="ltr">如果您希望管理自己的代理服务器、使用开发人员资源并支付服务器计算能力，那么使用 Proxy Pilot 将有助于（但不能解决！）解决这些常见的刮擦问题。</p>
<hr />
<h3 dir="ltr">糟糕与良好的搜索请求示例</h3>
<p dir="ltr">下面是一个向亚马逊（或任何网站）提出的非常糟糕的刮擦请求示例。Proxy Pilot 的作用不是解决这些糟糕的请求，开发人员的代码仍然需要发送良好的请求以避免被禁止。</p>
<p dir="ltr">curl -s '<a href="https://www.amazon.com/dp/B07HNW68ZC/" target="_blank" rel="nofollow noopener">https://www.amazon.com/dp/B07HNW68ZC/</a>&#8216; \</p>
<p dir="ltr">     -x 'PROXY_LOGIN:PROXY_PASS@PROXY_IP:PROXY_PORT' \</p>
<p dir="ltr">     -k -compressed -v</p>
<p dir="ltr"><span dir="ltr">上述代码之所以会导致封禁，并不是因为代理试点，甚至也不是因为你的代理，而是因为正常的浏览器请求会在请求中设置更多的头信息。具体来说，亚马逊会检查请求中是否至少有 "User-Agent "头信息，因此无论你通过哪个代理运行此请求，都很可能会被拦截。</span></p>
<p dir="ltr"><span dir="ltr">只需在请求中添加 user-agent，就能大大降低请求的禁止率：</span></p>
<p dir="ltr">curl -s '<a href="https://www.amazon.com/dp/B07HNW68ZC/" target="_blank" rel="nofollow noopener">https://www.amazon.com/dp/B07HNW68ZC/</a>&#8216; \</p>
<p dir="ltr">     -H 'User-Agent：Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36'。</p>
<p dir="ltr">     -x 'PROXY_LOGIN:PROXY_PASS@PROXY_IP:PROXY_PORT' \</p>
<p dir="ltr">     -k -compressed -v</p>
<hr />
<h3 dir="ltr">小窍门 #1：  在浏览器中复制您的请求，先在浏览器中确认是否有效</h3>
<p dir="ltr">说明<span dir="ltr">  如上所述，了解是否是您的软件造成问题的最佳方法是在本地计算机上通过浏览器运行您的请求。因为您的本地机器是纯粹的 "住宅 IP"，而浏览器不是定制软件，所以您可以成功加载所有页面。但是，如果使用下面的步骤无法在浏览器中加载页面，则意味着您向目标 URL 传递了不正确的标头或 cookie，因此需要在您的计算机上进行调试，以找到正确的标头/cookies。</span></p>
<p dir="ltr"><strong>故障排除步骤：</strong></p>
<ol>
<li dir="ltr">
<p dir="ltr">打开 Chrome 浏览器隐身选项卡，确保清除 cookie<br />
由于大多数刮擦软件都是在没有以前的浏览历史记录和 cookie 的情况下启动的，因此最好采用这种方式来复制软件的工作方式</p>
</li>
<li dir="ltr">
<p dir="ltr">复制要搜索的 URL，将其粘贴到地址栏中即可</p>
</li>
<li dir="ltr">
<p dir="ltr"><span dir="ltr">确保加载结果符合预期。如果加载失败，在设计搜索软件时应考虑到这一点。</span><br />
<span dir="ltr">在某些情况下，网站甚至可能在这一步就禁止你，因为你没有以前的浏览记录（也没有 cookie）。 </span></p>
</li>
<li dir="ltr">
<p dir="ltr"><span dir="ltr">在 Chrome 浏览器的 "开发工具 "中打开一个网络选项卡，然后检查第一个请求（可能是 "文档 "类型）。检查该请求的 URL 是否与你刚才的请求一致，然后右键单击并选择 "复制为 cURL</span><br />
浏览器发送的 cURL 应该会出现在剪贴板中，看起来就像这样：<br />
卷曲 '<a href="https://www.amazon.com/gp/product/B08F7PTF53/" target="_blank" rel="nofollow noopener">https://www.amazon.com/gp/product/B08F7PTF53/</a>&#8216; \<br />
-H'权限： <a href="http://www.amazon.com/" target="_blank" rel="nofollow noopener">www.amazon.com</a>&#8216; \<br />
-H 'sec-ch-ua：" Not;A Brand";v="99″, "Google Chrome";v="91″, "Chromium";v="91″' \<br />
-H 'sec-ch-ua-mobile: ?0'\<br />
-H 'upgrade-insecure-requests：1' \<br />
-H 'user-agent：Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36' \\<br />
-H'accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9'。<br />
-H 'sec-fetch-site: none'\<br />
-H 'sec-fetch-mode: navigate'\<br />
-H 'sec-fetch-user：?1' \<br />
-H 'sec-fetch-dest: document'\<br />
-H 'accept-language: en-US,en;q=0.9'\<br />
-压缩</p>
</li>
</ol>
<p dir="ltr">请注意，即使在隐身模式下，浏览器也会发送很多头文件。如果使用 cookie，请求量很容易就会增加好几倍。</p>
<p dir="ltr">注：cURL 默认随 macOS 和大多数 Linux 发行版以及最新的 Windows 10 更新提供。</p>
<p dir="ltr">如果你运行的是旧版本的 Windows 系统，可以从它们的 <a href="https://curl.se/download.html" target="_blank" rel="nofollow noopener">官方网站</a>.</p>
<hr />
<h3 dir="ltr">小窍门 #2：通过代理试点从浏览器复制相同请求</h3>
<p dir="ltr">说明 <span dir="ltr">完成上一提示中的 #4 步骤后，您就会得到一个完美的 cURL 请求，其中包含一组完美的标头，您只需在该 cURL 请求参数中添加这些标头，就可以尝试通过代理试点复制该请求： </span> -x 'PROXY_LOGIN:PROXY_PASS@PROXY_IP:PROXY_PORT' -v -k</p>
<p dir="ltr">使用之前提供给您的密宝凭据。这将通过密宝发送相同的请求。</p>
<p dir="ltr">您还可以考虑添加参数<br />
-o test.html<br />
这将把结果保存到 test.html 页面中，这样你就可以用浏览器打开并查看其内容，以确保其工作正常。<br />
<span dir="ltr">如果在这一阶段返回正确的内容，说明密宝工作正常，并能管理代理服务器，在代理服务器禁止访问时进行重试等。</span></p>
<p dir="ltr">如果请求可以直接运行（未通过-x标志设置代理领航程序），但通过代理领航程序停止运行，请告知我们，并让我们知道您发送的是哪个curl请求</p>
<hr />
<h3 dir="ltr"><span dir="ltr">小窍门 #3：  通过软件复制相同行为</span></h3>
<p dir="ltr">说明<span dir="ltr"> 一旦您通过浏览器和 Proxy Pilot 测试了您的请求，您就可以将其应用到自己的搜刮软件中。与 Proxy Pilot 的集成几乎与使用普通代理进行数据搜刮一样简单。更多详细信息以及不同语言和框架的代码示例，请参见 <a href="http://bit.ly/proxypilot" target="_blank" rel="nofollow noopener">这里</a>. </span></p>
<p dir="ltr"><span dir="ltr">请注意，如果在集成过程中，通过 cURL 运行的同一请求在您的软件中停止运行，最有可能的原因是一组标头。许多网站都实施了非常复杂的反抓取解决方案，这些解决方案不仅会考虑 cookie、用户代理，还会考虑特定的标头顺序、压缩算法和特定的浏览器市场份额（例如，Chrome v41 很少被使用，因此通过用户代理发送该请求会让目标网站觉得可疑）。</span></p>
<hr />
</div>
</div>
<div>
<h4 id="references" class="ftwp-heading">参考资料</h4>
</div>
<ul>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000264080-what-is-proxy-pilot-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000264080-what-is-proxy-pilot-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000264081-proxy-pilot-setup-instructions" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000264081-proxy-pilot-setup-instructions</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000264085-using-python-requests-with-proxy-pilot" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000264085-using-python-requests-with-proxy-pilot</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000264083-using-node-js-requests-with-proxy-pilot" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000264083-using-node-js-requests-with-proxy-pilot</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000264084-using-node-js-puppeteer-with-proxy-pilot" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000264084-using-node-js-puppeteer-with-proxy-pilot</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000264086-using-curl-with-proxy-pilot" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000264086-using-curl-with-proxy-pilot</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000264087-using-firefox-with-proxy-pilot" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000264087-using-firefox-with-proxy-pilot</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000264203-general-troubleshooting-for-proxy-pilot" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000264203-general-troubleshooting-for-proxy-pilot</a></li>
</ul>
<hr />
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/proxy-pilot/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7668</post-id>	</item>
		<item>
		<title>How to Use Socks Protocol with BlazingSEO Proxies? Learn Manuals</title>
		<link>https://proxysp.com/zh/socks-protocol-blazingseo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=socks-protocol-blazingseo</link>
					<comments>https://proxysp.com/zh/socks-protocol-blazingseo/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[BlazingSEO Proxies]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7669</guid>

					<description><![CDATA[我们知道 BlazingSEO 提供 SOCKS 协议，但您知道如何正确使用它吗？本文将为您提供完整的指南。做好您的 ...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/socks-protocol-blazingseo/"> <span class="screen-reader-text">如何在 BlazingSEO 代理服务器中使用 Socks 协议？学习手册</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>我们知道 BlazingSEO 提供 SOCKS 协议，但您知道如何正确使用它吗？本文将为您提供完整的指南。</p></blockquote>
<h2 class="heading">您的代理服务器支持 SOCKS 协议吗？</h2>
<p dir="ltr"><span dir="ltr">我们的专用和半专用代理服务器支持 <a href="https://www.proxysp.com/socks-proxy/" target="_blank" rel="noopener">袜子</a>.为实现 SOCKS 连接，您需要将代理端口更改为 1080。您还可以观看以下视频指南，了解如何在浏览器（Chrome 浏览器和 Firefox 火狐浏览器）中使用 SOCKS 协议和极速代理。</span>.</p>
<p dir="ltr"><span dir="ltr">您只能在使用 SOCKS 的同时使用 IP 授权。 </span><span dir="ltr">遗憾的是，用户名/密码授权方法不适用于 SOCKS 代理服务器。</span></p>
<hr />
<h2 class="heading">如何使用 SOCKS 协议？</h2>
<p>专用和半专用代理服务器支持 SOCKS 协议。</p>
<p>对于某些网站和用例，您可能需要放弃 HTTP/HTTPS，转而使用 SOCKS 协议。我们提供 SOCKS 协议，以协助处理这些特定用例。使用 SOCKS 时，您只能使用 IP 授权，因为我们目前不为 SOCKS 协议提供用户名/密码。</p>
<p>1.登录代理控制面板。</p>
<p>2.在代理仪表板主页的右侧，选择授权类型下的 "通过 IP"，然后选择 SOCKS。</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-7935 size-full" src="https://www.proxysp.com/wp-content/uploads/2021/09/Blazing-SEO-IP-Authorization.jpg" alt="Blazing SEO IP Authorization" width="463" height="216" srcset="https://proxysp.com/wp-content/uploads/2021/09/Blazing-SEO-IP-Authorization.jpg 463w, https://proxysp.com/wp-content/uploads/2021/09/Blazing-SEO-IP-Authorization-300x140.jpg 300w" sizes="(max-width: 463px) 100vw, 463px" /></p>
<p>3.如果您尚未授权 IP，请继续授权 IP。 <a href="https://www.youtube.com/watch?v=Q-NSzU1GDp8" target="_blank" rel="nofollow noopener">这里</a>.</p>
<p>您还可以观看以下视频指南，了解如何在浏览器中使用 SOCKS 协议和 Blazing SEO 代理。</p>
<p><strong>铬</strong></p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/rzByA56VpeY?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<p><strong>火狐浏览器</strong></p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/3V33wirMxik?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<div class="icon">
<div class="icon">
<hr />
</div>
</div>
<div>
<h4 id="references" class="ftwp-heading">参考资料</h4>
</div>
<ul>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000263275-do-your-proxies-work-with-socks-protocol" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000263275-do-your-proxies-work-with-socks-protocol</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256630-how-do-i-use-socks-protocol-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256630-how-do-i-use-socks-protocol-</a></li>
</ul>
<hr />
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/socks-protocol-blazingseo/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7669</post-id>	</item>
		<item>
		<title>How to Use BlazingSEO Proxies? Learn Official Manuals Before You Buy</title>
		<link>https://proxysp.com/zh/how-to-use-blazingseo-proxies/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-use-blazingseo-proxies</link>
					<comments>https://proxysp.com/zh/how-to-use-blazingseo-proxies/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[BlazingSEO Proxies]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7670</guid>

					<description><![CDATA[这是 BlazingSEO 代理服务器的使用手册，您一定不能错过！其中包括如何使用其仪表板、在浏览器上测试代理服务器等...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/how-to-use-blazingseo-proxies/"> <span class="screen-reader-text">如何使用 BlazingSEO 代理？购买前了解官方手册</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>这是 BlazingSEO 代理的使用手册，您一定不能错过！包括如何使用其仪表板、在浏览器上测试代理等内容...</p></blockquote>
<p>&nbsp;</p>
<h2>如何使用 BlazingSEO 代理</h2>
<h3 class="heading">如何使用代理？</h3>
<p>您可以通过网络浏览器或支持代理使用的软件使用代理。</p>
<p><strong>如何在火狐浏览器上使用代理：</strong></p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/bTipqNk11SQ?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<p><strong>如何在 Chrome 浏览器上使用代理： </strong></p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/0mzVhOCOHZ8?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<h3 class="heading">如何授权我的代理？</h3>
<p>要知道，代理服务器需要授权，以防止非授权用户使用代理服务器。它可以保证代理服务器对您的安全。因此，如果您没有正确授权，代理服务器将无法正常工作。</p>
<p>根据您的使用情况，我们提供几种不同类型的授权选项。请在下面找到您需要的授权类型，以获取说明。</p>
<p><strong>IP 授权： </strong></p>
<ul>
<li>IP 授权使用端口 <strong>3128</strong> 与代理人一起。</li>
</ul>
<p>1.登录代理控制面板</p>
<p>2.要查找个人电脑/设备的 IP，请打开网页浏览器</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8008" src="https://www.proxysp.com/wp-content/uploads/2021/09/Blazing-SEO-IP-Authorization-1.jpg" alt="Blazing SEO IP Authorization" width="384" height="414" srcset="https://proxysp.com/wp-content/uploads/2021/09/Blazing-SEO-IP-Authorization-1.jpg 384w, https://proxysp.com/wp-content/uploads/2021/09/Blazing-SEO-IP-Authorization-1-278x300.jpg 278w" sizes="(max-width: 384px) 100vw, 384px" /></p>
<p>3.进入代理控制面板，选择 "Via IP"（通过 IP）、"HTTP"（HTTP），然后在 "2. "截图中的空白框内输入您的 IP。然后点击 "添加 IP"。</p>
<p>4. <strong>在系统完全授权您的 IP 之前，代理服务器将在 30 分钟内无法工作。</strong> 30 分钟后，IP 将被添加到系统中，然后您就可以使用代理服务器了。</p>
<p>5.完成！然后您就可以根据需要使用代理了。</p>
<ul>
<li>关于如何在浏览器中使用代理的视频：</li>
</ul>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/XO-Qj_jgdKM?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<hr />
<p><strong>用户名/密码授权： </strong></p>
<ul>
<li>用户名/密码授权使用端口 <strong>4444</strong> 与代理人一起。</li>
</ul>
<p>1.登录代理控制面板</p>
<p>2.进入代理控制面板，选择 "用户名/密码</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8009" src="https://www.proxysp.com/wp-content/uploads/2021/09/Blazing-SEO-Username-Password-Authorization.jpg" alt="Blazing SEO Username Password Authorization" width="417" height="413" srcset="https://proxysp.com/wp-content/uploads/2021/09/Blazing-SEO-Username-Password-Authorization.jpg 417w, https://proxysp.com/wp-content/uploads/2021/09/Blazing-SEO-Username-Password-Authorization-300x297.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/Blazing-SEO-Username-Password-Authorization-150x150.jpg 150w" sizes="(max-width: 417px) 100vw, 417px" /></p>
<p>3. <strong>代理将在 30 分钟内无法工作，直到系统更改了 </strong><strong>授权</strong><strong> 类型</strong>.30 分钟后系统将调整授权类型，然后您就可以使用代理服务器了。</p>
<p>4.完成！然后您就可以根据需要使用代理了。</p>
<ul>
<li>关于如何在浏览器中使用代理的视频：</li>
</ul>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/0mzVhOCOHZ8?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<hr />
<p><strong>SOCKS 授权：</strong></p>
<ul>
<li>袜子<em> 授权使用端口 <strong>1080</strong> 与代理人一起。</em><em> </em></li>
</ul>
<p>1.登录代理控制面板</p>
<p>2.要查找个人电脑/设备的 IP，请打开网页浏览器</p>
<p>3.进入代理控制面板，选择 "通过 IP"、"SOCKS"，然后在 "3. "截图中的空白框内输入您的 IP。然后点击 "添加 IP"：</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8010" src="https://www.proxysp.com/wp-content/uploads/2021/09/Blazing-SEO-SOCKS-Authorization.jpg" alt="Blazing SEO SOCKS Authorization" width="382" height="452" srcset="https://proxysp.com/wp-content/uploads/2021/09/Blazing-SEO-SOCKS-Authorization.jpg 382w, https://proxysp.com/wp-content/uploads/2021/09/Blazing-SEO-SOCKS-Authorization-254x300.jpg 254w" sizes="(max-width: 382px) 100vw, 382px" /></p>
<article id="article-body" class="article-body">4. <strong>在系统完全授权您的 IP 之前，代理服务器将在 30 分钟内无法工作。</strong>.30 分钟后，IP 将被添加到系统中，然后您就可以使用代理服务器了！然后您就可以根据需要使用代理服务器了。</p>
<ul>
<li>关于如何在浏览器中使用代理的视频：</li>
</ul>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/3V33wirMxik?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<span dir="ltr"><em><strong>请注意：</strong> 有时，ISP 或本地安全设置可能会阻止端口 (3128/4444)。在这种情况下，IP 授权使用 80 端口，用户名/密码授权使用 8000 端口。</em><br />
</span></p>
<hr />
</article>
<h3 class="heading">如何在浏览器中使用和测试我的代理？</h3>
<blockquote><p>在浏览器中测试代理之前，您需要确保代理已在仪表板中获得授权。为此，您可以使用 IP 授权方法或用户名/密码授权方法。</p></blockquote>
<h4><strong>使用 Chrome 浏览器进行测试</strong> 浏览器</h4>
<p>1.打开 Chrome 浏览器，点击浏览器右上角的省略号（3 个点），选择 "设置</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8011 size-full" src="https://www.proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Chrome-Browser1.jpg" alt="Testing with a Chrome Browser1" width="215" height="373" srcset="https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Chrome-Browser1.jpg 215w, https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Chrome-Browser1-173x300.jpg 173w" sizes="(max-width: 215px) 100vw, 215px" /></p>
<p>2.滚动到 "设置 "页面底部，选择 "高级<br />
<img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8012" src="https://www.proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Chrome-Browser2.jpg" alt="Testing with a Chrome Browser2" width="446" height="548" srcset="https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Chrome-Browser2.jpg 446w, https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Chrome-Browser2-244x300.jpg 244w" sizes="(max-width: 446px) 100vw, 446px" /></p>
<p>3.滚动到 "高级 "部分底部，选择 "打开计算机的代理设置</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8013" src="https://www.proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Chrome-Browser3.jpg" alt="Testing with a Chrome Browser3" width="620" height="171" srcset="https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Chrome-Browser3.jpg 620w, https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Chrome-Browser3-300x83.jpg 300w" sizes="(max-width: 620px) 100vw, 620px" /></p>
<p>4.选择 "使用代理服务器 "选项，然后填写 IP 地址和端口，如图所示</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8014" src="https://www.proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Chrome-Browser4.jpg" alt="Testing with a Chrome Browser4" width="458" height="455" srcset="https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Chrome-Browser4.jpg 458w, https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Chrome-Browser4-300x298.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Chrome-Browser4-150x150.jpg 150w" sizes="(max-width: 458px) 100vw, 458px" /></p>
<p>5.要确认您的代理已加载到浏览器中，请访问 google 并输入 "我的 IP"。现在，您的浏览器应该会显示代理 IP 地址，而不是您的常规 IP 地址--干得漂亮！</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8015" src="https://www.proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Chrome-Browser5.jpg" alt="Testing with a Chrome Browser5" width="636" height="281" srcset="https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Chrome-Browser5.jpg 636w, https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Chrome-Browser5-300x133.jpg 300w" sizes="(max-width: 636px) 100vw, 636px" /></p>
<p>6.如果您的代理 IP 出现在谷歌上，您就可以尝试加载任何网站，就像您平时在电脑上浏览一样。就这样！</p>
<ul>
<li>要删除代理，只需反向执行上述步骤即可。</li>
</ul>
<hr />
<h4>使用火狐浏览器进行测试</h4>
<p>1.打开火狐浏览器，点击右上角的汉堡包图标（又称三栏菜单），选择 "选项</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8016" src="https://www.proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Firefox-Browser1.jpg" alt="Testing with a Firefox Browser1" width="289" height="521" srcset="https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Firefox-Browser1.jpg 289w, https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Firefox-Browser1-166x300.jpg 166w" sizes="(max-width: 289px) 100vw, 289px" /></p>
<p>2.滚动到选项页面底部，选择 "设置</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8017" src="https://www.proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Firefox-Browser2.jpg" alt="Testing with a Firefox Browser2" width="622" height="120" srcset="https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Firefox-Browser2.jpg 622w, https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Firefox-Browser2-300x58.jpg 300w" sizes="(max-width: 622px) 100vw, 622px" /></p>
<p>3.选择 "手动代理配置气泡"，并在 HTTP 字段中设置值--请务必选中如图所示的复选框，以便它也适用于 FTP 和 HTTPS！</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8018" src="https://www.proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Firefox-Browser3.jpg" alt="Testing with a Firefox Browser3" width="622" height="414" srcset="https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Firefox-Browser3.jpg 622w, https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Firefox-Browser3-300x200.jpg 300w" sizes="(max-width: 622px) 100vw, 622px" /></p>
<p>4.要确认您的代理已加载到浏览器中，请访问谷歌并输入 "我的 IP"。现在，您的浏览器应该会显示代理 IP 地址，而不是您的常规 IP 地址--干得漂亮！</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8019" src="https://www.proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Firefox-Browser4.jpg" alt="Testing with a Firefox Browser4" width="632" height="280" srcset="https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Firefox-Browser4.jpg 632w, https://proxysp.com/wp-content/uploads/2021/09/Testing-with-a-Firefox-Browser4-300x133.jpg 300w" sizes="(max-width: 632px) 100vw, 632px" /></p>
<p>5.如果您的代理 IP 出现在谷歌上，您就可以尝试加载任何网站，就像您平时在电脑上浏览一样。就这样！</p>
<ul>
<li>要删除代理，只需反向执行上述步骤即可。</li>
</ul>
<hr />
<h3 class="heading">如何为我的代理服务器获取多样化子网？</h3>
<p>我们的系统会自动为您的代理 IP 设置多样化子网。如果您仍然发现代理 IP 缺乏多样性，您可以通过代理控制面板进行相应的代理 IP 替换。请登录代理控制面板，浏览 "代理更换 "选项卡，更换您认为不合适的 IP。您也可以按照这里的视频指南了解如何更换代理。</p>
<p>免责声明：每次更换将使用一个代理更换点数。如果您购买了 10 个代理，则每个账单周期有权更换 10 个代理。更换点数将在下一个账单周期补充。请谨慎使用更换的代理，因为我们无法手动补充信用额度。</p>
<hr />
<h3 class="heading">如何测试代理？</h3>
<p>要测试代理，您只需按照本视频指南进行操作即可：</p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/tPKxrtBP5lU?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<hr />
<h2>如何使用代理控制面板</h2>
<h3 class="heading">如何更换代理？</h3>
<p>在 Blazing SEO，我们知道有时您需要新的代理服务器。因此，我们为所有客户提供免费的代理更换服务。我们每月为您套餐中的每个代理提供一次免费代理更换服务。例如，如果您有 20 个代理，则每月可免费更换 20 个。您的替换余额将分别在替换之日起 30 天后得到补充。</p>
<p><strong>如果您需要更换代理，请按照以下步骤操作：</strong></p>
<p>1.登录 Blazing SEO 代理仪表板。</p>
<p>2.在仪表盘主屏幕上，选择 "IPv4 代理 "下拉菜单。然后选择 "代理替换 "选项。</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8020" src="https://www.proxysp.com/wp-content/uploads/2021/09/replace-proxies1.jpg" alt="replace proxies1" width="485" height="529" srcset="https://proxysp.com/wp-content/uploads/2021/09/replace-proxies1.jpg 485w, https://proxysp.com/wp-content/uploads/2021/09/replace-proxies1-275x300.jpg 275w" sizes="(max-width: 485px) 100vw, 485px" /></p>
<p>3.进入代理更换页面后，有两个选项可以更换代理：</p>
<ul>
<li><strong>方案 1（个人）：</strong> 您可以从列表中选择单个代理。只需选择 "替换 "按钮，即可用新代理替换该代理。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8021" src="https://www.proxysp.com/wp-content/uploads/2021/09/replace-proxies2.jpg" alt="replace proxies2" width="571" height="96" srcset="https://proxysp.com/wp-content/uploads/2021/09/replace-proxies2.jpg 571w, https://proxysp.com/wp-content/uploads/2021/09/replace-proxies2-300x50.jpg 300w" sizes="(max-width: 571px) 100vw, 571px" /></p>
<ul>
<li><strong>方案 2（多个）：</strong> 您可以在下框中手动输入要替换的 IP。这样就可以同时替换多个代理服务器。输入要替换的 IP，然后按 "提交"。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8022" src="https://www.proxysp.com/wp-content/uploads/2021/09/replace-proxies3.jpg" alt="replace proxies3" width="570" height="273" srcset="https://proxysp.com/wp-content/uploads/2021/09/replace-proxies3.jpg 570w, https://proxysp.com/wp-content/uploads/2021/09/replace-proxies3-300x144.jpg 300w" sizes="(max-width: 570px) 100vw, 570px" /></p>
<p>4.处理请求后，我们的系统将在您的控制面板中为您提供一个新 IP。请注意，在新代理交付之前，更换过程可能需要 10 分钟。</p>
<hr />
<h3 class="heading">如何取消代理？</h3>
<p>在取消代理之前，请参阅本文了解以下信息 <a href="https://www.proxysp.com/blazingseo-proxies-troubleshooting/" target="_blank" rel="noopener">排除代理故障</a>.我们很乐意与您合作，解决您在代理方面遇到的任何问题，无论是功能问题还是财务成本问题。</p>
<p>如果您确定要取消代理，有两种方法可供选择。请参阅下面列出的方法：</p>
<hr />
<p><strong>通过代理控制面板取消：</strong></p>
<p>1.登录代理控制面板。</p>
<p>2.选择 "管理计划 "下的 "升级计划"：</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8024" src="https://www.proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Proxy-Dashboard1.jpg" alt="Cancelling Through The Proxy Dashboard1" width="625" height="419" srcset="https://proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Proxy-Dashboard1.jpg 625w, https://proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Proxy-Dashboard1-300x201.jpg 300w" sizes="(max-width: 625px) 100vw, 625px" /></p>
<p>3.点击红色的 "取消 "按钮：</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8025" src="https://www.proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Proxy-Dashboard2.jpg" alt="Cancelling Through The Proxy Dashboard2" width="577" height="158" srcset="https://proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Proxy-Dashboard2.jpg 577w, https://proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Proxy-Dashboard2-300x82.jpg 300w" sizes="(max-width: 577px) 100vw, 577px" /></p>
<p>4.会弹出一个警告。然后输入取消原因，点击 "是，请取消我的代理"：</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8026" src="https://www.proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Proxy-Dashboard3.jpg" alt="Cancelling Through The Proxy Dashboard3" width="414" height="461" srcset="https://proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Proxy-Dashboard3.jpg 414w, https://proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Proxy-Dashboard3-269x300.jpg 269w" sizes="(max-width: 414px) 100vw, 414px" /></p>
<hr />
<p><strong>通过客户端区域取消</strong></p>
<p>1.客户区可通过以下链接访问 <a href="https://billing.blazingseollc.com/hosting/clientarea.php" target="_blank" rel="nofollow noopener">这里</a>.</p>
<p>2.然后点击 "服务"：</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8027" src="https://www.proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Client-Area1.jpg" alt="Cancelling Through The Client Area1" width="589" height="339" srcset="https://proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Client-Area1.jpg 589w, https://proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Client-Area1-300x173.jpg 300w" sizes="(max-width: 589px) 100vw, 589px" /></p>
<p>3.然后您将找到要取消的活动服务：</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8028" src="https://www.proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Client-Area3.jpg" alt="V" width="623" height="420" srcset="https://proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Client-Area3.jpg 623w, https://proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Client-Area3-300x202.jpg 300w" sizes="(max-width: 623px) 100vw, 623px" /></p>
<p>4.然后点击 "申请取消"：</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8029" src="https://www.proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Client-Area3-1.jpg" alt="Cancelling Through The Client Area3" width="623" height="420" srcset="https://proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Client-Area3-1.jpg 623w, https://proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Client-Area3-1-300x202.jpg 300w" sizes="(max-width: 623px) 100vw, 623px" /></p>
<p>5.在下一页，输入取消原因，然后点击 "申请取消"：</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8030" src="https://www.proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Client-Area4.jpg" alt="Cancelling Through The Client Area4" width="628" height="337" srcset="https://proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Client-Area4.jpg 628w, https://proxysp.com/wp-content/uploads/2021/09/Cancelling-Through-The-Client-Area4-300x161.jpg 300w" sizes="(max-width: 628px) 100vw, 628px" /></p>
<hr />
<h3 class="heading">如何升级我的代理？</h3>
<p>如果您想升级代理服务器，请按照以下步骤操作：</p>
<p>1.登录代理仪表板</p>
<p>2.选择 "管理计划 "下的 "升级计划"：</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8031" src="https://www.proxysp.com/wp-content/uploads/2021/09/upgrade-Blazing-SEO-proxies1.jpg" alt="upgrade Blazing SEO proxies1" width="621" height="435" srcset="https://proxysp.com/wp-content/uploads/2021/09/upgrade-Blazing-SEO-proxies1.jpg 621w, https://proxysp.com/wp-content/uploads/2021/09/upgrade-Blazing-SEO-proxies1-300x210.jpg 300w" sizes="(max-width: 621px) 100vw, 621px" /></p>
<p>3.如果您希望将代理服务器套餐从 10 个升级到 15 个，请在要升级的套餐中输入 "新数量 "15，然后点击升级按钮继续：</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8032" src="https://www.proxysp.com/wp-content/uploads/2021/09/upgrade-Blazing-SEO-proxies2.jpg" alt="upgrade Blazing SEO proxies2" width="447" height="135" srcset="https://proxysp.com/wp-content/uploads/2021/09/upgrade-Blazing-SEO-proxies2.jpg 447w, https://proxysp.com/wp-content/uploads/2021/09/upgrade-Blazing-SEO-proxies2-300x91.jpg 300w" sizes="(max-width: 447px) 100vw, 447px" /></p>
<p>4.将生成一张升级发票。您需要支付发票才能激活升级后的代理：</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8033" src="https://www.proxysp.com/wp-content/uploads/2021/09/upgrade-Blazing-SEO-proxies3.jpg" alt="upgrade Blazing SEO proxies3" width="349" height="431" srcset="https://proxysp.com/wp-content/uploads/2021/09/upgrade-Blazing-SEO-proxies3.jpg 349w, https://proxysp.com/wp-content/uploads/2021/09/upgrade-Blazing-SEO-proxies3-243x300.jpg 243w" sizes="(max-width: 349px) 100vw, 349px" /></p>
<p>5.支付发票后，代理将自动添加到您的账户中，您可以选择代理地点！</p>
<hr />
<h3 class="heading">如何降级我的代理？</h3>
<p>如果您想降级代理服务器，请按照以下步骤操作：</p>
<p>1.登录代理仪表板</p>
<p>2.选择 "管理计划 "下的 "升级计划</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8034" src="https://www.proxysp.com/wp-content/uploads/2021/09/downgrade-Blazing-SEO-proxies1.jpg" alt="downgrade Blazing SEO proxies1" width="611" height="403" srcset="https://proxysp.com/wp-content/uploads/2021/09/downgrade-Blazing-SEO-proxies1.jpg 611w, https://proxysp.com/wp-content/uploads/2021/09/downgrade-Blazing-SEO-proxies1-300x198.jpg 300w" sizes="(max-width: 611px) 100vw, 611px" /></p>
<p>3.要减少账户中的代理数量，请输入<strong> 新号码</strong> 的代理。  例如，如果您目前有 20 个代理，并希望将代理包中的代理总数降级为 15 个，请在下图所示字段中输入数字 "15"。然后点击<strong>降级</strong>'继续。</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8035" src="https://www.proxysp.com/wp-content/uploads/2021/09/downgrade-Blazing-SEO-proxies2.jpg" alt="downgrade Blazing SEO proxies2" width="609" height="131" srcset="https://proxysp.com/wp-content/uploads/2021/09/downgrade-Blazing-SEO-proxies2.jpg 609w, https://proxysp.com/wp-content/uploads/2021/09/downgrade-Blazing-SEO-proxies2-300x65.jpg 300w" sizes="(max-width: 609px) 100vw, 609px" /></p>
<p>4.现在，如果某些 IP 运行得比其他 IP 好，您可以选择性地指定要保留的 IP</p>
<ul>
<li>按指示输入 IP 列表。其中只应包括 IP，不应包括端口号。</li>
<li>注意：如果将此字段留空，则将随机选择 IP 从您的账户中删除。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8036" src="https://www.proxysp.com/wp-content/uploads/2021/09/downgrade-Blazing-SEO-proxies3.jpg" alt="downgrade Blazing SEO proxies3" width="542" height="392" srcset="https://proxysp.com/wp-content/uploads/2021/09/downgrade-Blazing-SEO-proxies3.jpg 566w, https://proxysp.com/wp-content/uploads/2021/09/downgrade-Blazing-SEO-proxies3-300x217.jpg 300w" sizes="(max-width: 542px) 100vw, 542px" /></p>
<p>5.点击<strong>降级</strong>'，就可以了！  您的账户将按比例扣除剩余账单期的费用。</p>
<p>请注意，代理将在计费周期结束时降级，在此之前可以使用。</p>
<hr />
<h2 class="heading">为什么我的代理在某些网站上不起作用？</h2>
<p data-identifyelement="476"><span data-identifyelement="477">您的代理是否能在某些网站上工作，但不能 <strong data-identifyelement="478">不</strong> 为他人工作？</span></p>
<p data-identifyelement="479"><span data-identifyelement="480">您的代理服务器以前能用，但现在不能用了吗？</span></p>
<p data-identifyelement="486"><span data-identifyelement="487">如果您对上述两个问题的回答都是 "是"，那么您的代理很可能在您使用代理的网站上被禁止（或 "屏蔽"）了。在本部分中，我们将讨论 <em data-identifyelement="489">为什么</em> 以及 <em data-identifyelement="490">什么</em> 你能做些什么？</span></p>
<p data-identifyelement="491"><span data-identifyelement="492">如果您对上述两个问题的回答都是 "否"，那么请访问我们的文章，了解为什么您的代理服务器可能无法提供与任何网站的连接。您可以阅读 <a href="https://www.proxysp.com/blazingseo-proxies-troubleshooting/#why-are-my-proxies-not-working" target="_blank" rel="noopener">这里</a>. </span></p>
<hr />
<h3 data-identifyelement="499"><span data-identifyelement="500"><strong>我为什么会被禁言？</strong></span></h3>
<p data-identifyelement="502"><span data-identifyelement="503">代理服务器被禁用的原因有很多，其中有些是可以预见的、显而易见的，而其他原因只是理论上的猜测。以下是几个原因：</span></p>
<p data-identifyelement="509"><strong>1.您使用代理服务器的速度太快</strong></p>
<p data-identifyelement="516"><span data-identifyelement="517">在网站上被禁用的主要原因之一是您的软件在特定网站上的运行速度过快。网站不会容忍大量的并行连接，因为这会对其服务造成损害。试想一下，如果一个网站允许一个 IP 地址以每秒 [100 万次] 的速度连接到该网站，那么您的软件将被禁用。 <strong data-identifyelement="519">第二个 </strong>哇很明显，他们会对这个 IP 地址下达禁令或屏蔽，使其无法再连接到他们的网站。</span></p>
<p data-identifyelement="520"><span data-identifyelement="521">使用代理服务器连接网站的适当速度是多少？遗憾的是，这个问题很难回答，但我们建议大家通过自己的实验来找出合适的速度：</span></p>
<ol data-identifyelement="523">
<li data-identifyelement="524"><span data-identifyelement="525">将软件的运行速度设置为不会导致禁用的慢速（例如：每小时 1 个请求）</span></li>
<li data-identifyelement="527"><span data-identifyelement="528">如果没有收到禁言请求，则提高禁言率（例如：每小时 2 次请求）。</span></li>
<li data-identifyelement="530"><span data-identifyelement="531">重复上述操作，直到收到禁言令，然后将费率设置为之前的费率。</span></li>
</ol>
<hr />
<p data-identifyelement="533"><span data-identifyelement="534"> </span><strong>2.您的运行速度很慢，一些代理服务器可以正常工作，但其他代理服务器却不行</strong></p>
<p data-identifyelement="543"><span data-identifyelement="544">我们经常收到的下一个问题是，客户会问为什么 <em data-identifyelement="546">一些</em> 的代理服务器工作，以及为什么有些代理服务器会被禁用。这是 IPv4 地址模式工作方式的不幸副作用，也是它影响代理服务器的原因。</span></p>
<p data-identifyelement="547"><span data-identifyelement="548">代理业务中有两个常用术语：</span></p>
<ol data-identifyelement="550">
<li data-identifyelement="551"><span data-identifyelement="552">子网（A、B、C 子网 <a href="https://www.tutorialspoint.com/ipv4/ipv4_subnetting.htm" target="_blank" rel="nofollow noopener" data-identifyelement="554">点击此处了解更多信息</a>)</span></li>
<li data-identifyelement="555"><span data-identifyelement="556">互联网服务提供商（或 ASN）。举例说明：  Verizon 是一家 ISP；  <a href="https://whois.arin.net/rest/org/SL-1146/nets" target="_blank" rel="nofollow noopener" data-identifyelement="558">Sprious 是一家互联网服务提供商</a>等等</span></li>
</ol>
<p data-identifyelement="563"><span data-identifyelement="564">为什么子网和 ISP（互联网服务提供商）与代理服务器有关？这是因为使用代理服务器的网站更容易发现您与我们的其他代理服务器客户共享同一个 ISP 或子网，而这些客户也在使用代理服务器进行相同的操作。</span></p>
<p data-identifyelement="570"><span data-identifyelement="571">鉴于代理行业在很大程度上是由某些利基市场（Scraping、社交媒体营销等）驱动的，许多客户使用代理服务器与您的使用情况相同的情况非常普遍。因此，当这种情况发生时，您的代理速度会相互产生负面影响 <strong data-identifyelement="573">因为您与使用相同用例的其他客户共享同一子网或 ISP</strong>.</span></p>
<p data-identifyelement="578"><span data-identifyelement="579">您能为此做些什么？请继续阅读！</span></p>
<hr />
<h3 data-identifyelement="584"><span data-identifyelement="585"><strong>代理服务器被禁用怎么办？</strong></span></h3>
<p data-identifyelement="591"><span data-identifyelement="592">在本节中，我们将介绍使用 Blazing SEO 代理更成功的各种选项：</span></p>
<p><span data-identifyelement="596">1.从第一天起，Blazing SEO 就把让客户能够自由地进行以下操作放在首位 <strong data-identifyelement="598">自然而然</strong> 如果有任何代理因故失效，则更换代理。</span></p>
<p><span data-identifyelement="600">2.如果替换品用完，请联系我们，我们的支持团队将协助您恢复替换品。</span></p>
<p><span data-identifyelement="604">3.降低代理速度：  如上一节所述，有时只需稍稍放慢代理速度即可实现最大吞吐量。</span></p>
<p><span data-identifyelement="607">4.联系我们 <em>严肃</em>!</span></p>
<ul>
<li><span data-identifyelement="612">如果您现在使用代理服务器的价格存在问题，请联系我们，我们可以讨论定制价格，让您获得最大利润。</span></li>
<li><span data-identifyelement="615">我们可以为您提供一些策略（无需额外费用），让您的账户获得更好的代理服务器。这包括仅向您提供来自某些 ISP/ASN 的 IP，以及仅向您提供来自某些子网的 IP，这些似乎更适合您的使用情况。</span></li>
<li><span data-identifyelement="619">某些 ISP 或子网上的某些 IP 比其他 IP 更好用的原因是，与我们合作的某些 ISP 因某些使用情况而被列入 "黑名单"。通过对账户进行配置，使其接收来自适合您的 ISP/子网的 IP，您就可以从根本上避免接收来自 "黑名单 "ISP/子网的 IP。</span></li>
</ul>
<div class="hs-callout-type-tip" data-hs-callout-type="tip" data-identifyelement="621">
<p data-identifyelement="622"><span data-identifyelement="623">您知道吗？  Blazing SEO 的 IP 遍布全球：</span></p>
<p><span data-identifyelement="627">1.7 个不同的 ISP/ASN</span></p>
<p><span data-identifyelement="630">2.数千个独特的 C 级子网络。看看我们的一个合作伙伴的 <a href="https://whois.arin.net/rest/org/SL-1146/nets" target="_blank" rel="nofollow noopener" data-identifyelement="632">这里的知识产权多样性</a>.</span></p>
</div>
<div class="su-heading su-heading-style-modern-2-orange su-heading-align-center" id="" style="font-size:30px;margin-bottom:20px"><div class="su-heading-inner">常见问题</div></div>
<p class="heading"><strong>1.如何在浏览器中切换代理？</strong></p>
<p>我们建议使用 FoxyProxy 插件，以便 <a href="https://chrome.google.com/webstore/detail/foxyproxy-standard/gcknhkkoolaabfmlnjonogaaifnjlfnp?hl=en" target="_blank" rel="nofollow noopener">铬</a> 或 <a href="https://addons.mozilla.org/en-US/firefox/addon/foxyproxy-standard/" target="_blank" rel="nofollow noopener">火狐浏览器</a> 在浏览器中轻松切换代理服务器。</p>
<p class="heading"><strong>2.如果使用动态变化的个人 IP 会发生什么情况？<a class="solution-print--icon print--remove" title="打印本文"> </a></strong></p>
<p>如果您的 IP 地址是动态的（不断变化），则无法通过代理控制面板中的 IP 授权对代理进行授权。您需要使用用户名/密码授权。<br />
不过，目前我们的旋转代理无法使用用户名/密码，只能使用 IP 授权。因此，如果您使用的是动态 IP，那么旋转代理将无法为您工作。</p>
<p class="heading"><strong>3.如何知道我的代理设置是否正确？</strong></p>
<p>许多用户报告说他们的代理服务器 "不工作"，但实际上，这是服务器或用户错误造成的。  如果你在 whatismyipaddress.com 网站上看到了代理 IP，那么你就知道你已经正确设置了代理。</p>
<p><strong>4.何时更换账户中的代理？</strong></p>
<p>在极少数情况下，代理可能会因意外情况而离线。如果您急需使用账户中的所有可用代理，可以通过代理控制面板更换失效的代理，也可以按照下面的视频指南进行参考。此外，如果您发现某个 IP 地址不适合您的使用，也可以通过代理控制面板更换相应的 IP。</p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/oxL8OAxPeRQ?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<div class="icon">
<div class="icon">
<hr />
</div>
</div>
<div>
<h4 id="references" class="ftwp-heading">参考资料</h4>
<ul>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262800-how-do-i-use-proxies-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262800-how-do-i-use-proxies-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256632-how-do-i-authorize-my-proxies" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256632-how-do-i-authorize-my-proxies</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256617-how-do-i-use-and-test-my-proxies-in-a-browser" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256617-how-do-i-use-and-test-my-proxies-in-a-browser</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256637-how-can-i-switch-between-proxies-in-my-browser" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256637-how-can-i-switch-between-proxies-in-my-browser</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000263277-how-can-i-get-a-diverse-subnet-for-my-proxies" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000263277-how-can-i-get-a-diverse-subnet-for-my-proxies</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262801-how-do-i-test-proxies-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262801-how-do-i-test-proxies-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256599-how-do-i-replace-proxies-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256599-how-do-i-replace-proxies-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256601-how-do-i-cancel-proxies-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256601-how-do-i-cancel-proxies-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256602-how-do-i-upgrade-my-proxies-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256602-how-do-i-upgrade-my-proxies-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256600-how-do-i-downgrade-my-proxies" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256600-how-do-i-downgrade-my-proxies</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256620-what-happens-if-i-use-a-dynamic-changing-personal-ip" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256620-what-happens-if-i-use-a-dynamic-changing-personal-ip</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256627-why-are-my-proxies-not-working-on-some-sites" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256627-why-are-my-proxies-not-working-on-some-sites</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256629-how-do-i-know-if-i-set-up-my-proxies-correctly" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256629-how-do-i-know-if-i-set-up-my-proxies-correctly</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262804-when-should-i-replace-a-proxy-in-my-account-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262804-when-should-i-replace-a-proxy-in-my-account-</a></li>
</ul>
<hr />
</div>
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/how-to-use-blazingseo-proxies/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7670</post-id>	</item>
		<item>
		<title>How to Use OxyLabs Proxy [Part 2]: OxyLabs Residential Proxies Manual</title>
		<link>https://proxysp.com/zh/oxylabs-residential-proxies/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oxylabs-residential-proxies</link>
					<comments>https://proxysp.com/zh/oxylabs-residential-proxies/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[How to Use OxyLabs Proxy (OxyLabs User Manual Navigation)]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7621</guid>

					<description><![CDATA[想使用 OxyLabs 的住宅代理服务器？那么你一定不能错过这篇文章。它是最全面的 OxyLabs 住宅代理服务器用户指南。快速入门 这是...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/oxylabs-residential-proxies/"> <span class="screen-reader-text">如何使用 OxyLabs 代理服务器 [第 2 部分]：OxyLabs 住宅代理服务器使用手册</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>想使用 OxyLabs 的住宅代理服务器？那么你一定不能错过这篇文章。它是最全面的 OxyLabs 住宅代理用户指南。</p></blockquote>
<h2 id="quick-start">快速入门</h2>
<p>这是目前开始使用住宅代理的最快方法。您可以向 <code>https://ipinfo.io</code> 通过我们的 <a href="#basic-query">背面连接入口</a>.不要忘记更换 <code>用户名</code> 和 <code>密码</code> 使用代理用户凭据。</p>
<pre>curl -x pr.oxylabs.io:7777 -U "customer-USERNAME:PASSWORD" https://ipinfo.io
</pre>
<p>让我们使用来自法国的代理进行一次请求。您只需添加 <code>cc-FR</code> 到用户名字符串中。下面是 cURL 中的一个示例，以及 <a href="#select-country">这里</a> 可以找到其他语言的代码示例。</p>
<pre>curl -x pr.oxylabs.io:7777 -U "customer-USERNAME-cc-FR:PASSWORD" https://ipinfo.io
</pre>
<p>下面是另一个通过代理从英国伦敦发出请求的示例。添加 <code>cc-GB-city-london</code> 到用户名字符串，就可以做到这一点。点击 <a href="#select-city">这里</a> 获取更多关于如何掌握城市级代理定位的信息。</p>
<pre>curl -x pr.oxylabs.io:7777 -U "customer-USERNAME-cc-GB-city-london:PASSWORD" https://ipinfo.io
</pre>
<p>如果您想为多个请求保留同一个代理，该怎么办？ <a href="#session-control">会话控制</a> 使之成为可能。只需添加 <code>sessid-abc12345</code> 的用户名字符串，其中 <code>abc12345</code> 可以是任何随机字符串，只要您持续发送带有此字符串（会话 ID）的请求，我们就会尽力为您提供相同的代理 IP。</p>
<pre>curl -x pr.oxylabs.io:7777 -U "customer-USERNAME-sessid-randomString123:PASSWORD" https://ipinfo.io
</pre>
<p>查看我们的 <a href="#3rd-party-integrations">集成教程</a> 使用最流行的第三方工具，如 <a href="#multilogin">多重登录</a>, <a href="#shadowrocket">暗影火箭</a>或 <a href="#switchyomega">SwitchyOmega</a>.</p>
<p>如果您有任何其他问题，请联系您的客户经理或我们的支持团队，电话号码是 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a>.</p>
<p>要了解您的使用统计、生成流量、请求次数等信息，请登录 <a class="custom_link" href="https://dashboard.oxylabs.io/" target="_blank" rel="nofollow noopener">dashboard.oxylabs.io</a>.您还可以添加代理用户（子用户）并单独跟踪其统计数据。</p>
<hr />
<h2 id="backconnect-entry-node">反向连接入口节点</h2>
<pre>pr.oxylabs.io:7777
</pre>
<p>单个反向连接代理可通过用户名中的附加参数选择特定的国家或城市代理。这种方法还支持会话控制。以下是证书结构示例：</p>
<pre>customer-USERNAME-cc-US-city-CITY-sessid-abcde12345:PASSWORD
</pre>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code class="required">客户</code></code></td>
<td>用户名</td>
</tr>
<tr>
<td><code>cc</code></td>
<td>不区分大小写的 2 个字母的国家代码 <a class="custom_link" href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2" target="_blank" rel="nofollow noopener">3166-1 alpha-2 格式</a>.例如 <code>可选择丢弃</code> 德国、 <code>GB</code> 代表联合王国、 <code>TH</code> 泰国。有关如何使用国别代用指标的更多详情，请查阅 <a href="#select-country">这里</a>.</td>
</tr>
<tr>
<td><code>城市</code></td>
<td>不区分大小写的英文城市名称。该参数必须与 <code>cc</code> 以提高准确性。例如 <code>cc-GB-city-london</code> 英国伦敦 <code>cc-DE-city-berlin</code> 代表德国柏林。对于有两个以上单词的城市，请将空格替换为 <code>_</code>例如 <code>圣彼得堡市</code> 或 <code>里约热内卢市</code>.</p>
<p>我们支持世界上的每一个城市，但我们不保证在那里都有代理服务器。大多数热门城市都有代理服务器可供选择。作为参考，您可以查看 <a class="custom_link" href="https://docs.oxylabs.io/resources/supported_cities.csv" target="_blank" rel="noopener">此名单</a> 您可以找到哪些城市。点击 <a href="#select-city">这里</a> 以获取更多有关城市级目标定位的信息。</td>
</tr>
<tr>
<td><code>站</code></td>
<td>不区分大小写的美国州名，以 us_ 开头，例如 <code>美国加利福尼亚州</code>, <code>我们_伊利诺伊州</code>.可下载 TXT 格式的受支持城市完整列表 <a class="custom_link" href="https://docs.oxylabs.io/resources/us_states.txt" target="_blank" rel="nofollow noopener">这里</a>.</td>
</tr>
<tr>
<td><code>sessid</code></td>
<td>会话 ID，以便在下次查询时使用相同的 IP。会话将在 10 分钟后过期，过期后将为该 ID 分配一个新 IP。随机字符串；支持 0-9、A-z 字符。</td>
</tr>
<tr>
<td><code class="required">密码</code></code></td>
<td>密码</td>
</tr>
</tbody>
</table>
<p><code class="required">  </code> - 所需参数</p>
</div>
我们还支持按 ASN 号码定位。这样就可以选择特定运营商的代理。该功能可根据要求启用。</p>
<p>如果添加多个 <em>地点</em> 参数，系统将忽略所有参数，只有一个参数除外。因此，了解哪些参数会被优先处理非常重要。层次结构如下：</p>
<ol>
<li><code>城市</code></li>
<li><code>国</code></li>
<li><code>cc</code></li>
</ol>
<p>例如，如果您的查询包含以下参数 <code>客户名称-cc-美国-城市-巴黎-美国-加利福尼亚州</code>, 您将收到来自美国巴黎的代理服务器。</p>
<hr />
<h3 id="entry-node-for-china">中国入境节点</h3>
<pre>https://a81298871.com:8000 - 香港
</pre>
<pre>https://cnt9t1is.com:8000 - 北京
</pre>
<p>为了更好地连接中国，我们在香港和北京地区配置了入口节点。请注意，这是一个 HTTPS 代理节点。所有用户名参数都与普通入口节点相同。</p>
<p>请注意，某些第三方工具目前无法使用香港和北京的入口节点。可与上述入口节点配合使用的第三方工具有</p>
<ol>
<li style="list-style-type: none;">
<ol>
<li style="list-style-type: none;">
<ol>
<li><a href="#oxylabs-proxy-manager">Oxylabs 代理管理器</a></li>
<li><a href="#switchyomega">SwitchyOmega</a></li>
<li><a href="#shadowrocket">暗影火箭</a></li>
<li><a href="#postern">邮政</a></li>
</ol>
</li>
</ol>
</li>
</ol>
<p><span style="font-size: 16px;">我们目前正在修复支持 HTTPS 协议的其他集成。</span></p>
<p>如果您从中国连接到我们的住宅网络，但仍然遇到所提供的入口节点问题，请通过以下方式联系我们 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a> 我们将一起找出解决方案。</p>
<hr />
<h2 id="basic-query">基本查询</h2>
<p>基本查询只需通过 <code>用户名</code> 和 <code>暗号</code>.无需其他参数。这种查询将导致从一个随机 IP 地址（代理）发出请求。每次新请求都将使用不同的代理。</p>
<p>在本例中，查询 <code>ipinfo.io</code> 是通过随机 IP 执行的：</p>
<pre>curl -x pr.oxylabs.io:7777 -U "customer-USERNAME:PASSWORD" https://ipinfo.io
</pre>
<hr />
<h2 id="select-country">选择国家</h2>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8123 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxies-Select-Country.png" alt="OxyLabs Residential Proxies Select Country" width="270" height="22" /></p>
<p>添加 <code>cc</code> 标记可用于指定使用哪个国家的 IP 处理请求。该参数的值是一个不区分大小写的双字母国家代码。 <a class="custom_link" href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2" target="_blank" rel="nofollow noopener">3166-1 alpha-2 格式</a>.例如 <code>可选择丢弃</code> 德国、 <code>GB</code> 联合王国、 <code>TH</code> 为泰国代理。更多详情，请参阅示例。</p>
<p>在本例中，查询 <code>ipinfo.io</code> 是从德国的一个随机 IP 地址执行的：</p>
<pre>curl -x pr.oxylabs.io:7777 -U "customer-USERNAME-cc-DE:PASSWORD" https://ipinfo.io
</pre>
<hr />
<h2 id="select-state">选择国家</h2>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8124 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxies-Select-State.png" alt="OxyLabs Residential Proxies Select State" width="272" height="24" /></p>
<p>要从指定的美国州获取代理，请添加 <code>站</code> 标记到授权字符串中。例如 <code>美国加利福尼亚州</code>, <code>我们_伊利诺伊州</code>.可下载 TXT 格式的受支持城市完整列表 <a class="custom_link" href="https://docs.oxylabs.io/resources/us_states.txt" target="_blank" rel="nofollow noopener">这里</a>.</p>
<p>在本例中，查询 <code>ipinfo.io</code> 是从美国加利福尼亚州的一个随机 IP 地址执行的：</p>
<pre>curl -x pr.oxylabs.io:7777 -U "customer-USERNAME-st-us_california:PASSWORD" https://ipinfo.io
</pre>
<hr />
<h2 id="select-city">选择城市</h2>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8125 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxies-Select-City.png" alt="OxyLabs Residential Proxies Select City" width="271" height="31" /></p>
<p>为了缩小城市一级的目标范围，一个 <code>城市</code> 参数。例如 <code>cc-DE-city-munich</code> 表示将由德国慕尼黑的代理处理查询。我们支持世界上的所有城市，但并不保证在这些城市都有代理。大多数热门城市都有代理服务器可供选择。</p>
<p>以下是几个有效组合的例子 <code>cc</code> 和 <code>城市</code> 参数<br />
<code>cc-US-city-los_angeles</code><br />
<code>cc-IT-city-rome</code><br />
<code>cc-TH-city-bangkok</code><br />
<code>cc-JP-city-tokyo</code><br />
<code>cc-AU-城市-悉尼</code><br />
<code>cc-ES-city-barcelona</code></p>
<p>在本例中，查询 <code>ipinfo.io</code> 是从德国慕尼黑的一个随机 IP 地址执行的：</p>
<pre>curl -x pr.oxylabs.io:7777 -U "customer-USERNAME-cc-DE-city-munich:PASSWORD" https://ipinfo.io
</pre>
<hr />
<h2 id="session-control">会话控制</h2>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8126 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxies-Session-Control.png" alt="OxyLabs Residential Proxies Session Control" width="268" height="29" /></p>
<p>添加 <code>sessid</code> 参数，例如 <code>sessid-abc12345</code>启用会话控制。这意味着，代理不会随以下请求而改变。下面的示例展示了会话控制的工作原理：</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8127" src="https://www.proxysp.com/wp-content/uploads/2021/09/session-control.gif" alt="session-control" width="853" height="378" /></p>
<p>只要有活动（请求），系统就会保持与特定会话 ID 关联的相同 IP。60 秒无活动后，IP 会自动更换为另一个。</p>
<p>例如* 您的初始查询与 <code>sessid-random123</code> 获得分配的代理 IP 地址 <code>1.1.1.1</code> * 只要您不断发送具有相同会话 ID 的新请求，且该 IP 地址在线并可用，系统就会通过以下方式路由您的查询 <code>1.1.1.1</code> * 如果您停止发送请求或 IP 地址不再在线，系统将在 60 秒后分配一个新的代理 IP。* 这意味着您下一次查询 <code>sessid-random123</code> 将通过不同的 IP 地址路由。</p>
<p>标准会话时间为 10 分钟，但可以延长。请联系您的客户经理了解详情。</p>
<p>第一次请求将选择德国 IP，然后新的查询将保留相同的 IP（会话控制）：</p>
<pre>curl -x pr.oxylabs.io:7777 -U "customer-USERNAME-cc-DE-sessid-abcde12345:PASSWORD" https://ipinfo.io
</pre>
<hr />
<h2 id="country-specific-entry-nodes">国家特定入口节点</h2>
<h3 id="random-proxy-entry-nodes">随机代理入口节点</h3>
<p>Oxylabs 住宅网络覆盖全球几乎所有国家。针对特定国家的随机代理入口点会在每次新请求时返回新 IP。</p>
<p>您无需传递任何其他参数，只需 <code>客户用户名：密码</code>.如果您已将 IP 列入白名单，则无需传递登录凭证。特定国家/地区的端口不支持城市级结果。</p>
<p>请查看仪表板上的入口点信息，或下载 XLS 格式的随机入口点完整列表 <a class="custom_link" href="https://docs.oxylabs.io/resources/random-proxy-entry-points-oxylabs.xls" target="_blank" rel="nofollow noopener">这里</a>.</p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="443">
<tbody>
<tr>
<td style="font-weight: 400;" width="138">随机</td>
<td style="font-weight: 400;" width="140">美国</td>
<td style="font-weight: 400;" width="165">加拿大</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">pr.oxylabs.io:7777</td>
<td style="font-weight: 400;" width="140">us-pr.oxylabs.io:10000</td>
<td style="font-weight: 400;" width="165">ca-pr.oxylabs.io:30000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">GB</td>
<td style="font-weight: 400;" width="140">德国</td>
<td style="font-weight: 400;" width="165">法国</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">gb-pr.oxylabs.io:20000</td>
<td style="font-weight: 400;" width="140">de-pr.oxylabs.io:30000</td>
<td style="font-weight: 400;" width="165">fr-pr.oxylabs.io:40000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">西班牙</td>
<td style="font-weight: 400;" width="140">意大利</td>
<td style="font-weight: 400;" width="165">瑞典</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">es-pr.oxylabs.io:10000</td>
<td style="font-weight: 400;" width="140">it-pr.oxylabs.io:20000</td>
<td style="font-weight: 400;" width="165">se-pr.oxylabs.io:30000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">希腊</td>
<td style="font-weight: 400;" width="140">葡萄牙</td>
<td style="font-weight: 400;" width="165">荷兰</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">gr-pr.oxylabs.io:40000</td>
<td style="font-weight: 400;" width="140">pt-pr.oxylabs.io:10000</td>
<td style="font-weight: 400;" width="165">nl-pr.oxylabs.io:20000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">比利时</td>
<td style="font-weight: 400;" width="140">俄罗斯</td>
<td style="font-weight: 400;" width="165">乌克兰</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">be-pr.oxylabs.io:30000</td>
<td style="font-weight: 400;" width="140">ru-pr.oxylabs.io:40000</td>
<td style="font-weight: 400;" width="165">ua-pr.oxylabs.io:10000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">波兰</td>
<td style="font-weight: 400;" width="140">以色列</td>
<td style="font-weight: 400;" width="165">土耳其</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">pl-pr.oxylabs.io:20000</td>
<td style="font-weight: 400;" width="140">il-pr.oxylabs.io:20000</td>
<td style="font-weight: 400;" width="165">tr-pr.oxylabs.io:30000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">澳大利亚</td>
<td style="font-weight: 400;" width="140">马来西亚</td>
<td style="font-weight: 400;" width="165">泰国</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">au-pr.oxylabs.io:40000</td>
<td style="font-weight: 400;" width="140">my-pr.oxylabs.io:10000</td>
<td style="font-weight: 400;" width="165">th-pr.oxylabs.io:20000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">韩国</td>
<td style="font-weight: 400;" width="140">日本</td>
<td style="font-weight: 400;" width="165">菲律宾</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">kr-pr.oxylabs.io:30000</td>
<td style="font-weight: 400;" width="140">jp-pr.oxylabs.io:40000</td>
<td style="font-weight: 400;" width="165">ph-pr.oxylabs.io:10000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">新加坡</td>
<td style="font-weight: 400;" width="140">中国</td>
<td style="font-weight: 400;" width="165">香港</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">sg-pr.oxylabs.io:20000</td>
<td style="font-weight: 400;" width="140">cn-pr.oxylabs.io:30000</td>
<td style="font-weight: 400;" width="165">hk-pr.oxylabs.io:40000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">台湾</td>
<td style="font-weight: 400;" width="140">印度</td>
<td style="font-weight: 400;" width="165">巴基斯坦</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">tw-pr.oxylabs.io:10000</td>
<td style="font-weight: 400;" width="140">in-pr.oxylabs.io:20000</td>
<td style="font-weight: 400;" width="165">pk-pr.oxylabs.io:30000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">伊朗</td>
<td style="font-weight: 400;" width="140">印度尼西亚</td>
<td style="font-weight: 400;" width="165">阿塞拜疆</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">ir-pr.oxylabs.io:40000</td>
<td style="font-weight: 400;" width="140">id-pr.oxylabs.io:10000</td>
<td style="font-weight: 400;" width="165">az-pr.oxylabs.io:20000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">哈萨克斯坦</td>
<td style="font-weight: 400;" width="140">阿联酋</td>
<td style="font-weight: 400;" width="165">墨西哥</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">kz-pr.oxylabs.io:30000</td>
<td style="font-weight: 400;" width="140">ae-pr.oxylabs.io:40000</td>
<td style="font-weight: 400;" width="165">mx-pr.oxylabs.io:10000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">巴西</td>
<td style="font-weight: 400;" width="140">阿根廷</td>
<td style="font-weight: 400;" width="165">智利</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">br-pr.oxylabs.io:20000</td>
<td style="font-weight: 400;" width="140">ar-pr.oxylabs.io:30000</td>
<td style="font-weight: 400;" width="165">cl-pr.oxylabs.io:40000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">秘鲁</td>
<td style="font-weight: 400;" width="140">厄瓜多尔</td>
<td style="font-weight: 400;" width="165">哥伦比亚</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">pe-pr.oxylabs.io:10000</td>
<td style="font-weight: 400;" width="140">ec-pr.oxylabs.io:20000</td>
<td style="font-weight: 400;" width="165">co-pr.oxylabs.io:30000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">南非</td>
<td style="font-weight: 400;" width="140">埃及</td>
<td style="font-weight: 400;" width="165">安哥拉</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">za-pr.oxylabs.io:40000</td>
<td style="font-weight: 400;" width="140">eg-pr.oxylabs.io:10000</td>
<td style="font-weight: 400;" width="165">ao-pr.oxylabs.io:40000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">喀麦隆</td>
<td style="font-weight: 400;" width="140">中非共和国</td>
<td style="font-weight: 400;" width="165">乍得</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">cm-pr.oxylabs.io:41000</td>
<td style="font-weight: 400;" width="140">cf-pr.oxylabs.io:42000</td>
<td style="font-weight: 400;" width="165">td-pr.oxylabs.io:43000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">贝宁</td>
<td style="font-weight: 400;" width="140">埃塞俄比亚</td>
<td style="font-weight: 400;" width="165">吉布提</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">bj-pr.oxylabs.io:44000</td>
<td style="font-weight: 400;" width="140">et-pr.oxylabs.io:45000</td>
<td style="font-weight: 400;" width="165">dj-pr.oxylabs.io:46000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">冈比亚</td>
<td style="font-weight: 400;" width="140">加纳</td>
<td style="font-weight: 400;" width="165">科特迪瓦</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">gm-pr.oxylabs.io:47000</td>
<td style="font-weight: 400;" width="140">gh-pr.oxylabs.io:48000</td>
<td style="font-weight: 400;" width="165">ci-pr.oxylabs.io:49000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">肯尼亚</td>
<td style="font-weight: 400;" width="140">利比里亚</td>
<td style="font-weight: 400;" width="165">马达加斯加</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">ke-pr.oxylabs.io:10000</td>
<td style="font-weight: 400;" width="140">lr-pr.oxylabs.io:11000</td>
<td style="font-weight: 400;" width="165">mg-pr.oxylabs.io:12000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">马里</td>
<td style="font-weight: 400;" width="140">毛里塔尼亚</td>
<td style="font-weight: 400;" width="165">毛里求斯</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">ml-pr.oxylabs.io:13000</td>
<td style="font-weight: 400;" width="140">mr-pr.oxylabs.io:14000</td>
<td style="font-weight: 400;" width="165">mu-pr.oxylabs.io:15000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">摩洛哥</td>
<td style="font-weight: 400;" width="140">莫桑比克</td>
<td style="font-weight: 400;" width="165">尼日利亚</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">ma-pr.oxylabs.io:16000</td>
<td style="font-weight: 400;" width="140">mz-pr.oxylabs.io:17000</td>
<td style="font-weight: 400;" width="165">ng-pr.oxylabs.io:18000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">塞内加尔</td>
<td style="font-weight: 400;" width="140">塞舌尔</td>
<td style="font-weight: 400;" width="165">津巴布韦</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">sn-pr.oxylabs.io:19000</td>
<td style="font-weight: 400;" width="140">sc-pr.oxylabs.io:20000</td>
<td style="font-weight: 400;" width="165">zw-pr.oxylabs.io:21000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">南苏丹</td>
<td style="font-weight: 400;" width="140">苏丹</td>
<td style="font-weight: 400;" width="165">多哥</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">ss-pr.oxylabs.io:22000</td>
<td style="font-weight: 400;" width="140">sd-pr.oxylabs.io:23000</td>
<td style="font-weight: 400;" width="165">tg-pr.oxylabs.io:24000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">突尼斯</td>
<td style="font-weight: 400;" width="140">乌干达</td>
<td style="font-weight: 400;" width="165">赞比亚</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">tn-pr.oxylabs.io:25000</td>
<td style="font-weight: 400;" width="140">ug-pr.oxylabs.io:26000</td>
<td style="font-weight: 400;" width="165">zm-pr.oxylabs.io:27000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">阿富汗</td>
<td style="font-weight: 400;" width="140">巴林</td>
<td style="font-weight: 400;" width="165">孟加拉国</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">af-pr.oxylabs.io:28000</td>
<td style="font-weight: 400;" width="140">bh-pr.oxylabs.io:29000</td>
<td style="font-weight: 400;" width="165">bd-pr.oxylabs.io:30000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">亚美尼亚</td>
<td style="font-weight: 400;" width="140">不丹</td>
<td style="font-weight: 400;" width="165">缅甸</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">am-pr.oxylabs.io:31000</td>
<td style="font-weight: 400;" width="140">bt-pr.oxylabs.io:32000</td>
<td style="font-weight: 400;" width="165">mm-pr.oxylabs.io:33000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">柬埔寨</td>
<td style="font-weight: 400;" width="140">格鲁吉亚</td>
<td style="font-weight: 400;" width="165">伊拉克</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">kh-pr.oxylabs.io:34000</td>
<td style="font-weight: 400;" width="140">ge-pr.oxylabs.io:36000</td>
<td style="font-weight: 400;" width="165">iq-pr.oxylabs.io:37000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">约旦</td>
<td style="font-weight: 400;" width="140">黎巴嫩</td>
<td style="font-weight: 400;" width="165">马尔代夫</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">jo-pr.oxylabs.io:38000</td>
<td style="font-weight: 400;" width="140">lb-pr.oxylabs.io:39000</td>
<td style="font-weight: 400;" width="165">mv-pr.oxylabs.io:40000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">蒙古</td>
<td style="font-weight: 400;" width="140">阿曼</td>
<td style="font-weight: 400;" width="165">卡塔尔</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">mn-pr.oxylabs.io:41000</td>
<td style="font-weight: 400;" width="140">om-pr.oxylabs.io:42000</td>
<td style="font-weight: 400;" width="165">qa-pr.oxylabs.io:43000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">沙特阿拉伯</td>
<td style="font-weight: 400;" width="140">越南</td>
<td style="font-weight: 400;" width="165">土库曼斯坦</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">sa-pr.oxylabs.io:44000</td>
<td style="font-weight: 400;" width="140">vn-pr.oxylabs.io:45000</td>
<td style="font-weight: 400;" width="165">tm-pr.oxylabs.io:46000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">乌兹别克斯坦</td>
<td style="font-weight: 400;" width="140">也门</td>
<td style="font-weight: 400;" width="165">阿尔巴尼亚</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">uz-pr.oxylabs.io:47000</td>
<td style="font-weight: 400;" width="140">ye-pr.oxylabs.io:48000</td>
<td style="font-weight: 400;" width="165">al-pr.oxylabs.io:49000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">安道尔</td>
<td style="font-weight: 400;" width="140">奥地利</td>
<td style="font-weight: 400;" width="165">波斯尼亚和黑塞哥维那</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">ad-pr.oxylabs.io:10000</td>
<td style="font-weight: 400;" width="140">at-pr.oxylabs.io:11000</td>
<td style="font-weight: 400;" width="165">ba-pr.oxylabs.io:13000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">保加利亚</td>
<td style="font-weight: 400;" width="140">白俄罗斯</td>
<td style="font-weight: 400;" width="165">克罗地亚</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">bg-pr.oxylabs.io:14000</td>
<td style="font-weight: 400;" width="140">by-pr.oxylabs.io:15000</td>
<td style="font-weight: 400;" width="165">hr-pr.oxylabs.io:16000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">塞浦路斯</td>
<td style="font-weight: 400;" width="140">捷克共和国</td>
<td style="font-weight: 400;" width="165">丹麦</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">cy-pr.oxylabs.io:35000</td>
<td style="font-weight: 400;" width="140">cz-pr.oxylabs.io:18000</td>
<td style="font-weight: 400;" width="165">dk-pr.oxylabs.io:19000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">爱沙尼亚</td>
<td style="font-weight: 400;" width="140">芬兰</td>
<td style="font-weight: 400;" width="165">匈牙利</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">ee-pr.oxylabs.io:20000</td>
<td style="font-weight: 400;" width="140">fi-pr.oxylabs.io:21000</td>
<td style="font-weight: 400;" width="165">hu-pr.oxylabs.io:23000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">冰岛</td>
<td style="font-weight: 400;" width="140">爱尔兰</td>
<td style="font-weight: 400;" width="165">拉脱维亚</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">is-pr.oxylabs.io:24000</td>
<td style="font-weight: 400;" width="140">iepr.oxylabs.io:25000</td>
<td style="font-weight: 400;" width="165">lv-pr.oxylabs.io:26000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">列支敦士登</td>
<td style="font-weight: 400;" width="140">立陶宛</td>
<td style="font-weight: 400;" width="165">卢森堡</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">li-pr.oxylabs.io:27000</td>
<td style="font-weight: 400;" width="140">lt-pr.oxylabs.io:28000</td>
<td style="font-weight: 400;" width="165">lu-pr.oxylabs.io:29000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">马耳他</td>
<td style="font-weight: 400;" width="140">摩纳哥</td>
<td style="font-weight: 400;" width="165">摩尔多瓦</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">mt-pr.oxylabs.io:30000</td>
<td style="font-weight: 400;" width="140">mc-pr.oxylabs.io:31000</td>
<td style="font-weight: 400;" width="165">md-pr.oxylabs.io:32000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">黑山共和国</td>
<td style="font-weight: 400;" width="140">挪威</td>
<td style="font-weight: 400;" width="165">罗马尼亚</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">me-pr.oxylabs.io:33000</td>
<td style="font-weight: 400;" width="140">no-pr.oxylabs.io:34000</td>
<td style="font-weight: 400;" width="165">ro-pr.oxylabs.io:35000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">塞尔维亚</td>
<td style="font-weight: 400;" width="140">斯洛伐克</td>
<td style="font-weight: 400;" width="165">斯洛文尼亚</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">rs-pr.oxylabs.io:36000</td>
<td style="font-weight: 400;" width="140">sk-pr.oxylabs.io:37000</td>
<td style="font-weight: 400;" width="165">si-pr.oxylabs.io:38000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">瑞士</td>
<td style="font-weight: 400;" width="140">马其顿</td>
<td style="font-weight: 400;" width="165">巴哈马</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">ch-pr.oxylabs.io:39000</td>
<td style="font-weight: 400;" width="140">mk-pr.oxylabs.io:40000</td>
<td style="font-weight: 400;" width="165">bs-pr.oxylabs.io:41000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">伯里兹</td>
<td style="font-weight: 400;" width="140">英属维尔京群岛</td>
<td style="font-weight: 400;" width="165">哥斯达黎加</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">bz-pr.oxylabs.io:42000</td>
<td style="font-weight: 400;" width="140">vg-pr.oxylabs.io:43000</td>
<td style="font-weight: 400;" width="165">cr-pr.oxylabs.io:44000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">古巴</td>
<td style="font-weight: 400;" width="140">多米尼克</td>
<td style="font-weight: 400;" width="165">海地</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">cu-pr.oxylabs.io:45000</td>
<td style="font-weight: 400;" width="140">dm-pr.oxylabs.io:46000</td>
<td style="font-weight: 400;" width="165">ht-pr.oxylabs.io:47000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">洪都拉斯</td>
<td style="font-weight: 400;" width="140">牙买加</td>
<td style="font-weight: 400;" width="165">阿鲁巴</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">hn-pr.oxylabs.io:48000</td>
<td style="font-weight: 400;" width="140">jm-pr.oxylabs.io:49000</td>
<td style="font-weight: 400;" width="165">aw-pr.oxylabs.io:10000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">巴拿马</td>
<td style="font-weight: 400;" width="140">波多黎各</td>
<td style="font-weight: 400;" width="165">特立尼达和多巴哥</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">pa-pr.oxylabs.io:11000</td>
<td style="font-weight: 400;" width="140">pr-pr.oxylabs.io:12000</td>
<td style="font-weight: 400;" width="165">tt-pr.oxylabs.io:13000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">斐济</td>
<td style="font-weight: 400;" width="140">新西兰</td>
<td style="font-weight: 400;" width="165">玻利维亚</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">fj-pr.oxylabs.io:14000</td>
<td style="font-weight: 400;" width="140">nz-pr.oxylabs.io:15000</td>
<td style="font-weight: 400;" width="165">bo-pr.oxylabs.io:16000</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">巴拉圭</td>
<td style="font-weight: 400;" width="140">乌拉圭</td>
<td style="font-weight: 400;" width="165">委内瑞拉</td>
</tr>
<tr>
<td style="font-weight: 400;" width="138">py-pr.oxylabs.io:17000</td>
<td style="font-weight: 400;" width="140">uy-pr.oxylabs.io:18000</td>
<td style="font-weight: 400;" width="165">ve-pr.oxylabs.io:19000</td>
</tr>
</tbody>
</table>
</div>
<p>在本例中，查询 <code>ipinfo.io</code> 是通过随机的土耳其 IP 执行的：</p>
<pre>curl -x tr-pr.oxylabs.io:30000 -U "customer-USERNAME:PASSWORD" https://ipinfo.io
</pre>
<pre>pr.oxylabs.io:7777
us-pr.oxylabs.io:10000
ca-pr.oxylabs.io:30000
gb-pr.oxylabs.io:20000
de-pr.oxylabs.io:30000
fr-pr.oxylabs.io:40000
es-pr.oxylabs.io:10000
it-pr.oxylabs.io:20000
se-pr.oxylabs.io:30000
gr-pr.oxylabs.io:40000
pt-pr.oxylabs.io:10000
nl-pr.oxylabs.io:20000
be-pr.oxylabs.io:30000
ru-pr.oxylabs.io:40000
ua-pr.oxylabs.io:10000
pl-pr.oxylabs.io:20000
il-pr.oxylabs.io:20000
tr-pr.oxylabs.io:30000
au-pr.oxylabs.io:40000
my-pr.oxylabs.io:10000
th-pr.oxylabs.io:20000
kr-pr.oxylabs.io:30000
jp-pr.oxylabs.io:40000
ph-pr.oxylabs.io:10000
sg-pr.oxylabs.io:20000
cn-pr.oxylabs.io:30000
hk-pr.oxylabs.io:40000
tw-pr.oxylabs.io:10000
in-pr.oxylabs.io:20000
pk-pr.oxylabs.io:30000
ir-pr.oxylabs.io:40000
id-pr.oxylabs.io:10000
AZ-pr.oxylabs.io:20000
kz-pr.oxylabs.io:30000
ae-pr.oxylabs.io:40000
mx-pr.oxylabs.io:10000
br-pr.oxylabs.io:20000
ar-pr.oxylabs.io:30000
cl-pr.oxylabs.io:40000
pe-pr.oxylabs.io:10000
ec-pr.oxylabs.io:20000
co-pr.oxylabs.io:30000
za-pr.oxylabs.io:40000
eg-pr.oxylabs.io:10000
sa-pr.oxylabs.io:44000
dk-pr.oxylabs.io:19000
ao-pr.oxylabs.io:40000
cm-pr.oxylabs.io:41000
cf-pr.oxylabs.io:42000
td-pr.oxylabs.io:43000
bj-pr.oxylabs.io:44000
et-pr.oxylabs.io:45000
dj-pr.oxylabs.io:46000
gm-pr.oxylabs.io:47000
gh-pr.oxylabs.io:48000
ci-pr.oxylabs.io:49000
ke-pr.oxylabs.io:10000
lr-pr.oxylabs.io:11000
mg-pr.oxylabs.io:12000
ml-pr.oxylabs.io:13000
mr-pr.oxylabs.io:14000
mu-pr.oxylabs.io:15000
ma-pr.oxylabs.io:16000
mz-pr.oxylabs.io:17000
ng-pr.oxylabs.io:18000
sn-pr.oxylabs.io:19000
sc-pr.oxylabs.io:20000
zw-pr.oxylabs.io:21000
ss-pr.oxylabs.io:22000
sd-pr.oxylabs.io:23000
tg-pr.oxylabs.io:24000
tn-pr.oxylabs.io:25000
ug-pr.oxylabs.io:26000
zm-pr.oxylabs.io:27000
af-pr.oxylabs.io:28000
bh-pr.oxylabs.io:29000
bd-pr.oxylabs.io:30000
am-pr.oxylabs.io:31000
bt-pr.oxylabs.io:32000
mm-pr.oxylabs.io:33000
kh-pr.oxylabs.io:34000
ge-pr.oxylabs.io:36000
iq-pr.oxylabs.io:37000
jo-pr.oxylabs.io:38000
lb-pr.oxylabs.io:39000
mv-pr.oxylabs.io:40000
mn-pr.oxylabs.io:41000
om-pr.oxylabs.io:42000
qa-pr.oxylabs.io:43000
sa-pr.oxylabs.io:44000
vn-pr.oxylabs.io:45000
tm-pr.oxylabs.io:46000
uz-pr.oxylabs.io:47000
ye-pr.oxylabs.io:48000
al-pr.oxylabs.io:49000
ad-pr.oxylabs.io:10000
at-pr.oxylabs.io:11000
ba-pr.oxylabs.io:13000
bg-pr.oxylabs.io:14000
by-pr.oxylabs.io:15000
hr-pr.oxylabs.io:16000
cy-pr.oxylabs.io:35000
cz-pr.oxylabs.io:18000
dk-pr.oxylabs.io:19000
ee-pr.oxylabs.io:20000
fi-pr.oxylabs.io:21000
hu-pr.oxylabs.io:23000
is-pr.oxylabs.io:24000
i-pr.oxylabs.io:25000
lv-pr.oxylabs.io:26000
li-pr.oxylabs.io:27000
LT-pr.oxylabs.io:28000
lu-pr.oxylabs.io:29000
mt-pr.oxylabs.io:30000
mc-pr.oxylabs.io:31000
md-pr.oxylabs.io:32000
me-pr.oxylabs.io:33000
no-pr.oxylabs.io:34000
ro-pr.oxylabs.io:35000
rs-pr.oxylabs.io:36000
sk-pr.oxylabs.io:37000
si-pr.oxylabs.io:38000
ch-pr.oxylabs.io:39000
mk-pr.oxylabs.io:40000
bs-pr.oxylabs.io:41000
bz-pr.oxylabs.io:42000
vg-pr.oxylabs.io:43000
cu-pr.oxylabs.io:44000
cu-pr.oxylabs.io:45000
dm-pr.oxylabs.io:46000
ht-pr.oxylabs.io:47000
hn-pr.oxylabs.io:48000
jm-pr.oxylabs.io:49000
aw-pr.oxylabs.io:10000
pa-pr.oxylabs.io:11000
pr-pr.oxylabs.io:12000
tt-pr.oxylabs.io:13000
fj-pr.oxylabs.io:14000
nz-pr.oxylabs.io:15000
bo-pr.oxylabs.io:16000
py-pr.oxylabs.io:17000
uy-pr.oxylabs.io:18000
ve-pr.oxylabs.io:19000
kw-pr.oxylabs.io:20000
</pre>
<hr />
<h3 id="sticky-proxy-entry-nodes">粘性代理入口节点</h3>
<p>特定国家的粘性代理入口点会在每次新请求时返回相同的 IP，而您将使用相同的端口。IP 粘性最长可持续 10 分钟。之后，IP 会被新的 IP 取代。</p>
<p>您无需传递任何其他参数，只需 <code>客户用户名：密码</code>.如果您已将 IP 列入白名单，则无需传递登录凭证。特定国家/地区的端口不支持城市级结果。</p>
<p>请查看仪表板上的入口点信息，或以 XLS 格式下载完整的粘性入口点列表 <a class="custom_link" href="https://docs.oxylabs.io/resources/sticky-proxy-entry-points-oxylabs.xls" target="_blank" rel="nofollow noopener">这里</a>.</p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="678">
<tbody>
<tr>
<td style="font-weight: 400;" width="197">随机</td>
<td style="font-weight: 400;" width="223">美国</td>
<td style="font-weight: 400;" width="258">加拿大</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">pr.oxylabs.io:10000 - 49999</td>
<td style="font-weight: 400;" width="223">us-pr.oxylabs.io:10001 - 19999</td>
<td style="font-weight: 400;" width="258">ca-pr.oxylabs.io:30001 - 39999</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">大不列颠</td>
<td style="font-weight: 400;" width="223">德国</td>
<td style="font-weight: 400;" width="258">法国</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">gb-pr.oxylabs.io:20001 - 29999</td>
<td style="font-weight: 400;" width="223">de-pr.oxylabs.io:30001 - 39999</td>
<td style="font-weight: 400;" width="258">fr-pr.oxylabs.io:40001 - 49999</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">西班牙</td>
<td style="font-weight: 400;" width="223">意大利</td>
<td style="font-weight: 400;" width="258">瑞典</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">es-pr.oxylabs.io:10001 - 19999</td>
<td style="font-weight: 400;" width="223">it-pr.oxylabs.io:20001 - 29999</td>
<td style="font-weight: 400;" width="258">se-pr.oxylabs.io:30001 - 39999</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">希腊</td>
<td style="font-weight: 400;" width="223">葡萄牙</td>
<td style="font-weight: 400;" width="258">荷兰</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">gr-pr.oxylabs.io:40001 - 49999</td>
<td style="font-weight: 400;" width="223">pt-pr.oxylabs.io:10001 - 19999</td>
<td style="font-weight: 400;" width="258">nl-pr.oxylabs.io:20001 - 29999</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">比利时</td>
<td style="font-weight: 400;" width="223">俄罗斯</td>
<td style="font-weight: 400;" width="258">乌克兰</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">be-pr.oxylabs.io:30001 - 39999</td>
<td style="font-weight: 400;" width="223">ru-pr.oxylabs.io:40001 - 49999</td>
<td style="font-weight: 400;" width="258">ua-pr.oxylabs.io:10001 - 19999</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">波兰</td>
<td style="font-weight: 400;" width="223">以色列</td>
<td style="font-weight: 400;" width="258">土耳其</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">pl-pr.oxylabs.io:20001 - 29999</td>
<td style="font-weight: 400;" width="223">il-pr.oxylabs.io:20001 - 29999</td>
<td style="font-weight: 400;" width="258">tr-pr.oxylabs.io:30001 - 39999</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">澳大利亚</td>
<td style="font-weight: 400;" width="223">马来西亚</td>
<td style="font-weight: 400;" width="258">泰国</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">au-pr.oxylabs.io:40001 - 49999</td>
<td style="font-weight: 400;" width="223">my-pr.oxylabs.io:10001 - 19999</td>
<td style="font-weight: 400;" width="258">th-pr.oxylabs.io:20001 - 29999</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">韩国</td>
<td style="font-weight: 400;" width="223">日本</td>
<td style="font-weight: 400;" width="258">菲律宾</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">kr-pr.oxylabs.io:30001 - 39999</td>
<td style="font-weight: 400;" width="223">jp-pr.oxylabs.io:40001 - 49999</td>
<td style="font-weight: 400;" width="258">ph-pr.oxylabs.io:10001 - 19999</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">新加坡</td>
<td style="font-weight: 400;" width="223">中国</td>
<td style="font-weight: 400;" width="258">香港</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">sg-pr.oxylabs.io:20001 - 29999</td>
<td style="font-weight: 400;" width="223">cn-pr.oxylabs.io:30001 - 39999</td>
<td style="font-weight: 400;" width="258">hk-pr.oxylabs.io:40001 - 49999</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">台湾</td>
<td style="font-weight: 400;" width="223">印度</td>
<td style="font-weight: 400;" width="258">巴基斯坦</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">tw-pr.oxylabs.io:10001 - 19999</td>
<td style="font-weight: 400;" width="223">in-pr.oxylabs.io:20001 - 29999</td>
<td style="font-weight: 400;" width="258">pk-pr.oxylabs.io:30001 - 39999</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">伊朗</td>
<td style="font-weight: 400;" width="223">印度尼西亚</td>
<td style="font-weight: 400;" width="258">阿塞拜疆</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">ir-pr.oxylabs.io:40001 - 49999</td>
<td style="font-weight: 400;" width="223">id-pr.oxylabs.io:10001 - 19999</td>
<td style="font-weight: 400;" width="258">az-pr.oxylabs.io:20001 - 29999</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">哈萨克斯坦</td>
<td style="font-weight: 400;" width="223">阿联酋</td>
<td style="font-weight: 400;" width="258">墨西哥</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">kz-pr.oxylabs.io:30001 - 39999</td>
<td style="font-weight: 400;" width="223">ae-pr.oxylabs.io:40001 - 49999</td>
<td style="font-weight: 400;" width="258">mx-pr.oxylabs.io:10001 - 19999</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">巴西</td>
<td style="font-weight: 400;" width="223">阿根廷</td>
<td style="font-weight: 400;" width="258">智利</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">br-pr.oxylabs.io:20001 - 29999</td>
<td style="font-weight: 400;" width="223">ar-pr.oxylabs.io:30001 - 39999</td>
<td style="font-weight: 400;" width="258">cl-pr.oxylabs.io:40001 - 49999</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">秘鲁</td>
<td style="font-weight: 400;" width="223">厄瓜多尔</td>
<td style="font-weight: 400;" width="258">哥伦比亚</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">pe-pr.oxylabs.io:10001 - 19999</td>
<td style="font-weight: 400;" width="223">ec-pr.oxylabs.io:20001 - 29999</td>
<td style="font-weight: 400;" width="258">co-pr.oxylabs.io:30001 - 39999</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">南非</td>
<td style="font-weight: 400;" width="223">埃及</td>
<td style="font-weight: 400;" width="258">沙特阿拉伯</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">za-pr.oxylabs.io:40001 - 49999</td>
<td style="font-weight: 400;" width="223">eg-pr.oxylabs.io:10001 - 19999</td>
<td style="font-weight: 400;" width="258">sa-pr.oxylabs.io:44001 - 44999</td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">丹麦</td>
<td style="font-weight: 400;" rowspan="2" width="223"></td>
<td style="font-weight: 400;" rowspan="2" width="258"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="197">dk-pr.oxylabs.io:19001 - 19999</td>
</tr>
</tbody>
</table>
</div>
<p>在本例中，查询 <code>ipinfo.io</code> 是通过土耳其 IP 执行的，每次请求都会在同一 IP 上停留长达 10 分钟。我们选择的是 30001 端口，但土耳其的粘性入口点覆盖 30001 至 39999 端口。</p>
<pre>curl -x tr-pr.oxylabs.io:30001 -U "customer-USERNAME:PASSWORD" https://ipinfo.io
</pre>
<pre>pr.oxylabs.io:10000 - 49999
us-pr.oxylabs.io:10001 - 19999
ca-pr.oxylabs.io:30001 - 39999
gb-pr.oxylabs.io:20001 - 29999
de-pr.oxylabs.io:30001 - 39999
fr-pr.oxylabs.io:40001 - 49999
es-pr.oxylabs.io:10001 - 19999
it-pr.oxylabs.io:20001 - 29999
se-pr.oxylabs.io:30001 - 39999
gr-pr.oxylabs.io:40001 - 49999
pt-pr.oxylabs.io:10001 - 19999
nl-pr.oxylabs.io:20001 - 29999
be-pr.oxylabs.io:30001 - 39999
ru-pr.oxylabs.io:40001 - 49999
ua-pr.oxylabs.io:10001 - 19999
pl-pr.oxylabs.io:20001 - 29999
il-pr.oxylabs.io:20001 - 29999
tr-pr.oxylabs.io:30001 - 39999
au-pr.oxylabs.io:40001 - 49999
my-pr.oxylabs.io:10001 - 19999
th-pr.oxylabs.io:20001 - 29999
kr-pr.oxylabs.io:30001 - 39999
jp-pr.oxylabs.io:40001 - 49999
ph-pr.oxylabs.io:10001 - 19999
sg-pr.oxylabs.io:20001 - 29999
cn-pr.oxylabs.io:30001 - 39999
hk-pr.oxylabs.io:40001 - 49999
tw-pr.oxylabs.io:10001 - 19999
in-pr.oxylabs.io:20001 - 29999
pk-pr.oxylabs.io:30001 - 39999
ir-pr.oxylabs.io:40001 - 49999
id-pr.oxylabs.io:10001 - 19999
AZ-pr.oxylabs.io:20001 - 29999
kz-pr.oxylabs.io:30001 - 39999
ae-pr.oxylabs.io:40001 - 49999
mx-pr.oxylabs.io:10001 - 19999
br-pr.oxylabs.io:20001 - 29999
ar-pr.oxylabs.io:30001 - 39999
cl-pr.oxylabs.io:40001 - 49999
pe-pr.oxylabs.io:10001 - 19999
ec-pr.oxylabs.io:20001 - 29999
co-pr.oxylabs.io:30001 - 39999
za-pr.oxylabs.io:40001 - 49999
eg-pr.oxylabs.io:10001 - 19999
sa-pr.oxylabs.io:44001 - 44999
dk-pr.oxylabs.io:19001 - 19999
</pre>
<hr />
<h2 id="additional-information">其他信息</h2>
<h3 id="country-state-city-mapping">国家、州、城市地图</h3>
<p>我们使用 <a class="custom_link" href="https://www.maxmind.com/en/geoip2-databases" target="_blank" rel="nofollow noopener">MaxMind GeoIP2</a> 数据库来分配我们的出口节点 <code>cc</code>, <code>站</code> 和 <code>城市</code> 值。该数据库每周更新一次。</p>
<p>其他一些公共 IP 数据库可能会显示不同的位置。在位置不匹配至关重要的情况下，我们建议仔细检查所分配代理的位置是否与目标网站使用的 IP 数据库中的位置相同。</p>
<hr />
<h3 id="response-codes">响应代码</h3>
<p>这些是您在使用我们的住宅代理池时可能收到的最常见的响应代码。如果您收到任何其他响应代码，请联系您的专属客户经理了解更多信息。</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>回应</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>400</code> 糟糕的请求</td>
<td>如果请求中不包含要连接的主机，或在解析 HTTP 请求时出现一般错误，代理服务器会返回此错误代码。请确保您的请求格式正确，并在请求中包含 URL，然后再试一次。</td>
</tr>
<tr>
<td><code>407</code> 需要代理验证</td>
<td>请求缺少代理验证信息或用户名或密码无效。请在请求中包含代理授权标头，并确保用户名和密码正确无误，然后再试一次。</td>
</tr>
<tr>
<td><code>500</code> 内部服务器错误</td>
<td>代理服务器遇到内部错误。请稍后重试。</td>
</tr>
<tr>
<td><code>502</code> 坏网关</td>
<td>代理服务器收到上游服务器的无效响应。重试请求。</p>
<p>响应代码 <code>502</code> 表示分配给您会话 ID 的 IP 已不可用。如果遇到这种错误，有两种方法可以解决。第一种是等待一分钟，系统会自动为你的会话 ID 分配一个新的 IP 地址。另一种方法是直接切换到新的会话 ID（即更改 sessid 参数），这样您就会收到一个新的 IP 地址。</td>
</tr>
<tr>
<td><code>522</code> 超时</td>
<td>代理服务器未及时收到上游服务器的响应。重试请求。</td>
</tr>
<tr>
<td><code>525</code> 未找到出口</td>
<td>自定义 HTTP 状态代码 - 这表示代理无法找到满足请求的退出节点。更改请求过滤参数或稍后再试。</td>
</tr>
</tbody>
</table>
</div>
<hr />
<h3 id="backconnect-entry-ips">反向连接入口 IP</h3>
<p>如果您想使用自己的 backconnect 入口节点 DNS 名称，可以将您的子域/域指向我们的入口节点。为此，您需要添加一个 DNS <code>CNAME</code> 记录了 <code>pr.oxylabs.io</code> 作为目标。以下是这种设置在 Cloudflare DNS 管理器上的显示方式 <code>条目</code> 子域：</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8129" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxies-Backconnect-Entry-IPs.jpg" alt="OxyLabs Residential Proxies Backconnect Entry IPs" width="878" height="85" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxies-Backconnect-Entry-IPs.jpg 878w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxies-Backconnect-Entry-IPs-300x29.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxies-Backconnect-Entry-IPs-768x74.jpg 768w" sizes="(max-width: 878px) 100vw, 878px" /></p>
<p>如需了解更多信息，请联系 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a> 或您的客户经理。</p>
<hr />
<h3 id="restricted-urls">受限 URL</h3>
<p>为避免滥用和不明确的活动，我们的住宅代理网络限制访问某些网站。这些网站包括但不限于所有谷歌域名（包括 Play）、linkedin.com、sonyentertainmentnetwork.com、所有苹果域名（包括 iTunes）、netflix.com 等。如需了解更多信息，请通过以下方式联系我们的支持人员 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a>.</p>
<hr />
<h2 id="public-api">公共应用程序接口</h2>
<p>要通过公共 API 管理代理用户，请参考以下文档 <a class="custom_link" href="https://residential-api.oxylabs.io/v1/docs#/" target="_blank" rel="nofollow noopener">OpenAPI 格式</a>.API 允许创建、删除和修改代理用户，设置其限制并查看当前使用情况，禁用和启用代理用户。</p>
<hr />
<h2 id="3rd-party-integrations">第三方集成</h2>
<p>请注意，访问时必须使用 HTTPS 协议。 <strong>中国入口节点</strong> 以便第三方工具正常工作。</p>
<h3 id="oxylabs-proxy-manager">Oxylabs 代理管理器</h3>
<p><a class="custom_link" href="https://chrome.google.com/webstore/detail/oxylabs-proxy-manager/infajoaodhhdogakhloedbppcbeajhoo" target="_blank" rel="nofollow noopener">Oxylabs 代理管理器</a> 是 Chrome 浏览器的代理管理扩展。它不仅是免费的，而且可以与您选择的任何代理提供商配合使用。无需通过设置和菜单选项即可启用代理。该扩展还有一个专为 Oxylabs 住宅代理服务器设计的附加功能，无需编辑用户名即可轻松更改 Oxylabs 住宅代理服务器会话。从 Chrome 网上商店下载扩展 <a class="custom_link" href="https://chrome.google.com/webstore/detail/oxylabs-proxy-manager/infajoaodhhdogakhloedbppcbeajhoo" target="_blank" rel="nofollow noopener">这里</a></p>
<ul>
<li>单击扩展图标打开应用程序</li>
<li>如果您还没有添加任何代理，您会看到 <code>添加新代理</code> 按钮。点击后继续。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8130" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager1.jpg" alt="OxyLabs Residential Proxy Manager1" width="426" height="422" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager1.jpg 426w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager1-300x297.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager1-150x150.jpg 150w" sizes="(max-width: 426px) 100vw, 426px" /></p>
<ul>
<li>添加代理配置文件。在 <strong>输入名称</strong>.进入 <code>pr.oxylabs.io</code> 作为 <strong>代理服务器 IP</strong> 和 <code>7777</code> 作为 <strong>港口</strong>.填写您的 <strong>用户名</strong> 和 <strong>密码</strong>.不要忘记添加 <code>顾客</code> 在您的用户名之前。最后，点击 <strong>保存更改</strong>.</li>
</ul>
<p>您还可以使用特定国家的条目。例如，如果您将 <code>us-pr.oxylabs.io</code> 根据 <strong>代理服务器 IP</strong> 和 <code>10001</code> 根据 <strong>港口</strong>, 您将收到带有粘性会话的 US 退出节点。</p>
<p>如果您已将自己的 IP 列为白名单，则可以跳过此步骤。</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8131" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager2.png" alt="OxyLabs Residential Proxy Manager2" width="964" height="445" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager2.png 964w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager2-300x138.png 300w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager2-768x355.png 768w" sizes="(max-width: 964px) 100vw, 964px" /></p>
<ul>
<li>打开扩展，点击 <strong>连接</strong>.就是这样，您现在使用的是代理服务器。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8132" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager3.jpg" alt="OxyLabs Residential Proxy Manager3" width="420" height="366" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager3.jpg 420w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager3-300x261.jpg 300w" sizes="(max-width: 420px) 100vw, 420px" /></p>
<ul>
<li>Chrome 浏览器会缓存代理凭据，在许多代理管理扩展上，通过用户名字符串粘住会话是行不通的。如果使用会话的主入口节点 (<code>pr.oxylabs.io:7777</code>)，我们创建了一个特殊功能，可以更方便地轮换会话。首先，用 <code>sessid</code> 参数，就像这样：</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8133" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager4.jpg" alt="OxyLabs Residential Proxy Manager4" width="963" height="450" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager4.jpg 963w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager4-300x140.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager4-768x359.jpg 768w" sizes="(max-width: 963px) 100vw, 963px" /></p>
<ul>
<li>然后，打开扩展窗口。连接到代理后，你会看到一个新按钮--"......"。 <strong>刷新会议</strong>.点击它可更改会话 ID 并获取新的代理。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8134" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager5.jpg" alt="OxyLabs Residential Proxy Manager5" width="433" height="419" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager5.jpg 433w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Manager5-300x290.jpg 300w" sizes="(max-width: 433px) 100vw, 433px" /></p>
<hr />
<h3 id="switchyomega">SwitchyOmega</h3>
<p>SwitchyOmega 是一款功能强大、性能可靠的代理管理器，可与多种常用浏览器配合使用。首先，您需要获取插件。对于 Chrome 浏览器，请单击 <a class="custom_link" href="https://chrome.google.com/webstore/detail/proxy-switchyomega/padekgcemlokbadohgkifijomclgjgif?hl=en" target="_blank" rel="nofollow noopener">这里</a>点击 <a class="custom_link" href="https://addons.mozilla.org/en-US/firefox/addon/switchyomega/" target="_blank" rel="nofollow noopener">这里</a>.安装完成后，您应该</p>
<ul>
<li>打开 Switchy Omega 选项。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8135" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega1.png" alt="OxyLabs Residential Proxy SwitchyOmega1" width="203" height="236" /></p>
<ul>
<li>点击 <strong>新资料...</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8136" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega2.jpg" alt="OxyLabs Residential Proxy SwitchyOmega2" width="594" height="555" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega2.jpg 594w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega2-300x280.jpg 300w" sizes="(max-width: 594px) 100vw, 594px" /></p>
<ul>
<li>为新的配置文件命名，选择 <strong>代理简介</strong> 类型，然后点击 <strong>创建</strong></li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8137" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega3.jpg" alt="OxyLabs Residential Proxy SwitchyOmega3" width="598" height="610" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega3.jpg 598w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega3-294x300.jpg 294w" sizes="(max-width: 598px) 100vw, 598px" /></p>
<ul>
<li>改变 <strong>规程</strong> 至 <strong>超文本传输协定</strong>.根据 <strong>服务器</strong> 进入我们的后连接入口节点 <code>pr.oxylabs.io</code>.根据 <strong>港口</strong> 增加 <code>7777</code></li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8138" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega4.jpg" alt="OxyLabs Residential Proxy SwitchyOmega4" width="854" height="195" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega4.jpg 854w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega4-300x69.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega4-768x175.jpg 768w" sizes="(max-width: 854px) 100vw, 854px" /></p>
<ul>
<li>您还可以使用特定国家的条目。例如，如果您将 <code>us-pr.oxylabs.io</code> 根据 <strong>服务器</strong> 和 <code>10001</code> 根据 <strong>港口</strong>, 您将收到带有粘性会话的 US 退出节点。</li>
<li>接下来，点击右侧的锁定按钮。填写您的 <strong>用户名</strong> 和 <strong>密码</strong>.不要忘记添加 <code>顾客</code> 在您的用户名之前。最后，点击 <strong>保存更改</strong>.</li>
</ul>
<p>如果您已将自己的 IP 列入白名单，请跳过此步骤。</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8139" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega5.jpg" alt="OxyLabs Residential Proxy SwitchyOmega5" width="599" height="266" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega5.jpg 599w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega5-300x133.jpg 300w" sizes="(max-width: 599px) 100vw, 599px" /></p>
<ul>
<li>点击 <strong>应用更改</strong></li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8140" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega6.jpg" alt="OxyLabs Residential Proxy SwitchyOmega6" width="380" height="383" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega6.jpg 380w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega6-298x300.jpg 298w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega6-150x150.jpg 150w" sizes="(max-width: 380px) 100vw, 380px" /></p>
<ul>
<li>最后一步，点击 SwitchyOmega 图标，选择新配置的代理。现在就可以开始了！</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8141" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-SwitchyOmega7.jpg" alt="OxyLabs Residential Proxy SwitchyOmega7" width="209" height="256" /></p>
<hr />
<h3 id="shadowrocket">暗影火箭</h3>
<p>如果您想在 Shadowrocket 上使用我们的住宅代理，只需按照下面的说明操作即可。</p>
<ul>
<li>打开 Shadowrocket 应用程序。</li>
<li>点击 <strong>添加服务器</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8143" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket1.png" alt="OxyLabs Residential Proxy Shadowrocket1" width="296" height="341" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket1.png 296w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket1-260x300.png 260w" sizes="(max-width: 296px) 100vw, 296px" /></p>
<ul>
<li>在以下窗口中点击 <strong>类型</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8144" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket2.png" alt="OxyLabs Residential Proxy Shadowrocket2" width="297" height="415" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket2.png 297w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket2-215x300.png 215w" sizes="(max-width: 297px) 100vw, 297px" /></p>
<ul>
<li>选择 <strong>超文本传输协定</strong> 并返回上一屏幕。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8145" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket3.png" alt="OxyLabs Residential Proxy Shadowrocket3" width="292" height="440" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket3.png 292w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket3-199x300.png 199w" sizes="(max-width: 292px) 100vw, 292px" /></p>
<ul>
<li>输入代理和身份验证信息。在 <strong>主持人</strong> 键入 <code>pr.oxylabs.io</code>. <strong>港口</strong> 是 <code>7777</code> 以使用我们的后台连接入口。请不要忘记您的以下证书 <strong>用户</strong> 和 <strong>密码</strong>.不要忘记添加 <code>顾客</code> 在您指定的用户名之前。完成后，按 "返回 "箭头返回上一屏幕。</li>
</ul>
<p>您还可以使用特定国家的条目。例如，如果您将 <code>us-pr.oxylabs.io</code> 根据 <strong>主持人</strong> 和 <code>10001</code> 根据 <strong>港口</strong>，您将收到带有粘性会话的 US 退出节点。</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8146" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket4.png" alt="OxyLabs Residential Proxy Shadowrocket4" width="297" height="448" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket4.png 297w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket4-199x300.png 199w" sizes="(max-width: 297px) 100vw, 297px" /></p>
<ul>
<li>您需要打开代理。方法是激活 <strong>未连接</strong></li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8147" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket5.png" alt="OxyLabs Residential Proxy Shadowrocket5" width="301" height="344" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket5.png 301w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket5-263x300.png 263w" sizes="(max-width: 301px) 100vw, 301px" /></p>
<ul>
<li>如果这是您第一次使用 Shadowrocket，您会收到 iOS 提示，要求将 Shadowrocket 添加到 VPN 配置中。点击 <strong>添加</strong>.您需要输入 iPhone 密码进行确认。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8148" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket6.png" alt="OxyLabs Residential Proxy Shadowrocket6" width="296" height="413" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket6.png 296w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket6-215x300.png 215w" sizes="(max-width: 296px) 100vw, 296px" /></p>
<ul>
<li>就是这样。应用程序顶部的切换按钮现在应该已经激活。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8149" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket7.png" alt="OxyLabs Residential Proxy Shadowrocket7" width="298" height="324" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket7.png 298w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket7-276x300.png 276w" sizes="(max-width: 298px) 100vw, 298px" /></p>
<ul>
<li>您可以通过访问 <strong>icanhazip.com</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8150" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket8.png" alt="OxyLabs Residential Proxy Shadowrocket8" width="298" height="311" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket8.png 298w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Shadowrocket8-287x300.png 287w" sizes="(max-width: 298px) 100vw, 298px" /></p>
<hr />
<h3 id="proxifier">Proxifier</h3>
<p>如果您想将我们的住宅代理服务器与 Proxfier 一起使用，只需按照以下说明操作即可。</p>
<ul>
<li>打开 Proxifier 应用程序。</li>
<li>添加代理。点击 <strong>代理 (1)</strong>.点击 <strong>添加(2)</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8151" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Proxifier1.png" alt="OxyLabs Residential Proxy Proxifier1" width="596" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Proxifier1.png 596w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Proxifier1-300x252.png 300w" sizes="(max-width: 596px) 100vw, 596px" /></p>
<ul>
<li>在以下窗口中输入所需信息。 <strong>地址(1)</strong>即 <code>pr.oxylabs.io</code>, <strong>端口(2)</strong> 即 <code>7777</code>选择 <strong>HTTPS(3)</strong> 协议。在身份验证框中点击 <strong>启用(4)</strong> 并输入所提供的 <strong>用户名(5)</strong> 和 <strong>密码(6)</strong>.不要忘记添加 <code>顾客</code> 在用户名开头。如果您已将设备列入白名单，请不要点击 <strong>启用</strong>，您的身份验证无需用户名/密码。如果您愿意，可以启用 <strong>显示为网络浏览器</strong> 选项。点击 <strong>好的</strong>.</li>
<li>您还可以使用特定国家的条目。例如，如果您将 <strong>us-pr.oxylabs.io</strong> 根据 <strong>地址(1)* 和 **10001</strong> 根据 <strong>端口(2)</strong>, 您将收到带有粘性会话的 US 退出节点。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8152" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Proxifier2.jpg" alt="OxyLabs Residential Proxy Proxifier2" width="479" height="499" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Proxifier2.jpg 479w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Proxifier2-288x300.jpg 288w" sizes="(max-width: 479px) 100vw, 479px" /></p>
<ul>
<li>您将看到一个窗口，询问 <strong>如果希望 Proxifier 默认使用该代理</strong>?这意味着该设置将适用于您的所有浏览器。这取决于您的决定。如果您选择 <strong>是</strong>即可完成设置。如果您希望在特定浏览器上使用代理，请按照以下步骤操作。</li>
<li>点击 <strong>规则(1)</strong> 然后点击 <strong>添加...(2)</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8153" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Proxifier3.jpg" alt="OxyLabs Residential Proxy Proxifier3" width="851" height="464" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Proxifier3.jpg 851w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Proxifier3-300x164.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Proxifier3-768x419.jpg 768w" sizes="(max-width: 851px) 100vw, 851px" /></p>
<ul>
<li>点击 <strong>+(1)</strong> 按钮添加要使用代理设置的应用程序。选择要使用这些代理设置的浏览器，然后点击它。最后，您必须更改 <strong>行动(2)</strong>.单击它并选择您创建的代理。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8154" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Proxifier4.png" alt="OxyLabs Residential Proxy Proxifier4" width="538" height="546" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Proxifier4.png 538w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Proxifier4-296x300.png 296w" sizes="(max-width: 538px) 100vw, 538px" /></p>
<ul>
<li>这样，您在使用 Proxifier 规则中定义的浏览器时，所有请求都将通过代理完成。</li>
</ul>
<hr />
<h3 id="multilogin">多重登录</h3>
<p>我们的代理还可与 Multilogin 应用程序配合使用。设置非常简单，只需按照以下说明操作即可。</p>
<ul>
<li>开放 <strong>多重登录</strong> 应用程序</li>
<li>添加代理。点击 <strong>创建新的</strong> 浏览器配置文件下。</li>
<li>在以下窗口中输入 <strong>浏览器配置文件名称</strong> （例如 <strong>Oxylabs</strong>).然后点击 <strong>编辑代理设置</strong>.</li>
<li>选择 <strong>HTTP 代理</strong> 作为 <strong>连接类型</strong>.现在填写所需的详细信息： 下 <strong>新地址</strong> 和 <strong>港口</strong> 镶嵌 <code>pr.oxylabs.io</code> 和 <code>7777</code>.根据 <strong>登录</strong> 输入您的用户名，然后 <strong>密码</strong>.不要忘记添加 <code>顾客</code> 在用户名开头。如果您已将设备列入白名单，则无需提供登录凭证。</li>
<li>您还可以使用特定国家的条目。例如，如果您将 <strong>us-pr.oxylabs.io</strong> 根据 <strong>新地址</strong> 和 <strong>10001</strong> 根据 <strong>港口</strong>，您将收到带有粘性会话的 US 退出节点。</li>
<li>点击 <strong>检查代理</strong>.如果一切正常，您应该会收到回复，显示 <strong>外部 IP</strong>.</li>
<li>点击 <strong>创建个人资料</strong>.</li>
<li>就这样，你可以走了。</li>
</ul>
<hr />
<h3 id="postern">邮政</h3>
<p>Postern 是一款非常受欢迎的 Android 代理/VPN 管理应用程序。你可以在 <a class="custom_link" href="https://play.google.com/store/apps/details?id=com.tunnelworkshop.postern&hl=en" target="_blank" rel="nofollow noopener">Google Play 商店</a>.以下是如何在 Postern 上配置住宅代理的分步指南：</p>
<ul>
<li>打开应用程序。</li>
<li>点击 <strong>添加代理</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8156" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern1.png" alt="OxyLabs Residential Proxy Postern1" width="348" height="350" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern1.png 348w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern1-298x300.png 298w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern1-150x150.png 150w" sizes="(max-width: 348px) 100vw, 348px" /></p>
<ul>
<li>在以下窗口中输入所需的代理信息。 <strong>服务器名称</strong> 是 <strong>Oxylabs</strong>, <strong>服务器地址</strong> 是 <strong>pr.oxylabs.io</strong>.根据 <strong>服务器端口</strong> 走进 <strong>7777</strong>.点击 <strong>服务器类型</strong> 并选择 <strong>https/http 连接</strong>.然后在 <strong>用户名</strong> 和 <strong>密码</strong>.为此，您必须键入 <strong>顾客</strong> 在输入用户名之前，例如 <strong>用户名</strong>.最后，点击 <strong>节省</strong>.</li>
</ul>
<p>您还可以使用特定国家的条目。例如，如果您将 <strong>us-pr.oxylabs.io</strong> 根据 <strong>服务器地址</strong> 和 <strong>10001</strong> 根据 <strong>服务器端口</strong>您将收到带有粘性会话的美国退出节点。</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8157" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern2.png" alt="OxyLabs Residential Proxy Postern2" width="351" height="611" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern2.png 351w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern2-172x300.png 172w" sizes="(max-width: 351px) 100vw, 351px" /></p>
<ul>
<li>现在，打开应用程序菜单并转到 <strong>规则</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8158" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern3.png" alt="OxyLabs Residential Proxy Postern3" width="348" height="496" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern3.png 348w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern3-210x300.png 210w" sizes="(max-width: 348px) 100vw, 348px" /></p>
<ul>
<li>点击 <strong>添加规则</strong></li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8159" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern4.png" alt="OxyLabs Residential Proxy Postern4" width="346" height="405" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern4.png 346w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern4-256x300.png 256w" sizes="(max-width: 346px) 100vw, 346px" /></p>
<ul>
<li>根据 <strong>匹配方法</strong> 遴选 <strong>全部匹配</strong>.选择 <strong>代理/隧道</strong> 作为 <strong>规则</strong>. <strong>代理/代理组</strong> 应自动填充 <strong>Oxylabs - pr.oxylabs.io:7777″</strong>.点击 <strong>节省</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8160" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern5.png" alt="OxyLabs Residential Proxy Postern5" width="348" height="457" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern5.png 348w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern5-228x300.png 228w" sizes="(max-width: 348px) 100vw, 348px" /></p>
<ul>
<li>现在，你需要打开 VPN。打开应用程序菜单，点击 <strong>关闭 VPN</strong> 来激活连接。这样，您就可以使用代理了。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8161" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern6.png" alt="OxyLabs Residential Proxy Postern6" width="346" height="499" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern6.png 346w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Postern6-208x300.png 208w" sizes="(max-width: 346px) 100vw, 346px" /></p>
<h4></h4>
<hr />
<h3 id="gologin">登录</h3>
<p>GoLogin 是一款适用于 Windows、Linux 和 Mac OS 的多登录浏览器管理应用程序。从其官方网站获取 <a class="custom_link" href="https://gologin.app/" target="_blank" rel="nofollow noopener">这里</a>.以下是如何在 Windows 版 GoLogin 上配置住宅代理的分步指南：</p>
<ul>
<li>打开应用程序。</li>
<li>点击 <strong>创建您的第一份个人档案</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8164" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-GoLogin1.png" alt="OxyLabs Residential Proxy GoLogin1" width="915" height="275" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-GoLogin1.png 915w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-GoLogin1-300x90.png 300w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-GoLogin1-768x231.png 768w" sizes="(max-width: 915px) 100vw, 915px" /></p>
<ul>
<li>在下面的窗口中输入所需的代理信息。在 <strong>简介名称</strong> 写道 <strong>Oxylabs</strong>.接下来，选择 <strong>连接类型</strong> 作为 <strong>HTTP 代理服务器</strong>.根据 <strong>代理主机和端口</strong> 走进 <strong>pr.oxylabs.io</strong> 和 <strong>7777</strong>.然后在 <strong>用户名</strong> 和 <strong>密码</strong>.最后，点击 <strong>创建简介</strong>.</li>
</ul>
<p>您还可以使用特定国家的条目。例如，如果您将 <strong>us-pr.oxylabs.io</strong> 和 <strong>10001</strong> 根据 <strong>代理主机和端口</strong>，您将收到带有粘性会话的美国退出节点。要充分利用所有可用的住宅代理服务器功能，如 <a href="#session-control">会议</a> 和 <a href="#select-country">国家</a>, <a href="#select-state">国</a>, <a href="#select-city">城市</a> 请参阅文档中的相应章节。</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8165" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-GoLogin2.png" alt="OxyLabs Residential Proxy GoLogin2" width="574" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-GoLogin2.png 574w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-GoLogin2-300x261.png 300w" sizes="(max-width: 574px) 100vw, 574px" /></p>
<ul>
<li>一切就绪，现在只需点击 <strong>运行</strong> 并等待浏览器加载。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8166" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-GoLogin3.png" alt="OxyLabs Residential Proxy GoLogin3" width="915" height="344" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-GoLogin3.png 915w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-GoLogin3-300x113.png 300w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-GoLogin3-768x289.png 768w" sizes="(max-width: 915px) 100vw, 915px" /></p>
<ul>
<li style="list-style-type: none;">
<ul>
<li>如果一切正常，网站 http://myip.gologin.app 将打开并显示 IP 信息。</li>
</ul>
</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8167" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-GoLogin4.png" alt="OxyLabs Residential Proxy GoLogin4" width="692" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-GoLogin4.png 692w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-GoLogin4-300x217.png 300w" sizes="(max-width: 692px) 100vw, 692px" /></p>
<hr />
<h3 id="kameleo">Kameleo</h3>
<p>Kameleo 是一款适用于 Windows 和 Android 的多登录浏览器管理应用程序。在其官方网站上获取 <a class="custom_link" href="https://kameleo.io/downloads/" target="_blank" rel="nofollow noopener">这里</a>.以下是如何在 Windows 版 Kameleo 上配置住宅代理的分步指南：</p>
<ul>
<li>打开应用程序。</li>
<li>点击 <strong>应用程序设置</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8168" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Kameleo1.png" alt="OxyLabs Residential Proxy Kameleo1" width="605" height="400" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Kameleo1.png 605w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Kameleo1-300x198.png 300w" sizes="(max-width: 605px) 100vw, 605px" /></p>
<ul>
<li>在以下窗口中输入所需的代理信息 <strong>全局代理设置</strong>.对于 <strong>上游代理类型</strong> 选择 <strong>Http</strong>.接下来，填写 <strong>代理 IP 或主机名</strong> 与 <strong>pr.oxylabs.io</strong>.根据 <strong>代理端口</strong> 走进 <strong>7777</strong>.最后，在 <strong>用户名</strong> 和 <strong>密码</strong>.关闭窗口保存设置。</li>
</ul>
<p>您还可以使用特定国家的条目。例如，如果您将 <strong>us-pr.oxylabs.io</strong> 根据 <strong>代理 IP 或主机名</strong> 和 <strong>10001</strong> 根据 <strong>代理端口</strong>您将收到带有粘性会话的美国退出节点。</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8169" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Kameleo2.png" alt="OxyLabs Residential Proxy Kameleo2" width="606" height="339" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Kameleo2.png 606w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Kameleo2-300x168.png 300w" sizes="(max-width: 606px) 100vw, 606px" /></p>
<ul>
<li>就这样，您就可以开始了。创建一个 <strong>新简介</strong> 或点击 <strong>快速简介</strong> 来启动浏览器，现在浏览器已启用代理。</li>
</ul>
<hr />
<h3 id="clonbrowser">克隆浏览器</h3>
<p>ClonBrowser 是另一款适用于 Windows 和 Mac 的多登录浏览器管理应用程序。从其官方网站获取 <a class="custom_link" href="https://www.clonbrowser.com/download" target="_blank" rel="nofollow noopener">这里</a>.以下是如何在 Windows 版 ClonBrowser 上配置住宅代理的分步指南：</p>
<ul>
<li>打开应用程序。</li>
<li>点击 <strong>创建新的浏览器配置文件</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8170" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-ClonBrowser1.jpg" alt="OxyLabs Residential Proxy ClonBrowser1" width="783" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-ClonBrowser1.jpg 783w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-ClonBrowser1-300x192.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-ClonBrowser1-768x490.jpg 768w" sizes="(max-width: 783px) 100vw, 783px" /></p>
<ul>
<li>点击 <strong>设置</strong> 邻接 <strong>代理设置</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8171" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-ClonBrowser2.png" alt="OxyLabs Residential Proxy ClonBrowser2" width="715" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-ClonBrowser2.png 715w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-ClonBrowser2-300x210.png 300w" sizes="(max-width: 715px) 100vw, 715px" /></p>
<ul>
<li>在下面的窗口中选择 <strong>Http</strong> 作为 <strong>连接类型</strong>.根据 <strong>IP 或主机</strong> 走进 <strong>pr.oxylabs.io</strong>.填写 <strong>7777</strong> 对于 <strong>港口</strong>.最后，在 <strong>用户名</strong> 于 <strong>用户名</strong> 格式和 <strong>密码</strong>.</li>
</ul>
<p>您还可以使用特定国家的条目。例如，如果您将 <strong>us-pr.oxylabs.io</strong> 根据 <strong>代理 IP 或主机名</strong> 和 <strong>10001</strong> 根据 <strong>代理端口</strong>您将收到带有粘性会话的美国退出节点。</p>
<p>您可以点击 <strong>连接测试</strong>.如果一切正常，点击 <strong>创建个人资料</strong>.</p>
<ul>
<li>仅此而已，现在您可以点击 <strong>开始</strong> 根据 <strong>选项</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8172" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-ClonBrowser3.png" alt="OxyLabs Residential Proxy ClonBrowser3" width="858" height="236" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-ClonBrowser3.png 956w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-ClonBrowser3-300x83.png 300w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-ClonBrowser3-768x211.png 768w" sizes="(max-width: 858px) 100vw, 858px" /></p>
<hr />
<h3 id="adspower">AdsPower</h3>
<p>AdsPower 是一款适用于 Windows 和 Mac 的多登录浏览器管理应用程序。你可以在其官方网站上获取 <a class="custom_link" href="https://www.adspower.net/?code=fmtc1m&source=oxylabs" target="_blank" rel="nofollow noopener">这里</a>.以下是如何在 AdsPower for Windows 上配置住宅代理的分步指南：</p>
<ul>
<li>打开应用程序。</li>
<li>点击 <strong>上传。</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8173" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-AdsPower1.png" alt="OxyLabs Residential Proxy AdsPower1" width="258" height="191" /></p>
<ul>
<li>根据 <strong>代理类型</strong> 选择 <strong>http</strong>.现在填写下表。输入 <strong>pr.oxylabs.io</strong> 对于 <strong>代理主机</strong> 和 <strong>7777</strong> 对于 <strong>代理端口</strong>.输入登录凭证 <strong>用户名</strong> 根据 <strong>代理用户</strong> 和您的 <strong>暗号</strong> 对于 <strong>密码</strong>.</li>
</ul>
<p>您还可以使用特定国家的条目。例如，如果您将 <strong>us-pr.oxylabs.io</strong> 根据 <strong>代理主机</strong> 和 <strong>10001</strong> 下<em>代理端口</em>, 您将收到带有粘性会话的 US 退出节点。</p>
<p>您可以点击 <strong>检查代理</strong>.如果一切正常，点击 <strong>创建个人资料</strong>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8174" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-AdsPower2.png" alt="OxyLabs Residential Proxy AdsPower2" width="689" height="393" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-AdsPower2.png 689w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-AdsPower2-300x171.png 300w" sizes="(max-width: 689px) 100vw, 689px" /></p>
<ul>
<li>就这样，您现在可以通过点击 <strong>开放</strong> 根据 <strong>账户管理</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8175" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-AdsPower3.png" alt="OxyLabs Residential Proxy AdsPower3" width="564" height="250" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-AdsPower3.png 564w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-AdsPower3-300x133.png 300w" sizes="(max-width: 564px) 100vw, 564px" /></p>
<hr />
<h3 id="vmlogin">VML 登录</h3>
<p>虚拟多重登录（或 VMLogin）是一种用于创建虚拟浏览器配置文件的工具，可帮助控制浏览器指纹、设置业务工作流和开发网络自动化等。要将 VMLogin 与 Oxylabs 住宅代理一起使用，请下载最新版本的 VMLogin <a class="custom_link" href="https://vmlogin.us/download.html" target="_blank" rel="nofollow noopener">这里</a>.</p>
<ul>
<li>启动 VMLogin 并创建新的浏览器配置文件。您可以点击 <strong>获取随机配置文件</strong> (1) 或选择您的设置。</li>
<li>点击 <strong>设置代理服务器</strong> (2)</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8177" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-VMLogin1.png" alt="OxyLabs Residential Proxy VMLogin1" width="675" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-VMLogin1.png 675w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-VMLogin1-300x222.png 300w" sizes="(max-width: 675px) 100vw, 675px" /></p>
<ul>
<li>创建新的住宅代理用户。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8178" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-VMLogin2.png" alt="OxyLabs Residential Proxy VMLogin2" width="815" height="317" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-VMLogin2.png 961w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-VMLogin2-300x117.png 300w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-VMLogin2-768x299.png 768w" sizes="(max-width: 815px) 100vw, 815px" /></p>
<ul>
<li>点击 <strong>设置代理服务器</strong> 并选择 <strong>HTTP 代理服务器</strong> 作为连接类型。在 IP 或主机下输入 <strong>pr.oxylabs.io</strong>.填写 <strong>7777</strong> 对于 <strong>港口</strong>.最后，在 <strong>用户名</strong> (客户用户名格式）和 <strong>密码</strong>.您可以点击 <strong>测试代理</strong>.如果一切正常，请保存配置文件并启动浏览器。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8179" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-VMLogin3.png" alt="OxyLabs Residential Proxy VMLogin3" width="686" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-VMLogin3.png 686w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-VMLogin3-300x219.png 300w" sizes="(max-width: 686px) 100vw, 686px" /></p>
<ul>
<li>您还可以使用特定国家的条目。例如，如果您将 <strong>us-pr.oxylabs.io</strong> 根据代理 <strong>IP 地址</strong> 和 <strong>10001</strong> 根据代理 <strong>港口</strong>您将收到一个带有粘性会话的 US 退出节点。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8180" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-VMLogin4.png" alt="OxyLabs Residential Proxy VMLogin4" width="714" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-VMLogin4.png 714w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-VMLogin4-300x210.png 300w" sizes="(max-width: 714px) 100vw, 714px" /></p>
<ul>
<li>至此，您就可以使用 VMLogin 的住宅代理了。</li>
</ul>
<hr />
<h3 id="undetectable">检测不到</h3>
<p>首先，您需要获得 "无法检测 "功能。为此，只需前往 <a class="custom_link" href="https://undetectable.io/" target="_blank" rel="nofollow noopener">undetectable.io</a>注册并下载浏览器。</p>
<p>然后，打开应用程序，点击 "+"创建新的个人资料。</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8181" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Undetectable1.png" alt="OxyLabs Residential Proxy Undetectable1" width="679" height="456" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Undetectable1.png 745w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Undetectable1-300x201.png 300w" sizes="(max-width: 679px) 100vw, 679px" /></p>
<p>在下面的窗口中，在 <em>新简介</em>输入新的配置文件名称。选择网站识别浏览器的设置（操作系统、浏览器、配置和屏幕）。</p>
<p>此外，您还可以选择主要语言和附加语言，而地理位置将由您的代理决定。</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8182" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Undetectable2.png" alt="OxyLabs Residential Proxy Undetectable2" width="749" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Undetectable2.png 749w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Undetectable2-300x200.png 300w" sizes="(max-width: 749px) 100vw, 749px" /></p>
<p>前往 <em>目的</em> 选项卡，并选择 <em>"新代理"</em> 选项。</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8183" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Undetectable3.png" alt="OxyLabs Residential Proxy Undetectable3" width="747" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Undetectable3.png 747w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Undetectable3-300x201.png 300w" sizes="(max-width: 747px) 100vw, 747px" /></p>
<p>您可以选择 SOCKS5 或 HTTP（选择 HTTP 代理作为连接类型）。现在填写代理和身份验证详细信息：键入 <strong>pr.oxylabs.io</strong> 供主机使用 <strong>7777</strong> 对于 <em>港口</em>.在 <em>登录</em> 和 <em>密码</em> 空格。不要忘记在用户名开头添加 customer-。如果您已将设备列入白名单，则无需提供登录凭证。</p>
<p>您还可以使用特定国家的条目。例如，如果您将 <strong>us- pr.oxylabs.io</strong> 根据 <em>主持人</em> 和 <strong>10001</strong> 端口下，您将收到带有粘性会话的 US 退出节点。请查看我们的 <a href="#country-specific-entry-nodes">国家特定入口节点完整列表</a>.</p>
<p>点击 <em>检查</em> 按钮。如果一切正常，您应该会收到一个显示外部 IP 的回复。按保存代理按钮确认更改。</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8184" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Undetectable4.png" alt="OxyLabs Residential Proxy Undetectable4" width="750" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Undetectable4.png 750w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Undetectable4-300x200.png 300w" sizes="(max-width: 750px) 100vw, 750px" /></p>
<p>现在按 <em>节省</em> 按钮，就会看到它出现在左侧菜单中。只需点击即可轻松编辑您的个人资料。</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8185" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Undetectable5.png" alt="OxyLabs Residential Proxy Undetectable5" width="748" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Undetectable5.png 748w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Residential-Proxy-Undetectable5-300x201.png 300w" sizes="(max-width: 748px) 100vw, 748px" /></p>
<p>就是这样！您已成功使用 Undetectable.io 设置了代理服务器。</p>
<hr />
<h3 id="puppeteer">木偶师</h3>
<p>在开始使用 Puppeteer 之前，你需要安装一些基本工具：Node.js 和你选择的代码编辑器。然后，创建一个 Node.js 项目并安装所需的软件包。关于如何安装和运行 Puppeteer，您可以在我们的 <a href="https://oxylabs.io/blog/puppeteer-tutorial" target="_blank" rel="nofollow noopener">博文</a>.</p>
<p>一切就绪后，我们就可以进入下一部分--Oxylabs 住宅代理与 Puppeteer 的集成。</p>
<ul>
<li>例如，在 Puppeteer 中填写数值：</li>
</ul>
<p><code>pr.oxylabs.io:7777</code></p>
<ul>
<li>在 "page.authenticate "下的 "username "值中输入您的 Oxylabs 代理子用户用户名和密码。</li>
<li>代码示例如下</li>
</ul>
<pre>const puppeteer = require('puppeteer')；
(async () =&gt; {
  const browser = await puppeteer.launch({
    headless: false、
    args: ['--代理服务器=pr.oxylabs.io:7777］
});
  const page = await browser.newPage()；
    await page.authenticate({
        username: 'USERNAME'、
        password: 'PASSWORD
    });
    await page.goto('https://ip.oxylabs.io')；
    await page.screenshot({path: 'example.png'})；
    await browser.close()；
})();
</pre>
<p>您还可以使用特定国家的条目。例如，如果您将 <code>us-pr.oxylabs.io</code> 下的 "主机 "和 <code>10001</code> 端口 "下，您将收到一个带有粘性会话的 US 退出节点。请查看我们的 <a href="#quick-start">文献资料</a> 获取特定国家/地区入口节点的完整列表。</p>
<p>就是这样！您已成功将 Oxylabs 住宅代理与 Puppeteer 集成。</p>
<hr />
<h4>参考资料</h4>
<p><a href="https://docs.oxylabs.io/residential/index.html" target="_blank" rel="nofollow noopener">https://docs.oxylabs.io/residential/index.html</a></p>
<hr />
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/oxylabs-residential-proxies/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7621</post-id>	</item>
		<item>
		<title>IPv6 Proxies (By BlazingSEO) : Learn Manuals Before You Buy</title>
		<link>https://proxysp.com/zh/ipv6-proxies-blazingseo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ipv6-proxies-blazingseo</link>
					<comments>https://proxysp.com/zh/ipv6-proxies-blazingseo/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[BlazingSEO Proxies]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7671</guid>

					<description><![CDATA[您相信Blazing SEO提供IPv6代理服务器吗？通过我们的文章，您将了解是否值得拥有他们的 IPv6 代理。什么是 IPv6 代理？IPv6 代理...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/ipv6-proxies-blazingseo/"> <span class="screen-reader-text">IPv6 代理服务器 (By BlazingSEO) ：购买前了解手册</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>您相信Blazing SEO提供IPv6代理服务器吗？通过我们的文章，您将知道是否值得拥有他们的 IPv6 代理。</p></blockquote>
<h2 class="heading">什么是 IPv6 代理？</h2>
<p>IPv6 代理服务器与我们的 <a href="https://www.proxysp.com/dedicated-proxies-blazingseo/" target="_blank" rel="noopener">专用代理服务器</a> 因为它们只供一个人使用。不过，专用代理采用的是 IPv4 格式，而 IPv6 采用的是另一种格式（解释如下）。</p>
<p>IPv4 一直是用于大多数设备的公共 IP 地址和代理服务器的标准 IP 地址。我们的所有代理服务器都采用 IPv4 格式。例如 - 192.117.63.126 但是，随着越来越多的设备进入市场，IPv4 地址实际上已经在互联网上完全耗尽，IPv4 一旦耗尽，IPv6 将是下一步。</p>
<p>IPv6 看起来与 IPv4 非常不同。只要看一眼，你就知道这是 IPv6。你可以看到 IPv6 更长、更复杂。而且还用冒号": "分隔。不过，在用作代理时，IPv4 和 IPv6 的工作方式非常相似。<br />
示例 - 2001:0db8:85a3:0000:0000:8a2e:0370:7334</p>
<p>许多主要网站都支持 IPv6，而且由于 IPv6 非常新，许多代理服务器都比我们的 IPv4 干净，因此是一个更好的选择。</p>
<h3><strong>优势</strong></h3>
<ul>
<li>私人代理是仅供您使用的代理。</li>
<li>它可以隐藏你的 IP（或 MAC）地址，同时增加安全性并保护你的隐私。</li>
<li><a href="https://www.proxysp.com/private-proxies/" target="_blank" rel="noopener">私人代理</a> 提供完全匿名的网上冲浪服务。重要的是要记住，在使用网络时，你会以 IP 地址的形式留下数字足迹。这意味着几乎任何人都能看到您的上网行为，包括黑客和垃圾邮件发送者。私人代理服务器几乎可以保证您的 IP 地址不被发现。</li>
<li>速度更快，因为没有其他人使用相同的代理服务器。</li>
<li>绕过过滤器和防火墙的能力，因为私人代理服务器可以绕过这类被屏蔽的网站。</li>
<li>能够解除对众多应用程序的封锁，绕过众多互联网限制（例如：......）。 <a href="https://www.proxysp.com/youtube-proxies/" target="_blank" rel="noopener">解锁 YouTube</a>, <a href="https://www.proxysp.com/best-facebook-proxy/" target="_blank" rel="noopener">在 Facebook 上</a>, <a href="https://www.proxysp.com/best-facebook-proxy/" target="_blank" rel="noopener">推特</a> 在公司或学校，"IT 管理员 "限制您访问这些网站或类似网站）。</li>
<li>比 IPv4 更干净</li>
<li>保护隐私，让您在购物或上网时尽量不用担心个人信息被泄露或泄漏。</li>
<li>由于私人代理为您提供唯一的互联网地址，因此可提供更高水平的互联网安全。</li>
<li>成功避免和拦截垃圾邮件。</li>
<li>绕过地理限制（基于国家的限制内容）。</li>
</ul>
<p>这些代理最好用于账户使用，因为代理永远不会更改（除非您希望代理更改）。</p>
<p>IPv6 最好，因为只有一个人在使用它。这意味着代理速度更快，网站可靠性更高。比较一下，如果代理<a href="https://www.proxysp.com/shared-proxy/" target="_blank" rel="noopener"> 共同</a> (半专用/旋转），使用代理的其他人可能已经为某个网站创建了账户。因此，代理上的其他用户将无法在同一网站上使用同一代理并创建另一个账户。</p>
<h3><strong>IPv6 代理的典型用途：</strong></h3>
<ul>
<li>社交媒体</li>
<li>游戏</li>
<li>账户创建/使用</li>
<li>一般浏览</li>
<li>搜索引擎优化</li>
</ul>
<h3><strong>地点</strong></h3>
<ul>
<li>美国</li>
</ul>
<div class="icon">
<div class="icon">
<hr />
<h2 class="heading">您的授权方案如何用于 IPv6 代理？</h2>
<p>简而言之，您在购买时将获得 IPv6 地址。每个 IPv6 地址都有自己独特的用户名和密码组合，用于授权。注意：所有 IP 的密码都是一样的，只有用户名是唯一的。</p>
<p>然后，您的连接将通过浏览器配置中使用的静态 IPv4 IP 地址进行隧道传输。如需了解更多信息，请查看下面的图表：</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7876" src="https://www.proxysp.com/wp-content/uploads/2021/09/IPv6-proxies-authorization-receive.jpg" alt="IPv6 proxies authorization-receive" width="597" height="387" srcset="https://proxysp.com/wp-content/uploads/2021/09/IPv6-proxies-authorization-receive.jpg 597w, https://proxysp.com/wp-content/uploads/2021/09/IPv6-proxies-authorization-receive-300x194.jpg 300w" sizes="(max-width: 597px) 100vw, 597px" /></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7877" src="https://www.proxysp.com/wp-content/uploads/2021/09/IPv6-proxies-authorization-setting.jpg" alt="IPv6 proxies authorization-setting" width="585" height="522" srcset="https://proxysp.com/wp-content/uploads/2021/09/IPv6-proxies-authorization-setting.jpg 585w, https://proxysp.com/wp-content/uploads/2021/09/IPv6-proxies-authorization-setting-300x268.jpg 300w" sizes="(max-width: 585px) 100vw, 585px" /></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7878" src="https://www.proxysp.com/wp-content/uploads/2021/09/IPv6-proxies-authorization-input.jpg" alt="IPv6 proxies authorization-input" width="489" height="529" srcset="https://proxysp.com/wp-content/uploads/2021/09/IPv6-proxies-authorization-input.jpg 489w, https://proxysp.com/wp-content/uploads/2021/09/IPv6-proxies-authorization-input-277x300.jpg 277w" sizes="(max-width: 489px) 100vw, 489px" /></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7879" src="https://www.proxysp.com/wp-content/uploads/2021/09/IPv6-proxies-authorization-enter.jpg" alt="IPv6 proxies authorization-enter" width="581" height="243" srcset="https://proxysp.com/wp-content/uploads/2021/09/IPv6-proxies-authorization-enter.jpg 581w, https://proxysp.com/wp-content/uploads/2021/09/IPv6-proxies-authorization-enter-300x125.jpg 300w" sizes="(max-width: 581px) 100vw, 581px" /></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7880" src="https://www.proxysp.com/wp-content/uploads/2021/09/IPv6-proxies-authorization-verify.jpg" alt="IPv6 proxies authorization-verify" width="589" height="105" srcset="https://proxysp.com/wp-content/uploads/2021/09/IPv6-proxies-authorization-verify.jpg 589w, https://proxysp.com/wp-content/uploads/2021/09/IPv6-proxies-authorization-verify-300x53.jpg 300w" sizes="(max-width: 589px) 100vw, 589px" /></p>
<hr />
<h2 class="heading">Blazing SEO 还能提供哪些有关其 IPv6 代理服务的其他信息？</h2>
<p dir="ltr"><span dir="ltr">使用 IPv6 代理，您可以轻松管理社交媒体，在网上搜索有价值的数据等！</span></p>
<h3 dir="ltr">优质处女 IPv6 代理</h3>
<p dir="ltr">我们的高质量 IP 干净整洁，随时可用。通过新客户的审核，每个 IP 都与我们的 ASN（完整的 /32）相连。您购买的每个 /64 子网都包含一个静态 IP。我们拥有 42 亿个 /64 子网、1,660 万个 /56 子网和 65,000 个 /48 子网，您完全有能力应对数字世界。此外，我们还在不断发展壮大，很快我们将提供 126 亿个 /64 地址和 3 个不同的 /32 子网，使我们的地址池更加多样化。</p>
<h3 dir="ltr">无与伦比的价格</h3>
<p dir="ltr"><span dir="ltr">拥有 40 亿个 /64 级 IPv6 代理服务器，您比以往任何时候都更容易找到所需的代理服务器。IPv4 代理价格与性价比极高的 IPv6 代理相比毫不逊色，仅为 $0.20/ip/月。满满的钱包和大量的 IP 地址？甜蜜的胜利   </span></p>
<h3 dir="ltr">多样化的使用案例</h3>
<p dir="ltr">借助我们的各种用例，您可以轻松地从一个项目切换到另一个项目。需要 /64 级别的代理？我们可以满足您的需求。从搜索引擎到社交媒体，IPv6 代理服务器将使您成为数字开拓者。作为奖励，我们提供用户名：密码验证。购买后，您将收到账户中每个 IP 的唯一用户名和密码组合。</p>
<h3 dir="ltr">贯穿始终的专用 IPv6</h3>
<p dir="ltr"><span dir="ltr">停机就是浪费时间。我们的 IPv6 代理服务器正常运行率高达 99%，运行效率高、效果好。此外，我们的 IPv6 代理还能完全控制性能、速度以及网站对子网的感知。双重销售子网？我们不会。 </span></p>
</div>
</div>
<div>
<p><strong><div class="su-heading su-heading-style-modern-2-orange su-heading-align-center" id="" style="font-size:30px;margin-bottom:20px"><div class="su-heading-inner">常见问题</div></div></strong></p>
<ul>
<li class="heading"><strong>IPv6 IP 适用于哪些网站？</strong></li>
</ul>
<p>为了帮助回答这个问题，以下是<a href="https://ipv6-test.com/validate.php" target="_blank" rel="nofollow noopener"> 链接</a> 可帮助检查网站是否兼容 IPv6。你只需输入网站 URL，该网站就会告诉你该 URL 是否有能够接收流量的 IPv6 服务器。除了这个网站，还有一个<a href="https://www.6connect.com/ipv6/ipv6-progress-report-top-sites-2019/" target="_blank" rel="nofollow noopener"> 热门网站列表</a> 与 IPv6 兼容。</p>
<hr />
<ul>
<li class="heading"><strong>Blazing SEO 提供多少个 IPv6 代理服务器位置？</strong></li>
</ul>
<p>目前只有洛杉矶，但随着子网网络的发展，他们的地点列表也会随之增加！</p>
<hr />
<ul>
<li class="heading"><strong>Blazing SEO IPv6 代理的带宽限制是多少？</strong></li>
</ul>
<p>与 Blazing SEO 提供的 IPv4 服务一样，他们的 IPv6 代理也提供无限带宽。这取决于异常使用情况（例如每月 1000 TB）。</p>
<hr />
<ul>
<li class="heading"><strong>Blazing SEO 是否有旋转 IPv6 代理？</strong></li>
</ul>
<p>目前，Blazing SEO 没有为其 IPv6 代理建立轮换系统。与轮换系统不同，他们能够以低廉的价格提供数千个 IP。正因如此，您能以比轮换 IPv4 IP 更低的价格购买到更多的专用 IPv6 代理。</p>
<hr />
<ul>
<li class="heading"><strong>Blazing SEO 是否提供 IPv6 代理的替换服务？</strong></li>
</ul>
<p>可应要求提供替换产品。有一些限制条件，请通过以下方式联系 Blazing SEO 支持团队 <span dir="ltr">support@blazingseo.com</span><span dir="ltr"> 有关更换的任何问题。 </span></p>
<hr />
<ul>
<li class="heading"><strong>在哪里可以找到有关 IPv6 代理的其他信息？</strong></li>
</ul>
<p>如果你想问 "代理服务器需要 IPv6 吗？有关这个问题的信息非常丰富。请自行查找或访问以下网站<a href="https://www.ripe.net/about-us/press-centre/understanding-ip-addressing" target="_blank" rel="nofollow noopener"> RIPE</a>提供有关 IP 地址的便捷图表。通过互联网、我们的专业知识和全天候服务的支持人员，您的问题将得到解答。</p>
<hr />
<h4 id="references" class="ftwp-heading">参考资料</h4>
</div>
<ul>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256608-what-are-ipv6-proxies" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256608-what-are-ipv6-proxies</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262778-what-sites-will-ipv6-ips-work-for-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262778-what-sites-will-ipv6-ips-work-for-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262779-how-many-locations-do-you-offer-for-ipv6-proxies-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262779-how-many-locations-do-you-offer-for-ipv6-proxies-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262776-how-does-your-authorization-scheme-work-for-ipv6-proxies-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262776-how-does-your-authorization-scheme-work-for-ipv6-proxies-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262777-what-are-your-bandwidth-limits-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262777-what-are-your-bandwidth-limits-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262780-do-you-have-rotating-ipv6-proxies-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262780-do-you-have-rotating-ipv6-proxies-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262781-do-you-offer-replacements-on-ipv6-proxies-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262781-do-you-offer-replacements-on-ipv6-proxies-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262782-where-can-i-find-additional-information-about-ipv6-proxies" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262782-where-can-i-find-additional-information-about-ipv6-proxies</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262787-what-additional-information-can-you-provide-about-blazing-seo-s-ipv6-proxy-offering-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262787-what-additional-information-can-you-provide-about-blazing-seo-s-ipv6-proxy-offering-</a></li>
</ul>
<hr />
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/ipv6-proxies-blazingseo/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7671</post-id>	</item>
		<item>
		<title>How to Use OxyLabs Proxy [Part 1]: OxyLabs Datacenter Proxies Manual</title>
		<link>https://proxysp.com/zh/oxylabs-datacenter-proxies/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oxylabs-datacenter-proxies</link>
					<comments>https://proxysp.com/zh/oxylabs-datacenter-proxies/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[How to Use OxyLabs Proxy (OxyLabs User Manual Navigation)]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7589</guid>

					<description><![CDATA[想使用 OxyLabs 的数据中心代理？那就不能错过这篇文章。它是最全面的 OxyLabs 数据中心代理用户指南。快速入门 在我们 ...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/oxylabs-datacenter-proxies/"> <span class="screen-reader-text">如何使用 OxyLabs 代理服务器 [第 1 部分]：OxyLabs 数据中心代理手册</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>想使用 OxyLabs 的数据中心代理？那就不能错过这篇文章。它是最全面的 OxyLabs 数据中心代理用户指南。</p></blockquote>
<h2>快速入门</h2>
<p>在我们开始之前，请确保您已从销售代表、专用客户经理或支持团队处收到用户名、密码和链接到您 IP 列表的所有 URL。</p>
<p>有两种方法可以访问 IP 列表。您可以通过浏览器直接访问 IP 列表，打开您收到的 URL（例如： <code>https://proxy.oxylabs.io/all</code>).然后会要求您输入登录凭证（HTTP Basic Auth）。</p>
<p>或者，您也可以通过对收到的 URL 发出 GET 请求（例如 <code>https://proxy.oxylabs.io/all</code>).不要忘记更换 <code>用户名</code> 和 <code>密码</code> 使用代理用户凭据。</p>
<div class="inside-code">
<pre>卷曲 <span class="nt">-u</span> <span class="s2">"用户名:密码"</span> https://proxy.oxylabs.io/all</pre>
<p><span style="font-size: 16px;">要使用代理进行请求，你需要从获取的列表中选择一个 IP 地址，并在请求参数中指定它。下面是一个 cURL 示例。您还可以找到更多其他语言的代码示例 </span><a href="#making-requests">这里</a> <span style="font-size: 16px;">或</span><span style="font-size: 16px;"> 我们的 </span><a class="custom_link" style="font-size: 16px; background-color: #ffffff;" href="https://github.com/oxylabs/product-integrations/tree/master/datacenter-proxies" target="_blank" rel="nofollow noopener">GitHub</a>.</p>
</div>
<div class="inside-code">
<pre>卷曲 <span class="nt">-x</span> 1.2.3.4:60000 <span class="nt">-U</span> <span class="s2">"用户名:密码"</span> http://ip.oxylabs.io</pre>
<p><span style="font-size: 16px;">如果有任何本文档未涉及的问题，请联系您的专职客户经理或我们的支持人员，电话号码是 </span><a class="custom_link" style="font-size: 16px; background-color: #ffffff;" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a><span style="font-size: 16px;">.</span></p>
</div>
<hr />
<h2>代理列表</h2>
<hr />
<h3>基础</h3>
<p>您的专用账户经理或我们的支持人员会向您提供代理列表的 URL，该 URL 应如下所示：</p>
<pre>https://proxy.oxylabs.io/key/a27c5343ce4c4637a85a9297ddf1cace</pre>
<p>只需在浏览器（或任何其他首选软件）中打开此 URL 即可。然后会要求您输入登录凭证（HTTP Basic Auth）：</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8075" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Proxy-Authentication-Required.jpg" alt="OxyLabs Proxy Authentication Required" width="358" height="238" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Proxy-Authentication-Required.jpg 358w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Proxy-Authentication-Required-300x199.jpg 300w" sizes="(max-width: 358px) 100vw, 358px" /></p>
<p>完成此操作后，代理列表将以纯文本形式显示。</p>
<p>如果您有多个列表，并希望获得分配给您账户的所有 IP，可以使用此 URL：</p>
<pre>https://proxy.oxylabs.io/all</pre>
<p>还可以包括 <code>显示国家</code> 或 <code>显示城市</code> 来获取 IP 及其对应位置。</p>
<hr />
<h3>RESTful</h3>
<h4 id="showing-all-available-proxy-lists">显示所有可用的代理列表</h4>
<p>通过该端点，您可以检索属于您用户的代理列表：</p>
<div class="endpoint">
<pre class="endpoint-body">GET https://api.oxylabs.io/v1/proxies/lists</pre>
</div>
<pre>curl -U username:password "https://api.oxylabs.io/v1/proxies/lists"
</pre>
<p><strong>输出示例</strong></p>
<pre class="highlight json tab-json">[
{
"uuid"："123e4567-e89b-12d3-a456-426655440000",
"key"："12345678",
"updated_timestamp"："2016-09-28T13:03:50+0300",
"ips_count"：2000,
"href"："http://api.oxylabs.io/v1/proxies/lists/123e4567-e89b-12d3-a456-426655440000"
}
]</pre>
<hr />
<h4>检索特定代理列表</h4>
<p>通过该端点，您可以检索特定的代理列表：</p>
<pre class="endpoint-body">GET https://api.oxylabs.io/v1/proxies/lists/{uuid}</pre>
<p>请求参数：<br />
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>参数</th>
<th> 说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>uuid</code></td>
<td>要检索的代理列表的 uuid</td>
</tr>
</tbody>
</table>
</div>
<pre>curl -u username:password "https://api.oxylabs.io/v1/proxies/lists/{uuid}"
</pre>
<p><strong>输出示例</strong></p>
<pre>[
{
"ip"："127.0.0.1",
端口"60000",
"country"："美国"
},
{
"IP"："127.0.0.2",
"端口"："60000",
"country"："GB
}
]</pre>
<hr />
<h2 id="making-requests">提出要求</h2>
<p>默认情况下，Oxylabs 代理服务器和 Proxy Rotator 使用基本的 <a class="custom_link" href="https://en.wikipedia.org/wiki/Basic_access_authentication" target="_blank" rel="nofollow noopener">HTTP 验证</a> 需要您提供用户名和密码。您可以通过以下方式联系您的专用账户经理或我们的支持团队获取您的证书 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a>.</p>
<p>我们还支持基于白名单 IP 地址的身份验证。请参见 <a href="#whitelisting-ips">白名单 IP</a>.</p>
<p>根据您的身份验证方法，您可能需要更改代理端口：</p>
<p><strong>目的</strong></p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>港口</th>
<th>使用方法</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>60000</code></td>
<td>当使用登录凭证（用户名和密码）时，需要与代理一起使用。该端口用于代理 <a href="#proxy-rotator">代理旋转器 </a>在使用登录凭证和白名单 IP 时也是如此。</td>
</tr>
<tr>
<td><code>65432</code></td>
<td>通过白名单 IP 进行授权时，需要使用代理服务器</td>
</tr>
</tbody>
</table>
</div>
<p>如果您想通过用户/通行证验证方法使用数据中心代理：</p>
<pre>curl -x 1.2.3.4:60000 -U user1:pass1 http://ip.oxylabs.io</pre>
<p>如果要通过白名单 IP 验证方法使用数据中心代理：</p>
<pre>curl -x 1.2.3.4:65432 http://ip.oxylabs.io</pre>
<hr />
<h2 id="whitelisting-ips">白名单 IP</h2>
<h3 id="dashboard">仪表板</h3>
<p>我们还支持基于 IP 地址的验证。如果您直接使用代理服务器（不使用代理服务器 <a class="custom_link" href="#proxy-rotator">代理旋转器</a>)，你可以自己将 IP 列入白名单。只需登录 <a class="custom_link" href="https://stats.oxylabs.io/" target="_blank" rel="nofollow noopener">https://stats.oxylabs.io</a> 并在底部侧边栏看到一个名为 "添加白名单 "的部分。点击链接后，您将进入自我白名单页面，如下所示：</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8076" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Whitelisting-IPs.png" alt="OxyLabs Whitelisting IPs" width="607" height="195" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Whitelisting-IPs.png 607w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Whitelisting-IPs-300x96.png 300w" sizes="(max-width: 607px) 100vw, 607px" /></p>
<h2></h2>
<p>在这里，您可以管理白名单 IP，并使用这些 IP 访问代理服务器。您可以将单个 IP 和最多 24 个子网列入白名单。如果您想将更大的子网列入白名单，请通过以下方式联系您的专用账户经理或支持团队 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a>.</p>
<p>如果使用代理 <a class="custom_link" href="#proxy-rotator">代理旋转器</a> 或 <a href="https://www.proxysp.com/socks-proxy/" target="_blank" rel="noopener">SOCKS 代理服务器</a>您不能自行将 IP 地址列入白名单。相反，您必须向我们提供您希望用于连接代理服务器的 IP 地址列表。我们将把它们列入白名单（添加到防火墙例外规则中）。这样，您就可以在没有登录凭证的情况下访问代理服务器了。</p>
<p>请注意，如果您使用白名单 IP 访问代理，则需要使用端口 <code>65432</code>.代理 <a class="custom_link" href="#proxy-rotator">代理旋转器</a>端口保持 <code>60000</code>.</p>
<hr />
<h3 id="restful-2">RESTful</h3>
<p>您也可以直接向我们的端点发送查询，将 IP 列入白名单。请注意，确认白名单 IP 列表的任何更改都需要 5 分钟的冷却时间。</p>
<h4 id="getting-whitelisted-ips-list">获取白名单 IP 列表</h4>
<pre>GET https://api.oxylabs.io/v1/whitelisted_ips</pre>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>回应</th>
<th> 说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>200</code></td>
<td>成功。响应体包含所有当前列入白名单的 IP 及其 ID。</td>
</tr>
</tbody>
</table>
</div>
<pre>curl -U username:password "https://api.oxylabs.io/v1/whitelisted_ips"</pre>
<p>输出示例</p>
<pre>{
"数据"：[
{
"id"：9765,
"address"："127.0.0.1"
},
{
"id"：9766,
"address"："127.0.0.2"
}
]
}</pre>
<hr />
<h4 id="adding-a-whitelisted-ip">添加白名单 IP</h4>
<pre>邮寄 https://api.oxylabs.io/v1/whitelisted_ips</pre>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>回应</th>
<th> 说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>201</code></td>
<td>成功。IP 地址已添加到列表中。响应体包含新添加的 <code>地址</code> 和 <code>本我</code>.</td>
</tr>
<tr>
<td><code>422</code></td>
<td>错误。请求正文包含无效 IP 地址。响应体包含错误信息。</td>
</tr>
</tbody>
</table>
</div>
<pre>curl -X POST -u username:password "https://api.oxylabs.io/v1/whitelisted_ips"
--header "Content-Type: application/json" --data '{"address"："127.0.0.1"}'</pre>
<pre>{
"错误"：{
"message"："This is not a valid IP address."、
"code"：422
}
}</pre>
<p>输出示例</p>
<pre>{
"id"：9767,
"address"："127.0.0.1"
}</pre>
<hr />
<h4 id="removing-a-whitelisted-ip">删除白名单 IP</h4>
<pre>DELETE https://api.oxylabs.io/v1/whitelisted_ips/{id}</pre>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>参数</th>
<th> 说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>本我</code></td>
<td>"(《世界人权宣言》) <code>本我</code> 您要删除的 IP 地址（可从 GET 白名单 IP 端点获取）</td>
</tr>
</tbody>
</table>
</div>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>回应</th>
<th>  说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>204</code></td>
<td>成功。IP 地址已从列表中删除。响应体为空。</td>
</tr>
<tr>
<td><code>403</code></td>
<td>错误。请求包含无效的 <code>本我</code>.响应体包含错误信息 "拒绝访问"。</td>
</tr>
</tbody>
</table>
</div>
<pre>curl -X DELETE -u username:password "https://api.oxylabs.io/v1/whitelisted_ips/{id}"</pre>
<hr />
<h4 id="saving-changes-5min-cooldown">保存变化（5 分钟冷却时间）</h4>
<pre>邮寄 https://api.oxylabs.io/v1/whitelisted_ips/upload_to_servers</pre>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>回应</th>
<th> 说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>202</code></td>
<td>成功。已确认对白名单 IP 列表的更改。响应正文为空。</td>
</tr>
<tr>
<td><code>429</code></td>
<td>错误。更改尚未确认，端点处于 5 分钟冷却状态。响应体包含错误信息 "您已超过端点的速率限制。请稍后再试"。</td>
</tr>
</tbody>
</table>
</div>
<pre>curl -X POST -u username:password "https://api.oxylabs.io/v1/whitelisted_ips/upload_to_servers"</pre>
<hr />
<h2>数据中心代理 API</h2>
<h3 id="replacing-subnet-ips">替换子网 IP</h3>
<pre>POST https://api.oxylabs.io/v1/proxy-list/rest/proxy-lists/{PROXY_LIST_UUID}/by-uuid/network-modification-requests/replace</pre>
<p>要想在使用代理管理 API 时替换现有代理列表中特定子网的 IP，您需要向上述端点发出 POST 请求，并说明您要替换的特定子网。为使其正常工作，您必须插入一个可从 API 查询到的代理列表 UUID（如所述 <a href="#showing-all-available-proxy-lists">这里</a>).</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>回应</th>
<th> 说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>本我</code></td>
<td>启动更换程序 ID</td>
</tr>
<tr>
<td><code>地位</code></td>
<td>状态描述已启动的替换程序的状态</td>
</tr>
<tr>
<td><code>信息</code></td>
<td>启动的流程类型</td>
</tr>
<tr>
<td><code>创建时间</code></td>
<td>启动进程的时间戳</td>
</tr>
<tr>
<td><code>link_too_list_plain</code></td>
<td>纯文本代理列表链接</td>
</tr>
<tr>
<td><code>link_too_list_json</code></td>
<td>指向 JSON 格式代理列表的链接</td>
</tr>
</tbody>
</table>
</div>
<pre>curl -X POST -H "Content-Type: application/json" -d '{"subnets"：["x.x.x.0/24", "y.y.y.0/24"]}' https://api.oxylabs.io/v1/proxy-list/rest/proxy-lists/{PROXY_LIST_UUID}/by-uuid/subnet-replacement-requests -u user:pass</pre>
<p>输出示例</p>
<pre>{
    "id"："1",
    "状态"："处理中"、
    "消息"：无、
    "类型"："替换"、
    "创建时间"： "2021-01-01T00:00:00+00:00"："2021-01-01T00:00:00+00:00",
    "link_to_list_plain"："https://proxy.oxylabs.io/key/4f34fe5862603138c1bc5ce28b181aef",
    "link_too_list_json"："https://api.oxylabs.io/v1/proxies/lists/8f11274c-a900-11eb-b910-901b0ec4424b"
}
</pre>
<hr />
<h3 id="checking-replacement-status">检查更换状态</h3>
<pre>获取 https://api.oxylabs.io/v1/proxy-list/rest/subnet-replacement-requests/{initiated_replacement_process_id}
</pre>
<p>要确认子网替换成功，必须向上述端点发出 GET 请求，同时插入 <em>启动更换程序 ID</em> 从之前启动的替换程序中删除。</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>回应</th>
<th> 说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>本我</code></td>
<td>启动更换程序 ID</td>
</tr>
<tr>
<td><code>地位</code></td>
<td>状态描述已启动的替换程序的状态</td>
</tr>
<tr>
<td><code>信息</code></td>
<td>启动的流程类型</td>
</tr>
<tr>
<td><code>创建时间</code></td>
<td>启动进程的时间戳</td>
</tr>
<tr>
<td><code>link_too_list_plain</code></td>
<td>纯文本代理列表链接</td>
</tr>
<tr>
<td><code>link_too_list_json</code></td>
<td>指向 JSON 格式代理列表的链接</td>
</tr>
</tbody>
</table>
</div>
<pre>curl -u user:pass https://api.oxylabs.io/v1/proxy-list/rest/subnet-replacement-requests/{INITIATED_REPLACEMENT_PROCESS_ID}"
</pre>
<p>输出示例</p>
<pre>{
    "created_at"："2021-01-01T00:00:00+00:00",
    "id"："1",
    "link_too_list_json"："https://api.oxylabs.io/v1/proxies/lists/8f11274c-a900-11eb-b910-901b0ec4424b",
    "link_too_list_plain"："https://proxy.oxylabs.io/key/4f34fe5862603138c1bc5ce28b181aef",
    "消息"：无、
    "状态"："已完成"、
    "类型"："替换"
}
</pre>
<hr />
<h3 id="listing-replaced-and-new-ips">列出被替换和新的 IP</h3>
<pre>GET https://api.oxylabs.io/v1/proxy-list/rest/network-modification-requests/{INITIATED_REPLACEMENT_PROCESS_ID}/ips
</pre>
<p>当替换请求处理完毕后，可通过向上述端点发出 GET 请求，同时从之前启动的替换进程中插入已启动的替换进程 ID，来查找已删除的 IP。</p>
<p>初始请求将只显示 100 个被替换的 IP，分页元数据将出现在响应中。要获取剩余的被替换 IP 列表，必须使用分页。如需分页，请格式化以下端点：</p>
<pre>GET https://api.oxylabs.io/v1/proxy-list/rest/network-modification-requests/{INITIATED_REPLACEMENT_PROCESS_ID}/ips?fields=metadata.total&amp;after={metadata_after}
</pre>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>回应</th>
<th> 说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>项目</code></td>
<td>包含被替换 IP ID、IP 地址和子网地址的列表</td>
</tr>
<tr>
<td><code>本我</code></td>
<td>替换过程中的代理 ID</td>
</tr>
<tr>
<td><code>ip</code></td>
<td>代理 IP 地址</td>
</tr>
<tr>
<td><code>子网</code></td>
<td>分配 IP 的子网</td>
</tr>
<tr>
<td><code>类型</code></td>
<td><code>冗员</code> - 已更换的 IP、 <code>新</code>- 已分配的新 IP，而不是 <code>冗员</code>一种</td>
</tr>
<tr>
<td><code>元数据</code></td>
<td>光标分页数据显示从被替换 IP 列表数据中的哪个 IP 地址获取的界限</td>
</tr>
</tbody>
</table>
</div>
<pre>curl -u user:pass "https://api.oxylabs.io/v1/proxy-list/rest/network-modification-requests/{INITIATED_REPLACEMENT_PROCESS_ID}/ips"
</pre>
<p>输出示例</p>
<pre>{
  "项目"：[
    {
      "id"："1",
      "ip"："127.1.0.1",
      "子网"："127.1.0.0/24",
      "类型"： "冗余"：冗余
    },
    {
      "id"："2",
      "IP"："127.1.1.2",
      "子网"："127.1.1.0/24",
      "类型"："新"
    }
  ],
  "元数据"：{
    "后"："'100'",
    "之前"："'无'"、
    "总数"： 100
  }
}
</pre>
<hr />
<h2 id="proxy-rotator">代理旋转器 - 可选</h2>
<p>该服务为可选服务，不包含在订购中。我们为您提供的不是连接到单个 IP 的端点，而是连接到您指定的代理列表的端点。每次请求，端点都会获取一个不同的 IP。要了解如何将端点用作代理，请参阅右侧示例。</p>
<p><strong>备注</strong>:代理旋转器只能与端口 <code>60000</code>.</p>
<pre>curl --proxy vm.oxylabs.io:60000 http://ip.oxylabs.io
</pre>
<hr />
<h3>使用代理旋转器进行会话控制</h3>
<p>使用代理旋转器可以保持相同的 IP 地址。首先，你需要知道 Proxy Rotator 有多少个代理。然后只需添加 <code>--proxy-header "代理服务器：sXXX"</code> 标头，其中 <code>sXXX</code> 是代理的编号，例如 <code>s5</code> 或 <code>s2541</code>.</p>
<pre>user1@machine:~$ curl -x vm.oxylabs.io:60000 -U user:pass http://ip.oxylabs.io --proxy-header "Proxy-Server: s10"
1.2.30.40
user1@machine:~$ curl -x vm.oxylabs.io:60000 -U user:pass http://ip.oxylabs.io --proxy-header "Proxy-Server: s10"
1.2.30.40
user1@machine:~$ curl -x vm.oxylabs.io:60000 -U user:pass http://ip.oxylabs.io --proxy-header "Proxy-Server: s10"
1.2.30.40
</pre>
<hr />
<h2>响应代码</h2>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>回应</th>
<th> 错误信息</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>407</code></td>
<td>需要代理验证</td>
<td>您正通过 60000 端口访问代理，但您未提供授权标头，或者您的凭据不正确。</td>
</tr>
<tr>
<td><code>504</code></td>
<td>网关超时</td>
<td>代理服务器超时。等待目标服务器的响应。通常约 60 秒。</td>
</tr>
<tr>
<td><code>503</code></td>
<td>服务不可用</td>
<td>连接目标服务器失败。DNS 无法解析目标服务器地址。</td>
</tr>
<tr>
<td><code>401</code></td>
<td>未经授权</td>
<td>证书不正确。</td>
</tr>
<tr>
<td><code>404</code></td>
<td>未找到</td>
<td>找不到指定的资源。</td>
</tr>
<tr>
<td><code>500</code></td>
<td>内部服务器错误</td>
<td>我们的服务器出了问题。稍后再试。</td>
</tr>
</tbody>
</table>
</div>
<p>这些是使用我们的数据中心代理时最常见的响应代码。如果您收到任何其他响应代码，请联系您的专用账户经理了解更多信息。</p>
<hr />
<h2>第三方集成</h2>
<h3 id="oxylabs-proxy-manager">Oxylabs 代理管理器</h3>
<p><a class="custom_link" href="https://chrome.google.com/webstore/detail/oxylabs-proxy-manager/infajoaodhhdogakhloedbppcbeajhoo" target="_blank" rel="nofollow noopener">Oxylabs 代理管理器</a> 是 Chrome 浏览器的代理管理扩展。它不仅是免费的，而且可以与您选择的任何代理提供商配合使用。启用代理无需通过设置和菜单选项。从 Chrome 网上商城下载该扩展 <a class="custom_link" href="https://chrome.google.com/webstore/detail/oxylabs-proxy-manager/infajoaodhhdogakhloedbppcbeajhoo" target="_blank" rel="nofollow noopener">这里</a></p>
<ul>
<li>单击扩展图标打开应用程序</li>
<li>如果您还没有添加任何代理，您会看到 <strong>添加新代理</strong> 按钮。点击后继续。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8078" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Add-new-proxy.jpg" alt="OxyLabs Add new proxy" width="434" height="431" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Add-new-proxy.jpg 434w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Add-new-proxy-300x298.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Add-new-proxy-150x150.jpg 150w" sizes="(max-width: 434px) 100vw, 434px" /></p>
<ul>
<li>添加代理配置文件。在 <strong>输入名称</strong>.输入您从我们这里购买的代理作为 <strong>代理服务器 IP</strong> 和 <code>60000</code> 作为 <strong>港口</strong> 如果使用的是用户名：密码身份验证方法，以及 <code>65432</code> 如果您使用的是白名单 IP。</li>
</ul>
<p>填写您的 <strong>用户名</strong> 和 <strong>密码</strong>.最后，点击 <strong>保存更改</strong>.如果您已将自己的 IP 列为白名单，则根本不需要执行此步骤。</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8079" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Save-changes.png" alt="OxyLabs Save changes" width="829" height="383" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Save-changes.png 963w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Save-changes-300x139.png 300w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Save-changes-768x355.png 768w" sizes="(max-width: 829px) 100vw, 829px" /></p>
<ul>
<li>打开扩展，点击 <strong>连接</strong>.就这样，您就可以使用数据中心代理了。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8080" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-click-Connect.jpg" alt="OxyLabs click Connect" width="430" height="371" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-click-Connect.jpg 430w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-click-Connect-300x259.jpg 300w" sizes="(max-width: 430px) 100vw, 430px" /></p>
<hr />
<h3 id="switchyomega">SwitchyOmega</h3>
<p>SwitchyOmega 是一款功能强大、性能可靠的代理管理器，可与多种流行浏览器配合使用。根据我们的经验，它是最好的代理插件之一。我们强烈推荐您使用 SwitchyOmega 代理。为此，您需要获取该插件。对于 Chrome 浏览器，请单击 <a class="custom_link" href="https://chrome.google.com/webstore/detail/proxy-switchyomega/padekgcemlokbadohgkifijomclgjgif?hl=en" target="_blank" rel="nofollow noopener">这里</a>点击 <a class="custom_link" href="https://addons.mozilla.org/en-US/firefox/addon/switchyomega/" target="_blank" rel="nofollow noopener">这里</a>.安装完成后，您应该</p>
<ul>
<li>打开 Switchy Omega 选项。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8081" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega1.png" alt="OxyLabs SwitchyOmega1" width="195" height="230" /></p>
<ul>
<li>点击 <strong>新资料...</strong></li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8082" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega2.jpg" alt="OxyLabs SwitchyOmega2" width="537" height="461" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega2.jpg 579w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega2-300x258.jpg 300w" sizes="(max-width: 537px) 100vw, 537px" /></p>
<ul>
<li>为新配置文件命名，选择 <strong>代理简介</strong> 类型，然后点击 <strong>创建</strong></li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8083" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega3.jpg" alt="OxyLabs SwitchyOmega3" width="543" height="557" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega3.jpg 590w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega3-293x300.jpg 293w" sizes="(max-width: 543px) 100vw, 543px" /></p>
<ul>
<li>改变 <strong>规程</strong> 至 <strong>超文本传输协定</strong>.根据 <strong>服务器</strong> 输入您从我们这里购买的代理之一。在 <strong>港口</strong> 增加 <code>60000</code> 如果使用的是用户名：密码身份验证方法，以及 <code>65432</code> 如果您使用的是白名单 IP。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8084" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega4.jpg" alt="OxyLabs SwitchyOmega4" width="793" height="177" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega4.jpg 856w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega4-300x67.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega4-768x171.jpg 768w" sizes="(max-width: 793px) 100vw, 793px" /></p>
<ul>
<li>接下来，点击右侧的锁定按钮。填写您的 <strong>用户名</strong> 和 <strong>密码</strong>.点击 <strong>保存更改</strong>.</li>
</ul>
<p>如果您已将自己的 IP 列为白名单，则根本不需要执行此步骤。</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8085" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega5.jpg" alt="OxyLabs SwitchyOmega5" width="297" height="230" /></p>
<ul>
<li>点击 <strong>应用更改</strong></li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8086" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega6.jpg" alt="OxyLabs SwitchyOmega6" width="378" height="380" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega6.jpg 378w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega6-298x300.jpg 298w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega6-150x150.jpg 150w" sizes="(max-width: 378px) 100vw, 378px" /></p>
<ul>
<li>最后一步，点击 SwitchyOmega 图标，选择新配置的代理。现在就可以开始了！</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8087" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-SwitchyOmega7.png" alt="OxyLabs SwitchyOmega7" width="198" height="255" /></p>
<hr />
<h3 id="foxyproxy">FoxyProxy</h3>
<p>FoxyProxy 是一款简单的代理管理器，可与许多常用浏览器配合使用。首先，您需要获取 FoxyProxy。对于 Chrome 浏览器，请单击 <a class="custom_link" href="https://chrome.google.com/webstore/detail/foxyproxy-standard/gcknhkkoolaabfmlnjonogaaifnjlfnp?hl=en" target="_blank" rel="nofollow noopener">这里</a>点击 <a class="custom_link" href="https://addons.mozilla.org/en-US/firefox/addon/foxyproxy-standard/" target="_blank" rel="nofollow noopener">这里</a>.安装完成后，您应该</p>
<ul>
<li>打开 FoxyProxy 选项。</li>
<li>点击 <strong>添加</strong>.</li>
<li>在 <strong>IP 地址、DNS 名称、服务器名称</strong> 字段输入其中一个代理。</li>
<li>在 <strong>港口</strong> 字段输入端口。如果使用用户/通行证身份验证，端口为 <code>60000</code>.如果您的 IP 已列入白名单，则端口为 <code>65432</code>.</li>
<li>在 <strong>用户名（可选）</strong> 字段中输入您的用户名。如果您已将自己的 IP 列为白名单，请将该字段留空，因为插件会通过它进行授权，并忽略您在该字段中写入的所有内容。</li>
<li>在 <strong>密码（可选）</strong> 字段中输入您的密码。如果您已将自己的 IP 列入白名单，并希望通过它进行授权，请将此字段留空。</li>
<li>填写完所有字段后，按 <strong>节省</strong>.</li>
<li>为了让所有请求都能通过此设置运行，您必须按下 FoxyProxy 插件图标 (1)，然后点击 <em>使用代理 对所有 URL 使用代理（忽略模式）</em> (2).</li>
</ul>
<p>(1)</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8089" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-FoxyProxy1.jpg" alt="OxyLabs FoxyProxy1" width="421" height="326" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-FoxyProxy1.jpg 421w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-FoxyProxy1-300x232.jpg 300w" sizes="(max-width: 421px) 100vw, 421px" /></p>
<p>(2)</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8090" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-FoxyProxy2.png" alt="OxyLabs FoxyProxy2" width="851" height="436" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-FoxyProxy2.png 955w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-FoxyProxy2-300x154.png 300w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-FoxyProxy2-768x393.png 768w" sizes="(max-width: 851px) 100vw, 851px" /></p>
<ul>
<li>就这样，你完成了！</li>
</ul>
<hr />
<h3 id="proxifier">Proxifier</h3>
<p>要在 Proxfier 中使用数据中心代理，只需按照以下步骤操作即可：</p>
<ul>
<li>打开 Proxifier 应用程序。</li>
<li>添加代理。点击 <strong>代理 (1)</strong>.点击 <strong>添加(2)</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8091" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Proxifier1.png" alt="OxyLabs Proxifier1" width="592" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Proxifier1.png 592w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Proxifier1-300x253.png 300w" sizes="(max-width: 592px) 100vw, 592px" /></p>
<ul>
<li>在以下窗口中输入所需信息。 <strong>IP 地址(1)</strong>, <strong>端口(2)</strong> 其中的用户名/密码验证是 <code>60000</code> 以及用于白名单 IP 验证的 <code>65432</code> 选择 <strong>HTTPS(3)</strong> 协议。在验证框中单击 <strong>启用(4)</strong> 并输入所提供的 <strong>用户名(5)</strong> 和 <strong>密码(6)</strong>.</li>
</ul>
<p>不要忘记添加 <code>顾客</code> 在用户名开头。如果您已将设备列入白名单，请不要点击 <strong>启用</strong>，您的身份验证无需用户名/密码。如果您愿意，可以启用 <strong>显示为网络浏览器</strong> 选项。点击 <strong>好的</strong>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8092" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Proxifier2.png" alt="OxyLabs Proxifier2" width="468" height="510" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Proxifier2.png 468w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Proxifier2-275x300.png 275w" sizes="(max-width: 468px) 100vw, 468px" /></p>
<ul>
<li>您将被要求 <strong>您是否希望 Proxifier 默认使用该代理？</strong>?这意味着您的所有浏览器都将使用此设置。您可以自行决定是否要这样做。如果选择 <strong>是</strong>即可完成设置。如果只想在特定浏览器上使用代理，请按照以下步骤操作。</li>
<li>点击 <strong>规则(1)</strong> 然后点击 <strong>添加...(2)</strong>.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8093" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Proxifier3.png" alt="OxyLabs Proxifier3" width="846" height="461" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Proxifier3.png 846w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Proxifier3-300x163.png 300w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Proxifier3-768x418.png 768w" sizes="(max-width: 846px) 100vw, 846px" /></p>
<ul>
<li>点击 <strong>+(1)</strong> 按钮添加要使用代理设置的应用程序。选择要使用代理设置的浏览器并点击。最后，您必须更改 <strong>行动(2)</strong>.单击它并选择您创建的代理。</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8094" src="https://www.proxysp.com/wp-content/uploads/2021/09/OxyLabs-Proxifier4.png" alt="OxyLabs Proxifier4" width="527" height="543" srcset="https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Proxifier4.png 527w, https://proxysp.com/wp-content/uploads/2021/09/OxyLabs-Proxifier4-291x300.png 291w" sizes="(max-width: 527px) 100vw, 527px" /></p>
<ul>
<li>就是这样。现在，您的所有请求（使用浏览器时）都将通过代理进行。</li>
</ul>
<hr />
<h4>参考资料</h4>
<p><a href="https://docs.oxylabs.io/dc/index.html#quick-start" target="_blank" rel="nofollow noopener">https://docs.oxylabs.io/dc/index.html</a></p>
<hr />
<p>&nbsp;</p>
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>
<p>&nbsp;</p>
<pre></pre>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/oxylabs-datacenter-proxies/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7589</post-id>	</item>
		<item>
		<title>BlazingSEO Account &#038; Billing Issues: Learn Manuals Before You Buy</title>
		<link>https://proxysp.com/zh/blazingseo-account-billing-issues/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=blazingseo-account-billing-issues</link>
					<comments>https://proxysp.com/zh/blazingseo-account-billing-issues/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[BlazingSEO Proxies]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7709</guid>

					<description><![CDATA[如果您决定购买 Blaze SEO 代理，请查看购买流程和用户手册。BlazingSEO 购买是否有折扣代码...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/blazingseo-account-billing-issues/"> <span class="screen-reader-text">BlazingSEO 帐户和账单问题：购买前学习手册</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>如果您决定购买 Blaze SEO 代理，请查看购买流程和用户手册。</p></blockquote>
<h2>购买 BlazingSEO</h2>
<h3 class="heading">是否有折扣代码？</h3>
<p>我们有代码<strong> BHW</strong> 5%反复出现在我们的代理和 <strong>5 折 </strong>即可获得 5 % 的服务器经常性折扣。</p>
<hr />
<h3 class="heading">如果没有收到验证码该怎么办？</h3>
<p>如果您在注册后或使用新设备登录后没有收到验证码，请通过以下方式联系我们的支持团队 <a href="support@blazingseollc.com" target="_blank" rel="nofollow noopener">电子邮件</a>.</p>
<hr />
<h3 class="heading">为什么我的代理没有分配？</h3>
<p>某些位置可能暂时无法使用。我们强烈建议将代理分配到"<strong>混合型</strong>"在仪表板中选择位置偏好 <a href="https://blazingseollc.com/proxy/dashboard/locations" target="_blank" rel="nofollow noopener">这里</a>.一旦代理服务器被分配到相应的 "混合 "位置设置，代理服务器就会提供给您。如果由于某种原因，在选择 "混合 "位置 10 分钟后仍未向您提供代理，请立即通知我们。</p>
<hr />
<h3 class="heading">为什么我的控制面板中不显示代理或代理空白？</h3>
<p>如果您已购买代理服务器，但发现代理服务器控制面板中本应出现代理服务器的位置出现空白，则表示您选择的位置我们目前可能没有库存。</p>
<p>在这种情况下，您有几种选择：</p>
<ol>
<li>您可以等待 48 小时以上，我们可能会收到更多存货，但这并不保证。</li>
<li><strong>推荐</strong> - 将代理位置更改为 <strong>混合型</strong> 在代理仪表板的 "位置首选项 "选项卡下 <a href="https://blazingseollc.com/proxy/dashboard/locations" target="_blank" rel="nofollow noopener">这里</a>.</li>
</ol>
<ul>
<li>将位置更改为混合位置并保存后，大约 10 分钟就能收到代理。</li>
<li>请注意： <em>设置为混合位置将提供更好的子网多样性，这在连接网站时是最好不过的了。您将跨越更多的 ISP、ASN 和 A+B+C 类子网。  </em></li>
</ul>
<hr />
<h3 class="heading">如何购买更多替换件？</h3>
<p>我们目前提供每个代理每 30 天免费更换一个代理的服务。因此，如果您的一个代理服务器无法正常访问您使用代理服务器的网站，那么您可以使用其中一个代理服务器进行替换。</p>
<p>如果您已经使用了所有的替换品，那么您将在使用替换品的 30 天后收到更多的替换品。因此，如果您在 30 天账单期的 15 天后使用了替换计划，那么您将在下一个 30 天账单期的 15 天后收到新的替换计划。</p>
<p>如果您不愿意等待，可以购买额外的替换产品。目前，您需要与我们的支持团队联系，他们将协助您完成链接中的这一流程。</p>
<p>我们将很快采用一种客户友好的方式来完成这项工作。</p>
<hr />
<h2>BlazingSEO 账户</h2>
<h3 class="heading">完成购买流程后，我该怎么做？</h3>
<p>完成购买后，请按照以下说明访问您的代理服务器：</p>
<p>1.请登录您的账户 <a href="https://billing.blazingseollc.com/hosting/clientarea.php" target="_blank" rel="nofollow noopener">这里</a>.您也可以根据以下视频指南了解如何访问客户区</p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/XJoHmvKvfNM?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<p>2.  登录后，您可以访问代理服务器 <a href="http://blazingseollc.com/proxy/dashboard/" target="_blank" rel="nofollow noopener">这里</a>.您还可以使用" "左下角的快捷方式链接。<strong>登录代理控制面板</strong>"，也可登录代理仪表板。</p>
<p>如果这是您第一次登录，您需要分配代理位置，保存分配的代理位置后，您的代理将出现在代理仪表板上。</p>
<p>确保在使用前授权您的计算机 IP 地址，这样您的代理服务器才会允许您授权的 IP 地址访问。您可以通过本视频指南了解如何进行授权：如何为代理服务器授权 IP 地址：</p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/SxRB6Pq_esI?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<hr />
<h3 class="heading">您能告诉我如何登录我的控制面板并管理我的账户吗？</h3>
<p>本文重点介绍 <strong>登录 </strong>地区，以及<strong> 账户管理</strong>您的帐户位置。</p>
<p><strong>登录选项 1 - <a href="https://billing.blazingseollc.com/hosting/clientarea.php" target="_blank" rel="nofollow noopener"><em>控制面板</em></a></strong><em> </em></p>
<p>代理控制面板登录（可在快捷方式&gt;"登录代理控制面板 "中找到）</p>
<ul>
<li><span dir="ltr"><em><a dir="ltr" href="https://billing.blazingseollc.com/hosting/clientarea.php?action=services" target="_blank" rel="nofollow noopener">管理您的服务</a></em>, </span></li>
<li><em><a href="https://billing.blazingseollc.com/hosting/clientarea.php?action=invoices" target="_blank" rel="nofollow noopener">支付/下载发票</a></em><em>, </em></li>
<li><em><a href="https://billing.blazingseollc.com/hosting/clientarea.php?action=changepw" target="_blank" rel="nofollow noopener">更改账户密码</a></em></li>
<li><em><a href="https://billing.blazingseollc.com/hosting/clientarea.php?action=details" target="_blank" rel="nofollow noopener">更新账单信息/地址</a></em></li>
</ul>
<p>请使用您注册的电子邮件地址和注册时设置的密码登录。如果您忘记了密码，请使用"<a href="https://billing.blazingseollc.com/hosting/pwreset.php" target="_blank" rel="nofollow noopener"><em>忘记密码？</em></a>"重置密码。</p>
<hr />
<p><strong>登录选项 2 - <a href="http://blazingseollc.com/proxy/dashboard/" target="_blank" rel="nofollow noopener"><em>代理控制面板</em></a></strong><em> </em></p>
<p>查看和管理代理，授权 IP 地址，设置授权类型（IP 授权或用户名/密码授权）、</p>
<ul>
<li><span dir="ltr"><em><a dir="ltr" href="https://blazingseollc.com/proxy/checkout/upgrade" target="_blank" rel="nofollow noopener">升级代理订阅</a></em></span></li>
<li><em><a href="https://blazingseollc.com/proxy/checkout/buy" target="_blank" rel="nofollow noopener">购买新的代理订阅</a></em></li>
<li><span dir="ltr"><em><a href="http://blazingseollc.com/proxy/dashboard/replace" target="_blank" rel="noopener">替换代理</a>, <a href="http://blazingseollc.com/proxy/dashboard/locations" target="_blank" rel="nofollow noopener">代理位置设置</a> </em></span></li>
<li><span dir="ltr"><a href="http://blazingseollc.com/proxy/dashboard/settings" target="_blank" rel="nofollow noopener"><em>代理设置</em></a></span></li>
</ul>
<p>请使用注册的电子邮件地址和注册时设置的密码登录。</p>
<hr />
<h3 class="heading">如何重置或更改密码？</h3>
<p>如果您想更改账户密码，请访问 <a href="https://billing.blazingseollc.com/hosting/clientarea.php?action=changepw" target="_blank" rel="nofollow noopener">此链接</a>.</p>
<hr />
<h3 class="heading">如何删除取消申请？</h3>
<p>如果您不小心申请取消了相应的订阅，您可以通过客户区将其删除。请按照以下步骤操作，了解如何删除取消请求。</p>
<p>1.登录客户区</p>
<p style="font-size: 16px; font-style: normal; font-weight: 400;"><img loading="lazy" decoding="async" class="aligncenter wp-image-8055" src="https://www.proxysp.com/wp-content/uploads/2021/09/remove-a-cancellation-request1.jpg" alt="remove a cancellation request1" width="464" height="279" srcset="https://proxysp.com/wp-content/uploads/2021/09/remove-a-cancellation-request1.jpg 512w, https://proxysp.com/wp-content/uploads/2021/09/remove-a-cancellation-request1-300x180.jpg 300w" sizes="(max-width: 464px) 100vw, 464px" /></p>
<p>&nbsp;</p>
<p>2.然后继续您的活动<span style="font-size: 16px;">您要求取消的服务项目</span></p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8056" src="https://www.proxysp.com/wp-content/uploads/2021/09/remove-a-cancellation-request2.jpg" alt="remove a cancellation request2" width="478" height="164" srcset="https://proxysp.com/wp-content/uploads/2021/09/remove-a-cancellation-request2.jpg 478w, https://proxysp.com/wp-content/uploads/2021/09/remove-a-cancellation-request2-300x103.jpg 300w" sizes="(max-width: 478px) 100vw, 478px" /></p>
<p>3.然后选择 "继续计费"。</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8057" src="https://www.proxysp.com/wp-content/uploads/2021/09/remove-a-cancellation-request3.jpg" alt="remove a cancellation request3" width="303" height="437" srcset="https://proxysp.com/wp-content/uploads/2021/09/remove-a-cancellation-request3.jpg 353w, https://proxysp.com/wp-content/uploads/2021/09/remove-a-cancellation-request3-208x300.jpg 208w" sizes="(max-width: 303px) 100vw, 303px" /></p>
<p>4.在该窗口显示后，选择 "确定"。</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8058" src="https://www.proxysp.com/wp-content/uploads/2021/09/remove-a-cancellation-request4.jpg" alt="remove a cancellation request4" width="506" height="212" srcset="https://proxysp.com/wp-content/uploads/2021/09/remove-a-cancellation-request4.jpg 669w, https://proxysp.com/wp-content/uploads/2021/09/remove-a-cancellation-request4-300x126.jpg 300w" sizes="(max-width: 506px) 100vw, 506px" /></p>
<hr />
<h2 data-wpview-marker="https%3A%2F%2Fportal.blazingseollc.com%2Fen%2Fsupport%2Fsolutions%2Farticles%2F64000256665-what-do-i-do-after-i-complete-the-purchase-process-%3Cbr%3Ehttps%3A%2F%2Fportal.blazingseollc.com%2Fen%2Fsupport%2Fsolutions%2Farticles%2F64000256605-can-you-tell-me-how-to-login-to-my-dashboard-and-manage-my-account-%3Cbr%3Ehttps%3A%2F%2Fportal.blazingseollc.com%2Fen%2Fsupport%2Fsolutions%2Farticles%2F64000256664-how-do-i-reset-or-change-my-password-%3Cbr%3Ehttps%3A%2F%2Fportal.blazingseollc.com%2Fen%2Fsupport%2Fsolutions%2Farticles%2F64000256662-how-do-i-remove-a-cancellation-request-">BlazingSEO 退款和取消</h2>
<h3 class="heading">Blazing SEO 是否处理退款？</h3>
<p>Blazing SEO 不保证因未使用或对服务不满意而退款。退款政策也可参考其 <a href="https://rayobyte.com/tos-and-aup/" target="_blank" rel="nofollow noopener">服务条款和可接受使用政策</a>.</p>
<p><strong>试用退款</strong></p>
<p><span dir="ltr">我们提供为期 2 天的产品试用期，这样您就可以在购买前测试我们的代理服务器是否适合您的特定用途。如果您发现代理服务器不能满足您的要求，您可以 <a href="support@blazingseo.com" target="_blank" rel="nofollow noopener">联系</a> 并要求退款。</span></p>
<p><span dir="ltr">一旦您通过了两天的试用期，您就可以继续使用它们，它们将每月自动续订，直到您取消为止。如果您认为自己因特殊情况有权获得退款，您可以提交退款申请，但我们不保证向任何个人退款。</span></p>
<p><strong>3/6/12 月份 退款</strong></p>
<p>如果您购买的是 3/6/12 个月的服务，请联系我们的支持部门了解退款详情。</p>
<hr />
<h3 class="heading">如何取消代理试用？</h3>
<p>如果您想取消代理试用服务并不再续约，您需要申请退款，届时您的服务将被取消。我们提供为期两天的试用服务，我们鼓励您利用这两天时间充分测试代理服务器是否适合您的使用情况。  如果您在注册后的前两天内通知我们，我们可以为您办理退款。  如果您认为特定类型的代理服务器无法满足您的需求，但又想购买其他类型的代理服务器，我们的支持团队可以根据您的使用情况与您一起确定推荐的最佳代理服务器类型。  如有疑问，请 <a href="support@blazingseo.com" target="_blank" rel="nofollow noopener">电子邮件</a>.</p>
<hr />
<h3 class="heading">如何取消服务？</h3>
<p>关于如何取消的视频：</p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/PsScsw9_lnw?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<p>文字说明：</p>
<p>1.进入客户区。</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8059" src="https://www.proxysp.com/wp-content/uploads/2021/09/cancel-my-service1.jpg" alt="cancel my service1" width="394" height="237" srcset="https://proxysp.com/wp-content/uploads/2021/09/cancel-my-service1.jpg 505w, https://proxysp.com/wp-content/uploads/2021/09/cancel-my-service1-300x181.jpg 300w" sizes="(max-width: 394px) 100vw, 394px" /></p>
<p>2.然后选择要取消的活动服务。</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8060" src="https://www.proxysp.com/wp-content/uploads/2021/09/cancel-my-service2.jpg" alt="cancel my service2" width="597" height="376" srcset="https://proxysp.com/wp-content/uploads/2021/09/cancel-my-service2.jpg 794w, https://proxysp.com/wp-content/uploads/2021/09/cancel-my-service2-300x189.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/cancel-my-service2-768x484.jpg 768w" sizes="(max-width: 597px) 100vw, 597px" /></p>
<p>3.选择 "申请取消"。</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8061" src="https://www.proxysp.com/wp-content/uploads/2021/09/cancel-my-service3.jpg" alt="cancel my service3" width="616" height="319" srcset="https://proxysp.com/wp-content/uploads/2021/09/cancel-my-service3.jpg 966w, https://proxysp.com/wp-content/uploads/2021/09/cancel-my-service3-300x155.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/cancel-my-service3-768x398.jpg 768w" sizes="(max-width: 616px) 100vw, 616px" /></p>
<p>4.输入取消原因，然后单击最终取消按钮。</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8062" src="https://www.proxysp.com/wp-content/uploads/2021/09/cancel-my-service4.jpg" alt="cancel my service4" width="662" height="341" srcset="https://proxysp.com/wp-content/uploads/2021/09/cancel-my-service4.jpg 971w, https://proxysp.com/wp-content/uploads/2021/09/cancel-my-service4-300x154.jpg 300w, https://proxysp.com/wp-content/uploads/2021/09/cancel-my-service4-768x395.jpg 768w" sizes="(max-width: 662px) 100vw, 662px" /></p>
<p>此取消申请将确保您的服务在 30 天服务期结束时取消，并且不会再次向您收取服务费用。</p>
<p><em>*请仔细检查并确保通过 PayPal 取消了所有订阅付款。您可以按照以下步骤取消 PayPal 账户中的定期订阅付款配置文件 <a href="https://www.paypal.com/li/smarthelp/article/how-do-i-cancel-a-recurring-payment,-subscription,-or-automatic-billing-agreement-i-have-with-a-merchant-faq1067" target="_blank" rel="noopener">这里。</a></em></p>
<p><em>请确保您已在 PayPal 中正确取消订阅，以防止 PayPal 自动代您发送续订付款。</em></p>
<hr />
<div>
<h4 id="references" class="ftwp-heading">参考资料</h4>
</div>
<ul>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256658-are-there-any-discount-codes-available" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256658-are-there-any-discount-codes-available</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256674-what-do-i-do-if-i-do-not-receive-a-verification-code" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256674-what-do-i-do-if-i-do-not-receive-a-verification-code</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256634-why-are-my-proxies-are-not-assigning" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256634-why-are-my-proxies-are-not-assigning</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256616-why-are-my-proxies-not-showing-in-my-dashboard-or-are-blank" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256616-why-are-my-proxies-not-showing-in-my-dashboard-or-are-blank</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256619-how-do-i-purchase-more-replacements-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256619-how-do-i-purchase-more-replacements-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256665-what-do-i-do-after-i-complete-the-purchase-process" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256665-what-do-i-do-after-i-complete-the-purchase-process</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256605-can-you-tell-me-how-to-login-to-my-dashboard-and-manage-my-account" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256605-can-you-tell-me-how-to-login-to-my-dashboard-and-manage-my-account</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256664-how-do-i-reset-or-change-my-password" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256664-how-do-i-reset-or-change-my-password</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256662-how-do-i-remove-a-cancellation-request-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256662-how-do-i-remove-a-cancellation-request-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256660-does-blazing-seo-process-refunds" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256660-does-blazing-seo-process-refunds</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256670-how-do-i-cancel-a-proxy-trial" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256670-how-do-i-cancel-a-proxy-trial</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256659-how-do-i-cancel-my-service-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256659-how-do-i-cancel-my-service-</a></li>
</ul>
<hr />
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/blazingseo-account-billing-issues/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7709</post-id>	</item>
		<item>
		<title>How to Use OxyLabs Proxy [Part 3]: OxyLabs Next-Gen Residential Proxies</title>
		<link>https://proxysp.com/zh/oxylabs-next-gen-residential-proxies/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oxylabs-next-gen-residential-proxies</link>
					<comments>https://proxysp.com/zh/oxylabs-next-gen-residential-proxies/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[How to Use OxyLabs Proxy (OxyLabs User Manual Navigation)]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7622</guid>

					<description><![CDATA[您听说过 Oxylabs 的新一代住宅代理吗？本文将详细介绍如何使用它。快速启动新一代住宅代理...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/oxylabs-next-gen-residential-proxies/"> <span class="screen-reader-text">如何使用 OxyLabs 代理服务器 [第 3 部分]：OxyLabs 新一代住宅代理服务器</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>您听说过 Oxylabs 的新一代住宅代理吗？本文将向您详细介绍如何使用它。</p></blockquote>
<h2 id="quick-start">快速入门</h2>
<p>新一代住宅代理专为重型数据检索操作而设计。它们可以毫不费力地提取网络数据，不会出现任何延迟或错误。该产品与普通代理一样可定制，但同时能保证更高的成功率。除了可重复使用的 cookies 和 POST 请求外，还支持自定义标题和 IP 粘性。</p>
<p>如果您曾经使用过普通代理进行数据搜刮，那么集成下一代住宅代理将轻而易举。唯一不同的是，我们要求用户接受我们的证书，或完全忽略它。 <code>-k</code> 或 <code>--不安全</code> cURL 标志（或您选择的语言中的等效表达式）。</p>
<p>要使用新一代住宅代理进行请求，我们需要使用 <code>ngrp.oxylabs.io:60000</code> 端点。下面是一个 cURL 示例。您还可以找到其他语言的代码示例 <a href="#making-requests">这里</a> 或我们的 <a class="custom_link" href="https://github.com/oxylabs/product-integrations/tree/master/next-gen-residential-proxies" target="_blank" rel="nofollow noopener">GitHub</a>.</p>
<pre>curl -k -x ngrp.oxylabs.io:60000 -U "USERNAME:PASSWORD" http://ip.oxylabs.io
</pre>
<p>如果您有任何本文件未涉及的问题，请联系您的客户经理或我们的支持人员，地址是 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a>.</p>
<hr />
<h2 id="making-requests">提出要求</h2>
<pre>GET ngrp.oxylabs.io:60000
</pre>
<p>最简单的方法是向我们发送一个不带任何自定义选项的简单查询。我们将在我们的终端添加所有标准标头，选择最快的代理并向您发送响应正文。</p>
<p>要使用下一代住宅代理所需的功能，如设置代理地理位置或通过会话控制重复使用同一 IP，我们需要在请求中发送额外的标头。</p>
<p>以下是受支持的功能和标头的完整列表：</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>参数</th>
<th>说明</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>X-Oxylabs-Session-Id</code></td>
<td>如果需要在多个请求中重复使用同一个 IP，可添加一个会话 ID，它可以是一个随机字符串</td>
<td></td>
</tr>
<tr>
<td><code>X-Oxylabs-地理位置</code></td>
<td>要使用特定位置的 IP 地址，请指定国家或城市，例如 <code>德国</code>.可找到支持的地理位置 <a class="custom_link" href="https://docs.oxylabs.io/resources/universal-supported-geo_location-values.csv" target="_blank" rel="noopener">这里</a>.</td>
<td></td>
</tr>
<tr>
<td><code>页眉</code></td>
<td>您可以添加自己的标题，例如 <code>用户代理</code>或任何其他信息，而不是使用预先生成的信息。</td>
<td></td>
</tr>
<tr>
<td><code>曲奇</code></td>
<td>您可以添加自己的 cookie，例如 <code>Cookie：NID=1234567890</code>您的要求。</td>
<td></td>
</tr>
<tr>
<td><code>X-Oxylabs-Status-Code</code></td>
<td>如果目标返回成功响应的自定义状态代码，您可以发送响应的状态代码，我们的系统将不会重试请求。</td>
<td></td>
</tr>
<tr>
<td><code>X-Oxylabs-Render</code></td>
<td>如果您希望呈现 JavaScript，请使用 <code>网页</code> 获取渲染的 HTML 或 <code>png</code> 获取页面截图。</td>
<td></td>
</tr>
<tr>
<td><code>X-Oxylabs-Parser-Type</code></td>
<td>该标头可用于选择解析器类型。目前 <code>电子商务产品</code> 是支持的。</td>
<td></td>
</tr>
<tr>
<td><code>X-Oxylabs-Parse</code></td>
<td>标头用于解析网站数据。数值 <code>1</code> 必须通过才能进行解析。</td>
</tr>
</tbody>
</table>
</div>
<pre>curl -k -v -x ngrp.oxylabs.io:60000 -U user:pass1 "https://ip.oxylabs.io"
</pre>
<hr />
<h3 id="session">会议</h3>
<p>如果您想使用同一个代理发出多个请求，可以通过添加 <code>X-Oxylabs-Session-Id</code> 头，其中包含一个随机生成的会话 ID 字符串。我们将为该 ID 分配一个代理，并最多保留 10 分钟。之后，我们将为该特定会话 ID 分配一个新的代理。</p>
<pre>curl -k -v -x ngrp.oxylabs.io:60000 -U user:pass1 "https://ip.oxylabs.io" -H "X-Oxylabs-Session-Id：123randomString"
</pre>
<hr />
<h3 id="geo-location">地理位置</h3>
<p>如果从不受支持的地理位置访问，某些网站将不提供内容。您可以在请求中指定要从哪个国家访问目标网站。只需添加 <code>X-Oxylabs-地理位置</code> 标头，其值设置为国家名称（例如）、 <code>德国</code> 德国或 <code>美国</code> 美国。</p>
<p>新一代住宅代理还支持城市级目标定位。如果要添加城市，只需在国家前添加城市名称即可，例如：： <code>德国慕尼黑</code>.</p>
<p>支持的地理位置参数值的完整列表如下所示 <a class="custom_link" href="https://docs.oxylabs.io/resources/universal-supported-geo_location-values.csv" target="_blank" rel="noopener">这里</a>.</p>
<pre>curl -k -v -x ngrp.oxylabs.io:60000 -U user:pass1 "https://ip.oxylabs.io" -H "X-Oxylabs-Geo-Location：慕尼黑,德国"
</pre>
<hr />
<h3 id="headers">页眉</h3>
<p>如果您比我们更了解某个特定目标，您可以在请求中添加自己的标头。它既可以是标准标头，如 <code>用户代理</code> 或 <code>接受语言</code>以及完全定制和针对特定目标的内容。</p>
<pre>curl -k -v -x ngrp.oxylabs.io:60000 -U user:pass1 "https://ip.oxylabs.io" -H "Your-Custom-Header: interesting header content" -H "User-Agent：Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/73.0.3683.86 Chrome/73.0.3683.86 Safari/537.36" -H "Accept-Language: en-US" -H "接受语言：en-US" -K
</pre>
<hr />
<h3 id="cookies">曲奇</h3>
<p>系统还允许为目标网站设置自定义 cookie。通过您的首次请求，我们将返回所有响应标头和 cookie。您可以在自己的终端修改它们，并在下一次请求时将它们发送回我们的系统。如果您使用相同的 IP 地址连续进行几次请求，重复使用 cookie 可能是个好主意（参见 <a href="#session">会议</a> 更多)</p>
<pre>curl -k -v -x ngrp.oxylabs.io:60000 -U user:pass1 "https://ip.oxylabs.io" -H "Cookie：NID=1234567890; 1P_JAR=0987654321"
</pre>
<hr />
<h3 id="custom-status-code">自定义状态代码</h3>
<p>默认情况下，只要返回 2xx 或 4xx 状态代码，我们就认为请求成功。不过，有时网站会在返回所需内容的同时返回非标准 HTTPS 状态代码。如果您的某个目标出现这种情况，您可以指出哪些状态代码是可接受的，并且对您有实际价值。只需添加 <code>X-Oxylabs-Status-Code</code> 头，其中包含所有对您有效的 HTTP 响应代码。请注意，2xx 和 4xx 仍会被自动标记为成功。</p>
<pre>curl -k -v -x ngrp.oxylabs.io:60000 -U user:pass1 "https://ip.oxylabs.io" -H "X-Oxylabs-Status-Code：500,501,502,503" 
</pre>
<hr />
<h3 id="post-requests">POST 请求</h3>
<p>下一代住宅代理服务器不仅支持发送 <code>获取</code> 请求，还可以让您 <code>职位</code> 到你选择的网络端点。这意味着您可以向目标网站发送数据，然后让网站返回不同的结果。</p>
<pre>curl -X POST -k -v -x ngrp.oxylabs.io:60000 -U user:pass1 "https://ip.oxylabs.io" -d "@/path/to/file.json"
</pre>
<hr />
<h3 id="javascript-rendering">JavaScript 渲染</h3>
<p>启用 JavaScript 渲染。在目标需要 JavaScript 加载内容时使用。该参数有两个可用值： <code>网页</code> (获取原始输出）和 <code>png</code> (获取 Base64 编码的截图）。</p>
<pre>curl -k -v -x ngrp.oxylabs.io:60000 -U user:pass1 "https://ip.oxylabs.io" -H "X-Oxylabs-Render: html"
</pre>
<hr />
<h3 id="adaptive-parsing">自适应解析</h3>
<p>自适应解析能够解析任何电子商务产品页面中最重要的字段。要启用电子商务产品页面的自适应解析功能，需要发送两个附加标头： <code>X-Oxylabs-Parser-Type: ecommerce_product</code> 来选择解析器类型，而 <code>X-Oxylabs-Parse: 1</code> 来解析检索到的页面。</p>
<p>可由下一代住宅代理自适应解析电子商务产品页面的字段：</p>
<ul>
<li>标题</li>
<li>正常价格</li>
<li>报价</li>
<li>货币</li>
<li>产品说明</li>
<li>产品 ID</li>
<li>图片 URL</li>
<li>网页中的 URL</li>
</ul>
<pre>curl -v -k -x ngrp.oxylabs.io:60000 -U user:pass1 "https://ip.oxylabs.io" -H "X-Oxylabs-Parser-Type: ecommerce_product" -H "X-Oxylabs-Parse: 1"
</pre>
<p>输出示例</p>
<pre>{
    "结果"：[
        {
            "内容"：{
                "url"："https://ip.oxylabs.io/product/product_example.html"、
                "body"：{
                    "price"：11.99,
                    "标题"："产品标题示例"、
                    "货币"："$"、
                    "old_price"：15.99,
                    "description": null、
                    "image_links"：[
                        "https://ip.oxylabs.io/img/product_example.png"
                    ],
                    "ids_from_url"：[],
                    "simple_links"：[
                        {
                            "链接"："https://ip.oxylabs.io/product/another_example.html"、
                            "description"："另一个产品示例"
                        }
                    ],
                    "ids_from_html"：[
                        {
                            "产品编号"："14158288"
                        }
                    ],
                    "price_range_lower": null、
                    "price_range_upper": null
                },
                "元"：{
                    "标题"："产品元标题示例"、
                    "关键字"：[],
                    "description"："产品描述示例"
                },
                "parse_status_code"：12000
            },
            "创建时间"："2020-01-01 10:00:00",
            "更新时间"："2020-01-01 10:00:07",
            "id"：29964797,
            "页"：1,
            "url"："https://ip.oxylabs.io/product/product_example.html"、
            "job_id"："6699272813062145025",
            "status_code"：200
        }
    ]
}
</pre>
<hr />
<h2 id="usage-statistics">使用统计</h2>
<p>您可以访问我们的 <a class="custom_link" href="https://client-monitor.oxylabs.io/v1/dashboard" target="_blank" rel="nofollow noopener">仪表板</a> 或通过查询以下端点：</p>
<pre>GET https://data.oxylabs.io/v1/stats
</pre>
<p>默认情况下，API 将返回所有时间的使用统计数据。添加 <code>group_by=month</code> 将返回月度统计数据，而 <code>group_by=day</code> 将返回每日数据。流量以字节为单位显示。</p>
<p>该查询将返回所有时间的统计数据。您可以通过添加以下任一选项来查询您每天和每月的使用量 <code>group_by=day</code> 或 <code>group_by=month</code>.流量以字节为单位显示。</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/stats'
</pre>
<p>输出示例</p>
<pre>{
    "元"：{
        "group_by": null、
        "date_from": null、
        "date_to": null、
        "source": null
    },
    "数据"：{
        "来源"：[
            {
                "results_count_all"："1482",
                "results_count"："0",
                "realtime_results_count"："0",
                "super_api_results_count"："12777",
                "渲染"："0",
                "geo_location"："0",
                "平均响应时间2.18,
                "request_traffic"："6629",
                "响应流量"："17850",
                "标题"："通用"
            }
        ]
    }
}
</pre>
<hr />
<h2 id="sample-response">答复样本</h2>
<p>这就是响应的样子。要查看报头和 cookie，必须启用 "详细 "模式。</p>
<pre>http/1.1 200 ok
X-Job-Id：1234567890123456
X-Session-Id：123randomString
cf-cache-status：动态
cf-ray：55c2ab837eddcba8-VIE
content-encoding: gzip
content-length: 72657
content-type: text/html
date: Tue, 1 Jan 2020 00:00:01 GMT,expect-ct: max-age=604800,report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
last-modified：Tue, 1 Dec 2020 00:00:00 GMT
服务器: cloudflare
status: 200
strict-transport-security: max-age=31536000
X-DNS-Prefetch-Control: off
Set-Cookie：NID=1234567890; expires=Wed, 29-Jul-2020 10:56:21 GMT
Set-Cookie：1P_JAR=0987654321; expires=Wed, 29-Jul-2020 10:56:21 GMT
x-cache：MISS from localhost
x-cache-lookup：MISS from localhost:3129content here
</pre>
<p>&nbsp;</p>
<hr />
<h4>参考资料</h4>
<p><a href="https://docs.oxylabs.io/next-gen-residential-proxies/index.html#quick-start" target="_blank" rel="nofollow noopener">https://docs.oxylabs.io/next-gen-residential-proxies/index.html#quick-start</a></p>
<hr />
<blockquote><p><strong>免责声明</strong> 这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/oxylabs-next-gen-residential-proxies/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7622</post-id>	</item>
		<item>
		<title>Sneaker Proxies (By BlazingSEO) : Learn Manuals Before You Buy</title>
		<link>https://proxysp.com/zh/sneaker-proxies-blazingseo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sneaker-proxies-blazingseo</link>
					<comments>https://proxysp.com/zh/sneaker-proxies-blazingseo/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[BlazingSEO Proxies]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7736</guid>

					<description><![CDATA[您对 Blazing SEO 的运动鞋产品了解多少？在购买之前，请阅读本详细手册！什么是运动鞋代理？运动鞋代理是...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/sneaker-proxies-blazingseo/"> <span class="screen-reader-text">Sneaker 代理 (By BlazingSEO) ：购买前了解手册</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>您对 Blazing SEO 的运动鞋产品了解多少？在购买之前，请阅读本详细手册！</p></blockquote>
<h2 class="heading">什么是 Sneaker 代理？</h2>
<p>运动鞋代理是一种专用代理，可让希望购买限量鞋款的客户通过运动鞋网站进行购买。</p>
<p>用户通常会购买尽可能多的 <a href="https://www.proxysp.com/best-sneaker-proxies/" target="_blank" rel="noopener">运动鞋代理</a> 在预算允许的情况下，还需要一个 VPS 和一个机器人。不过，这三个组件并不一定是必需的。从理论上讲，他们可以尝试使用自己的家用电脑，并尝试正常访问购鞋网站。不过，他们的机会可能不大，因为他们只能使用一个 IP（家庭 IP）。</p>
<p>为了获得最大的成功机会，用户需要多个运动鞋代理和一个运动鞋服务器，而我们提供的就是运动鞋服务器。该服务器与网站服务器和代理服务器位于同一数据中心，能以绝对最快的速度连接到运动鞋网站。这将为您提供最佳的球鞋交易机会。此外，您拥有的代理服务器越多，footsite 屏蔽所有代理服务器的几率就越小，因此您获得想要的球鞋的几率也就越大。</p>
<h3><strong>优势</strong></h3>
<ul>
<li>代理只供您使用（不共享）。</li>
<li>可与鞋型服务器一起使用，以获得最快的速度</li>
<li>与鞋厂服务器位于同一数据中心。</li>
<li>速度更快，因为没有其他人使用相同的代理服务器。</li>
<li>绕过过滤器和防火墙的能力，因为私人代理服务器可以绕过这类被屏蔽的网站。</li>
<li>保护隐私，让您在购物或上网时尽量不用担心个人信息被泄露或泄漏。</li>
<li>由于私人代理为您提供唯一的互联网地址，因此可提供更高水平的互联网安全。</li>
</ul>
<p>这些代理最好用于账户使用，因为代理永远不会更改（除非您希望代理更改）。</p>
<h3><strong>地点</strong></h3>
<p>美国</p>
<hr />
<h2 class="heading">专用代理和 Sneaker 代理有什么区别？</h2>
<p>我们的美国专用代理和我们的运动鞋代理有什么区别？很多 - 如果您是运动鞋买家。</p>
<p>专用代理服务器允许您在购买后选择 "位置"，但大多数人没有意识到的是，位置是地理位置，而不是代理服务器的托管位置。地理位置是一个任意的位置，看起来好像您来自某个地方，但您的代理服务器将位于美国各地的不同数据中心。</p>
<p>Sneaker 代理服务器允许您在购买后选择托管地点：洛杉矶或纽约。这样您就可以选择离您的服务器/电脑最近的城市。代理服务器离您的服务器最近是获得最快速度的理想情况。</p>
<hr />
<div class="icon">
<div class="icon">
<h2 class="heading">Blazing 服务器上可以运行多少任务？</h2>
<p>如果您正在使用我们的服务器，那么您可能想知道服务器上可以运行多少任务。</p>
<p>我们建议您遵循以下指南。</p>
<p><strong>RAM/CORES</strong></p>
<p>2GB/2Core = 15 项任务</p>
<p>4GB/4Core = 25 项任务</p>
<p>6GB/6Core = 50 个任务</p>
<p>8GB/8Core = 70 项任务</p>
<p>10GB/10 核 = 85 项任务</p>
<p>14GB/14Core = 100 个任务</p>
<p>18GB /18Core = 130 项任务</p>
<p>24GB/24Core = 160 项任务</p>
<ul>
<li><em>运行比建议更多的任务可能会导致服务器冻结、运行速度减慢以及 <a href="https://www.proxysp.com/best-sneaker-bot/" target="_blank" rel="noopener">机器人</a> 将无法正常运行。</em></li>
</ul>
<hr />
<h2 class="heading">购买运动鞋的代理速度是多少？</h2>
<p>本周有很多关于我们代理速度的问题。我的答案已经打了 100 遍，但客户与客户之间没有任何变化，因此我在此写信解释为什么您软件中的速度不能反映我们的代理速度，而只能反映您服务器的速度（如果您使用的是家用电脑，那么您的www速度会很慢......）。</p>
<p>在通过代理连接网站时，联网过程如下：</p>
<p>服务器（或家用电脑）-&gt;代理服务器-&gt;网站-&gt;代理服务器-&gt;服务器</p>
<p>这样就能将您的数据发送到网站，并等待网站的回复。</p>
<p>现在想象一下，您的服务器位于佛罗里达州，或者更糟糕的是，您的家用电脑的网速为 50 Mbps（大多数家庭网络都是如此）。如果您从佛罗里达连接到位于洛杉矶的代理服务器，然后在网站将数据返回给代理服务器后必须等待回复，那么您需要进行两次跨国旅行（单程超过 3000 英里）才能关闭连接。</p>
<p>在不久的将来，当您连接到 3000 英里外的另一台服务器时，您的速度将不会达到 100 毫秒或更低。</p>
<p>这就是为什么我不相信任何人对我们的代理服务器进行的任何速度测试，因为这完全取决于他们的服务器速度（必须与我们的代理服务器速度相匹配，即 1 Gbps）和他们的服务器位置。 <strong>购买运动鞋的理想情况是服务器与代理服务器位于同一数据中心，我们在以下网站提供这种服务 <a href="http://shoeservers.com/" target="_blank" rel="noopener">http://shoeservers.com/</a>.</strong> 这样，从服务器到代理之间的距离几乎为零，只剩下与网站之间的延迟。</p>
<hr />
<h2 class="heading">如何防止我的 IP 被禁止？</h2>
<p>有些网站的网站安全性比大多数网站都高。尤其是运动鞋网站。无论您尝试访问哪个网站，使用支持这些网站的代理服务器都是非常重要的。代理服务器可以让你在隐藏真实 IP 的同时，更好地避开网站安全问题。</p>
<p>您可以在这里查看我们的代理套餐 <a href="https://blazingseollc.com/proxy/purchase/" rel="noreferrer noopener" target="_blank">https://blazingseollc.com/proxy/purchase/</a> 请记住，我们的专用、半专用和旋转代理均不支持任何运动鞋网站。</p>
<hr />
<h2 class="heading">为什么我的 AIO 代理测试仪显示连接超时？</h2>
<p>使用 AIO 代理测试仪进行测试时，会显示超时。这是 <strong>测试不正确</strong><strong>.</strong>  AIO 代理测试仪测试代理的方式是 <strong>与我们的代理不兼容</strong> 并显示超时错误。</p>
<p>从本质上讲，AIO 代理测试仪执行测试的方式与我们的代理不兼容，因此我们要求您 <strong>运行下面的测试</strong> 以验证它们是否正常工作。</p>
<p><strong>如何使用我们的代理在 AIO 中运行有效测试</strong></p>
<p>请按照以下说明进行操作 <strong>进行有效测试</strong> 以显示我们的代理在 AIO 中的工作情况。</p>
<p>要正确测试我们的代理，您必须 <strong>将代理载入 AIO 并创建任务</strong>.请 <strong>勿用</strong> 内置代理测试器。选择一个运动鞋网站（例如：Footlocker），然后创建一个任务，使用我们的代理服务器运送一些鞋子。只需启动任务，就能看到 AIO 机器人使用代理访问运动鞋网站。</p>
<ol>
<li>创建一个 <strong>简单任务</strong> 以访客身份访问像 Footlocker 这样的网站，使用的唯一标准是 <strong>10 号</strong></li>
<li>启动任务，以便您可以 <strong>看到 AIO 机器人正在工作</strong> 使用代理服务器访问运动网站</li>
</ol>
<p>您也可以通过这些视频在浏览器中手动测试网站的代理：</p>
<p>手动测试<strong> 火狐浏览器</strong>:</p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/xLFvR2TDzGo?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<p>手动测试 <strong>铬</strong>:</p>
<div class="su-youtube su-u-responsive-media-yes"><iframe loading="lazy" width="600" height="400" src="https://www.youtube.com/embed/HQIqu85KE4Y?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div>
<p>如果您仍然遇到问题，请开立支持票据，以便我们提供进一步帮助。</p>
<hr />
<h2 class="heading">哪些代理适用于鞋类或足部网站？</h2>
<p>我们的专用/半专用/轮转代理不支持鞋类网站/足部网站，因为不支持此类网站。如果您使用专用/半专用/轮换代理访问足部网站，您很可能会看到一个空白屏幕或一个循环加载/连接的空白屏幕，这表明它很可能被足部网站屏蔽了。</p>
<p>另一方面，我们的专用鞋类代理是专门为鞋类网站设计和优化的特殊代理。只有鞋类代理才能让您访问足部网站。</p>
<hr />
</div>
</div>
<div>
<h4 id="references" class="ftwp-heading">参考资料</h4>
</div>
<ul>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256618-what-are-sneaker-proxies" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256618-what-are-sneaker-proxies</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256675-what-is-the-difference-between-dedicated-proxies-and-sneaker-proxies" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256675-what-is-the-difference-between-dedicated-proxies-and-sneaker-proxies</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256676-how-many-tasks-can-i-run-on-a-blazing-server" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256676-how-many-tasks-can-i-run-on-a-blazing-server</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256677-what-are-the-proxy-speeds-for-sneaker-purchases" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256677-what-are-the-proxy-speeds-for-sneaker-purchases</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256678-how-do-i-prevent-my-ip-from-being-banned-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256678-how-do-i-prevent-my-ip-from-being-banned-</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256635-why-is-my-aio-proxy-tester-showing-that-a-connection-timed-out" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256635-why-is-my-aio-proxy-tester-showing-that-a-connection-timed-out</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000263274-which-proxies-work-for-shoe-or-foot-sites-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000263274-which-proxies-work-for-shoe-or-foot-sites-</a></li>
</ul>
<hr />
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/sneaker-proxies-blazingseo/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7736</post-id>	</item>
		<item>
		<title>How to Use OxyLabs Real-Time Crawler [Part 1]: Real-Time Crawler for Google</title>
		<link>https://proxysp.com/zh/oxylabs-real-time-crawler/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oxylabs-real-time-crawler</link>
					<comments>https://proxysp.com/zh/oxylabs-real-time-crawler/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[How to Use OxyLabs Proxy (OxyLabs User Manual Navigation)]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7623</guid>

					<description><![CDATA[你知道如何使用 OxyLabs Real-time Crawler for Google 吗？这是 OxyLabs 官方最全面的介绍。快速入门实时爬虫内置了...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/oxylabs-real-time-crawler/"> <span class="screen-reader-text">如何使用 OxyLabs 实时爬虫 [第 1 部分]：谷歌实时爬虫</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote>
<p class="src grammarSection" data-group="1-1">你知道如何使用 OxyLabs Real-time Crawler for Google 吗？这是 OxyLabs 官方最全面的介绍。</p>
</blockquote>
<h2 id="quick-start">快速入门</h2>
<p>Real-Time Crawler 专为重型数据检索操作而设计。您可以使用 Real-Time Crawler 访问各种谷歌页面，包括常规搜索、酒店空房情况和谷歌购物。它可以毫不费力地从搜索引擎中提取网页数据，不会出现任何延迟或错误。</p>
<p>用于谷歌的实时抓取器 <a class="custom_link" href="https://en.wikipedia.org/wiki/Basic_access_authentication" target="_blank" rel="nofollow noopener">基本 HTTP 身份验证</a> 需要发送用户名和密码。</p>
<p>这是迄今为止开始使用 Google 实时爬虫的最快方法。您将发送一个查询 <code>阿迪达斯</code> 至 <code>谷歌搜索</code> 使用 <a href="#realtime">实时</a> 整合方法。不要忘记替换 <code>用户名</code> 和 <code>密码</code> 使用代理用户凭据。</p>
<pre>curl --user "USERNAME:PASSWORD" 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json" -d '{"source"："google_search", "domain"："com", "query"："adidas"}'
</pre>
<p>如果您有任何本文件未涉及的问题，请联系您的客户经理或我们的支持人员，地址是 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a>.</p>
<hr />
<h2 id="postman">邮递员</h2>
<p>下载和导入 <a class="custom_link" href="https://docs.oxylabs.io/resources/Real-Time%20Crawler%20-%20Google.postman_collection.json" target="_blank" rel="noopener">邮差系列 </a>来试用本页面记录的所有 Google 爬虫功能和数据传输方法。</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8201" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Postman.png" alt="Real-Time Crawler for Google Postman" width="296" height="442" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Postman.png 296w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Postman-201x300.png 201w" sizes="(max-width: 296px) 100vw, 296px" /></p>
<hr />
<h2 id="integration-methods">整合方法</h2>
<p>Real-Time Crawler for Google 支持三种集成方法，它们都有各自独特的优势：</p>
<ul>
<li><a href="#push-pull">推拉式</a>.使用这种方法，现在需要与我们的端点保持活动连接，以检索数据。在发出请求后，我们的系统会在任务完成后自动 ping 用户服务器（请参阅 <a href="#callback">回调</a>).这种方法可以节省计算资源，而且易于扩展。</li>
<li><a href="#realtime">实时</a>.该方法要求用户与我们的端点保持活动连接，以便在任务完成时成功获取结果。这种方法可以在一个服务中实现，而推拉法则需要两个步骤。</li>
<li><a href="#superapi">超级用户接口</a>.这种方法与实时方法非常相似，但用户可以使用 HTML Cralwer 作为代理，而不是向我们的端点发布数据。要检索数据，用户必须设置一个代理端点，并向所需的 URL 发送 GET 请求。必须使用标头添加其他参数。</li>
</ul>
<p>我们推荐的数据提取方法是 <a href="#push-pull">推拉式</a>.</p>
<hr />
<h3 id="push-pull">推拉式</h3>
<p>这是最简单、最可靠、最值得推荐的数据传输方法。在推拉式方案中，您向我们发送查询，我们向您返回工作 <code>本我</code>工作完成后，您可以使用 <code>本我</code> 中检索内容 <code>/结果</code> 端点。您可以自己检查作业完成状态，也可以设置一个能接受 POST 查询的简单监听器。这样，一旦作业准备就绪，我们就会给你发送一条回调消息。在本例中，结果将自动 <a href="#upload-to-storage">上传到您的 S3 存储桶</a> 名为 <code>您的邮筒名称</code>.</p>
<p>您还可以尝试通过 Postman 了解推拉法的工作原理。下载 <a class="custom_link" href="https://docs.oxylabs.io/resources/Real-Time%20Crawler%20-%20Google.postman_collection.json" target="_blank" rel="noopener">此文件</a> 开始。</p>
<hr />
<h4><strong>单一查询</strong></h4>
<p>以下端点将处理对一个关键字或 URL 的单次查询。API 将返回一条确认信息，其中包含任务信息，包括任务 <code>本我</code>.您可以使用它来检查任务完成状态 <code>本我</code>或者，您也可以要求我们在扫描任务完成后 ping 您的回调端点，方法是添加 <code>回调URL</code> 在查询中。</p>
<pre>邮寄 https://data.oxylabs.io/v1/queries
</pre>
<p>您需要在 JSON 主体中将查询参数作为数据发布。</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_search", "domain"："com", "query"："adidas", "callback_url"："https://your.callback.url"，"storage_type"："s3"，"storage_url"："your_bucket_name"}'
</pre>
<p>API 将以 JSON 格式响应查询信息，并将其打印在响应体中，与此类似：</p>
<pre>{
  "callback_url"："https://your.callback.url"、
  "client_id"：5,
  "context"：[
    {
      "key"："results_language"、
      "value": null
    },
    {
      "key"："safe_search"、
      "value": null
    },
    {
      "key"："tbm"、
      "value": null
    },
    {
      "key"："cr"、
      值"：空
    },
    {
      "key"："filter"、
      "value": null
    }
  ],
  "created_at"："2019-10-01 00:00:01",
  "域"："com"、
  "geo_location": null、
  "id"："12345678900987654321",
  "限制"：10,
  "locale": null、
  "pages"：1,
  "parse": false、
  "render": null、
  "查询"："adidas"、
  "来源"："google_search"、
  "start_page"：1,
  "状态"："pending"、
  "存储类型"s3",
  "storage_url"："YOUR_BUCKET_NAME/12345678900987654321.json",
  "subdomain"："www"、
  "updated_at"："2019-10-01 00:00:01",
  "user_agent_type"："desktop"、
  "_链接"：[
    {
      "rel"："self"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321",
      "method"："GET"
    },
    {
      "rel"："results"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321/results",
      "method"："GET"
    }
  ]
}
</pre>
<h4 id="check-job-status"><strong>检查工作状态</strong></h4>
<p>如果您的查询有 <code>回调URL</code>一旦完成刮擦任务，我们将向您发送一条包含内容链接的信息。但是，如果没有 <code>回调URL</code> 在查询中，您需要自己检查任务状态。为此，您需要使用 <code>href</code> 根据 <code>rel</code>:<code>自我</code> 在您向我们的 API 提交查询后收到的响应信息中。它应该与下面的内容相似： <code>http://data.oxylabs.io/v1/queries/12345678900987654321</code>.</p>
<pre>GET https://data.oxylabs.io/v1/queries/{id}
</pre>
<p>查询该链接将返回工作信息，包括其 <code>地位</code>.有 3 种可能 <code>地位</code> 价值观</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><code>未决</code></td>
<td>任务仍在队列中，尚未完成。</td>
</tr>
<tr>
<td><code>完成的</code></td>
<td>任务完成后，您可以通过在 <code>href</code> 根据 <code>rel</code>:<code>成果</code> : <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code></td>
</tr>
<tr>
<td><code>有问题</code></td>
<td>任务出了问题，我们无法完成，很可能是目标网站方面的服务器出错。</td>
</tr>
</tbody>
</table>
</div>
<pre>curl --user user:pass1 'http://data.oxylabs.io/v1/queries/12345678900987654321'
</pre>
<p>API 将在响应正文中打印 JSON 格式的查询信息。请注意，任务 <code>地位</code> 改为 <code>完成的</code>.现在您可以通过查询 <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code>.</p>
<p>您还可以看到任务已被 <code>updated_at</code> <code>2019-10-01 00:00:15</code> - 查询需要 14 秒才能完成。</p>
<pre>{
  "client_id"：5,
  "context"：[
    {
      "key"："results_language"、
      "value": null
    },
    {
      "key"："safe_search"、
      "value": null
    },
    {
      "key"："tbm"、
      "value": null
    },
    {
      "key"："cr"、
      值"：空
    },
    {
      "key"："filter"、
      "value": null
    }
  ],
  "created_at"："2019-10-01 00:00:01",
  "域"："com"、
  "geo_location": null、
  "id"："12345678900987654321",
  "限制"：10,
  "locale": null、
  "pages"：1,
  "parse": false、
  "render": null、
  "查询"："adidas"、
  "来源"："google_search"、
  "start_page"：1,
  "状态"："done"、
  "子域"："www"、
  "updated_at"："2019-10-01 00:00:15",
  "user_agent_type"："desktop"、
  "_链接"：[
    {
      "rel"："self"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321",
      "method"："GET"
    },
    {
      "rel"："results"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321/results",
      "method"："GET"
    }
  ]
}
</pre>
<hr />
<h4 id="retrieve-job-content"><strong>检索工作内容</strong></h4>
<p>通过检查作业状态或接收我们的回调，一旦知道作业已准备就绪，您就可以使用以下 URL 获取作业 <code>href</code> 根据 <code>rel</code>:<code>成果</code> 在我们的初始响应或回调信息中。看起来应该类似于下面这样： <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code>.</p>
<pre>GET https://data.oxylabs.io/v1/queries/{id}/results
</pre>
<p>通过设置 "任务状态"，可以自动检索结果，而无需定期检查任务状态。 <a href="#callback">回调</a> 服务。用户需要指定运行回调服务的服务器的 IP 或域。当我们的系统完成一项任务时，它将向所提供的 IP 或域发送一条信息，回调服务将下载结果，如 <a href="#callback">回调实现示例</a>.</p>
<pre>curl --user user:pass1 'http://data.oxylabs.io/v1/queries/12345678900987654321/results'
</pre>
<p>API 将返回工作内容：</p>
<pre>{
  "结果"：[
    {
      "content"："&lt;!
        内容
      &quot;,
      &quot;created_at&quot;：&quot;2019-10-01 00:00:01&quot;,
      &quot;更新时间&quot;：&quot;2019-10-01 00:00:15&quot;,
      &quot;页&quot;：1,
      &quot;url&quot;：&quot;https://www.google.com/search?q=adidas&amp;hl=en&amp;gl=US&quot;、
      &quot;job_id&quot;：&quot;12345678900987654321&quot;,
      &quot;status_code&quot;：200
    }
  ]
}
</pre>
<hr />
<h4 id="callback"><strong>回调</strong></h4>
<p>回调是一个 <code>职位</code> 我们会向您的机器发送请求，告知数据提取任务已完成，并提供下载刮擦内容的 URL。这意味着您不再需要 <a href="#check-job-status">检查工作状态</a> 手动操作。一旦数据到齐，我们会通知您，您现在需要做的就是 <a href="#retrieve-job-content">取回</a>.</p>
<pre># 请查看 Python 和 PHP 代码示例。
</pre>
<p>回调输出示例</p>
<pre>{
   "created_at":"2019-10-01 00:00:01",
   "updated_at":"2019-10-01 00:00:15",
   "locale":null、
   "client_id":163、
   "user_agent_type": "desktop"、
   "源": "google_search"、
   "页面":1、
   "子域": "www"、
   "status": "done"、
   "start_page":1、
   "parse":0、
   "render":null、
   "priority":0、
   "ttl":0、
   "origin": "api"、
   "persist":true、
   "id":"12345678900987654321",
   "callback_url": "http://your.callback.url/"、
   "query": "adidas"、
   "domain": "com"、
   "limit":10、
   "geo_location":null、
   {...}
   "_links":[
      {
         "href":"https://data.oxylabs.io/v1/queries/12345678900987654321",
         "method": "GET"、
         "rel": "self"
      },
      {
         "href":"https://data.oxylabs.io/v1/queries/12345678900987654321/results",
         "method": "GET"、
         "rel": "results" }
      }
   ],
}
</pre>
<hr />
<h4 id="batch-query"><strong>批量查询</strong></h4>
<p>实时爬虫还支持执行多个关键字，每批最多可执行 1,000 个关键字。以下端点将向提取队列提交多个关键词。</p>
<pre>邮寄 https://data.oxylabs.io/v1/queries/batch
</pre>
<p>您需要在 JSON 主体中将查询参数作为数据发布。</p>
<p>系统会将每个关键词作为一个单独请求处理。如果您提供了回调 URL，您将为每个关键字收到单独的调用。否则，我们的初始响应将包含工作 <code>本我</code>的所有关键字。例如，如果您发送了 50 个关键字，我们将返回 50 个唯一的职位。 <code>本我</code>s.</p>
<p>重要！ <code>询问</code> 是唯一一个可以有多个值的参数。所有其他参数对于该批次查询都是一样的。</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries/batch' -H 'Content-Type: application/json' -d '@keywords.json
 -d'@keywords.json'（关键词
</pre>
<p><code>keywords.json</code> 内容：</p>
<pre>{
   "query":[
      "阿迪达斯"、
      "耐克"、
      "蕾博克"
   ],
   "来源"："google_search"、
   "域"："com"、
   "callback_url"："https://your.callback.url"
}
</pre>
<p>API 将以 JSON 格式响应查询信息，并将其打印在响应体中，与此类似：</p>
<pre>{
  "查询"：[
    {
      "callback_url"："https://your.callback.url"、
      {...}
      "created_at"："2019-10-01 00:00:01",
      "域"："com"、
      "id"："12345678900987654321",
      {...}
      "查询"："阿迪达斯"、
      "来源"："google_search"、
      {...}
          "rel"："results"、
          "href"："http://data.oxylabs.io/v1/queries/12345678900987654321/results",
          "method"："GET"
        }
      ]
    },
    {
      "callback_url"："https://your.callback.url"、
      {...}
      "created_at"："2019-10-01 00:00:01",
      "域"："com"、
      "id"："12345678901234567890",
      {...}
      "查询"："NIKE"、
      "来源"："google_search"、
      {...}
          "rel"："results"、
          "href"："http://data.oxylabs.io/v1/queries/12345678901234567890/results",
          "method"："GET"
        }
      ]
    },
    {
      "callback_url"："https://your.callback.url"、
      {...}
      "created_at"："2019-10-01 00:00:01",
      "域"："com"、
      "id"："01234567899876543210",
      {...}
      "查询"："reebok"、
      "来源"："google_search"、
      {...}
          "rel"："results"、
          "href"："http://data.oxylabs.io/v1/queries/01234567899876543210/results",
          "method"："GET"
        }
      ]
    }
  ]
}
</pre>
<hr />
<h4 id="get-notifier-ip-address-list"><strong>获取通知程序 IP 地址列表</strong></h4>
<p>您可能希望将向您发送回调信息的 IP 列入白名单，或为其他目的获取这些 IP 的列表。这可以通过 <code>获取</code>在这个端点上： <code>https://data.oxylabs.io/v1/info/callbacker_ips</code>.</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/info/callbacker_ips'
</pre>
<p>API 将返回向您的系统发出回调请求的 IP 列表：</p>
<pre>{
    "ips"：[
        "x.x.x.x"、
        "y.y.y.y"
    ]
}
</pre>
<hr />
<h4 id="upload-to-storage"><strong>上传到存储器</strong></h4>
<p>默认情况下，RTC 任务结果存储在我们的数据库中。这意味着您需要查询我们的结果端点并自行检索内容。自定义存储功能允许您将结果存储在自己的云存储中。该功能的优势在于，您无需为了获取结果而发出额外请求，所有内容都会直接存储到您的存储桶中。</p>
<p>我们支持亚马逊 S3 和谷歌云存储。如果您想使用其他类型的存储，请联系您的客户经理，讨论功能交付时间表。</p>
<p id="amazon-s3"><strong>亚马逊 S3</strong></p>
<p>要将作业结果上传到 Amazon S3 存储桶，请为我们的服务设置访问权限。为此，请访问 <code>https://s3.console.aws.amazon.com/ &gt; S3 &gt; 存储 &gt; 桶名称（如果没有，请新建） &gt; 权限 &gt; 桶策略</code></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8202" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Upload-to-Storage1.png" alt="Real-Time Crawler for Google Upload to Storage1" width="478" height="324" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Upload-to-Storage1.png 478w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Upload-to-Storage1-300x203.png 300w" sizes="(max-width: 478px) 100vw, 478px" /></p>
<p>您可以在此找到水桶政策 <a class="custom_link" href="https://docs.oxylabs.io/resources/s3_bucket_policy.json" target="_blank" rel="noopener">JSON</a> 或右侧的代码示例区。不要忘记在 <code>您的邮筒名称</code>.通过该策略，我们可以向您的邮筒写入内容，允许您访问上传的文件，并了解邮筒的位置。</p>
<p id="google-cloud-storage"><strong>谷歌云存储</strong></p>
<p>要将作业结果上传到您的 Google Cloud Storage 存储桶，请为我们的服务设置特殊权限。为此，请使用 <code>存储.对象.创建</code> 权限并将其分配给 Oxylabs 服务帐户电子邮件 <code>oxyserps-storage@oxyserps-storage.iam.gserviceaccount.com</code>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8203" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Upload-to-Storage2.png" alt="Real-Time Crawler for Google Upload to Storage2" width="480" height="305" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Upload-to-Storage2.png 480w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Upload-to-Storage2-300x191.png 300w" sizes="(max-width: 480px) 100vw, 480px" /></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8204" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Upload-to-Storage3.png" alt="Real-Time Crawler for Google Upload to Storage3" width="483" height="667" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Upload-to-Storage3.png 483w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Upload-to-Storage3-217x300.png 217w" sizes="(max-width: 483px) 100vw, 483px" /></p>
<p id="usage"><strong>使用方法</strong></p>
<p>要使用此功能，请在请求中指定两个附加参数。了解更多信息 <a href="#direct">这里</a>.</p>
<p>上传路径如下 <code>YOUR_BUCKET_NAME/job_ID.json</code>.您可以在提交请求后从我们收到的回复正文中找到职位 ID。在 <a href="#single-query">本例</a> 工作编号为 <code>12345678900987654321</code>.</p>
<pre>{
    "版本"："2012-10-17",
    "Id"："Policy1577442634787",
    "声明"：[
        {
            "Sid"："Stmt1577442633719"、
            "效果"："允许"、
            "校长"：{
                "AWS"："arn:aws:iam::324311890426:user/oxylabs.s3.uploader"
            },
            "Action"："s3:GetBucketLocation"、
            "资源"："arn:aws:s3:::YOUR_BUCKET_NAME" }.
        },
        {
            "Sid"："Stmt1577442633719"、
            "效果"："允许"、
            "校长"：{
                "AWS"："arn:aws:iam::324311890426:user/oxylabs.s3.uploader"
            },
            "Action"：[
                "s3:PutObject"、
                "s3:PutObjectAcl"。
            ],
            "资源"："arn:aws:s3:::YOUR_BUCKET_NAME/*"。
        }
    ]
}
</pre>
<hr />
<h3 id="realtime">实时</h3>
<p>数据提交方式与推拉方式相同，但在实时情况下，我们将在连接打开时返回内容。您向我们发送查询，连接保持打开，我们检索内容并发送给您。处理的端点如下：</p>
<pre>邮寄 https://realtime.oxylabs.io/v1/queries
</pre>
<p>开放连接的超时限制为 150 秒，因此在极少数负载较重的情况下，我们可能无法确保将数据发送给您。</p>
<p>您需要在 JSON 主体中将查询参数作为数据发布。详情请参阅示例。</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_search", "domain"："com", "query"："adidas"}'
</pre>
<p>打开连接时将返回的响应体示例：</p>
<pre>{
  "结果"：[
    {
      "content"："
      内容
      "
      "created_at"："2019-10-01 00:00:01",
      "更新时间"："2019-10-01 00:00:15",
      "id": null、
      "page"：1,
      "url"："https://www.google.com/search?q=adidas&amp;hl=en&amp;gl=US"、
      "job_id"："12345678900987654321",
      "status_code"：200
    }
  ]
}
</pre>
<hr />
<h3 id="superapi">超级用户接口</h3>
<p>如果您曾经使用过普通代理进行数据搜刮，那么集成 SuperAPI 传输方法将轻而易举。只需将我们的入口节点用作代理，使用实时爬虫凭据进行授权，并忽略证书即可。在 <code>cURL</code> 这是 <code>-k</code> 或 <code>--不安全</code>.您的数据将通过开放连接发送给您。</p>
<pre>GET realtime.oxylabs.io:60000
</pre>
<p>超级用户接口只支持少量参数，因为它 <strong>仅适用于 <a href="#direct">直接</a> 数据源</strong> 其中提供了完整的 URL。这些参数应作为标头发送。这是可接受的参数列表：</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><code>X-OxySERPs-User-Agent-Type</code></td>
<td>虽然无法指明特定的 User-Agent，但您可以让我们知道您使用的浏览器和平台。支持的用户代理列表如下所示 <a href="#user-agent">这里</a>.</td>
</tr>
<tr>
<td><code>X-OxySERPs-地理位置</code></td>
<td>在某些情况下，您可能需要指明结果应适应的地理位置。该参数对应于 <code>地理位置</code>.了解我们的建议 <code>地理位置</code> 参数结构 <a href="#geo_location">这里</a>.</td>
</tr>
</tbody>
</table>
</div>
<p>如果您在设置超级用户接口时需要帮助，请致电 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a>.</p>
<pre>curl -k -x realtime.oxylabs.io:60000 -U user:pass1 -H "X-OxySERPs-User-Agent-Type: desktop_chrome" -H "X-OxySERPs-Geo-Location：New York,New York,United States" "https://www.google.com/search?q=adidas"
</pre>
<hr />
<h2 id="content-type">内容类型</h2>
<p>实时爬虫可以返回 <strong>原始HTML</strong>或 <strong>结构化（解析）的 JSON</strong>.请注意，并非所有数据源都能以结构化方式返回。本文档中每个数据源下的图标将表明我们是否能解析它，或者我们只能返回原始的 HTML。</p>
<p>请参见 <a href="#parsed-data">解析数据</a> 来查看每个数据源会返回哪些字段。</p>
<hr />
<h2 id="data-sources">数据来源</h2>
<p>使用实时爬虫从 Google 检索数据有多种方法。您可以通过以下方式向我们提供完整的 URL <a href="#direct">直接</a>或通过专门构建的数据源指定参数，例如 <a href="#search">搜索</a>, <a href="#shopping-product">购物产品</a> 或 <a href="#images">图片</a>.</p>
<p>从技术上讲，这不是一种内容类型，但实时抓取器可以在抓取时呈现 JavaScript。这在某些 Google 页面（如航班和专利）中是必要的。在 <code>渲染 JS</code> 将指示特定数据源是否可以在启用 JavaScript 的情况下进行刮擦。</p>
<p>如果您不确定选择哪种方式，请给我们留言 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a> 或联系您的客户经理。</p>
<hr />
<h3 id="direct">直接</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8206 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Direct-1.png" alt="Real-Time Crawler for Google Direct" width="473" height="19" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Direct-1.png 473w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Direct-1-300x12.png 300w" sizes="(max-width: 473px) 100vw, 473px" /></p>
<p><code>谷歌</code> 源设计用于检索各种 Google 页面的直接 URL 内容。这意味着，您可以向我们提供所需谷歌页面的直接 URL，而无需发送多个参数。我们不会删除任何参数或以任何其他方式更改您的 URL。</p>
<p>只要提交的 URL 是 Google 搜索（SERP 页面），该数据源还支持解析数据（解析 JSON）。如果我们无法确认这是一个 SERP 页面请求，则会返回一条失败消息。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">谷歌</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">网址</td>
<td style="font-weight: 400;" width="72">谷歌页面的直接 URL（链接</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下<a href="#user-agent"> 这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">给予</td>
<td style="font-weight: 400;" width="72">启用 JavaScript 渲染。在目标需要 JavaScript 加载内容时使用。仅适用于推拉（又称回调）方法。该参数有两个可用值：html（获取原始输出）和 png（获取 Base64 编码的截图）。</td>
<td style="font-weight: 400;" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">回调端点的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地理位置</td>
<td style="font-weight: 400;" width="72">结果应适应的地理位置。正确使用该参数对获取正确数据极为重要。如需了解更多信息，请阅读我们建议的地理位置参数结构 <a href="#geo_location">这里</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">解析</td>
<td style="font-weight: 400;" width="72">true 将返回已解析的数据，只要提交的 URL 是用于 Google 搜索。请参见 <a href="#parsed-data">解析数据 </a>了解更多信息。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在 <a href="#upload-to-storage">上传到存储器 </a>页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p>在本例中，应用程序接口将检索谷歌学术搜索的关键字 <code>牛顿</code> 推拉法</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source": "google", "url": "https://scholar.google.com/scholar?hl=en&q=newton&btnG=&as_sdt=1%2C5&as_sdtp="}'
</pre>
<p>以下是实时模式下的相同示例：</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source": "google", "url": "https://scholar.google.com/scholar?hl=en&q=newton&btnG=&as_sdt=1%2C5&as_sdtp="}'
</pre>
<p>并通过超级用户接口（SuperAPI）：</p>
<pre>curl -k -x realtime.oxylabs.io:60000 -U user:pass1 "https://scholar.google.com/scholar?hl=en&q=newton&btnG=&as_sdt=1%2C5&as_sdtp="
</pre>
<hr />
<h3 id="search">搜索</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8207 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Search.png" alt="Real-Time Crawler for Google Search" width="561" height="24" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Search.png 561w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Search-300x13.png 300w" sizes="(max-width: 561px) 100vw, 561px" /></p>
<p><code>谷歌搜索</code> 源旨在检索谷歌搜索结果（SERP）。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">谷歌搜索</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">领域</td>
<td style="font-weight: 400;" width="72">域名本地化</td>
<td style="font-weight: 400;" width="72">网</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">询问</td>
<td style="font-weight: 400;" width="72">UTF 编码的关键字</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">start_page</td>
<td style="font-weight: 400;" width="72">起始页码</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">页面</td>
<td style="font-weight: 400;" width="72">要检索的页数</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">限额</td>
<td style="font-weight: 400;" width="72">每页要检索的结果数量</td>
<td style="font-weight: 400;" width="72">10</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地点</td>
<td style="font-weight: 400;" width="72">Accept-Language 标头值。这将改变谷歌搜索页面的网页界面语言（而不是搜索结果）。例如，如果使用 com 域名并使用 locale 参数 de-DE，搜索结果仍将是美语，但 Accept-Language 将被设置为 de-DE,de;q=0.8。这将模仿来自美国的人在 com 域名中搜索，而他的浏览器用户界面设置为德语。如果不使用该参数，我们将根据域名设置 "接受语言 "参数（即 com 为 en-US）。可用的 Google 本地语言列表 <a href="#locale">这里。</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地理位置</td>
<td style="font-weight: 400;" width="72">结果应适应的地理位置。正确使用该参数对获取正确数据极为重要。如需了解更多信息，请阅读我们建议的地理位置参数结构 <a href="#geo_location">这里</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下<a href="#user-agent"> 这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">给予</td>
<td style="font-weight: 400;" width="72">启用 JavaScript 渲染。在目标需要 JavaScript 加载内容时使用。仅适用于推拉（又称回调）方法。该参数有两个可用值：html（获取原始输出）和 png（获取 Base64 编码的截图）。</td>
<td style="font-weight: 400;" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">回调端点的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">解析</td>
<td style="font-weight: 400;" width="72">true 将返回解析后的数据。参见 <a href="#parsed-data">解析数据 </a>了解更多信息。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">解析器类型</td>
<td style="font-weight: 400;" width="72">留空以获取默认布局，或将该值设为 v2 以使用更新后的 Google Search 解析输出模式和/或接收 CSV 格式的结果（仅适用于 Google Web Search）。参见<a href="#parsed-data"> 解析数据 </a>了解更多信息。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">将 fpstate 值设置为 aig 会使 Google 加载更多应用程序。该参数只有与 render 参数一起使用时才有用。</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">fpstate</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">true 将关闭拼写自动更正功能。</td>
<td style="font-weight: 400;" rowspan="2" width="72">假</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">nfpr</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">结果语言。支持的 Google 语言列表如下<a href="#results-language"> 这里。</a></td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">results_language</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">待匹配参数或 tbm 参数。可接受的值：App、BLG、BKS、DSC、ISCH、NWS、PTS、PLCS、RCP、LCL</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">tbm</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">tbs 参数。该参数就像一个容器，可容纳更多晦涩难懂的 google 参数，如按日期对结果进行限制/排序，以及其他过滤器，其中一些取决于 tbm 参数（例如，tbs=app_os:1 仅适用于 tbm 值为 app 的情况）。更多信息<a href="https://stenevang.wordpress.com/2013/02/22/google-advanced-power-search-url-request-parameters/" target="_blank" rel="noopener"> 这里。</a></td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">药材</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在  <a class="custom_link" href="https://docs.oxylabs.io/rtc/source/google/index.html?shell#upload-to-storage" target="_blank" rel="noopener">上传到存储器</a>  页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p>API 向 <code>google.nl</code> 检索关键字从第 11 到第 20 的搜索结果页面 <code>阿迪达斯</code>.结果将以法语显示，因为 <code>results_language</code> 参数也通过 <code>背景</code>.API 将向 <code>your.callback.url</code> 包含 URL，以便在数据检索任务成功完成后下载原始 HTML 输出。这就是推拉式：</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_search", "domain"："nl", "query"："adidas", "start_page"：11, "pages"：10, "callback_url"："https://your.callback.url"，"context"：{"key"："results_language"，"value"："fr"}]}'
</pre>
<p>以下是实时模式下的相同示例：</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_search", "domain"："nl", "query"："adidas", "start_page"：11, "pages"：10, "callback_url"："https://your.callback.url"，"context"：{"key"："results_language"，"value"："fr"}]}'
</pre>
<hr />
<h3 id="ads">广告</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8210 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Ads.png" alt="Real-Time Crawler for Google Ads" width="472" height="26" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Ads.png 472w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Ads-300x17.png 300w" sizes="(max-width: 472px) 100vw, 472px" /></p>
<p><code>谷歌广告</code> 源进行了优化，以检索带有付费广告的 Google 搜索结果页面（SERP）。该源每页只返回 10 个结果，确保付费结果显示的最高变化。除此以外，它还支持与常规来源相同的参数 <a href="#search">搜索</a></p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">谷歌广告</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">领域</td>
<td style="font-weight: 400;" width="72">域名本地化</td>
<td style="font-weight: 400;" width="72">网</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">询问</td>
<td style="font-weight: 400;" width="72">UTF 编码的关键字</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">start_page</td>
<td style="font-weight: 400;" width="72">起始页码</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">页面</td>
<td style="font-weight: 400;" width="72">要检索的页数</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地点</td>
<td style="font-weight: 400;" width="72">Accept-Language 标头值。这将改变谷歌搜索页面的网页界面语言（而不是搜索结果）。例如，如果使用 com 域名并使用 locale 参数 de-DE，搜索结果仍将是美语，但 Accept-Language 将被设置为 de-DE,de;q=0.8。这将模仿来自美国的人在 com 域名中搜索，而他的浏览器用户界面设置为德语。如果不使用该参数，我们将根据域名设置 "接受语言 "参数（即 com 为 en-US）。可用的 Google 本地语言列表<a href="#locale"> 这里。</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地理位置</td>
<td style="font-weight: 400;" width="72">结果应适应的地理位置。正确使用该参数对获取正确数据极为重要。如需了解更多信息，请阅读我们建议的地理位置参数结构<a href="#geo_location"> 这里</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下<a href="#user-agent"> 这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">回调端点的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">解析</td>
<td style="font-weight: 400;" width="72">true 将返回解析后的数据。参见 <a href="#parsed-data">解析数据</a> 了解更多信息。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">true 将关闭拼写自动更正功能。</td>
<td style="font-weight: 400;" rowspan="2" width="72">假</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">nfpr</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">结果语言。支持的 Google 语言列表如下 <a href="#results-language">这里。</a></td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">results_language</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">待匹配参数或 tbm 参数。可接受的值：App、BLG、BKS、DSC、ISCH、NWS、PTS、PLCS、RCP、LCL</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">tbm</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">tbs 参数。该参数就像一个容器，可容纳更多晦涩难懂的 google 参数，如按日期对结果进行限制/排序，以及其他过滤器，其中一些取决于 tbm 参数（例如，tbs=app_os:1 仅适用于 tbm 值为 app 的情况）。更多信息<a href="https://stenevang.wordpress.com/2013/02/22/google-advanced-power-search-url-request-parameters/" target="_blank" rel="nofollow noopener"> 这里。</a></td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">药材</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在 <a href="#upload-to-storage">上传到存储器 </a>页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p>API 向 <code>google.nl</code> 检索关键字 <code>阿迪达斯</code>.API 将向 <code>your.callback.url</code> 包含 URL，以便在数据检索任务成功完成后下载原始 HTML 输出。这就是推拉式：</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_ads", "domain"："nl", "query"："adidas", "callback_url"："https://your.callback.url"}'
</pre>
<p>以下是实时模式下的相同示例：</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_ads", "domain"："nl", "query"："adidas"}'
</pre>
<hr />
<h3 id="hotels">酒店</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8211 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Hotels.png" alt="Real-Time Crawler for Google Hotels" width="480" height="24" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Hotels.png 480w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Hotels-300x15.png 300w" sizes="(max-width: 480px) 100vw, 480px" /></p>
<p><code>谷歌酒店</code> 数据源旨在检索 Google 酒店搜索结果。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">谷歌酒店</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">领域</td>
<td style="font-weight: 400;" width="72">域名本地化</td>
<td style="font-weight: 400;" width="72">网</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">询问</td>
<td style="font-weight: 400;" width="72">UTF 编码的关键字</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">start_page</td>
<td style="font-weight: 400;" width="72">起始页码</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">页面</td>
<td style="font-weight: 400;" width="72">要检索的页数</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">限额</td>
<td style="font-weight: 400;" width="72">每页要检索的结果数量</td>
<td style="font-weight: 400;" width="72">10</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地点</td>
<td style="font-weight: 400;" width="72">Accept-Language 标头值。这将改变谷歌搜索页面的网页界面语言（而不是搜索结果）。例如，如果使用 com 域名并使用 locale 参数 de-DE，搜索结果仍将是美语，但 Accept-Language 将被设置为 de-DE,de;q=0.8。这将模仿来自美国的人在 com 域名中搜索，而他的浏览器用户界面设置为德语。如果不使用该参数，我们将根据域名设置 "接受语言 "参数（即 com 为 en-US）。可用的 Google 本地语言列表 <a href="#locale">这里。</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">results_language</td>
<td style="font-weight: 400;" width="72">结果语言。支持的 Google 语言列表如下 <a href="#results-language">这里。</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地理位置</td>
<td style="font-weight: 400;" width="72">结果应适应的地理位置。正确使用该参数对获取正确数据极为重要。如需了解更多信息，请阅读我们建议的地理位置参数结构 <a href="#geo_location">这里</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下 <a href="#user-agent">这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">给予</td>
<td style="font-weight: 400;" width="72">启用 JavaScript 渲染。在目标需要 JavaScript 加载内容时使用。仅适用于推拉（又称回调）方法。该参数有两个可用值：html（获取原始输出）和 png（获取 Base64 编码的截图）。</td>
<td style="font-weight: 400;" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">回调端点的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">true 将关闭拼写自动更正功能。</td>
<td style="font-weight: 400;" rowspan="2" width="72">假</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">nfpr</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">客人数量</td>
<td style="font-weight: 400;" rowspan="2" width="72">2</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">酒店入住率</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">在酒店的停留时间，从 - 到。例如：2017-07-12,2017-07-13</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">酒店日期</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在 <a href="#upload-to-storage">上传到存储器 </a>页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p>请注意，使用 Google hotels 时，您始终需要发送一个包含 "hotels "的关键词，例如 "洛杉矶的酒店"、"法国巴黎的酒店 "等。酒店 "和 "hotels "均可。Google 还支持当地语言，因此您可以发送 "Hotelli Helsingissä "查询赫尔辛基的酒店，或发送 "viešbučiai Vilnius "查询维尔纽斯的酒店。</p>
<p>在此示例中，API 将检索前 3 页的酒店空房情况，包括 <code>1</code> 客 <code>2019-10-01</code> 和 <code>2019-10-10</code> 对于 <code>巴黎的酒店</code> 从 <code>谷歌网站</code>.这就是推拉法。</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_hotels", "domain"："com", "pages"：3, "query"："hotels in Paris", "context"：[{"key"："hotel_occupancy", "value": 1}, {"key"："hotel_dates", "value"："2019-10-01,2019-10-10"}]}'
</pre>
<p>这是实时的：</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_hotels", "domain"："com", "pages"：3, "query"："hotels in Paris", "context"：[{"key"："hotel_occupancy", "value": 1}, {"key"："hotel_dates", "value"："2019-10-01,2019-10-10"}]}'
</pre>
<hr />
<h3 id="travel-hotels">旅行酒店</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8212 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Travel-Hotels.png" alt="Real-Time Crawler for Google Travel Hotels" width="470" height="20" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Travel-Hotels.png 470w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Travel-Hotels-300x13.png 300w" sizes="(max-width: 470px) 100vw, 470px" /></p>
<p><code>谷歌旅游酒店</code> 数据源旨在检索 Google 旅行服务的酒店搜索结果。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">谷歌旅游酒店</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">领域</td>
<td style="font-weight: 400;" width="72">域名本地化</td>
<td style="font-weight: 400;" width="72">网</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">询问</td>
<td style="font-weight: 400;" width="72">UTF 编码的关键字</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">start_page</td>
<td style="font-weight: 400;" width="72">起始页码</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地点</td>
<td style="font-weight: 400;" width="72">Accept-Language 标头值。这将改变谷歌搜索页面的网页界面语言（而不是搜索结果）。例如，如果使用 com 域名并使用 locale 参数 de-DE，搜索结果仍将是美语，但 Accept-Language 将被设置为 de-DE,de;q=0.8。这将模仿来自美国的人在 com 域名中搜索，而他的浏览器用户界面设置为德语。如果不使用该参数，我们将根据域名设置 "接受语言 "参数（即 com 为 en-US）。可用的 Google 本地语言列表 <a href="#locale">这里。</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地理位置</td>
<td style="font-weight: 400;" width="72">结果应适应的地理位置。正确使用该参数对获得正确的数据极为重要。请注意，该数据源可接受的地理位置值数量有限，请检查 <a href="https://docs.oxylabs.io/resources/google_travel_hotels-bad_geo_locations.csv" target="_blank" rel="noopener">此文件 </a>来查看无法获得准确结果的地理位置值。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下 <a href="#user-agent">这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">给予</td>
<td style="font-weight: 400;" width="72">启用 JavaScript 渲染。在目标需要 JavaScript 加载内容时使用。仅适用于推拉（又称回调）方法。该参数有两个可用值：html（获取原始输出）和 png（获取 Base64 编码的屏幕截图）。请注意，如果没有 JavaScript 渲染，Google Travel Hotels 将不会返回任何有用的内容。</td>
<td style="font-weight: 400;" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">回调端点的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">客人数量</td>
<td style="font-weight: 400;" rowspan="2" width="72">2</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">酒店入住率</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">按 # 酒店星级筛选结果。您可以指定一个或多个介于 2 和 5 之间的值。例如[3,4]</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">酒店类别</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">入住酒店的日期，从 - 到。例如：2017-07-12,2017-07-13</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">酒店日期</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。目前只支持亚马逊 S3：s3。完整的实现可以在 <a href="#upload-to-storage">上传到存储器</a> page.</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的 Amazon S3 存储桶名称</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p>请注意，使用 Google hotels 时，您始终需要发送一个包含 "hotels "的关键词，例如 "洛杉矶的酒店"、"法国巴黎的酒店 "等。酒店 "和 "hotels "均可。Google 还支持当地语言，因此您可以发送 "Hotelli Helsingissä "查询赫尔辛基的酒店，或发送 "viešbučiai Vilnius "查询维尔纽斯的酒店。</p>
<p>在此示例中，API 将检索第 2 页的酒店空房情况结果，内容为 <code>2</code> 客人之间 <code>2020-10-01</code> 和 <code>2020-10-10</code> 对于 <code>巴黎的酒店</code> 从 <code>谷歌网站</code>.过滤后的结果将只显示 2 星级和 4 星级酒店。这是推拉法。</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_travel_hotels", "domain"："com"，"start_page"：2, "query"："巴黎的酒店"，"callback_url"："https://your.callback.url"，"context"：[{"key"："hotel_occupancy", "value": 2}，{"key"："hotel_dates", "value"："2020-10-01,2020-10-10"}, {"key":"hotel_classes", "value": [2,4]}]}'
</pre>
<p>这是实时的：</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_travel_hotels", "domain"："com"，"start_page"：2, "query"："巴黎的酒店"，"上下文"：[{"key"："hotel_occupancy", "value": 2}, {"key"："hotel_dates", "value"："2020-10-01,2020-10-10"}, {"key":"hotel_classes", "value": [2,4]}]}'
</pre>
<hr />
<h3 id="shopping-search">购物搜索</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8213 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Search.png" alt="Real-Time Crawler for Google Shopping Search" width="474" height="26" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Search.png 474w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Search-300x16.png 300w" sizes="(max-width: 474px) 100vw, 474px" /></p>
<p><code>谷歌购物搜索</code> 来源旨在检索 Google 购物搜索结果。</p>
<pre>邮寄 https://data.oxylabs.io/v1/queries
</pre>
<p>查询参数</p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">谷歌购物搜索</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">领域</td>
<td style="font-weight: 400;" width="72">域名本地化</td>
<td style="font-weight: 400;" width="72">网</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">询问</td>
<td style="font-weight: 400;" width="72">UTF 编码的关键字</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">start_page</td>
<td style="font-weight: 400;" width="72">起始页码</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">页面</td>
<td style="font-weight: 400;" width="72">要检索的页数</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地点</td>
<td style="font-weight: 400;" width="72">Accept-Language 标头值。这将改变谷歌搜索页面的网页界面语言（而不是搜索结果）。例如，如果使用 com 域名并使用 locale 参数 de-DE，搜索结果仍将是美语，但 Accept-Language 将被设置为 de-DE,de;q=0.8。这将模仿来自美国的人在 com 域名中搜索，而他的浏览器用户界面设置为德语。如果不使用该参数，我们将根据域名设置 "接受语言 "参数（即 com 为 en-US）。可用的 Google 本地语言列表 <a href="#locale">这里。</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">results_language</td>
<td style="font-weight: 400;" width="72">结果语言。支持的 Google 语言列表如下 <a href="#results-language">这里。</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地理位置</td>
<td style="font-weight: 400;" width="72">结果应适应的地理位置。正确使用该参数对获取正确数据极为重要。如需了解更多信息，请阅读我们建议的地理位置参数结构 <a href="#geo_location">这里</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下 <a href="#user-agent">这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">给予</td>
<td style="font-weight: 400;" width="72">启用 JavaScript 渲染。在目标需要 JavaScript 加载内容时使用。仅适用于推拉（又称回调）方法。该参数有两个可用值：html（获取原始输出）和 png（获取 Base64 编码的截图）。</td>
<td style="font-weight: 400;" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">回调端点的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">解析</td>
<td style="font-weight: 400;" width="72">true 将返回 <a href="#parsed-data">解析后的数据</a>.更多信息请参阅解析数据。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">true 将关闭拼写自动更正功能。</td>
<td style="font-weight: 400;" rowspan="2" width="72">假</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">nfpr</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">r 应用默认的 Google 排序，rv - 按评论得分排序，p - 按价格升序排序，pd - 按价格降序排序</td>
<td style="font-weight: 400;" rowspan="2" width="72">r</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">sort_by</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">筛选产品的最低价格</td>
<td style="font-weight: 400;" rowspan="2" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">最低价格</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">筛选产品的最高价格</td>
<td style="font-weight: 400;" rowspan="2" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">最高价格</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在<a href="#upload-to-storage"> 上传到存储器 </a>页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p>首先下载应用程序接口 <code>4</code> 搜索关键字 <code>阿迪达斯</code>，按降序价格和 $20 的最低价格排序。这就是 "推-拉 "的方法：</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_shopping_search", "domain"："com"，"query"："adidas", "pages"：4, "context"：{"key"："sort_by"，"value"："pd"}，{"key"："min_price"，"value"：20}]}'
</pre>
<p>以下是实时模式下的相同示例：</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_shopping_search", "domain"："com"，"query"："adidas", "pages"：4, "context"：{"key"："sort_by"，"value"："pd"}，{"key"："min_price"，"value"：20}]}'
</pre>
<hr />
<h3 id="shopping-product">购物产品</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8214 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Product.png" alt="Real-Time Crawler for Google Shopping Product" width="467" height="26" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Product.png 467w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Product-300x17.png 300w" sizes="(max-width: 467px) 100vw, 467px" /></p>
<p><code>谷歌购物产品</code> 源用于检索指定产品的 Google Shopping 产品页面。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">谷歌购物产品</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">领域</td>
<td style="font-weight: 400;" width="72">域名本地化</td>
<td style="font-weight: 400;" width="72">网</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">询问</td>
<td style="font-weight: 400;" width="72">UTF 编码的产品代码</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">start_page</td>
<td style="font-weight: 400;" width="72">起始页码</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">页面</td>
<td style="font-weight: 400;" width="72">要检索的页数</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地点</td>
<td style="font-weight: 400;" width="72">Accept-Language 标头值。这将改变谷歌搜索页面的网页界面语言（而不是搜索结果）。例如，如果使用 com 域名并使用 locale 参数 de-DE，搜索结果仍将是美语，但 Accept-Language 将被设置为 de-DE,de;q=0.8。这将模仿来自美国的人在 com 域名中搜索，而他的浏览器用户界面设置为德语。如果不使用该参数，我们将根据域名设置 "接受语言 "参数（即 com 为 en-US）。可用的 Google 本地语言列表 <a href="#locale">这里。</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">results_language</td>
<td style="font-weight: 400;" width="72">结果语言。支持的 Google 语言列表如下 <a href="#results-language">这里。</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地理位置</td>
<td style="font-weight: 400;" width="72">结果应适应的地理位置。正确使用该参数对获取正确数据极为重要。如需了解更多信息，请阅读我们建议的地理位置参数结构 <a href="#geo_location">这里</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下 <a href="#user-agent">这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">给予</td>
<td style="font-weight: 400;" width="72">启用 JavaScript 渲染。在目标需要 JavaScript 加载内容时使用。仅适用于推拉（又称回调）方法。该参数有两个可用值：html（获取原始输出）和 png（获取 Base64 编码的截图）。</td>
<td style="font-weight: 400;" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">回调端点的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">解析</td>
<td style="font-weight: 400;" width="72">true 将返回解析后的数据。参见 <a href="#parsed-data">解析数据</a> 了解更多信息。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在 <a href="#upload-to-storage">上传到存储器</a> 页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p>在此，应用程序接口将下载产品 ID 的产品页面 <code>5007040952399054528</code> 谷歌购物 <code>谷歌网站</code>.它还将获得前 4 页的定价信息。这就是推拉页面的样子：</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_shopping_product", "domain"："com", "query"："5007040952399054528"}'
</pre>
<p>在实时系统中也是如此：</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_shopping_product", "domain"："com", "query"："5007040952399054528"}'
</pre>
<hr />
<h3 id="shopping-product-pricing">购物产品定价</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8215 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Product-Pricing.png" alt="Real-Time Crawler for Google Shopping Product Pricing" width="475" height="23" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Product-Pricing.png 475w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Product-Pricing-300x15.png 300w" sizes="(max-width: 475px) 100vw, 475px" /></p>
<p><code>谷歌购物定价</code> 源用于检索指定产品的 Google Shopping 产品定价页面。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">谷歌购物定价</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">领域</td>
<td style="font-weight: 400;" width="72">域名本地化</td>
<td style="font-weight: 400;" width="72">网</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">询问</td>
<td style="font-weight: 400;" width="72">UTF 编码的产品代码</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">start_page</td>
<td style="font-weight: 400;" width="72">起始页码</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">页面</td>
<td style="font-weight: 400;" width="72">要检索的页数</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地点</td>
<td style="font-weight: 400;" width="72">Accept-Language 标头值。这将改变谷歌搜索页面的网页界面语言（而不是搜索结果）。例如，如果使用 com 域名并使用 locale 参数 de-DE，搜索结果仍将是美语，但 Accept-Language 将被设置为 de-DE,de;q=0.8。这将模仿来自美国的人在 com 域名中搜索，而他的浏览器用户界面设置为德语。如果不使用该参数，我们将根据域名设置 "接受语言 "参数（即 com 为 en-US）。可用的 Google 本地语言列表 <a href="#locale">这里。</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">results_language</td>
<td style="font-weight: 400;" width="72">结果语言。支持的 Google 语言列表如下 <a href="#results-language">这里。</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地理位置</td>
<td style="font-weight: 400;" width="72">结果应适应的地理位置。正确使用该参数对获取正确数据极为重要。如需了解更多信息，请阅读我们建议的地理位置参数结构 <a href="#geo_location">这里</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下 <a href="#user-agent">这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">给予</td>
<td style="font-weight: 400;" width="72">启用 JavaScript 渲染。在目标需要 JavaScript 加载内容时使用。仅适用于推拉（又称回调）方法。该参数有两个可用值：html（获取原始输出）和 png（获取 Base64 编码的截图）。</td>
<td style="font-weight: 400;" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">回调端点的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">解析</td>
<td style="font-weight: 400;" width="72">true 将返回解析后的数据。参见 <a href="#parsed-data">解析数据</a> 了解更多信息。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在<a href="#upload-to-storage"> 上传到存储器</a> 页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p>在此，应用程序接口将下载产品 ID 的产品定价页面 <code>5007040952399054528</code> 谷歌购物 <code>谷歌网站</code>.下面是一个推拉式示例：</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_shopping_pricing", "domain"："com", "query"："5007040952399054528"}'
</pre>
<p>在实时系统中也是如此：</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_shopping_pricing", "domain"："com", "query"："5007040952399054528"}'
</pre>
<hr />
<h3 id="images">图片</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8216 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Images.png" alt="Real-Time Crawler for Google Images" width="477" height="27" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Images.png 477w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Images-300x17.png 300w" sizes="(max-width: 477px) 100vw, 477px" /></p>
<p><code>谷歌图片</code> 源的目的是检索图像搜索页面，以查找与 <code>询问</code> 参数，以及包含这些图像的网站。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">谷歌图片</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">领域</td>
<td style="font-weight: 400;" width="72">域名本地化</td>
<td style="font-weight: 400;" width="72">网</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">询问</td>
<td style="font-weight: 400;" width="72">图片的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">start_page</td>
<td style="font-weight: 400;" width="72">起始页码</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">页面</td>
<td style="font-weight: 400;" width="72">要检索的页数</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地点</td>
<td style="font-weight: 400;" width="72">Accept-Language 标头值。这将改变谷歌搜索页面的网页界面语言（而不是搜索结果）。例如，如果使用 com 域名并使用 locale 参数 de-DE，搜索结果仍将是美语，但 Accept-Language 将被设置为 de-DE,de;q=0.8。这将模仿来自美国的人在 com 域名中搜索，而他的浏览器用户界面设置为德语。如果不使用该参数，我们将根据域名设置 "接受语言 "参数（即 com 为 en-US）。可用的 Google 本地语言列表 <a href="#locale">这里。</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地理位置</td>
<td style="font-weight: 400;" width="72">结果应适应的地理位置。正确使用该参数对获取正确数据极为重要。如需了解更多信息，请阅读我们建议的地理位置参数结构 <a href="#geo_location">这里</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下 <a href="#user-agent">这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">给予</td>
<td style="font-weight: 400;" width="72">启用 JavaScript 渲染。在目标需要 JavaScript 加载内容时使用。仅适用于推拉（又称回调）方法。该参数有两个可用值：html（获取原始输出）和 png（获取 Base64 编码的截图）。</td>
<td style="font-weight: 400;" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">回调端点的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">true 将关闭拼写自动更正功能。</td>
<td style="font-weight: 400;" rowspan="2" width="72">假</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">nfpr</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">结果语言。支持的 Google 语言列表如下 <a href="#results-language">这里。</a></td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">results_language</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在 <a href="#upload-to-storage">上传到存储器</a> 页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p>在此示例中，应用程序接口将下载类似图像的图像搜索页面，以搜索图像 <code>https://newsneakernews-wpengine.netdna-ssl.com/wp-content/uploads/2017/03/adidas-boost-march-25-2017.jpg</code> 从 <code>谷歌网站</code>.这就是推拉法：</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_images", "domain"："com", "query"："https://newsneakernews-wpengine.netdna-ssl.com/wp-content/uploads/2017/03/adidas-boost-march-25-2017.jpg"}'
</pre>
<p>在实时系统中也是同样的要求：</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_images", "domain"："com", "query"："https://www.example.com/img/image.jpg"}'
</pre>
<hr />
<h3 id="suggestions">建议</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8217 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Suggestions.png" alt="Real-Time Crawler for Google Suggestions" width="476" height="25" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Suggestions.png 476w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Suggestions-300x16.png 300w" sizes="(max-width: 476px) 100vw, 476px" /></p>
<p><code>谷歌建议</code> 该源代码旨在检索 Google 关键字建议。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">谷歌建议</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">询问</td>
<td style="font-weight: 400;" width="72">UTF 编码的关键字</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地点</td>
<td style="font-weight: 400;" width="72">Accept-Language 标头值。这将改变谷歌搜索页面的网页界面语言（而不是搜索结果）。例如，如果使用 com 域名并使用 locale 参数 de-DE，搜索结果仍将是美语，但 Accept-Language 将被设置为 de-DE,de;q=0.8。这将模仿来自美国的人在 com 域名中搜索，而他的浏览器用户界面设置为德语。如果不使用该参数，我们将根据域名设置 "接受语言 "参数（即 com 为 en-US）。可用的 Google 本地语言列表<a href="#locale"> 这里。</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地理位置</td>
<td style="font-weight: 400;" width="72">结果应适应的地理位置。正确使用该参数对获取正确数据极为重要。如需了解更多信息，请阅读我们建议的地理位置参数结构 <a href="#geo_location">这里</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下<a href="#user-agent"> 这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">给予</td>
<td style="font-weight: 400;" width="72">启用 JavaScript 渲染。在目标需要 JavaScript 加载内容时使用。仅适用于推拉（又称回调）方法。该参数有两个可用值：html（获取原始输出）和 png（获取 Base64 编码的截图）。</td>
<td style="font-weight: 400;" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">回调端点的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在<a href="#upload-to-storage"> 上传到存储器</a> 页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p>API 向 Google 建议页面发出请求，以检索关键字建议 <code>阿迪达斯</code>.应用程序接口会将一个 JSON 有效载荷发送到 <code>your.callback.url</code> 包含任务完成后下载结果的 URL。下面是一个推拉式示例：</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_suggest", "query"："adidas", "callback_url"："https://your.callback.url"}'
</pre>
<p>实时 "也有同样的要求：</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："google_suggest", "query"："阿迪达斯"}'
</pre>
<hr />
<h3 id="keyword-data">关键词数据</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8218 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Keyword-Data.png" alt="Real-Time Crawler for Google Keyword Data" width="472" height="23" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Keyword-Data.png 472w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Keyword-Data-300x15.png 300w" sizes="(max-width: 472px) 100vw, 472px" /></p>
<p><code>google_msv</code> 数据源将检索指定关键字的 Google 关键字数据以及建议关键字（除非在上下文中传递 ideas=False）。关键字以字符串形式在查询参数中传递。关键词之间用逗号分隔。不支持关键字内的逗号，因此关键字 "Water Bottle 5,0L "实际上会被解释为 2 个关键字："水瓶 5 "和 "0L"。更多详情，请参阅右侧的输出示例。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">google_msv</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">询问</td>
<td style="font-weight: 400;" width="72">UTF 编码的关键字，用逗号分隔</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地理位置</td>
<td style="font-weight: 400;" width="72">结果应适应的地理位置。正确使用该参数对获取正确数据极为重要。如需了解更多信息，请阅读我们建议的地理位置参数结构<a href="#geo_location"> 这里</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">语言，例如英语或法语。无参数或空值将返回所有语言的结果。</td>
<td style="font-weight: 400;" rowspan="2" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">语言</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">3 个符号的货币代码</td>
<td style="font-weight: 400;" rowspan="2" width="72">欧元</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">货币</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">如果为 "true"，则返回关键字的想法；如果为 "false"，则只返回所请求关键字的数据</td>
<td style="font-weight: 400;" rowspan="2" width="72">真</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">理念</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">获取想法时，将限制所提供的想法关键字数量，以 50 的整数倍四舍五入（例如，20 -&gt; 50，123 -&gt; 150）。0 表示无限制。</td>
<td style="font-weight: 400;" rowspan="2" width="72">0</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">想法限制</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">获取创意时，将过滤掉月平均搜索量低于所提供数字的创意关键词。0 表示不过滤。</td>
<td style="font-weight: 400;" rowspan="2" width="72">0</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">min_amsv</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">获取创意时，将过滤掉月平均搜索量高于所提供数字的创意关键词。0 表示不过滤。</td>
<td style="font-weight: 400;" rowspan="2" width="72">0</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">max_amsv</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">获取创意时，将过滤掉不属于所提供类别的创意关键词。可用的类别有.NET、.NET/.NET、.NET/.NET 和.NET。</td>
<td style="font-weight: 400;" rowspan="2" width="72">无效</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">类别</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在 <a href="#upload-to-storage">上传到存储器</a> 页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
在本例中，API 将为 <code>最佳餐厅</code> 和所有建议的关键词。关键词语言是 <code>法语</code>地理位置为 <code>法国巴黎法兰西岛</code> 货币是 <code>欧元</code>.</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
-d '{"source"："google_msv", "query"："meilleur restaurant", "geo_location"："Paris,Ile-de-France,France", "context"：[{"key"："语言"，"值"："法语"},{"键"："currency", "value"："EUR"}, {"key"："想法"，"值"：true}]}'

# 或者，如果您不需要创意：

curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
-d '{"source"："google_msv", "query"："meilleur restaurant", "geo_location"："Paris,Ile-de-France,France", "context"：[{"key"："语言"，"值"："法语"},{"键"："currency", "value"："EUR"}, {"key"："想法"，"值"：false}]}'
</pre>
<p>输出示例（historicalSearchVolume 条目和想法条目切割）：</p>
<pre>{
    "结果"：[
    {
        "内容"：
        {
            "想法"：[
            {
                "cpc"：4.712038,
                "keyword"："meilleur restaurant a paris"、
                "currency"："EUR"、
                "竞争"：0.3385383889238515,
                "averageSearchVolume"：1900,
                "historicalSearchVolume"：[
                {
                    "日期"："201803",
                    "搜索量"：1600
                },
                {
                    "日期"："201802",
                    "searchVolume"：1900
                }]
            }],
            "种子"：[
            {
                "cpc"：4.05351,
                "keyword"："meilleur restaurant"、
                "currency"："EUR"、
                "竞争"：0.3385341239238515,
                "averageSearchVolume"：2900,
                "historicalSearchVolume"：[
                {
                    "日期"："201803",
                    "搜索量"：3600
                },
                {
                    "日期"："201802",
                    "searchVolume"：2900
                }]
            }]
        }
    }]
}
</pre>
<hr />
<h2 id="parsed-data">解析数据</h2>
<p>谷歌网页搜索（SERP）页面是唯一一个广泛支持解析数据交付的页面。以下是我们解析的 SERP 页面特定字段。结构数据可用 <a href="#search">搜索</a> (一直）和 <a href="#direct">直接</a> (只要提交 SERP 页面 URL）。</p>
<p>谷歌网络搜索 (<code>"来源"："谷歌搜索"</code>) 支持 CSV 输出。要访问它，请在谷歌网络搜索任务中包含以下参数 <code>{"源"："google_search", "parse": true, "parser_type"："v2"}</code>.CSV 作业的结果检索 URL 结构如下： <code>http://data.oxylabs.io/v1/queries/{job_id}/results/normalized?format=csv</code>.</p>
<hr />
<h3 id="search-2">搜索</h3>
<h4 id="organic-amp-paid"><strong>有机和付费</strong></h4>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8220" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Organic-Paid.png" alt="Real-Time Crawler for Google Organic & Paid" width="603" height="437" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Organic-Paid.png 603w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Organic-Paid-300x217.png 300w" sizes="(max-width: 603px) 100vw, 603px" /></p>
<pre>"results": {
  "paid": [
    {
      "pos": 1,
      "url": "https://www.adidas.com/us",
      "desc": "New York · 10 locations nearby",
      "title": "adidas.com | adidas® Official Site | Official adidas® Online Store‎",
      "url_shown": "www.adidas.com/Official/Site",
      "pos_overall": 1
    }
  ],
  "organic": [
    {
      "pos": 1,
      "url": "https://www.adidas.com/us",
      "desc": "Welcome to adidas Shop for adidas shoes, clothing and view new collections for adidas Originals, running, football, training and much more.",
      "title": "adidas Official Website | adidas US",
      "url_shown": "https://www.adidas.com › ...",
      "pos_overall": 2
    },
    {
      "pos": 2,
      "url": "https://www.mena.adidas.com/",
      "desc": "Browse for adidas shoes, clothing and collections, adidas Originals, Running, Football, Training and more on the official adidas website.",
      "title": "adidas Official Website | adidas",
      "url_shown": "https://www.mena.adidas.com",
      "pos_overall": 6
    },
    {
      "pos": 3,
      "url": "https://www.adidas-group.com/",
      "desc": "adidas AG Supervisory Board announces candidates as shareholder ... adidas celebrates its 70th anniversary and the opening of the Arena building. August 9 ...",
      "title": "adidas - Home",
      "url_shown": "https://www.adidas-group.com",
      "pos_overall": 7
    },
    {
      "pos": 4,
      "url": "https://www.nycgo.com/shopping/the-adidas-store",
      "desc": "You don't so much shop in this flagship Adidas store as you experience it. With an interior modeled on a high school stadium, this four-story Midtown outlet—the  ...",
      "title": "The Adidas Store (Midtown) | NYCgo - NYCgo.com",
      "url_shown": "https://www.nycgo.com › shopping › the-adidas-store",
      "pos_overall": 8
    },
    {
      "pos": 5,
      "url": "https://www.yelp.com/search?find_desc=adidas+store&find_loc=Manhattan%2C+NY",
      "desc": "Reviews on Adidas Store in Manhattan, NY - Adidas, Adidas Originals New York SoHo, adidas Sport Performance, Upper 90 Soccer - Manhattan, Nike Soho, ...",
      "title": "Adidas Store Manhattan, NY - Last Updated August 2019 - Yelp",
      "url_shown": "https://www.yelp.com › search › find_desc=adidas+store",
      "pos_overall": 9
    },
    {
      "pos": 6,
      "url": "https://en.wikipedia.org/wiki/Adidas",
      "desc": "Adidas AG is a multinational corporation, founded and headquartered in Herzogenaurach, Germany, that designs and manufactures shoes, clothing and ...",
      "title": "Adidas - Wikipedia",
      "url_shown": "https://en.wikipedia.org › wiki › Adidas",
      "pos_overall": 10
    }
  ]
</pre>
<hr />
<h4 id="product-listing-ads"><strong>产品列表广告</strong></h4>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8221" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Product-Listing-Ads.png" alt="Real-Time Crawler for Google Product Listing Ads" width="605" height="429" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Product-Listing-Ads.png 605w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Product-Listing-Ads-300x213.png 300w" sizes="(max-width: 605px) 100vw, 605px" /></p>
<pre>"pla"：[
  {
    "pos"：1,
    "url"："http://www.adidas.com/us/asweego-shoes/F37038.html?cm_mmc=AdieSEM_Feeds-_-GoogleProductAds-_-NA-_-F37038&amp;cm_mmca1=US&amp;cm_mmca2=NA&amp;kpid=F37038&amp;sourceid=543457011",
    价格"$40.00"、
    "标题"："adidas Asweego Shoes Black 10.5 - Mens Running Shoes"、
    "卖家"："adidas"、
    "来源"：""
  },
  {
    "pos": 2、
    "url"："http://www.adidas.com/us/baseline-shoes/AW4299.html?cm_mmc=AdieSEM_Feeds-_-GoogleProductAds-_-NA-_-AW4299&amp;cm_mmca1=US&amp;cm_mmca2=NA&amp;kpid=AW4299&amp;sourceid=543457011",
    "价格"："$50.00"、
    "标题"："adidas Baseline Shoes White 13K - Originals Shoes"、
    卖家"adidas"、
    "来源"：""
  },
  ...
  {
    "pos": 29、
    "url"："https://www.zappos.com/product/8466374/color/21766"、
    "价格"："$79.95"、
    "标题"："adidas Superstar W Originals 女式经典鞋 白色/黑色/白色 : 9 B - Medium"、
    "卖家"："Zappos.com"、
    "来源"：""
  }
]
</pre>
<hr />
<h4 id="top-stories"><strong>热门新闻</strong></h4>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8222" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Top-Stories.png" alt="Real-Time Crawler for Google Top Stories" width="609" height="427" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Top-Stories.png 609w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Top-Stories-300x210.png 300w" sizes="(max-width: 609px) 100vw, 609px" /></p>
<pre>"top_stories"：[
  {
    "url"："https://www.cnet.com/news/spacex-starhopper-prototype-takes-giant-leap-for-elon-musk/"、
    "来源"："Cnet"、
    "标题"："SpaceX Starhopper 火箭原型为埃隆-马斯克带来巨大飞跃"、
    "时间范围"： "13 小时前"："13 小时前
  },
  {
    "url"："https://electrek.co/2019/08/27/elon-musk-tesla-china-made-model-3-rumor/"、
    "来源"："Electrek"、
    "标题"："传伊隆-马斯克将在本周举行的活动上发布首款中国制造的特斯拉 Model 3"、
    "时间范围"16小时前"
  },
  {
    "url"："https://www.bloomberg.com/news/articles/2019-08-28/musk-to-join-china-ai-summit-despite-trump-ordering-firms-out"、
    "来源"："彭博社"、
    "标题"："埃隆-马斯克和马云将在中国峰会上就人工智能展开辩论"、
    "时间范围"："4 小时前
  }
]
</pre>
<hr />
<h4 id="featured-snippet"><strong>精选片段</strong></h4>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8223" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Featured-Snippet.png" alt="Real-Time Crawler for Google Featured Snippet" width="612" height="435" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Featured-Snippet.png 612w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Featured-Snippet-300x213.png 300w" sizes="(max-width: 612px) 100vw, 612px" /></p>
<pre>"featured_snippet"：[
  {
    "url"："https://en.wikipedia.org/wiki/Contract_for_difference"、
    "desc"："在金融领域，差价合约（CFD）是双方之间的一种合约，通常描述为 "买方（buyer）"和 "卖方（seller）"，规定卖方向买方支付资产当前价值与合约时间价值之间的差额（如果差额为负，则买方向卖方支付......"、
    "标题"："差价合约 - 维基百科"、
    "url_shown"："https://en.wikipedia.org ' wiki ' Contract_for_difference"、
    "pos_overall"：1
  }
]
</pre>
<hr />
<h4 id="knowledge-base"><strong>知识库</strong></h4>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8224" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Knowledge-Base.png" alt="Real-Time Crawler for Google Knowledge Base" width="611" height="430" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Knowledge-Base.png 611w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Knowledge-Base-300x211.png 300w" sizes="(max-width: 611px) 100vw, 611px" /></p>
<pre>"知识"：{
  "标题"："阿迪达斯"、
  "事实"：[
    {
      "标题"："股价"、
      "content"："ADDDF（OTCMKTS）$291.81 +2.74 (+0.95%)美国东部时间 8 月 23 日下午 4:00 - 免责声明"
    },
    {
      "标题"："创始人"、
      "内容"："阿道夫-达斯勒"
    },
    {
      "标题"："成立"、
      "内容"："1949年8月18日，德国黑措根奥拉赫"
    },
    {
      "标题"："总部"、
      "内容"："德国黑措根奥拉赫"
    },
    {
      "标题"："子公司"、
      "内容"："锐步、Five Ten Footwear、Runtastic、Ashworth、MORE"
    },
    {
      "标题"："网站"、
      "content"："https://www.adidas.com/us"
    }
  ],
  "副标题"："设计公司"、
  "描述"："描述阿迪达斯公司（Adidas AG）是一家跨国公司，成立于德国黑措根奥拉赫（Herzogenaurach），总部设在德国。它是欧洲最大的运动服装制造商，也是仅次于耐克的世界第二大运动服装制造商。维基百科" }
}
</pre>
<hr />
<h4 id="local-pack"><strong>本地包装</strong></h4>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8225" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Local-Pack.png" alt="Real-Time Crawler for Google Local Pack" width="613" height="434" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Local-Pack.png 613w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Local-Pack-300x212.png 300w" sizes="(max-width: 613px) 100vw, 613px" /></p>
<pre>"local_pack"：[
  {
    "链接"：[
      {
        "href"："https://www.adidas.com/us?utm_source=gmb&amp;utm_medium=organic&amp;utm_campaign=US470198_local"、
        "标题"："网站"
      },
      {
        "href"："#"、
        "标题"："方向"
      }
    ],
    "电话"："",
    "标题"："adidas Originals 旗舰店"、
    "评分"：0,
    "地址"："Open ⋅ Closes 7PM"、
    "副标题"："(212) 966-0954",
    "pos_overall"：3,
    "rating_count"：0
  }
]
</pre>
<hr />
<h4 id="twitter-feed"><strong>推特反馈</strong></h4>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8226" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Twitter-Feed.png" alt="Real-Time Crawler for Google Twitter Feed" width="617" height="433" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Twitter-Feed.png 617w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Twitter-Feed-300x211.png 300w" sizes="(max-width: 617px) 100vw, 617px" /></p>
<pre>"twitter": [
  {
    "pos": 1,
    "url": "https://twitter.com/elonmusk",
    "title": "Elon Musk (@elonmusk) · Twitter",
    "tweets": [
      {
        "url": "https://twitter.com/elonmusk/status/1166081488648949760?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Etweet",
        "content": "Starhopper flight currently tracking to 5pm Texas time for 150m / ~500ft hover test",
        "timeframe": "11 hours ago"
      },
      {
        "url": "https://twitter.com/elonmusk/status/1165377786338406400?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Etweet",
        "content": "Looks like @SpaceX Starhopper flight may be as soon as Monday. FAA support is much appreciated!",
        "timeframe": "2 days ago"
      },
      {
        "url": "https://twitter.com/elonmusk/status/1165371975528640512?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Etweet",
        "content": "If you’re a utility or public utilities commission, please consider using the Tesla Megapack. Better for the environment & usually lower cost than fossil fuel peaker plants! www.tesla.com/megapack",
        "timeframe": "2 days ago"
      }
    ],
    "pos_overall": 1
  }
]
</pre>
<hr />
<h4 id="job-listings"><strong>职位列表</strong></h4>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8227" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Job-Listings.png" alt="Real-Time Crawler for Google Job Listings" width="620" height="432" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Job-Listings.png 620w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Job-Listings-300x209.png 300w" sizes="(max-width: 620px) 100vw, 620px" /></p>
<pre>"工作"：{
  "listings"：[
    {
      "title"："高级软件开发人员"、
      "来源"："via LinkedIn"、
      "雇主"："Jobs @ TheJobNetwork"、
      "地点"："Tulsa, OK"、
      "extra_details"：[
        "1天前"、
        全职
      ]
    },
    {
      "title"："自主车辆仿真软件工程师"、
      "来源"："via Built In Colorado"、
      "雇主"："Azevtec"、
      "地点"："美国"、
      "extra_details"：[
        "17小时前"、
        全职
      ]
    },
    {
      "title"："高级软件工程师 - Oracle 运输管理"、
      "来源"："via LinkedIn"、
      "雇主"："XPO Logistics, Inc："XPO Logistics, Inc、
      "地点"："美国"、
      "extra_details"：[
        "21小时前"、
        全职
      ]
    }
  ],
  "location_header"："美国附近"
}
</pre>
<hr />
<h4 id="carousel"><strong>旋转木马</strong></h4>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8229" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Carousel.png" alt="Real-Time Crawler for Google Carousel" width="617" height="437" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Carousel.png 617w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Carousel-300x212.png 300w" sizes="(max-width: 617px) 100vw, 617px" /></p>
<pre>"item_carousel"：{
  "items"：[
    {
      "title"："Chris Evans"、
      "副标题"："美国队长"
    },
    {
      "title"："Mark Ruffalo"、
      "subtitle"："绿巨人"
    },
    {
      "title"："汤姆-霍兰德
      "副标题"："蜘蛛侠"
    },
    {
      "title"："斯坦-李
      "副标题"："电视报道中的老人，巴士司机"
    },
    {
      "标题"："Chris Pratt"、
      {fnMicrosoftYaHeifs15bord1shad03aHCCb0}"字幕"："星爵"
    }
  ],
  "标题"："复仇者联盟/演员"
}
</pre>
<hr />
<h4 id="images-2"><strong>图片</strong></h4>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8230" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Parsed-data-Images.png" alt="Real-Time Crawler for Google Parsed data Images" width="610" height="435" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Parsed-data-Images.png 610w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Parsed-data-Images-300x214.png 300w" sizes="(max-width: 610px) 100vw, 610px" /></p>
<pre>"images": [
  {
    "alt": "Image result for contemporary wall clock",
    "href": "/search?q=contemporary+wall+clock&safe=off&hl=en&gl=US&tbm=isch&source=iu&ictx=1&fir=Qspcw8WiAmXYzM%253A%252C-m-5575uWYilbM%252C_&vet=1&usg=AI4_-kTGLIU9LAzoCJxO8gp7kK322MV8Yg&sa=X&ved=2ahUKEwjFy8rSy7HkAhWkDrkGHck7A24Q9QEwAXoECAkQBg#imgrc=Qspcw8WiAmXYzM:",
    "source": "https://www.allmodern.com/decor-pillows/sb0/wall-clocks-c429917.html"
  },
  {
    "alt": "Image result for contemporary wall clock",
    "href": "/search?q=contemporary+wall+clock&safe=off&hl=en&gl=US&tbm=isch&source=iu&ictx=1&fir=G0pFK8TQ91ls6M%253A%252Cr5nLxZQfxnA3MM%252C_&vet=1&usg=AI4_-kStPZh1tpSdQ5vTAZUIXwW4zThzQg&sa=X&ved=2ahUKEwjFy8rSy7HkAhWkDrkGHck7A24Q9QEwAnoECAkQCQ#imgrc=G0pFK8TQ91ls6M:",
    "source": "https://www.wayfair.com/decor-pillows/cat/modern-wall-clocks-c1869680.html"
  },
  ...
  {
    "alt": "Image result for contemporary wall clock",
    "href": "/search?q=contemporary+wall+clock&safe=off&hl=en&gl=US&tbm=isch&source=iu&ictx=1&fir=o4ZXIngZyr9HAM%253A%252C-m-5575uWYilbM%252C_&vet=1&usg=AI4_-kTIJMWyTs07HFcVKHTfTd6otLL82w&sa=X&ved=2ahUKEwjFy8rSy7HkAhWkDrkGHck7A24Q9QEwCnoECAkQIQ#imgrc=o4ZXIngZyr9HAM:",
    "source": "https://www.allmodern.com/decor-pillows/sb0/wall-clocks-c429917.html"
  }
]
</pre>
<hr />
<h4 id="related-questions"><strong>相关问题</strong></h4>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8231" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Related-Questions.png" alt="Real-Time Crawler for Google Related Questions" width="625" height="433" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Related-Questions.png 625w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Related-Questions-300x208.png 300w" sizes="(max-width: 625px) 100vw, 625px" /></p>
<pre>"相关问题"：[
  {
    "pos"：1,
    "问题"："阿迪达斯代表什么？"
  },
  {
    "pos": 2、
    {fn华文楷体fs121cH0080FFi1}"问题""阿迪达斯是德国的吗？"
  },
  {
    "pos"：3,
    "question"："乔丹鞋是阿迪达斯的吗？"
  },
  {
    "pos"：4,
    "question"："阿迪达斯旗下有哪些鞋类品牌？"
  }
]
</pre>
<hr />
<h3 id="shopping-search-2">购物搜索</h3>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8232" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Search2.png" alt="Real-Time Crawler for Google Shopping Search2" width="612" height="398" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Search2.png 612w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Search2-300x195.png 300w" sizes="(max-width: 612px) 100vw, 612px" /></p>
<pre>...
"有机"：[
            {
              "pos"：1,
              "url"："/aclk?sa=l&amp;ai=DChcSEwju8fmd84jpAhUPTxgKHQshDIcYABAHGgJsZQ&amp;sig=AOD64_1BTHVcnNzI5775j9xNkILrCU2KYA&amp;ctype=5&amp;q=&amp;ved=0ahUKEwjpr_Sd84jpAhVI2aYKHYn1CeMQvxMI4wQ&amp;adurl="、
              "类型"："网格"、
              价格85,
              "标题"："阿迪达斯白色 Swift Run 女士休闲鞋......"、
              "商家"：{
                "url"："/aclk?sa=l&amp;ai=DChcSEwju8fmd84jpAhUPTxgKHQshDIcYABAHGgJsZQ&amp;sig=AOD64_1BTHVcnNzI5775j9xNkILrCU2KYA&amp;ctype=5&amp;q=&amp;ved=0ahUKEwjpr_Sd84jpAhVI2aYKHYn1CeMQg-UECOoE&amp;adurl="、
                "名称"："终点线"
              },
              "price_str"："$85.00."、
              "pos_overall"：1
            },
            {
              "pos": 2、
              "url"："/shopping/product/4092922174439754197?uule=w+CAIQICIXQ29sb3JhZG8sIFVuaXRlZCBTdGF0ZXM&amp;q=adidas&amp;prds=epd:6096059639745774212,paur:ClkAsKraX5cxKGk1E_r15f66xbFqydL47KoF9cO04jau1Hw_EeaJnz0EV5mb_JEjRlE5_m7N_B5Vg-krR5766rvdESfkczSSBqkGVDV7A5Ts8BlTUCNfpUxgtxIZAFPVH73vXbe47J5qGlzkfYH83D9zVPSv8w,prmr：1&amp;sa=X&amp;ved=0ahUKEwjpr_Sd84jpAhVI2aYKHYn1CeMQvxMI7AQ"、
              "类型"："网格"、
              "价格"：139.97,
              "标题"："阿迪达斯男式 Alphaboost 白色训练鞋......"、
              "商家"：{
                "url"："/aclk?sa=l&amp;ai=DChcSEwju8fmd84jpAhUPTxgKHQshDIcYABAEGgJsZQ&amp;sig=AOD64_3S0xuLlA1GOzNxCvYQdpeTLZkRyQ&amp;ctype=5&amp;q=&amp;ved=0ahUKEwjpr_Sd84jpAhVI2aYKHYn1CeMQg-UECPQE&amp;adurl="、
                "名称"："Baseball Savings.com
              },
              "price_str"："$139.97."、
              "pos_overall"：2
            },
...
</pre>
<hr />
<h3 id="shopping-product-2">购物产品</h3>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8233" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Product2.png" alt="Real-Time Crawler for Google Shopping Product2" width="611" height="429" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Product2.png 611w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Product2-300x211.png 300w" sizes="(max-width: 611px) 100vw, 611px" /></p>
<pre>...
{
  "类型"："捆绑"、
  "项目"：[
    {
      "值"："仅控制台"、
      "selected": true、
      "available": true、
      "product_id"："5007040952399054528"
    },
    {
      "值"："Splatoon 2 捆绑包"、
      "available": false、
      "product_id"："6767220879106424425"
    },
    {
      "值"： false"超级马里奥奥德赛版"、
      "available": false、
      "product_id"："11634753303078094444"
    }
  ]
}
...
</pre>
<hr />
<h3 id="shopping-product-pricing-2">购物产品定价</h3>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8234" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Product-Pricing2.png" alt="Real-Time Crawler for Google Shopping Product Pricing2" width="614" height="432" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Product-Pricing2.png 614w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Google-Shopping-Product-Pricing2-300x211.png 300w" sizes="(max-width: 614px) 100vw, 614px" /></p>
<pre>"内容"：{
  "url"："https://www.google.com/shopping/product/5007040952399054528/online",
  "标题"："Nintendo Switch with Joy-Con - 32 GB - 灰色/黑色"、
  "评分"：4.5,
  "定价"：[
    {
      价格319.99,
      "卖方"："Electronic Express"、
      "详情"："免运费"、
      "货币"："$"、
      "price_tax"：0,
      "price_total": 319.99、
      "seller_link"："/aclk?sa=l&amp;ai=DChcSEwi9t9HqoJ7mAhVCXw0KHdyPBEYYABABGgJxYg&amp;sig=AOD64_2gaL_J1BQ5J5PR-JazDM86N23Nww&amp;adurl=&amp;ctype=5&amp;q="、
      "price_shipping"：0
    },
    {
      "价格"：334.99,
      "卖家"："ShopZodys"、
      "详情"："12 月 9 - 13 日到达"、
      "货币"："$"、
      "价格税"：27.69,
      "price_total": 412.67、
      "seller_link"："/aclk?sa=l&amp;ai=DChcSEwi9t9HqoJ7mAhVCXw0KHdyPBEYYABADGgJxYg&amp;sig=AOD64_1Rqy4wxKvZXAaoX9FNDBy379EAAA&amp;adurl=&amp;ctype=5&amp;q="、
      "price_shipping"：49.99
    }
</pre>
<hr />
<h2 id="parameter-values">参数值</h2>
<h3 id="user-agent">用户代理</h3>
<p>下载完整列表 <code>用户代理类型</code> JSON 中的值 <a class="custom_link" href="https://docs.oxylabs.io/resources/user_agent_type.json" target="_blank" rel="noopener">这里</a>.</p>
<pre>[
  {
    "user_agent_type"："桌面"、
    "描述"："随机桌面浏览器用户代理"
  },
  {
    "user_agent_type"："desktop_firefox"、
    "描述"："最新版桌面火狐浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_chrome"、
    "description"："最新版桌面 Chrome 浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_opera"、
    "description"："最新版本桌面 Opera 的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_edge"、
    "description"："桌面边缘最新版本之一的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_safari"、
    "description"："桌面 Safari 最新版本之一的随机用户代理"。
  },
  {
    "user_agent_type"："mobile"、
    "description"："随机移动浏览器用户代理"
  },
  {
    "user_agent_type"："mobile_android"、
    "description"（描述）："最新版本安卓浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："mobile_ios"、
    "描述"："最新版本 iPhone 浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："平板电脑"、
    "描述"："随机平板电脑浏览器用户代理"
  },
  {
    "user_agent_type"："tablet_android"、
    "描述"："最新版本安卓平板电脑的随机用户代理"。
  },
  {
    "user_agent_type"："tablet_ios"、
    "description"："最新版本 iPad 平板电脑的随机用户代理"。
  }
]
</pre>
<hr />
<h3 id="locale">地点</h3>
<p>下载完整列表 <code>地点</code> JSON 中的值 <a class="custom_link" href="https://docs.oxylabs.io/resources/locale.json" target="_blank" rel="noopener">这里</a>.</p>
<pre>[
   {
      "locale":{
         "en-ai":{
            "description": "Anguilla - English"、
            "domain": "com.ai"。
         },
         "es-pr":{
            "description": "Puerto Rico - Spanish"、
            "域": "com.pr"
         },
         ...
         "en-by":{
            "description": "Belarus - English"、
            "domain": "by" }.
         },
         "en-in":{
            "description": "India - English"、
            domain": "co.in" }, "en-in":{ "description": "India - English", "domain": "co.in"
         }
      }
   }
]
</pre>
<hr />
<h3 id="results-language">结果 语言</h3>
<p>下载完整列表 <code>results_language</code> JSON 中的值 <a class="custom_link" href="https://docs.oxylabs.io/resources/results_language.json" target="_blank" rel="noopener">这里</a>.</p>
<pre>[
 {
   "results_language"："af"、
   "语言"："南非荷兰语"
 },
 {
   "results_language"："ar"、
   "语言"："阿拉伯语"
 },
 ...
 {
   "results_language"："vi"、
   "语言"："越南语"
 }
]
</pre>
<hr />
<h3 id="geo_location">地理位置</h3>
<p>有几种方法可以使用 <code>地理位置</code> 参数，以获得正确本地化的 Google 结果。</p>
<ul>
<li><strong>使用 Google 的规范位置名称</strong>.这非常简单。只需将 CSV 下载中的一个值传递给我们即可 <a class="custom_link" href="https://developers.google.com/adwords/api/docs/appendix/geotargeting" target="_blank" rel="nofollow noopener">这里</a>.例如 <code>"geo_location"："纽约州纽约市美国"</code>.</li>
<li><strong>使用州名</strong>.剔除 Google 标准位置名称的前半部分，并传递一个 <code>地理位置</code> 在 <code>"州、国家"</code> 格式。适用于美国、澳大利亚、印度和其他联邦制国家。举例说明 <code>"地理位置"："美国加利福尼亚州"</code>.</li>
<li><strong>使用国家名称</strong>.若要获取某个国家地理中心点的本地化结果，请输入官方国家名称。例如 <code>"geo_location"：英国</code>.</li>
<li><strong>使用坐标和半径</strong>.要获得超本地搜索结果（尤其适用于 "我附近的餐馆 "等搜索），可以传递纬度、经度和半径值。下面的示例传递的是华盛顿州西雅图 Space Needle 的坐标： <code>"geo_location"："lat: 47.6205, lng：-122.3493, rad: 25000"</code>.</li>
</ul>
<p>如果通过拼写错误的 <code>地理位置</code> 参数，我们或 Google 有可能会为您解释并更正。不过，我们建议使用上述参数结构，并结合 <code>地点</code> 和 <code>领域</code> 参数，以获得最准确的结果。</p>
<hr />
<h2 id="account-status">账户状态</h2>
<h3 id="usage-statistics">使用统计</h3>
<p>您可以通过查询以下端点找到您的使用统计数据：</p>
<pre>GET https://data.oxylabs.io/v1/stats
</pre>
<p>默认情况下，API 将返回所有时间的使用统计数据。添加 <code>group_by=month</code> 将返回月度统计数据，而 <code>group_by=day</code> 将返回每日数字。</p>
<p>该查询将返回所有时间的统计数据。您可以通过添加 <code>group_by=day</code> 或 <code>group_by=month</code></p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/stats'
</pre>
<p>输出示例</p>
<pre>{
    "数据"：{
        "sources"：[
            {
                "realtime_results_count"："90",
                "results_count"："10",
                "标题"："谷歌酒店"
            },
            {
                "realtime_results_count"："19",
                "results_count"："87",
                "标题"："谷歌搜索"
            }
        ]
    },
    "元"：{
        "group_by": null
    }
}
</pre>
<hr />
<h3 id="limits">限制</h3>
<p>以下终端将提供您的每月承诺信息以及已使用的金额：</p>
<pre>GET https://data.oxylabs.io/v1/stats/limits
</pre>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/stats/limits'
</pre>
<p>输出示例</p>
<pre>{
    "monthly_requests_commitment"：4500000,
    "used_requests"：985000
}
</pre>
<hr />
<h2 id="response-codes">响应代码</h2>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>代码</th>
<th>现状</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>204</code></td>
<td>无内容</td>
<td>您正在尝试检索一项尚未完成的任务。</td>
</tr>
<tr>
<td><code>400</code></td>
<td>多种错误信息</td>
<td>请求结构错误，可能是参数拼写错误或值无效。响应体将显示更具体的错误信息。</td>
</tr>
<tr>
<td><code>401</code></td>
<td>未提供授权标头"/"授权标头无效"/"未找到客户端</td>
<td>缺少授权标头或登录凭证不正确。</td>
</tr>
<tr>
<td><code>403</code></td>
<td>禁止</td>
<td>您的帐户无法访问此资源。</td>
</tr>
<tr>
<td><code>404</code></td>
<td>未找到</td>
<td>您要查找的职位编号已不再可用。</td>
</tr>
<tr>
<td><code>429</code></td>
<td>请求太多</td>
<td>超出费率限制。请联系您的客户经理以提高限额。</td>
</tr>
<tr>
<td><code>500</code></td>
<td>未知错误</td>
<td>无法提供服务。</td>
</tr>
<tr>
<td><code>524</code></td>
<td>超时</td>
<td>无法提供服务。</td>
</tr>
<tr>
<td><code>612</code></td>
<td>未定义的内部错误</td>
<td>出了点问题，我们未能完成您提交的任务。您可以免费再试一次，因为我们不会向您收取任何费用。 <code>有问题</code> 工作如果还不行，请联系我们。</td>
</tr>
<tr>
<td><code>613</code></td>
<td>重试次数过多后出现故障</td>
<td>我们曾尝试清除您提交的作业，但在达到重试限制后放弃了。您可以免费再试一次，因为我们不会向您收取任何费用。 <code>有问题</code> 工作如果还不行，请联系我们。</td>
</tr>
</tbody>
</table>
</div>
<p>解析后的数据响应代码：</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>代码</th>
<th>现状</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>12000</code></td>
<td>成功</td>
<td>返回的解析内容是完整的，不应有缺失或损坏的字段。</td>
</tr>
<tr>
<td><code>12002</code></td>
<td>失败</td>
<td>我们无法完全解析该页面。可能是目标网站更改了 HTML 结构。</td>
</tr>
<tr>
<td><code>12003</code></td>
<td>不支持</td>
<td>不支持您要求我们解析的网页。</td>
</tr>
<tr>
<td><code>12004</code></td>
<td>部分成功</td>
<td>我们能够解析页面的大部分内容，但有几个字段缺失。</td>
</tr>
<tr>
<td><code>12005</code></td>
<td>部分成功</td>
<td>我们能够解析页面的大部分内容，但可能有一些字段带有默认值，因为我们无法在 HTML 中找到它们。</td>
</tr>
<tr>
<td><code>12006</code></td>
<td>失败</td>
<td>意外错误。请告诉我们您收到了这样的回复，我们会检查出错的原因。</td>
</tr>
<tr>
<td><code>12007</code></td>
<td>未知</td>
<td>未知解析数据状态。实际结果可能从完全失败到完全成功不等。</td>
</tr>
<tr>
<td><code>12008</code></td>
<td>失败</td>
<td>解析内容丢失。</td>
</tr>
<tr>
<td><code>12009</code></td>
<td>失败</td>
<td>未找到产品。请检查您提交的 URL。</td>
</tr>
</tbody>
</table>
</div>
<p>云存储上传响应代码：</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>代码</th>
<th>现状</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>10001</code></td>
<td>意外异常</td>
<td>发生了严重的错误。我们可能已经知道，并正在修复。无论如何，请告诉我们。</td>
</tr>
<tr>
<td><code>13000</code></td>
<td>上传成功</td>
<td>一切顺利！</td>
</tr>
<tr>
<td><code>13001</code></td>
<td>上传失败</td>
<td>我们无法上传您的工作结果。</td>
</tr>
<tr>
<td><code>13102</code></td>
<td>没有这样的道路</td>
<td>我们找不到这样名字的水桶。请仔细检查。</td>
</tr>
<tr>
<td><code>13103</code></td>
<td>拒绝访问</td>
<td>Bucket 没有所需的权限。要了解如何授予我们必要的权限，请参阅 <a href="#upload-to-storage">这里</a>.</td>
</tr>
</tbody>
</table>
</div>
<hr />
<h4>参考资料</h4>
<ul>
<li><a href="https://docs.oxylabs.io/rtc/source/google/index.html" target="_blank" rel="nofollow noopener">https://docs.oxylabs.io/rtc/source/google/index.html</a></li>
<li><a href="https://docs.oxylabs.io/rtc/source/google/index.html" target="_blank" rel="nofollow noopener">https://docs.oxylabs.io/rtc/index.html</a></li>
</ul>
<p>&nbsp;</p>
<hr />
<blockquote><p><strong>免责声明</strong> 这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/oxylabs-real-time-crawler/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7623</post-id>	</item>
		<item>
		<title>BlazingSEO Proxies Location Issues: Learn Official Manuals Before You Buy</title>
		<link>https://proxysp.com/zh/blazingseo-proxies-location-issues/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=blazingseo-proxies-location-issues</link>
					<comments>https://proxysp.com/zh/blazingseo-proxies-location-issues/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[BlazingSEO Proxies]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7751</guid>

					<description><![CDATA[想知道 BlazingSEO 代理支持哪些位置吗？本文将为您详细介绍。你们提供哪些地区的代理服务？(国家 - ...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/blazingseo-proxies-location-issues/"> <span class="screen-reader-text">BlazingSEO 代理的位置问题：购买前了解官方手册</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>想知道 BlazingSEO 代理支持哪些位置吗？本文将为您详细介绍。</p></blockquote>
<h2 class="heading">你们在哪些地点提供代理服务？(国家 - 城市）</h2>
<p dir="ltr" data-renderer-start-pos="3831">截至 2021 年 5 月，下列国家和城市可通过我们的 Blazing SEO 代理服务器访问。  我们将继续扩大我们的服务范围。  如果您的具体要求未列在此列表中，您可以 <a href="sales@blazingseo.com" target="_blank" rel="nofollow noopener">电子邮件</a> 我们的地址，并与我们的销售团队成员交谈。</p>
<ul>
<li dir="ltr" data-renderer-start-pos="3831">美国（17 个）：  洛杉矶、芝加哥、旧金山、达拉斯、纽约市、塞考克斯、丹佛、亚特兰大、圣何塞、奥马哈、得梅因、塞勒姆、西雅图、水牛城、安克雷奇、迈阿密、凤凰城。</li>
<li dir="ltr" data-renderer-start-pos="4023">阿根廷, 布宜诺斯艾利斯</li>
<li dir="ltr" data-renderer-start-pos="4050">澳大利亚（2）：  悉尼、墨尔本</li>
<li dir="ltr" data-renderer-start-pos="4087">比利时，布鲁塞尔</li>
<li dir="ltr" data-renderer-start-pos="4108">巴西，圣保罗</li>
<li dir="ltr" data-renderer-start-pos="4129">加拿大，多伦多</li>
<li dir="ltr" data-renderer-start-pos="4148">哥伦比亚，波哥大</li>
<li dir="ltr" data-renderer-start-pos="4168">埃及，开罗</li>
<li dir="ltr" data-renderer-start-pos="4184">法国（3）：巴黎、马赛、里昂</li>
<li dir="ltr" data-renderer-start-pos="4222">德国（2）：  法兰克福、柏林</li>
<li dir="ltr" data-renderer-start-pos="4257">印度, 孟买</li>
<li dir="ltr" data-renderer-start-pos="4274">印度尼西亚, 雅加达</li>
<li dir="ltr" data-renderer-start-pos="4296">意大利，罗马</li>
<li dir="ltr" data-renderer-start-pos="4311">日本，东京</li>
<li dir="ltr" data-renderer-start-pos="4327">墨西哥, 墨西哥城</li>
<li dir="ltr" data-renderer-start-pos="4350">荷兰，阿姆斯特丹</li>
<li dir="ltr" data-renderer-start-pos="4376">巴基斯坦, 伊斯兰堡</li>
<li dir="ltr" data-renderer-start-pos="4399">菲律宾, 马尼拉</li>
<li dir="ltr" data-renderer-start-pos="4422">波兰，华沙</li>
<li dir="ltr" data-renderer-start-pos="4440">沙特阿拉伯，利雅得</li>
<li dir="ltr" data-renderer-start-pos="4464">塞舌尔, 维多利亚</li>
<li dir="ltr" data-renderer-start-pos="4488">南非，开普敦</li>
<li dir="ltr" data-renderer-start-pos="4515">韩国，首尔</li>
<li dir="ltr" data-renderer-start-pos="4537">西班牙，马德里</li>
<li dir="ltr" data-renderer-start-pos="4554">台湾，台北</li>
<li dir="ltr" data-renderer-start-pos="4572">泰国, 曼谷</li>
<li dir="ltr" data-renderer-start-pos="4592">英国，伦敦</li>
<li dir="ltr" data-renderer-start-pos="4618">越南, 河内</li>
</ul>
<hr />
<div class="icon">
<div class="icon">
<h2 class="heading">为什么我的代理没有显示正确的位置信息？</h2>
<p>这可能有点令人困惑，因此必须明确代理位置的含义。  我们使用的位置有两种：</p>
<ul>
<li><strong>地理位置：</strong> 这是代理地址的 "虚拟 "位置。IP 地址可以在与服务器实际位置不同的地点公开声明。当一个 IP 被地理定位后，这一变化可能需要几周的时间才能在所有公共数据库中传播（下文将对此进行详细介绍）。对于代理服务器来说，地理位置比物理位置更重要。</li>
<li><strong>物理位置：</strong> 这是代理所在服务器的 "实际 "位置，通常位于数据中心。它可能与地理位置相同，也可能不总是相同，但在两者中，地理位置对如何查看代理服务器的重要性较低。</li>
</ul>
<p>那么，为什么有时您在查找代理位置时，会发现代理显示的位置与您预期的不同呢？这可能是因为 <a href="https://www.proxysp.com/how-to-find-someones-ip-address/" target="_blank" rel="noopener">追踪 IP 位置</a> 只是还没有更新位置。这个过程可能需要 1 到 3 周，有时快有时慢。是的，我们也希望在这方面有更多的控制权和洞察力！</p>
<p>网站，如 <a href="http://whoer.net/" target="_blank" rel="nofollow noopener">锄地工人</a>, <a href="http://maxmind.com/" target="_blank" rel="nofollow noopener">MaxMind</a>, <a href="https://freegeoip.net/" target="_blank" rel="nofollow noopener">FreeGeoIP</a>和 <a href="http://iplocation.net/" target="_blank" rel="nofollow noopener">IPLocation</a> 使用提供 IP 地理位置的第三方数据库。但是，这些第三方和这些数据库必须从顶级 IP 所有者那里获得其位置。对于美国的 IP 来说，这就是 ARIN。</p>
<h3><strong>什么是 ARIN？</strong></h3>
<p>根据 <a href="https://en.wikipedia.org/wiki/American_Registry_for_Internet_Numbers" target="_blank" rel="nofollow noopener">维基百科</a>ARIN管理互联网号码资源的分配，包括 <a href="https://en.wikipedia.org/wiki/IPv4" target="_blank" rel="nofollow noopener">IPv4</a> 和 <a href="https://en.wikipedia.org/wiki/IPv6" target="_blank" rel="nofollow noopener">IPv6</a> 地址空间"。这基本上意味着他们负责管理和组织美国和加拿大的大部分/所有 IPv4 地址注册，因此他们是大家认为最准确的 IP 代表（包括位置！）。</p>
<p>ARIN 是五个 <a href="https://en.wikipedia.org/wiki/Regional_Internet_registry" target="_blank" rel="nofollow noopener">地区互联网注册机构</a> 它们分别管理不同地区的 IP 地址分配和注册。虽然我们在 Blazing 的大多数代理服务器都与 ARIN 相关，但我们也与其他注册机构合作。以下是所有注册机构的列表：</p>
<ul>
<li><a href="https://en.wikipedia.org/wiki/AFRINIC" target="_blank" rel="nofollow noopener">非洲网络信息中心</a> (<strong>AFRINIC</strong>) 为非洲服务</li>
<li><a href="https://en.wikipedia.org/wiki/American_Registry_for_Internet_Numbers" target="_blank" rel="nofollow noopener">美国互联网号码注册处</a> (<strong>ARIN</strong>) 为南极洲、加拿大、加勒比海部分地区和美国提供服务</li>
<li><a href="https://en.wikipedia.org/wiki/Asia-Pacific_Network_Information_Centre" target="_blank" rel="nofollow noopener">亚太网络信息中心</a> (<strong>APNIC</strong>) 为东亚、大洋洲、南亚和东南亚提供服务</li>
<li><a href="https://en.wikipedia.org/wiki/RIPE_NCC" target="_blank" rel="nofollow noopener">Réseaux IP Européens 网络协调中心</a> (<strong>RIPE NCC</strong>) 为欧洲、中亚、俄罗斯和西亚提供服务</li>
<li><a href="https://en.wikipedia.org/wiki/Latin_America_and_Caribbean_Network_Information_Centre" target="_blank" rel="nofollow noopener">拉丁美洲和加勒比网络信息中心</a> (<strong>LACNIC</strong>) 为加勒比海大部分地区和整个拉丁美洲提供服务</li>
</ul>
<hr />
<h2 class="heading">如何更改我的代理位置？</h2>
<p>如果您需要更改代理服务器的位置，可以按照本指南在仪表板中进行更改：</p>
<p><strong>免责声明</strong>:这 <strong>将使用</strong> 每个代理每月更换一次代理。</p>
<p>1.登录您的 <a href="http://blazingseollc.com/proxy/dashboard/" target="_blank" rel="nofollow noopener"><strong>仪表板</strong></a></p>
<p>2.在 <strong>左侧</strong> 点击 <strong>地点首选项</strong></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8069" src="https://www.proxysp.com/wp-content/uploads/2021/09/change-the-location-of-blazingseo-proxies1.jpg" alt="change the location of blazingseo proxies1" width="208" height="219" /></p>
<p>3.选择您想要的位置</p>
<p>4.然后点击 <strong>代理替换</strong> 选项卡</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8070" src="https://www.proxysp.com/wp-content/uploads/2021/09/change-the-location-of-blazingseo-proxies2.jpg" alt="change the location of blazingseo proxies2" width="219" height="68" /></p>
<p>5.或者 <strong>人工</strong> 单击要替换的每个新代理旁边的 "替换"（同时给出它的新位置） <strong>或</strong> 您只需单击代理仪表板上的 "导出 "按钮，然后将整个列表复制并粘贴到</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-8071" src="https://www.proxysp.com/wp-content/uploads/2021/09/change-the-location-of-blazingseo-proxies3.jpg" alt="change the location of blazingseo proxies3" width="619" height="256" srcset="https://proxysp.com/wp-content/uploads/2021/09/change-the-location-of-blazingseo-proxies3.jpg 667w, https://proxysp.com/wp-content/uploads/2021/09/change-the-location-of-blazingseo-proxies3-300x124.jpg 300w" sizes="(max-width: 619px) 100vw, 619px" /></p>
</div>
</div>
<div class="image-container">
<hr />
<h2 class="heading">为什么我的代理位置与仪表板显示的不一致？</h2>
</div>
<p><span dir="ltr">如果您将您从我们这里获得的任何 IP 地址放在本页右上方 </span><a href="http://whois.arin.net/ui/" target="_blank" rel="nofollow noopener">页码</a><span dir="ltr"> 您会发现您的 IP 地址实际上位于正确的位置。由于 ARIN 拥有 IP 地址的所有权，因此他们会对该位置进行管理，而 MaxMind 等第三方则必须遵守这一管理规定，但不幸的是，情况并非如此。</span></p>
<div class="icon">
<div class="icon">
<hr />
</div>
</div>
<div>
<h4 id="references" class="ftwp-heading">参考资料</h4>
<ul>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000263650-what-locations-do-you-offer-for-proxies-country-city" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000263650-what-locations-do-you-offer-for-proxies-country-city</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256606-why-is-my-proxy-not-showing-the-proper-location-information" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256606-why-is-my-proxy-not-showing-the-proper-location-information</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000256612-how-do-i-change-the-location-of-my-proxies" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000256612-how-do-i-change-the-location-of-my-proxies</a></li>
<li><a href="https://portal.blazingseollc.com/en/support/solutions/articles/64000262803-why-does-the-location-of-my-proxy-not-match-what-the-dashboard-shows-" target="_blank" rel="nofollow noopener">https://portal.blazingseollc.com/en/support/solutions/articles/64000262803-why-does-the-location-of-my-proxy-not-match-what-the-dashboard-shows-</a></li>
</ul>
<hr />
</div>
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/blazingseo-proxies-location-issues/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7751</post-id>	</item>
		<item>
		<title>How to Use OxyLabs Real-Time Crawler [Part 2]: Real-Time Crawler for Yandex</title>
		<link>https://proxysp.com/zh/oxylabs-yandex-real-time-crawler/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oxylabs-yandex-real-time-crawler</link>
					<comments>https://proxysp.com/zh/oxylabs-yandex-real-time-crawler/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[How to Use OxyLabs Proxy (OxyLabs User Manual Navigation)]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7633</guid>

					<description><![CDATA[你知道如何使用 OxyLabs Real-time Crawler for Yandex 吗？这是 OxyLabs 官方最全面的介绍。快速入门 实时抓取程序是由 OxyLabs 官方开发的...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/oxylabs-yandex-real-time-crawler/"> <span class="screen-reader-text">如何使用 OxyLabs 实时爬虫 [第 2 部分]：用于 Yandex 的实时爬虫</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>你知道如何使用 OxyLabs Real-time Crawler for Yandex 吗？这是 OxyLabs 官方最全面的介绍。</p></blockquote>
<h2 id="quick-start">快速入门</h2>
<p>Real-Time Crawler 专为重型数据检索操作而设计。你可以使用 Real-Time Crawler 访问各种 Yandex 网页。它能毫不费力地从搜索引擎中提取网络数据，不会出现任何延迟或错误。</p>
<p>用于 Yandex 的实时抓取器 <a class="custom_link" href="https://en.wikipedia.org/wiki/Basic_access_authentication" target="_blank" rel="nofollow noopener">基本 HTTP 身份验证</a> 需要发送用户名和密码。</p>
<p>这是迄今为止开始使用 Yandex 实时爬虫的最快方法。您将发送一个查询 <code>阿迪达斯</code> 至 <code>搜索</code> 使用 <a href="#realtime">实时</a> 整合方法。不要忘记替换 <code>用户名</code> 和 <code>密码</code> 使用代理用户凭据。</p>
<pre>curl --user "USERNAME:PASSWORD" 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json" -d '{"source"："yandex_search", "domain"："com"，"query"："adidas"}'
</pre>
<p>如果您有任何本文件未涉及的问题，请联系您的客户经理或我们的支持人员，地址是 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a>.</p>
<hr />
<h2 id="integration-methods">整合方法</h2>
<p>Real-Time Crawler for Yandex 支持三种集成方法，它们都有各自独特的优势：</p>
<ul>
<li><a href="#push-pull">推拉式</a>.使用这种方法，现在需要与我们的端点保持活动连接，以检索数据。在发出请求后，我们的系统会在任务完成后自动 ping 用户服务器（请参阅 <a href="#callback">回调</a>).这种方法可以节省计算资源，而且易于扩展。</li>
<li><a href="#realtime">实时</a>.该方法要求用户与我们的端点保持活动连接，以便在任务完成时成功获取结果。这种方法可以在一个服务中实现，而推拉法则需要两个步骤。</li>
<li><a href="#superapi">超级用户接口</a>.这种方法与实时方法非常相似，但用户可以使用 HTML Cralwer 作为代理，而不是向我们的端点发布数据。要检索数据，用户必须设置一个代理端点，并向所需的 URL 发送 GET 请求。必须使用标头添加其他参数。</li>
</ul>
<p>我们推荐的数据提取方法是 <a href="#push-pull">推拉式</a>.</p>
<hr />
<h3 id="push-pull">推拉式</h3>
<p>这是最简单、最可靠、最值得推荐的数据传输方法。在推拉式方案中，您向我们发送查询，我们向您返回工作 <code>本我</code>工作完成后，您可以使用 <code>本我</code> 中检索内容 <code>/结果</code> 端点。你可以自己检查作业完成状态，也可以设置一个能接受 POST 查询的简单监听器。</p>
<p>这样，一旦作业准备就绪，我们就会向您发送回调消息。在本例中，结果将自动 <a href="#upload-to-storage">上传到您的 S3 存储桶</a> 名为 <code>您的邮筒名称</code>.</p>
<hr />
<h4 id="single-query"><strong>单一查询</strong></h4>
<p>以下端点将处理对一个关键字或 URL 的单次查询。API 将返回一条确认信息，其中包含任务信息，包括任务 <code>本我</code>.您可以使用它来检查任务完成状态 <code>本我</code>或者，您也可以要求我们在扫描任务完成后 ping 您的回调端点，方法是添加 <code>回调URL</code> 在查询中。</p>
<pre>邮寄 https://data.oxylabs.io/v1/queries
</pre>
<p>您需要在 JSON 主体中将查询参数作为数据发布。</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："yandex_search", "domain"："com"，"query"："adidas", "callback_url"："https://your.callback.url"，"storage_type"："s3"，"storage_url"："your_bucket_name"}'
</pre>
<p>API 将以 JSON 格式响应查询信息，并将其打印在响应体中，与此类似：</p>
<pre>{
  "callback_url"："https://your.callback.url"、
  "client_id"：5,
  "created_at"："2019-10-01 00:00:01",
  "域"："com"、
  "geo_location": null、
  "id"："12345678900987654321",
  "限制"：10,
  "locale": null、
  "pages"：1,
  "parse": false、
  "render": null、
  "查询"："adidas"、
  "来源"："yandex_search"、
  "start_page"：1,
  "状态"："pending"、
  "storage_type"："s3",
  "storage_url"："YOUR_BUCKET_NAME/12345678900987654321.json",
  "subdomain"："www"、
  "updated_at"："2019-10-01 00:00:01",
  "user_agent_type"："desktop"、
  "_链接"：[
    {
      "rel"："self"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321",
      "method"："GET"
    },
    {
      "rel"："results"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321/results",
      "method"："GET"
    }
  ]
}
</pre>
<hr />
<h4 id="check-job-status"><strong>检查工作状态</strong></h4>
<p>如果您的查询有 <code>回调URL</code>一旦完成刮擦任务，我们将向您发送一条包含内容链接的信息。但是，如果没有 <code>回调URL</code> 在查询中，您需要自己检查任务状态。为此，您需要使用 <code>href</code> 根据 <code>rel</code>:<code>自我</code> 在您向我们的 API 提交查询后收到的响应信息中。它应该与下面的内容相似： <code>http://data.oxylabs.io/v1/queries/12345678900987654321</code>.</p>
<pre>GET https://data.oxylabs.io/v1/queries/{id}
</pre>
<p>查询该链接将返回工作信息，包括其 <code>地位</code>.有 3 种可能 <code>地位</code> 价值观</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><code>未决</code></td>
<td>任务仍在队列中，尚未完成。</td>
</tr>
<tr>
<td><code>完成的</code></td>
<td>任务完成后，您可以通过在 <code>href</code> 根据 <code>rel</code>:<code>成果</code> : <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code></td>
</tr>
<tr>
<td><code>有问题</code></td>
<td>任务出了问题，我们无法完成，很可能是目标网站方面的服务器出错。</td>
</tr>
</tbody>
</table>
</div>
<pre>curl --user user:pass1 'http://data.oxylabs.io/v1/queries/12345678900987654321'
</pre>
<p>API 将在响应正文中打印 JSON 格式的查询信息。请注意，任务 <code>地位</code> 改为 <code>完成的</code>.现在您可以通过查询 <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code>.</p>
<p>您还可以看到任务已被 <code>updated_at</code> <code>2019-10-01 00:00:15</code> - 查询需要 14 秒才能完成。</p>
<pre>{
  "client_id"：5,
  "created_at"："2019-10-01 00:00:01",
  "域"："com"、
  "geo_location": null、
  "id"："12345678900987654321",
  "限制"：10,
  "locale": null、
  "pages"：1,
  "parse": false、
  "render": null、
  "查询"："adidas"、
  "来源"："yandex_search"、
  "start_page"：1,
  "状态"："done"、
  "子域"："www"、
  "updated_at"："2019-10-01 00:00:15",
  "user_agent_type"："desktop"、
  "_链接"：[
    {
      "rel"："self"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321",
      "method"："GET"
    },
    {
      "rel"："results"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321/results",
      "method"："GET"
    }
  ]
}
</pre>
<hr />
<h4 id="retrieve-job-content"><strong>检索工作内容</strong></h4>
<p>通过检查作业状态或接收我们的回调，一旦知道作业已准备就绪，您就可以使用以下 URL 获取作业 <code>href</code> 根据 <code>rel</code>:<code>成果</code> 在我们的初始响应或回调信息中。看起来应该类似于下面这样： <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code>.</p>
<pre>GET https://data.oxylabs.io/v1/queries/{id}/results
</pre>
<p>通过设置 "任务状态"，可以自动检索结果，而无需定期检查任务状态。 <a href="#callback">回调</a> 服务。用户需要指定运行回调服务的服务器的 IP 或域。当我们的系统完成一项任务时，它将向所提供的 IP 或域发送一条信息，回调服务将下载结果，如 <a href="#callback">回调实现示例</a>.</p>
<pre>curl --user user:pass1 'http://data.oxylabs.io/v1/queries/12345678900987654321/results'
</pre>
<p>API 将返回工作内容：</p>
<pre>{
  "结果"：[
    {
      "content"："&lt;!
        内容
      &quot;,
      &quot;created_at&quot;：&quot;2019-10-01 00:00:01&quot;,
      &quot;更新时间&quot;：&quot;2019-10-01 00:00:15&quot;,
      &quot;页&quot;：1,
      &quot;url&quot;：&quot;https://www.yandex.com/search?q=adidas&amp;hl=en&amp;gl=US&quot;、
      &quot;job_id&quot;：&quot;12345678900987654321&quot;,
      &quot;status_code&quot;：200
    }
  ]
}
</pre>
<hr />
<h4 id="callback"><strong>回调</strong></h4>
<p>回调是一个 <code>职位</code> 我们会向您的机器发送请求，告知数据提取任务已完成，并提供下载刮擦内容的 URL。这意味着您不再需要 <a href="#check-job-status">检查工作状态</a> 手动操作。一旦数据到齐，我们会通知您，您现在需要做的就是 <a href="#retrieve-job-content">取回</a>.</p>
<pre># 请查看 Python 和 PHP 代码示例。
</pre>
<p>回调输出示例</p>
<pre>{
   "created_at":"2019-10-01 00:00:01",
   "updated_at":"2019-10-01 00:00:15",
   "locale":null、
   "client_id":163、
   "user_agent_type": "desktop"、
   "来源": "yandex_search"、
   "页面":1、
   "子域": "www"、
   "status": "done"、
   "start_page":1、
   "parse":0、
   "render":null、
   "priority":0、
   "ttl":0、
   "origin": "api"、
   "persist":true、
   "id":"12345678900987654321",
   "callback_url": "http://your.callback.url/"、
   "query": "adidas"、
   "domain": "com"、
   "limit":10、
   "geo_location":null、
   {...}
   "_links":[
      {
         "href":"https://data.oxylabs.io/v1/queries/12345678900987654321",
         "method": "GET"、
         "rel": "self"
      },
      {
         "href":"https://data.oxylabs.io/v1/queries/12345678900987654321/results",
         "method": "GET"、
         "rel": "results" }
      }
   ],
}
</pre>
<hr />
<h4 id="batch-query"><strong>批量查询</strong></h4>
<p>实时爬虫还支持执行多个关键字，每批最多可执行 1,000 个关键字。以下端点将向提取队列提交多个关键词。</p>
<pre>邮寄 https://data.oxylabs.io/v1/queries/batch
</pre>
<p>您需要在 JSON 主体中将查询参数作为数据发布。</p>
<p>系统会将每个关键词作为一个单独请求处理。如果您提供了回调 URL，您将为每个关键字收到单独的调用。否则，我们的初始响应将包含工作 <code>本我</code>的所有关键字。例如，如果您发送了 50 个关键字，我们将返回 50 个唯一的职位。 <code>本我</code>s.</p>
<p>重要！ <code>询问</code> 是唯一一个可以有多个值的参数。所有其他参数对于该批次查询都是一样的。</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries/batch' -H 'Content-Type: application/json' -d '@keywords.json
 -d'@keywords.json'（关键词
</pre>
<p><code>keywords.json</code> 内容：</p>
<pre>{
   "query":[
      "阿迪达斯"、
      "耐克"、
      "蕾博克"
   ],
   "来源"："yandex_search"、
   "域"："com"、
   "callback_url"："https://your.callback.url"
}
</pre>
<p>API 将以 JSON 格式响应查询信息，并将其打印在响应体中，与此类似：</p>
<pre>{
  "查询"：[
    {
      "callback_url"："https://your.callback.url"、
      {...}
      "created_at"："2019-10-01 00:00:01",
      "域"："com"、
      "id"："12345678900987654321",
      {...}
      "查询"："阿迪达斯"、
      "来源"："yandex_search"、
      {...}
          "rel"："results"、
          "href"："http://data.oxylabs.io/v1/queries/12345678900987654321/results",
          "method"："GET"
        }
      ]
    },
    {
      "callback_url"："https://your.callback.url"、
      {...}
      "created_at"："2019-10-01 00:00:01",
      "域"："com"、
      "id"："12345678901234567890",
      {...}
      "查询"："NIKE"、
      "来源"："yandex_search"、
      {...}
          "rel"："results"、
          "href"："http://data.oxylabs.io/v1/queries/12345678901234567890/results",
          "method"："GET"
        }
      ]
    },
    {
      "callback_url"："https://your.callback.url"、
      {...}
      "created_at"："2019-10-01 00:00:01",
      "域"："com"、
      "id"："01234567899876543210",
      {...}
      "查询"："reebok"、
      "来源"："yandex_search"、
      {...}
          "rel"："results"、
          "href"："http://data.oxylabs.io/v1/queries/01234567899876543210/results",
          "method"："GET"
        }
      ]
    }
  ]
}
</pre>
<hr />
<h4 id="get-notifier-ip-address-list"><strong>获取通知程序 IP 地址列表</strong></h4>
<p>您可能希望将向您发送回调信息的 IP 列入白名单，或为其他目的获取这些 IP 的列表。这可以通过 <code>获取</code>在这个端点上： <code>https://data.oxylabs.io/v1/info/callbacker_ips</code>.</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/info/callbacker_ips'
</pre>
<p>API 将返回向您的系统发出回调请求的 IP 列表：</p>
<pre>{
    "ips"：[
        "x.x.x.x"、
        "y.y.y.y"
    ]
}
</pre>
<hr />
<h4 id="upload-to-storage"><strong>上传到存储器</strong></h4>
<p>默认情况下，RTC 任务结果存储在我们的数据库中。这意味着您需要查询我们的结果端点并自行检索内容。自定义存储功能允许您将结果存储在自己的云存储中。该功能的优势在于，您无需为了获取结果而发出额外请求，所有内容都会直接存储到您的存储桶中。</p>
<p>我们支持亚马逊 S3 和谷歌云存储。如果您想使用其他类型的存储，请联系您的客户经理，讨论功能交付时间表。</p>
<p id="amazon-s3"><strong>亚马逊 S3</strong></p>
<p>要将作业结果上传到 Amazon S3 存储桶，请为我们的服务设置访问权限。为此，请访问 <code>https://s3.console.aws.amazon.com/ &gt; S3 &gt; 存储 &gt; 桶名称（如果没有，请新建） &gt; 权限 &gt; 桶策略</code></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8241" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Yandex-Upload-to-Storage1.png" alt="Real-Time Crawler for Yandex Upload to Storage1" width="486" height="325" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Yandex-Upload-to-Storage1.png 486w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Yandex-Upload-to-Storage1-300x201.png 300w" sizes="(max-width: 486px) 100vw, 486px" /></p>
<p>您可以在此找到水桶政策 <a class="custom_link" href="https://docs.oxylabs.io/resources/s3_bucket_policy.json" target="_blank" rel="noopener">JSON</a> 或右侧的代码示例区。不要忘记在 <code>您的邮筒名称</code>.通过该策略，我们可以向您的邮筒写入内容，允许您访问上传的文件，并了解邮筒的位置。</p>
<p id="google-cloud-storage"><strong>谷歌云存储</strong></p>
<p>要将作业结果上传到您的 Google Cloud Storage 存储桶，请为我们的服务设置特殊权限。为此，请使用 <code>存储.对象.创建</code> 权限并将其分配给 Oxylabs 服务帐户电子邮件 <code>oxyserps-storage@oxyserps-storage.iam.gserviceaccount.com</code>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8242" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Yandex-Upload-to-Storage2.png" alt="Real-Time Crawler for Yandex Upload to Storage2" width="480" height="331" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Yandex-Upload-to-Storage2.png 480w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Yandex-Upload-to-Storage2-300x207.png 300w" sizes="(max-width: 480px) 100vw, 480px" /></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8243" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Yandex-Upload-to-Storage3.png" alt="Real-Time Crawler for Yandex Upload to Storage3" width="481" height="666" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Yandex-Upload-to-Storage3.png 481w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Yandex-Upload-to-Storage3-217x300.png 217w" sizes="(max-width: 481px) 100vw, 481px" /></p>
<p id="usage"><strong>使用方法</strong></p>
<p>要使用此功能，请在请求中指定两个附加参数。了解更多信息 <a href="#direct">这里</a>.</p>
<p>上传路径如下 <code>YOUR_BUCKET_NAME/job_ID.json</code>.您可以在提交请求后从我们收到的回复正文中找到职位 ID。在 <a href="#single-query">本例</a> 工作编号为 <code>12345678900987654321</code>.</p>
<pre>{
    "版本"："2012-10-17",
    "Id"："Policy1577442634787",
    "声明"：[
        {
            "Sid"："Stmt1577442633719"、
            "效果"："允许"、
            "校长"：{
                "AWS"："arn:aws:iam::324311890426:user/oxylabs.s3.uploader"
            },
            "Action"："s3:GetBucketLocation"、
            "资源"："arn:aws:s3:::YOUR_BUCKET_NAME" }.
        },
        {
            "Sid"："Stmt1577442633719"、
            "效果"："允许"、
            "校长"：{
                "AWS"："arn:aws:iam::324311890426:user/oxylabs.s3.uploader"
            },
            "Action"：[
                "s3:PutObject"、
                "s3:PutObjectAcl"。
            ],
            "资源"："arn:aws:s3:::YOUR_BUCKET_NAME/*"。
        }
    ]
}
</pre>
<hr />
<h3 id="realtime">实时</h3>
<p>数据提交方式与推拉方式相同，但在实时情况下，我们将在连接打开时返回内容。您向我们发送查询，连接保持打开，我们检索内容并发送给您。处理的端点如下：</p>
<pre>邮寄 https://realtime.oxylabs.io/v1/queries
</pre>
<p>开放连接的超时限制为 150 秒，因此在极少数负载较重的情况下，我们可能无法确保将数据发送给您。</p>
<p>您需要在 JSON 主体中将查询参数作为数据发布。详情请参阅示例。</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："yandex_search", "domain"："com", "query"："adidas"}'
</pre>
<p>打开连接时将返回的响应体示例：</p>
<pre>{
  "结果"：[
    {
      "content"："
      内容
      "
      "created_at"："2019-10-01 00:00:01",
      "更新时间"："2019-10-01 00:00:15",
      "id": null、
      "page"：1,
      "url"："https://www.yandex.com/search?q=adidas&amp;hl=en&amp;gl=US"、
      "job_id"："12345678900987654321",
      "status_code"：200
    }
  ]
}
</pre>
<hr />
<h3 id="superapi">超级用户接口</h3>
<p>如果您曾经使用过普通代理进行数据搜刮，那么集成 SuperAPI 传输方法将轻而易举。只需将我们的入口节点用作代理，使用实时爬虫凭据进行授权，并忽略证书即可。在 <code>cURL</code> 这是 <code>-k</code> 或 <code>--不安全</code>.您的数据将通过开放连接发送给您。</p>
<pre>GET realtime.oxylabs.io:60000
</pre>
<p>超级用户接口只支持少量参数，因为它 <strong>仅适用于 <a href="#direct">直接</a> 数据源</strong> 其中提供了完整的 URL。这些参数应作为标头发送。这是可接受的参数列表：</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><code>X-OxySERPs-User-Agent-Type</code></td>
<td>虽然无法指明特定的 User-Agent，但您可以让我们知道您使用的浏览器和平台。支持的用户代理列表如下所示 <a href="#user-agent">这里</a>.</td>
</tr>
<tr>
<td><code>X-OxySERPs-地理位置</code></td>
<td>Yandex 中的地理位置 <code>rstr</code> 格式</td>
</tr>
</tbody>
</table>
</div>
<p>如果您在设置超级用户接口时需要帮助，请致电 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a>.</p>
<pre>curl -k -x realtime.oxylabs.io:60000 -U user:pass1 -H "X-OxySERPs-User-Agent-Type: desktop_chrome"
-H "X-OxySERPs-Geo-Location：15550" "https://yandex.com/search/?text=nike"
</pre>
<hr />
<h2 id="content-type">内容类型</h2>
<p>实时爬虫返回 <strong>原始HTML</strong>.</p>
<hr />
<h2 id="data-sources">数据来源</h2>
<p>使用实时爬虫从 Yandex 检索数据有两种方法。您可以通过以下方式向我们提供完整的 URL <a href="#direct">直接</a>或者您可以通过专门构建的数据源--"...... "来指定参数。 <a href="#search">搜索</a>.</p>
<p>从技术上讲，这不是一种内容类型，但实时抓取器能够在抓取时呈现 JavaScript。这在某些 Yandex 页面中可能是必要的。在 <code>渲染 JS</code> 将指示特定数据源是否可以在启用 JavaScript 的情况下进行刮擦。</p>
<p>如果您不确定选择哪种方式，请给我们留言 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a> 或联系您的客户经理。</p>
<hr />
<h3 id="direct">直接</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8248 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Yandex-Direct.png" alt="Real-Time Crawler for Yandex Direct" width="442" height="25" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Yandex-Direct.png 442w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Yandex-Direct-300x17.png 300w" sizes="(max-width: 442px) 100vw, 442px" /></p>
<p><code>yandex</code> 源的目的是检索各种 Yandex 页面的直接 URL 内容。这意味着您可以向我们提供所需的 Yandex 页面的直接 URL，而无需发送多个参数。我们不会删除任何参数或以任何其他方式更改您的 URL。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">yandex</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">网址</td>
<td style="font-weight: 400;" width="72">指向 Yandex 页面的直接 URL（链接</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下 <a href="#user-agent">这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">给予</td>
<td style="font-weight: 400;" width="72">启用 JavaScript 渲染。在目标需要 JavaScript 加载内容时使用。仅适用于推拉（又称回调）方法。该参数有两个可用值：html（获取原始输出）和 png（获取 Base64 编码的截图）。</td>
<td style="font-weight: 400;" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">回调端点的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在<a href="#upload-to-storage"> 上传到存储器 </a>页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p>在本例中，应用程序接口将检索 Yandex 搜索关键字 <code>耐克</code> 推拉法</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："yandex", "url"："https://yandex.com/search/?text=nike&amp;"}'
</pre>
<p>以下是实时模式下的相同示例：</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："yandex", "url"："https://yandex.com/search/?text=nike&amp;"}'
</pre>
<p>并通过超级用户接口（SuperAPI）：</p>
<pre>curl -k -x realtime.oxylabs.io:60000 -U user:pass1 "https://yandex.com/search/?text=nike&amp;"
</pre>
<hr />
<h3 id="search">搜索</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8250 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Yandex-Search.png" alt="Real-Time Crawler for Yandex Search" width="424" height="27" srcset="https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Yandex-Search.png 424w, https://proxysp.com/wp-content/uploads/2021/09/Real-Time-Crawler-for-Yandex-Search-300x19.png 300w" sizes="(max-width: 424px) 100vw, 424px" /></p>
<p><code>搜索</code> 源用于检索 Yandex 搜索结果（SERP）。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">搜索</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">领域</td>
<td style="font-weight: 400;" width="72">域名本地化。可用域名：com、ru、ua、by、kz、tr</td>
<td style="font-weight: 400;" width="72">网</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">询问</td>
<td style="font-weight: 400;" width="72">UTF 编码的关键字</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">start_page</td>
<td style="font-weight: 400;" width="72">起始页码</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">页面</td>
<td style="font-weight: 400;" width="72">要检索的页数</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">限额</td>
<td style="font-weight: 400;" width="72">每页要检索的结果数量</td>
<td style="font-weight: 400;" width="72">10</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地点</td>
<td style="font-weight: 400;" width="72">语言。可用语言：en、ru、by、fr、de、id、kk、tt、tr、uk。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地理位置</td>
<td style="font-weight: 400;" width="72">Yandex rstr 格式的地理位置</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下<a href="#user-agent"> 这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">回调端点的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在 <a href="#upload-to-storage">上传到存储器 </a>页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p id="search">API 向 <code>yandex.com</code> 检索关键字从第 11 到第 20 的搜索结果页面 <code>阿迪达斯</code>.API 将向 <code>your.callback.url</code> 包含 URL，以便在数据检索任务成功完成后下载原始 HTML 输出。这就是推拉式：</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："yandex_search", "domain"："com", "query"："adidas", "start_page"：11, "pages"：10, "callback_url"："https://your.callback.url"}'
</pre>
<p>以下是实时模式下的相同示例：</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："yandex_search", "domain"："com", "query"："adidas", "start_page"：11, "pages"：10, "callback_url"："https://your.callback.url"}'
</pre>
<hr />
<h2 id="parameter-values">参数值</h2>
<h3 id="user-agent">用户代理</h3>
<p>下载完整列表 <code>用户代理类型</code> JSON 中的值 <a class="custom_link" href="https://docs.oxylabs.io/resources/user_agent_type.json" target="_blank" rel="noopener">这里</a>.</p>
<pre>[
  {
    "user_agent_type"："桌面"、
    "描述"："随机桌面浏览器用户代理"
  },
  {
    "user_agent_type"："desktop_firefox"、
    "描述"："最新版桌面火狐浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_chrome"、
    "description"："最新版桌面 Chrome 浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_opera"、
    "description"："最新版本桌面 Opera 的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_edge"、
    "description"："桌面边缘最新版本之一的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_safari"、
    "description"："桌面 Safari 最新版本之一的随机用户代理"。
  },
  {
    "user_agent_type"："mobile"、
    "description"："随机移动浏览器用户代理"
  },
  {
    "user_agent_type"："mobile_android"、
    "description"（描述）："最新版本安卓浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："mobile_ios"、
    "描述"："最新版本 iPhone 浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："平板电脑"、
    "描述"："随机平板电脑浏览器用户代理"
  },
  {
    "user_agent_type"："tablet_android"、
    "描述"："最新版本安卓平板电脑的随机用户代理"。
  },
  {
    "user_agent_type"："tablet_ios"、
    "description"："最新版本 iPad 平板电脑的随机用户代理"。
  }
]
</pre>
<hr />
<h2 id="account-status">账户状态</h2>
<h3 id="usage-statistics">使用统计</h3>
<p>您可以通过查询以下端点找到您的使用统计数据：</p>
<pre>GET https://data.oxylabs.io/v1/stats
</pre>
<p>默认情况下，API 将返回所有时间的使用统计数据。添加 <code>group_by=month</code> 将返回月度统计数据，而 <code>group_by=day</code> 将返回每日数字。</p>
<p>该查询将返回所有时间的统计数据。您可以通过添加 <code>group_by=day</code> 或 <code>group_by=month</code></p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/stats'
</pre>
<p>输出示例</p>
<pre>{
    "数据"：{
        "sources"：[
            {
                "realtime_results_count"："90",
                "results_count"："10",
                "标题"："yandex
            },
            {
                "realtime_results_count"："19",
                "results_count"："87",
                "标题"："yandex_search
            }
        ]
    },
    "元"：{
        "group_by": null
    }
}
</pre>
<hr />
<h3 id="limits">限制</h3>
<p>以下终端将提供您的每月承诺信息以及已使用的金额：</p>
<pre>GET https://data.oxylabs.io/v1/stats/limits
</pre>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/stats/limits'
</pre>
<p>输出示例</p>
<pre>{
    "monthly_requests_commitment"：4500000,
    "used_requests"：985000
}
</pre>
<hr />
<h2 id="response-codes">响应代码</h2>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>代码</th>
<th>现状</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>204</code></td>
<td>无内容</td>
<td>您正在尝试检索一项尚未完成的任务。</td>
</tr>
<tr>
<td><code>400</code></td>
<td>多种错误信息</td>
<td>请求结构错误，可能是参数拼写错误或值无效。响应体将显示更具体的错误信息。</td>
</tr>
<tr>
<td><code>401</code></td>
<td>未提供授权标头"/"授权标头无效"/"未找到客户端</td>
<td>缺少授权标头或登录凭证不正确。</td>
</tr>
<tr>
<td><code>403</code></td>
<td>禁止</td>
<td>您的帐户无法访问此资源。</td>
</tr>
<tr>
<td><code>404</code></td>
<td>未找到</td>
<td>您要查找的职位编号已不再可用。</td>
</tr>
<tr>
<td><code>429</code></td>
<td>请求太多</td>
<td>超出费率限制。请联系您的客户经理以提高限额。</td>
</tr>
<tr>
<td><code>500</code></td>
<td>未知错误</td>
<td>无法提供服务。</td>
</tr>
<tr>
<td><code>524</code></td>
<td>超时</td>
<td>无法提供服务。</td>
</tr>
<tr>
<td><code>612</code></td>
<td>未定义的内部错误</td>
<td>出了点问题，我们未能完成您提交的任务。您可以免费再试一次，因为我们不会向您收取任何费用。 <code>有问题</code> 工作如果还不行，请联系我们。</td>
</tr>
<tr>
<td><code>613</code></td>
<td>重试次数过多后出现故障</td>
<td>我们曾尝试清除您提交的作业，但在达到重试限制后放弃了。您可以免费再试一次，因为我们不会向您收取任何费用。 <code>有问题</code> 工作如果还不行，请联系我们。</td>
</tr>
</tbody>
</table>
</div>
<p>云存储上传响应代码：</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>代码</th>
<th>现状</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>10001</code></td>
<td>意外异常</td>
<td>发生了严重的错误。我们可能已经知道，并正在修复。无论如何，请告诉我们。</td>
</tr>
<tr>
<td><code>13000</code></td>
<td>上传成功</td>
<td>一切顺利！</td>
</tr>
<tr>
<td><code>13001</code></td>
<td>上传失败</td>
<td>我们无法上传您的工作结果。</td>
</tr>
<tr>
<td><code>13102</code></td>
<td>没有这样的道路</td>
<td>我们找不到这样名字的水桶。请仔细检查。</td>
</tr>
<tr>
<td><code>13103</code></td>
<td>拒绝访问</td>
<td>Bucket 没有所需的权限。要了解如何授予我们必要的权限，请参阅 <a href="#upload-to-storage">这里</a>.</td>
</tr>
</tbody>
</table>
</div>
<hr />
<h4>参考资料</h4>
<ul>
<li><a href="https://docs.oxylabs.io/rtc/source/yandex/index.html#quick-start" target="_blank" rel="nofollow noopener">https://docs.oxylabs.io/rtc/source/yandex/index.html</a></li>
<li><a href="https://docs.oxylabs.io/rtc/index.html" target="_blank" rel="nofollow noopener">https://docs.oxylabs.io/rtc/index.html</a></li>
</ul>
<p>&nbsp;</p>
<hr />
<blockquote><p><strong>免责声明</strong> 这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/oxylabs-yandex-real-time-crawler/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7633</post-id>	</item>
		<item>
		<title>How to use IPv4 Proxies API (By BlazingSEO) : Learn Manuals Before You Buy</title>
		<link>https://proxysp.com/zh/how-to-ipv4-proxies-api/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-ipv4-proxies-api</link>
					<comments>https://proxysp.com/zh/how-to-ipv4-proxies-api/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[BlazingSEO Proxies]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=8893</guid>

					<description><![CDATA[以下是 IPv4 代理 API 设置指南，我们使用的是 BlazingSEO 的 IPv4 代理示例。API Key: mZQjSDSDSD-SAMPALE 欢迎访问 Blazing proxy API 页面！...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/how-to-ipv4-proxies-api/"> <span class="screen-reader-text">如何使用 IPv4 代理 API (By BlazingSEO) ：购买前学习手册</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>下面是 IPv4 代理 API 设置指南，我们使用的是 BlazingSEO 的 IPv4 代理示例。</p></blockquote>
<h2><a href="https://www.proxysp.com/redirect/blazingseollc/" target="_blank" rel="nofollow noopener"><img loading="lazy" decoding="async" class="aligncenter wp-image-8894 size-large" src="https://www.proxysp.com/wp-content/uploads/2021/10/IPv4-proxies-price-1024x497.png" alt="ipv4 proxies price plan" width="1024" height="497" srcset="https://proxysp.com/wp-content/uploads/2021/10/IPv4-proxies-price-1024x497.png 1024w, https://proxysp.com/wp-content/uploads/2021/10/IPv4-proxies-price-300x146.png 300w, https://proxysp.com/wp-content/uploads/2021/10/IPv4-proxies-price-768x373.png 768w, https://proxysp.com/wp-content/uploads/2021/10/IPv4-proxies-price.png 1224w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></h2>
<h2 class="desc-title-blk">API 密钥： <strong>mZQjSDSDSD-SAMPALE</strong></h2>
<p>欢迎访问 Blazing 代理 API 页面！以下指南提供了开始使用 API 自动管理代理所需的信息。</p>
<p>您需要唯一的应用程序接口密钥 (<strong>mZQjSDSDSD-SAMPALE</strong>)。请像对待任何密码一样对待它，因为它对您来说是独一无二的，并允许访问您的代理产品详细信息。值得注意的是，它不能访问您的任何个人信息或账单信息。</p>
<p>以下各节将说明如何设置和使用 API 来查看和管理库存：</p>
<hr />
<h2 class="desc-title-blk">设置</h2>
<p><a href="https://www.proxysp.com/redirect/blazingseollc/" target="_blank" rel="nofollow noopener"><img loading="lazy" decoding="async" class="aligncenter wp-image-8895 size-large" src="https://www.proxysp.com/wp-content/uploads/2021/10/API-Access-1024x585.png" alt="API Access" width="1024" height="585" srcset="https://proxysp.com/wp-content/uploads/2021/10/API-Access-1024x585.png 1024w, https://proxysp.com/wp-content/uploads/2021/10/API-Access-300x171.png 300w, https://proxysp.com/wp-content/uploads/2021/10/API-Access-768x438.png 768w, https://proxysp.com/wp-content/uploads/2021/10/API-Access.png 1121w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></p>
<p>只有在使用 IP Auth 或用户/密码设置了授权后，API 才能正常工作，因此在使用之前，请确保您的 IP 已获得授权。您可以通过以下方式找到相关说明 <a href="https://www.proxysp.com/how-to-use-blazingseo-proxies/" target="_blank" rel="noopener">点击此处。</a></p>
<p>向 Customer Blazing Proxies API 提出的每个请求都应包含电子邮件和 API 密钥。如果用户未提供电子邮件和 API 密钥或其无效，API 将以状态 401（未授权）响应。</p>
<hr />
<h2 class="desc-title-blk">授权类型</h2>
<h3>获取您当前的授权类型：</h3>
<pre><code>https://blazingseollc.com/proxy/dashboard/api/auth-type/privateproxyreviews@gmail.com/mZQjUfW3</code></pre>
<h3>更改授权类型：</h3>
<pre><code>https://blazingseollc.com/proxy/dashboard/api/auth-type/privateproxyreviews@gmail.com/mZQjUfW3/authType</code></pre>
<h3>使用允许的类型更改代理授权配置：</h3>
<ul>
<li>{authType}--要设置的授权类型，可能的值--['PW'、'IP']。</li>
<li>{ipAuthType}（查询参数）--可在 authType = IP 时指定，可能的值--['HTTP'、'SOCKS']。</li>
</ul>
<hr />
<h2 class="desc-title-blk">查看白名单授权地址</h2>
<p>返回您账户上已授权访问代理服务器的 IP。授权请求后可能需要 10-30 分钟才能在此列表中显示新授权的 IP。</p>
<pre><code>https://blazingseollc.com/proxy/dashboard/api/export/ips/privateproxyreviews@gmail.com/mZQjUfW3</code></pre>
<hr />
<h2 class="desc-title-blk">列出账户中的所有代理 IP</h2>
<p>每次调用应用程序接口 URL 时，都会收到最新的 <strong>受权</strong> 代理。</p>
<h3 class="desc-subtitle-blk">将代理 IP 导出到 CSV 文件</h3>
<pre><code>https://blazingseollc.com/proxy/dashboard/api/export/4/all/privateproxyreviews@gmail.com/mZQjUfW3/list.csv</code></pre>
<ul>
<li>additionalValues - 您可以指定该参数，以便在列表中显示附加值（地区、国家、类别）</li>
</ul>
<pre><code>https://blazingseollc.com/proxy/dashboard/api/export/4/all/privateproxyreviews@gmail.com/mZQjUfW3/list.csv?additionalValues=region,country</code></pre>
<hr />
<h3 class="desc-subtitle-blk">按国家或类别获取代理 IP</h3>
<pre><code>https://blazingseollc.com/proxy/dashboard/api/export/4/COUNTRY-CATEGORY/privateproxyreviews@gmail.com/mZQjUfW3/list.csv</code></pre>
<h3 class="desc-subtitle-blk">获取特定软件包的代理 IP 列表</h3>
<ul>
<li>{COUNTRY}--以国家代码表示的套餐国家（美国/德国/英国/法国/加拿大等）。</li>
<li>{CATEGORY} - 软件包类别（static/semi-3/rotate/sneaker/block/shopify/static-res）</li>
</ul>
<hr />
<h2 class="desc-title-blk">添加和删除 IP</h2>
<h3 class="desc-subtitle-blk">添加新 IP</h3>
<pre><code>https://blazingseollc.com/proxy/dashboard/api/ips/add/privateproxyreviews@gmail.com/mZQjUfW3/IPTOADD</code></pre>
<ul>
<li>{IPTOADD}-应启用代理授权的 IP 地址（注意，提交后可能需要 10-30 分钟才能使用您的 IP）。</li>
<li>{iptoadd1,iptoadd2,...,iptoadd20}。- 您可以为代理授权添加多个 IP 地址（用逗号分隔）。</li>
</ul>
<h3 class="desc-subtitle-blk">删除/移除现有 IP</h3>
<pre><code>https://blazingseollc.com/proxy/dashboard/api/ips/delete/privateproxyreviews@gmail.com/mZQjUfW3/IPTODELETE</code></pre>
<ul>
<li>{IPTODELETE}- 之前添加的代理授权 IP，您现在希望将其从账户中删除。提交后，该 IP 将在 10-30 分钟后不再授权。</li>
</ul>
<hr />
<h2 class="desc-title-blk">替换代理 IP</h2>
<h3 class="desc-subtitle-blk">获取可用的替代品</h3>
<pre><code>https://blazingseollc.com/proxy/dashboard/api/available-replacements/privateproxyreviews@gmail.com/mZQjUfW3</code></pre>
<h3 class="desc-subtitle-blk">替换单个代理 IP</h3>
<p>替换单个代理 IP，并返回 # 个相同软件包类型代理 IP 的可用替换。</p>
<pre><code>https://blazingseollc.com/proxy/dashboard/api/replace-ip/privateproxyreviews@gmail.com/mZQjUfW3/IP_Single</code></pre>
<ul>
<li>{IP}-要替换的代理 IP（随后将减少替换数量）</li>
</ul>
<h3 class="desc-subtitle-blk">替换多个代理 IP</h3>
<p>同时替换多个 IP。IP 列表必须以逗号分隔，并作为查询参数 "replace "提供；<br />
这也会返回成功标记（将被 cron 作业替换的 IP）IP 的列表，以及可用替换 IP 的 # （类似于 "获取可用替换 "API 方法）。</p>
<pre><code>https://blazingseollc.com/proxy/dashboard/api/replace-multiple-ips/privateproxyreviews@gmail.com/mZQjUfW3?replace=IP1,IP2,IPn</code></pre>
<hr />
<h3 class="desc-title-blk">第三方工具设置：GSA SER</h3>
<p>要设置 GSA SER 在一定时间间隔内自动抓取代理，请按照以下说明操作。这对要求每 30 天更换一次代理的半专用和专用用户非常有用，或者如果某个代理偶然死亡，GSA 会自动为您抓取新的代理 🙂。</p>
<ol>
<li style="list-style-type: none;">
<ol>
<li>打开 "代理设置 "选项卡</li>
<li>单击添加/编辑代理</li>
<li>右键单击左侧列表，选择 "检查无</li>
<li>点击添加按钮</li>
<li>添加您的 API URL（如上所述），并选择 "添加为专用代理类型 "选项</li>
<li>返回代理设置主页面，点击 "选项 "选项卡</li>
<li>将 "每次自动搜索新代理 "设置为 120 分钟</li>
<li>完成！</li>
</ol>
</li>
</ol>
<hr />
<h2 style="text-align: center;"><strong>旋转选项</strong></h2>
<div class="panel-body">
<div class="alert alert-info">轮换选项仅适用于半专用或 <a href="https://www.proxysp.com/dedicated-proxies-blazingseo/">专用计划</a>.</div>
<ul>
<li class="alert alert-info"><label for="rotate_ever">有时，在我们进行服务器优化（使您的代理服务器速度更快）时，代理服务器可能会宕机几秒钟，由于我们会自动替换任何宕机的代理服务器，因此您会收到分配给您的端口的新代理服务器。如果您不希望在我们检测到任何代理服务器宕机时分配新的代理服务器，请选中此复选框。此选项适用于将我们的代理服务器用于社交媒体且不想要新 IP 的用户。</label></li>
<li>如果您希望静态代理每 30 天轮换一次，请选中此复选框。此选项不适合将我们的代理服务器用于社交媒体并希望尽可能长时间保留其 IP 的用户。</li>
</ul>
<hr />
<p>来自</p>
<ul>
<li><a href="https://blazingseollc.com/proxy/dashboard/settings" target="_blank" rel="nofollow noopener">https://billing.blazingseollc.com/hosting/affiliates.php</a></li>
</ul>
</div>
<hr />
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/how-to-ipv4-proxies-api/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">8893</post-id>	</item>
		<item>
		<title>How to Use Bing Real-Time Crawler [Part 3]: Oxylabs Real-Time Crawler for Bing</title>
		<link>https://proxysp.com/zh/oxylabs-bing-real-time-crawler/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oxylabs-bing-real-time-crawler</link>
					<comments>https://proxysp.com/zh/oxylabs-bing-real-time-crawler/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[How to Use OxyLabs Proxy (OxyLabs User Manual Navigation)]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7634</guid>

					<description><![CDATA[你知道如何使用 OxyLabs Real-time Crawler for Bing 吗？这是 OxyLabs 官方最全面的介绍。快速入门 实时抓取程序是由 OxyLabs ...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/oxylabs-bing-real-time-crawler/"> <span class="screen-reader-text">如何使用必应实时爬虫 [第 3 部分]：Oxylabs 必应实时爬虫</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>你知道如何使用 OxyLabs Real-time Crawler for Bing 吗？这是 OxyLabs 官方最全面的介绍。</p></blockquote>
<h2 id="quick-start">快速入门</h2>
<p>Real-Time Crawler 专为重型数据检索操作而设计。你可以使用 Real-Time Crawler 访问各种必应网页。它能毫不费力地从搜索引擎中提取网页数据，不会出现任何延迟或错误。</p>
<p>必应使用的实时爬虫 <a class="custom_link" href="https://en.wikipedia.org/wiki/Basic_access_authentication" target="_blank" rel="nofollow noopener">基本 HTTP 身份验证</a> 需要发送用户名和密码。</p>
<p>这是目前开始使用必应实时爬虫的最快方法。您将发送一个查询 <code>阿迪达斯</code> 至 <code>bing_search</code> 使用 <a href="#realtime">实时</a> 整合方法。不要忘记替换 <code>用户名</code> 和 <code>密码</code> 使用代理用户凭据。</p>
<pre>curl --user "USERNAME:PASSWORD" 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json" -d '{"source"："bing_search", "domain"："com", "query"："adidas"}'
</pre>
<p>如果您有任何本文件未涉及的问题，请联系您的客户经理或我们的支持人员，地址是 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a>.</p>
<hr />
<h2 id="integration-methods">整合方法</h2>
<p>Real-Time Crawler for Bing 支持三种集成方法，它们都有各自独特的优势：</p>
<ul>
<li><a href="#push-pull">推拉式</a>.使用这种方法，现在需要与我们的端点保持活动连接，以检索数据。在发出请求后，我们的系统会在任务完成后自动 ping 用户服务器（请参阅 <a href="#callback">回调</a>).这种方法可以节省计算资源，而且易于扩展。</li>
<li><a href="#realtime">实时</a>.该方法要求用户与我们的端点保持活动连接，以便在任务完成时成功获取结果。这种方法可以在一个服务中实现，而推拉法则需要两个步骤。</li>
<li><a href="#superapi">超级用户接口</a>.这种方法与实时方法非常相似，但用户可以使用 HTML Cralwer 作为代理，而不是向我们的端点发布数据。要检索数据，用户必须设置一个代理端点，并向所需的 URL 发送 GET 请求。必须使用标头添加其他参数。</li>
</ul>
<p>我们推荐的数据提取方法是 <a href="#push-pull">推拉式</a>.</p>
<hr />
<h3 id="push-pull">推拉式</h3>
<p>这是最简单、最可靠、最值得推荐的数据传输方法。在推拉式方案中，您向我们发送查询，我们向您返回工作 <code>本我</code>工作完成后，您可以使用 <code>本我</code> 中检索内容 <code>/结果</code> 端点。你可以自己检查作业完成状态，也可以设置一个能接受 POST 查询的简单监听器。</p>
<p>这样，一旦作业准备就绪，我们就会向您发送回调消息。在本例中，结果将自动 <a href="#upload-to-storage">上传到您的 S3 存储桶</a> 名为 <code>您的邮筒名称</code>.</p>
<hr />
<h4 id="single-query"><strong>单一查询</strong></h4>
<p>以下端点将处理对一个关键字或 URL 的单次查询。API 将返回一条确认信息，其中包含任务信息，包括任务 <code>本我</code>.您可以使用它来检查任务完成状态 <code>本我</code>或者，您也可以要求我们在扫描任务完成后 ping 您的回调端点，方法是添加 <code>回调URL</code> 在查询中。</p>
<pre>邮寄 https://data.oxylabs.io/v1/queries
</pre>
<p>您需要在 JSON 主体中将查询参数作为数据发布。</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："bing_search", "domain"："com", "query"："adidas", "callback_url"："https://your.callback.url"，"storage_type"："s3"，"storage_url"："your_bucket_name"}'
</pre>
<p>API 将以 JSON 格式响应查询信息，并将其打印在响应体中，与此类似：</p>
<pre>{
  "callback_url"："https://your.callback.url"、
  "client_id"：5,
  "context"：[
    {
      "key"："safe_search"、
      "value": null
    }
  ],
  "created_at"："2019-10-01 00:00:01",
  "域"："com"、
  "geo_location": null、
  "id"："12345678900987654321",
  "限制"：10,
  "locale": null、
  "pages"：1,
  "render": null、
  "query"："adidas"、
  "来源"："bing_search"、
  "start_page"：1,
  "状态"："pending"、
  "storage_type"："s3",
  "storage_url"："YOUR_BUCKET_NAME/12345678900987654321.json",
  "subdomain"："www"、
  "updated_at"："2019-10-01 00:00:01",
  "user_agent_type"："desktop"、
  "_链接"：[
    {
      "rel"："self"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321",
      "method"："GET"
    },
    {
      "rel"："results"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321/results",
      "method"："GET"
    }
  ]
}
</pre>
<hr />
<h4 id="check-job-status"><strong>检查工作状态</strong></h4>
<p>如果您的查询有 <code>回调URL</code>一旦完成刮擦任务，我们将向您发送一条包含内容链接的信息。但是，如果没有 <code>回调URL</code> 在查询中，您需要自己检查任务状态。为此，您需要使用 <code>href</code> 根据 <code>rel</code>:<code>自我</code> 在您向我们的 API 提交查询后收到的响应信息中。它应该与下面的内容相似： <code>http://data.oxylabs.io/v1/queries/12345678900987654321</code>.</p>
<pre>GET https://data.oxylabs.io/v1/queries/{id}
</pre>
<p>查询该链接将返回工作信息，包括其 <code>地位</code>.有 3 种可能 <code>地位</code> 价值观</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><code>未决</code></td>
<td>任务仍在队列中，尚未完成。</td>
</tr>
<tr>
<td><code>完成的</code></td>
<td>任务完成后，您可以通过在 <code>href</code> 根据 <code>rel</code>:<code>成果</code> : <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code></td>
</tr>
<tr>
<td><code>有问题</code></td>
<td>任务出了问题，我们无法完成，很可能是目标网站方面的服务器出错。</td>
</tr>
</tbody>
</table>
</div>
<pre>curl --user user:pass1 'http://data.oxylabs.io/v1/queries/12345678900987654321'
</pre>
<p>API 将在响应正文中打印 JSON 格式的查询信息。请注意，任务 <code>地位</code> 改为 <code>完成的</code>.现在您可以通过查询 <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code>.</p>
<p>您还可以看到任务已被 <code>updated_at</code> <code>2019-10-01 00:00:15</code> - 查询需要 14 秒才能完成。</p>
<pre>{
  "client_id"：5,
  "context"：[
    {
      "key"："safe_search"、
      "value": null
    }
  ],
  "created_at"："2019-10-01 00:00:01",
  "域"："com"、
  "geo_location": null、
  "id"："12345678900987654321",
  "限制"：10,
  "locale": null、
  "pages"：1,
  "render": null、
  "query"："adidas"、
  "来源"："bing_search"、
  "start_page"：1,
  "状态"："done"、
  "子域"："www"、
  "updated_at"："2019-10-01 00:00:15",
  "user_agent_type"："desktop"、
  "_链接"：[
    {
      "rel"："self"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321",
      "method"："GET"
    },
    {
      "rel"："results"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321/results",
      "method"："GET"
    }
  ]
}
</pre>
<hr />
<h4 id="retrieve-job-content"><strong>检索工作内容</strong></h4>
<p>通过检查作业状态或接收我们的回调，一旦知道作业已准备就绪，您就可以使用以下 URL 获取作业 <code>href</code> 根据 <code>rel</code>:<code>成果</code> 在我们的初始响应或回调信息中。看起来应该类似于下面这样： <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code></p>
<pre>GET https://data.oxylabs.io/v1/queries/{id}/results
</pre>
<p>通过设置 "任务状态"，可以自动检索结果，而无需定期检查任务状态。 <a href="#callback">回调</a> 服务。用户需要指定运行回调服务的服务器的 IP 或域。当我们的系统完成一项任务时，它将向所提供的 IP 或域发送一条信息，回调服务将下载结果，如 <a href="#callback">回调实现示例</a>.</p>
<pre>curl --user user:pass1 'http://data.oxylabs.io/v1/queries/12345678900987654321/results'
</pre>
<p>API 将返回工作内容：</p>
<pre>{
  "结果"：[
    {
      "content"："&lt;!
        内容
      &quot;,
      &quot;created_at&quot;：&quot;2019-10-01 00:00:01&quot;,
      &quot;更新时间&quot;：&quot;2019-10-01 00:00:15&quot;,
      &quot;页&quot;：1,
      &quot;url&quot;：&quot;https://www.bing.com/search?q=adidas&quot;、
      &quot;job_id&quot;：&quot;12345678900987654321&quot;,
      &quot;status_code&quot;：200
    }
  ]
}
</pre>
<hr />
<h4 id="callback"><strong>回调</strong></h4>
<p>回调是一个 <code>职位</code> 我们会向您的机器发送请求，告知数据提取任务已完成，并提供下载刮擦内容的 URL。这意味着您不再需要 <a href="#check-job-status">检查工作状态</a> 手动操作。一旦数据到齐，我们会通知您，您现在需要做的就是 <a href="#retrieve-job-content">取回</a>.</p>
<pre># 请查看 Python 和 PHP 代码示例。
</pre>
<p>回调输出示例</p>
<pre>{
   "created_at":"2019-10-01 00:00:01",
   "updated_at":"2019-10-01 00:00:15",
   "locale":null、
   "client_id":163、
   "user_agent_type": "desktop"、
   "source": "bing_search"、
   "页面":1、
   "子域": "www"、
   "status": "done"、
   "start_page":1、
   "render":null、
   "priority":0、
   "ttl":0、
   "origin": "api"、
   "persist":true、
   "id":"12345678900987654321",
   "callback_url": "http://your.callback.url/"、
   "query": "adidas"、
   "domain": "com"、
   "limit":10、
   "geo_location":null、
   {...}
   "_links":[
      {
         "href":"https://data.oxylabs.io/v1/queries/12345678900987654321",
         "method": "GET"、
         "rel": "self"
      },
      {
         "href":"https://data.oxylabs.io/v1/queries/12345678900987654321/results",
         "method": "GET"、
         "rel": "results" }
      }
   ],
}
</pre>
<hr />
<h4 id="batch-query"><strong>批量查询</strong></h4>
<p>实时爬虫还支持执行多个关键字，每批最多可执行 1,000 个关键字。以下端点将向提取队列提交多个关键词。</p>
<pre>邮寄 https://data.oxylabs.io/v1/queries/batch
</pre>
<p>您需要在 JSON 主体中将查询参数作为数据发布。</p>
<p>系统会将每个关键词作为一个单独请求处理。如果您提供了回调 URL，您将为每个关键字收到单独的调用。否则，我们的初始响应将包含工作 <code>本我</code>的所有关键字。例如，如果您发送了 50 个关键字，我们将返回 50 个唯一的职位。 <code>本我</code>s.</p>
<p>重要！ <code>询问</code> 是唯一一个可以有多个值的参数。所有其他参数对于该批次查询都是一样的。</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries/batch' -H 'Content-Type: application/json' -d '@keywords.json
 -d'@keywords.json'（关键词
</pre>
<p><code>keywords.json</code> 内容：</p>
<pre>{
   "query":[
      "阿迪达斯"、
      "耐克"、
      "蕾博克"
   ],
   "来源"："bing_search"、
   "域"："com"、
   "callback_url"："https://your.callback.url"
}
</pre>
<p>API 将以 JSON 格式响应查询信息，并将其打印在响应体中，与此类似：</p>
<pre>{
  "查询"：[
    {
      "callback_url"："https://your.callback.url"、
      {...}
      "created_at"："2019-10-01 00:00:01",
      "域"："com"、
      "id"："12345678900987654321",
      {...}
      "查询"："阿迪达斯"、
      "来源"："bing_search"、
      {...}
          "rel"："results"、
          "href"："http://data.oxylabs.io/v1/queries/12345678900987654321/results",
          "method"："GET"
        }
      ]
    },
    {
      "callback_url"："https://your.callback.url"、
      {...}
      "created_at"："2019-10-01 00:00:01",
      "域"："com"、
      "id"："12345678901234567890",
      {...}
      "查询"："NIKE"、
      "来源"："bing_search"、
      {...}
          "rel"："results"、
          "href"："http://data.oxylabs.io/v1/queries/12345678901234567890/results",
          "method"："GET"
        }
      ]
    },
    {
      "callback_url"："https://your.callback.url"、
      {...}
      "created_at"："2019-10-01 00:00:01",
      "域"："com"、
      "id"："01234567899876543210",
      {...}
      "查询"："reebok"、
      "来源"："bing_search"、
      {...}
          "rel"："results"、
          "href"："http://data.oxylabs.io/v1/queries/01234567899876543210/results",
          "method"："GET"
        }
      ]
    }
  ]
}
</pre>
<hr />
<h4 id="get-notifier-ip-address-list"><strong>获取通知程序 IP 地址列表</strong></h4>
<p>您可能希望将向您发送回调信息的 IP 列入白名单，或为其他目的获取这些 IP 的列表。这可以通过 <code>获取</code>在这个端点上： <code>https://data.oxylabs.io/v1/info/callbacker_ips</code>.</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/info/callbacker_ips'
</pre>
<p>API 将返回向您的系统发出回调请求的 IP 列表：</p>
<pre>{
    "ips"：[
        "x.x.x.x"、
        "y.y.y.y"
    ]
}
</pre>
<hr />
<h4 id="upload-to-storage"><strong>上传到存储器</strong></h4>
<p>默认情况下，RTC 任务结果存储在我们的数据库中。这意味着您需要查询我们的结果端点并自行检索内容。自定义存储功能允许您将结果存储在自己的云存储中。该功能的优势在于，您无需为了获取结果而发出额外请求，所有内容都会直接存储到您的存储桶中。</p>
<p>我们支持亚马逊 S3 和谷歌云存储。如果您想使用其他类型的存储，请联系您的客户经理，讨论功能交付时间表。</p>
<p id="amazon-s3"><strong>亚马逊 S3</strong></p>
<p>要将作业结果上传到 Amazon S3 存储桶，请为我们的服务设置访问权限。为此，请访问 <code>https://s3.console.aws.amazon.com/ &gt; S3 &gt; 存储 &gt; 桶名称（如果没有，请新建） &gt; 权限 &gt; 桶策略</code></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8257" src="https://www.proxysp.com/wp-content/uploads/2021/09/oxylabs-Real-Time-Crawler-for-Bing-Upload-to-Storage1.png" alt="oxylabs Real-Time Crawler for Bing Upload to Storage1" width="485" height="325" srcset="https://proxysp.com/wp-content/uploads/2021/09/oxylabs-Real-Time-Crawler-for-Bing-Upload-to-Storage1.png 485w, https://proxysp.com/wp-content/uploads/2021/09/oxylabs-Real-Time-Crawler-for-Bing-Upload-to-Storage1-300x201.png 300w" sizes="(max-width: 485px) 100vw, 485px" /></p>
<p>您可以在此找到水桶政策 <a class="custom_link" href="https://docs.oxylabs.io/resources/s3_bucket_policy.json" target="_blank" rel="noopener">JSON</a> 或右侧的代码示例区。不要忘记在 <code>您的邮筒名称</code>.通过该策略，我们可以向您的邮筒写入内容，允许您访问上传的文件，并了解邮筒的位置。</p>
<p id="google-cloud-storage"><strong>谷歌云存储</strong></p>
<p>要将作业结果上传到您的 Google Cloud Storage 存储桶，请为我们的服务设置特殊权限。为此，请使用 <code>存储.对象.创建</code> 权限并将其分配给 Oxylabs 服务帐户电子邮件 <code>oxyserps-storage@oxyserps-storage.iam.gserviceaccount.com</code>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8258" src="https://www.proxysp.com/wp-content/uploads/2021/09/oxylabs-Real-Time-Crawler-for-Bing-Upload-to-Storage2.png" alt="oxylabs Real-Time Crawler for Bing Upload to Storage2" width="484" height="311" srcset="https://proxysp.com/wp-content/uploads/2021/09/oxylabs-Real-Time-Crawler-for-Bing-Upload-to-Storage2.png 484w, https://proxysp.com/wp-content/uploads/2021/09/oxylabs-Real-Time-Crawler-for-Bing-Upload-to-Storage2-300x193.png 300w" sizes="(max-width: 484px) 100vw, 484px" /></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8259" src="https://www.proxysp.com/wp-content/uploads/2021/09/oxylabs-Real-Time-Crawler-for-Bing-Upload-to-Storage3.png" alt="oxylabs Real-Time Crawler for Bing Upload to Storage3" width="484" height="668" srcset="https://proxysp.com/wp-content/uploads/2021/09/oxylabs-Real-Time-Crawler-for-Bing-Upload-to-Storage3.png 484w, https://proxysp.com/wp-content/uploads/2021/09/oxylabs-Real-Time-Crawler-for-Bing-Upload-to-Storage3-217x300.png 217w" sizes="(max-width: 484px) 100vw, 484px" /></p>
<p id="usage"><strong>使用方法</strong></p>
<p>要使用此功能，请在请求中指定两个附加参数。了解更多信息 <a href="#direct">这里</a>.</p>
<p>上传路径如下 <code>YOUR_BUCKET_NAME/job_ID.json</code>.您可以在提交请求后从我们收到的回复正文中找到职位 ID。在 <a href="#single-query">本例</a> 工作编号为 <code>12345678900987654321</code>.</p>
<pre>{
    "版本"："2012-10-17",
    "Id"："Policy1577442634787",
    "声明"：[
        {
            "Sid"："Stmt1577442633719"、
            "效果"："允许"、
            "校长"：{
                "AWS"："arn:aws:iam::324311890426:user/oxylabs.s3.uploader"
            },
            "Action"："s3:GetBucketLocation"、
            "资源"："arn:aws:s3:::YOUR_BUCKET_NAME" }.
        },
        {
            "Sid"："Stmt1577442633719"、
            "效果"："允许"、
            "校长"：{
                "AWS"："arn:aws:iam::324311890426:user/oxylabs.s3.uploader"
            },
            "Action"：[
                "s3:PutObject"、
                "s3:PutObjectAcl"。
            ],
            "资源"："arn:aws:s3:::YOUR_BUCKET_NAME/*"。
        }
    ]
}
</pre>
<hr />
<h3 id="realtime">实时</h3>
<p>数据提交方式与推拉方式相同，但在实时情况下，我们将在连接打开时返回内容。您向我们发送查询，连接保持打开，我们检索内容并发送给您。处理的端点如下：</p>
<pre>邮寄 https://realtime.oxylabs.io/v1/queries
</pre>
<p>开放连接的超时限制为 150 秒，因此在极少数负载较重的情况下，我们可能无法确保将数据发送给您。</p>
<p>您需要在 JSON 主体中将查询参数作为数据发布。详情请参阅示例。</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："bing_search", "domain"："com", "query"："adidas"}'
</pre>
<p>打开连接时将返回的响应体示例：</p>
<pre>{
  "结果"：[
    {
      "content"："
      内容
      "
      "created_at"："2019-10-01 00:00:01",
      "更新时间"："2019-10-01 00:00:15",
      "id": null、
      "page"：1,
      "url"："https://www.bing.com/search?q=adidas"、
      "job_id"："12345678900987654321",
      "status_code"：200
    }
  ]
}
</pre>
<hr />
<h3 id="superapi">超级用户接口</h3>
<p>如果您曾经使用过普通代理进行数据搜刮，那么集成 SuperAPI 传输方法将轻而易举。只需将我们的入口节点用作代理，使用实时爬虫凭据进行授权，并忽略证书即可。在 <code>cURL</code> 这是 <code>-k</code> 或 <code>--不安全</code>.您的数据将通过开放连接发送给您。</p>
<pre>GET realtime.oxylabs.io:60000
</pre>
<p>超级用户接口只支持少量参数，因为它 <strong>仅适用于 <a href="#direct">直接</a> 数据源</strong> 其中提供了完整的 URL。这些参数应作为标头发送。这是可接受的参数列表：</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><code>X-OxySERPs-User-Agent-Type</code></td>
<td>虽然无法指明特定的 User-Agent，但您可以让我们知道您使用的浏览器和平台。支持的用户代理列表如下所示 <a href="#user-agent">这里</a>.</td>
</tr>
<tr>
<td><code>X-OxySERPs-地理位置</code></td>
<td>应用程序接口使用 Canonical Geo Location 格式来确定请求位置。具体如下 <code>城市、地区、国家</code>例如 <code>美国阿肯色州哈里斯堡</code>).有关如何创建 "典型地理位置名称 "的更多信息，请查阅 <a class="custom_link" href="https://developers.google.com/adwords/api/docs/appendix/geotargeting" target="_blank" rel="nofollow noopener">这里</a>.</td>
</tr>
</tbody>
</table>
</div>
<p>如果您在设置超级用户接口时需要帮助，请致电 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a>.</p>
<pre>curl -k -x realtime.oxylabs.io:60000 -U user:pass1 -H "X-OxySERPs-User-Agent-Type: desktop_chrome"
-H "X-OxySERPs-Geo-Location：15550" "https://bing.com/search/?text=nike"
</pre>
<hr />
<h2 id="content-type">内容类型</h2>
<p>实时爬虫返回 <strong>原始HTML</strong>.</p>
<hr />
<h2 id="data-sources">数据来源</h2>
<p>使用实时爬虫从 Bing 检索数据有两种方法。您可以通过以下方式向我们提供完整的 URL <a href="#direct">直接</a>或者您可以通过专门构建的数据源--"...... "来指定参数。 <a href="#search">搜索</a>.</p>
<p>如果您不确定选择哪种方式，请给我们留言 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a> 或联系您的客户经理。</p>
<hr />
<h3 id="direct">直接</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8260 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Bing-Direct.png" alt="Oxylabs Real-Time Crawler for Bing Direct" width="424" height="24" srcset="https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Bing-Direct.png 424w, https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Bing-Direct-300x17.png 300w" sizes="(max-width: 424px) 100vw, 424px" /></p>
<p><code>乒</code> 源的目的是检索各种必应页面的直接 URL 内容。这意味着，您可以向我们提供所需必应页面的直接 URL，而无需发送多个参数。我们不会删除任何参数，也不会以任何其他方式更改您的 URL。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">乒</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">网址</td>
<td style="font-weight: 400;" width="72">直接指向必应页面的 URL（链接</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下 <a href="#user-agent">这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地理位置</td>
<td style="font-weight: 400;" width="72">应用程序接口使用 Canonical Geo Location 格式来确定请求位置。具体如下城市、地区、国家，例如美国阿肯色州哈里斯堡）。有关如何创建 Canonical 地理位置名称的更多信息，请查阅 <a href="https://developers.google.com/adwords/api/docs/appendix/geotargeting" target="_blank" rel="nofollow noopener">这里。</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">回调端点的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在 <a href="#upload-to-storage">上传到存储器</a> 页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p>在本例中，应用程序接口将检索必应搜索关键词 <code>耐克</code> 推拉法</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："bing", "url"："https://bing.com/search/?text=nike&amp;"}'
</pre>
<p>以下是实时模式下的相同示例：</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："bing", "url"："https://bing.com/search/?text=nike&amp;"}'
</pre>
<p>并通过超级用户接口（SuperAPI）：</p>
<pre>curl -k -x realtime.oxylabs.io:60000 -U user:pass1 "https://bing.com/search/?text=nike&amp;"
</pre>
<hr />
<h3 id="search">搜索</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8262 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Bing-Search.png" alt="Oxylabs Real-Time Crawler for Bing Search" width="443" height="26" srcset="https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Bing-Search.png 443w, https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Bing-Search-300x18.png 300w" sizes="(max-width: 443px) 100vw, 443px" /></p>
<p><code>bing_search</code> 该源代码旨在检索必应搜索结果（SERP）。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">bing_search</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">领域</td>
<td style="font-weight: 400;" width="72">域名本地化。可用域名：com、ru、ua、by、kz、tr</td>
<td style="font-weight: 400;" width="72">网</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">询问</td>
<td style="font-weight: 400;" width="72">UTF 编码的关键字</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">start_page</td>
<td style="font-weight: 400;" width="72">起始页码</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">页面</td>
<td style="font-weight: 400;" width="72">要检索的页数</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">限额</td>
<td style="font-weight: 400;" width="72">每页要检索的结果数量</td>
<td style="font-weight: 400;" width="72">10</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地点</td>
<td style="font-weight: 400;" width="72">语言。您可以使用 2 个字母的 ISO 国家代码（如 en、by、fr 等）或语言标记（如 en-US、de-DE、ar-EG 等）。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地理位置</td>
<td style="font-weight: 400;" width="72">应用程序接口使用 Canonical Geo Location 格式来确定请求位置。具体如下城市、地区、国家，例如美国阿肯色州哈里斯堡）。有关如何创建 Canonical 地理位置名称的更多信息，请查阅<a href="https://developers.google.com/adwords/api/docs/appendix/geotargeting" target="_blank" rel="nofollow noopener"> 这里。</a></td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下 <a href="#user-agent">这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">回调端点的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在 <a href="#upload-to-storage">上传到存储器 </a>页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p>API 向 <code>bing.com</code> 检索关键字从第 11 到第 20 的搜索结果页面 <code>阿迪达斯</code>.API 将向 <code>your.callback.url</code> 包含 URL，以便在数据检索任务成功完成后下载原始 HTML 输出。这就是推拉式：</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："bing_search", "domain"："com", "query"："adidas", "start_page"：11, "pages"：10, "callback_url"："https://your.callback.url"}'
</pre>
<p>以下是实时模式下的相同示例：</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："bing_search", "domain"："com", "query"："adidas", "start_page"：11, "pages"：10, "callback_url"："https://your.callback.url"}'
</pre>
<hr />
<h2 id="parameter-values">参数值</h2>
<h3 id="user-agent">用户代理</h3>
<p>下载完整列表 <code>用户代理类型</code> JSON 中的值 <a class="custom_link" href="https://docs.oxylabs.io/resources/user_agent_type.json" target="_blank" rel="noopener">这里</a>.</p>
<pre>[
  {
    "user_agent_type"："桌面"、
    "描述"："随机桌面浏览器用户代理"
  },
  {
    "user_agent_type"："desktop_firefox"、
    "描述"："最新版桌面火狐浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_chrome"、
    "description"："最新版桌面 Chrome 浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_opera"、
    "description"："最新版本桌面 Opera 的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_edge"、
    "description"："桌面边缘最新版本之一的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_safari"、
    "description"："桌面 Safari 最新版本之一的随机用户代理"。
  },
  {
    "user_agent_type"："mobile"、
    "description"："随机移动浏览器用户代理"
  },
  {
    "user_agent_type"："mobile_android"、
    "description"（描述）："最新版本安卓浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："mobile_ios"、
    "描述"："最新版本 iPhone 浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："平板电脑"、
    "描述"："随机平板电脑浏览器用户代理"
  },
  {
    "user_agent_type"："tablet_android"、
    "描述"："最新版本安卓平板电脑的随机用户代理"。
  },
  {
    "user_agent_type"："tablet_ios"、
    "description"："最新版本 iPad 平板电脑的随机用户代理"。
  }
]
</pre>
<hr />
<h2 id="account-status">账户状态</h2>
<h3 id="usage-statistics">使用统计</h3>
<p>您可以通过查询以下端点找到您的使用统计数据：</p>
<pre>GET https://data.oxylabs.io/v1/stats
</pre>
<p>默认情况下，API 将返回所有时间的使用统计数据。添加 <code>group_by=month</code> 将返回月度统计数据，而 <code>group_by=day</code> 将返回每日数字。</p>
<p>该查询将返回所有时间的统计数据。您可以通过添加 <code>group_by=day</code> 或 <code>group_by=month</code></p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/stats'
</pre>
<p>输出示例</p>
<pre>{
    "数据"：{
        "sources"：[
            {
                "realtime_results_count"："90",
                "results_count"："10",
                "标题"："bing
            },
            {
                "realtime_results_count"："19",
                "results_count"："87",
                "标题"："bing_search
            }
        ]
    },
    "元"：{
        "group_by": null
    }
}
</pre>
<hr />
<h3 id="limits">限制</h3>
<p>以下终端将提供您的每月承诺信息以及已使用的金额：</p>
<pre>GET https://data.oxylabs.io/v1/stats/limits
</pre>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/stats/limits'
</pre>
<p>输出示例</p>
<pre>{
    "monthly_requests_commitment"：4500000,
    "used_requests"：985000
}
</pre>
<hr />
<h2 id="response-codes">响应代码</h2>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>代码</th>
<th>现状</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>204</code></td>
<td>无内容</td>
<td>您正在尝试检索一项尚未完成的任务。</td>
</tr>
<tr>
<td><code>400</code></td>
<td>多种错误信息</td>
<td>请求结构错误，可能是参数拼写错误或值无效。响应体将显示更具体的错误信息。</td>
</tr>
<tr>
<td><code>401</code></td>
<td>未提供授权标头"/"授权标头无效"/"未找到客户端</td>
<td>缺少授权标头或登录凭证不正确。</td>
</tr>
<tr>
<td><code>403</code></td>
<td>禁止</td>
<td>您的帐户无法访问此资源。</td>
</tr>
<tr>
<td><code>404</code></td>
<td>未找到</td>
<td>您要查找的职位编号已不再可用。</td>
</tr>
<tr>
<td><code>429</code></td>
<td>请求太多</td>
<td>超出费率限制。请联系您的客户经理以提高限额。</td>
</tr>
<tr>
<td><code>500</code></td>
<td>未知错误</td>
<td>无法提供服务。</td>
</tr>
<tr>
<td><code>524</code></td>
<td>超时</td>
<td>无法提供服务。</td>
</tr>
<tr>
<td><code>612</code></td>
<td>未定义的内部错误</td>
<td>出了点问题，我们未能完成您提交的任务。您可以免费再试一次，因为我们不会向您收取任何费用。 <code>有问题</code> 工作如果还不行，请联系我们。</td>
</tr>
<tr>
<td><code>613</code></td>
<td>重试次数过多后出现故障</td>
<td>我们曾尝试清除您提交的作业，但在达到重试限制后放弃了。您可以免费再试一次，因为我们不会向您收取任何费用。 <code>有问题</code> 工作如果还不行，请联系我们。</td>
</tr>
</tbody>
</table>
</div>
<p>云存储上传响应代码：</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><code>10001</code></td>
<td>意外异常</td>
<td>发生了严重的错误。我们可能已经知道，并正在修复。无论如何，请告诉我们。</td>
</tr>
<tr>
<td><code>13000</code></td>
<td>上传成功</td>
<td>一切顺利！</td>
</tr>
<tr>
<td><code>13001</code></td>
<td>上传失败</td>
<td>我们无法上传您的工作结果。</td>
</tr>
<tr>
<td><code>13102</code></td>
<td>没有这样的道路</td>
<td>我们找不到这样名字的水桶。请仔细检查。</td>
</tr>
<tr>
<td><code>13103</code></td>
<td>拒绝访问</td>
<td>Bucket 没有所需的权限。要了解如何授予我们必要的权限，请参阅 <a href="#upload-to-storage">这里</a>.</td>
</tr>
</tbody>
</table>
</div>
<hr />
<h4>参考资料</h4>
<ul>
<li><a href="https://docs.oxylabs.io/rtc/source/bing/index.html" target="_blank" rel="nofollow noopener">https://docs.oxylabs.io/rtc/source/bing/index.html</a></li>
<li><a href="https://docs.oxylabs.io/rtc/index.html" target="_blank" rel="nofollow noopener">https://docs.oxylabs.io/rtc/index.html</a></li>
</ul>
<p>&nbsp;</p>
<hr />
<blockquote><p><strong>免责声明</strong> 这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/oxylabs-bing-real-time-crawler/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7634</post-id>	</item>
		<item>
		<title>How to Use Bright Data API? Learn Manuals Before You Buy</title>
		<link>https://proxysp.com/zh/how-to-use-bright-data-api/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-use-bright-data-api</link>
					<comments>https://proxysp.com/zh/how-to-use-bright-data-api/#respond</comments>
		
		<dc:creator><![CDATA[proxysp]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[APIs]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=8710</guid>

					<description><![CDATA[想通过 Bright Data API 搜刮数据？我们为流行的编程语言提供了一些代码示例，您可以通过这些示例轻松了解...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/how-to-use-bright-data-api/"> <span class="screen-reader-text">如何使用 Bright Data API？购买前学习手册</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>想通过 Bright Data API 搜刮数据？我们为常用编程语言制作了一些代码示例，您可以通过这些代码轻松了解如何使用 Bright Data proxy API。</p></blockquote>
<p><a href="https://www.proxysp.com/redirect/brightdata" target="_blank" rel="nofollow noopener"><img loading="lazy" decoding="async" class="aligncenter wp-image-6287 size-full" src="https://www.proxysp.com/wp-content/uploads/2021/02/Bright-Data-homepage.jpg" alt="Bright Data homepage" width="1000" height="455" srcset="https://proxysp.com/wp-content/uploads/2021/02/Bright-Data-homepage.jpg 1000w, https://proxysp.com/wp-content/uploads/2021/02/Bright-Data-homepage-300x137.jpg 300w, https://proxysp.com/wp-content/uploads/2021/02/Bright-Data-homepage-768x349.jpg 768w" sizes="(max-width: 1000px) 100vw, 1000px" /></a></p>
<h2>Luminati 代理应用程序接口</h2>
<h3>用于浏览器或软件、</h3>
<p>在机器人、爬虫或其他软件中使用以下设置、</p>
<ol>
<li>代理： <b>zproxy.lum-superproxy.io</b></li>
<li>港口 <b>22225</b></li>
<li>用户： <b>lum-customer-Your_username- Your_zonesetting</b></li>
<li>密码 <b>0您的密码0</b></li>
</ol>
<hr />
<h3>外壳</h3>
<pre><span class="token function">卷曲</span> --代理 zproxy.lum-superproxy.io:22225 --代理用户 lum-customer-Your_username- Your_zonesetting:0Yourpasswords0 <span class="token string">"http://lumtest.com/myip.json"</span></pre>
<hr />
<h3>Node.js</h3>
<pre>#!/usr/bin/env node
require('request-promise')({
url：http://lumtest.com/myip.json'、
proxy: 'http://lum-customer-Your_username- Your_zonesetting:0Yourpasswords0@zproxy.lum-superproxy.io:22225'、
})
.then(function(data){ console.log(data); }、
function(err){ console.error(err); })；

Java

软件包示例；

import org.apache.http.HttpHost；
import org.apache.http.client.fluent.*；

公共类 示例 {
public static void main(String[] args) throws Exception {
System.out.println("To enable your free eval account and get "
+"CUSTOMER、YOURZONE 和 YOURPASS，请联系"
+"sales@brightdata.com")；
HttpHost proxy = new HttpHost("zproxy.lum-superproxy.io", 22225)；
字符串 res = Executor.newInstance()
.auth(proxy, "lum-customer-Your_username- Your_zonesetting", "0Yourpasswords0")
.execute(Request.Get("http://lumtest.com/myip.json").viaProxy(proxy))
.returnContent().asString()；
System.out.println(res)；
}
}</pre>
<hr />
<h3>C#</h3>
<pre>使用 System.Net
使用 System.Net；

类 示例
{
static void Main()
{
Console.WriteLine("To enable your free eval account and get CUSTOMER, "
+"YOURZONE 和 YOURPASS，请联系 sales@brightdata.com"）；
var client = new WebClient()；
client.Proxy = new WebProxy("zproxy.lum-superproxy.io:22225")；
client.Proxy.Credentials = new NetworkCredential("lum-customer-Your_username- Your_zonesetting", "0Yourpasswords0")；
Console.WriteLine(client.DownloadString("http://lumtest.com/myip.json"))；
}
}</pre>
<hr />
<h3>VB</h3>
<pre>导入 System.Net

模块 Module1
子程序 Main()
Console.WriteLine("To enable your free eval account and get " &amp;
"CUSTOMER、YOURZONE 和 YOURPASS，请联系 " &amp;
"sales@brightdata.com")
Dim Client As New WebClient
Client.Proxy = New WebProxy("http://zproxy.lum-superproxy.io:22225")
Client.Proxy.Credentials = New NetworkCredential("lum-customer-Your_username- Your_zonesetting", "0Yourpasswords0")
Console.WriteLine(Client.DownloadString("http://lumtest.com/myip.json"))
结束子
结束模块</pre>
<hr />
<h3>PHP</h3>
<pre>&lt;?php
echo 'To enable your free eval account and get CUSTOMER, YOURZONE and '
.'YOURPASS, please contact sales@brightdata.com';
$curl = curl_init('http://lumtest.com/myip.json');
curl_setopt($curl, CURLOPT_PROXY, 'http://zproxy.lum-superproxy.io:22225');
curl_setopt($curl, CURLOPT_PROXYUSERPWD, 'lum-customer-Your_username- Your_zonesetting:0Yourpasswords0');
curl_exec($curl);
?&gt;</pre>
<hr />
<h3>Python</h3>
<pre>#!/usr/bin/env python
print('If you get error "ImportError：No module named \'six\'" install six:\n'+\
'$ sudo pip install six')；
print('To enable your free eval account and get CUSTOMER, YOURZONE and ' +\ 'YOURPASS, please contact me.
'YOURPASS，请联系 sales@brightdata.com')
导入 sys
if sys.version_info[0]==2：
导入 six
from six.moves.urllib import request
opener = request.build_opener(
request.ProxyHandler(
{'http'：http://lum-customer-Your_username- Your_zonesetting:0Yourpasswords0@zproxy.lum-superproxy.io:22225'、
https': 'http://lum-customer-Your_username- Your_zonesetting:0Yourpasswords0@zproxy.lum-superproxy.io:22225'}))
print(opener.open('http://lumtest.com/myip.json').read())
如果 sys.version_info[0]==3：
导入 urllib.request
opener = urllib.request.build_opener(
urllib.request.ProxyHandler(
{'http'：http://lum-customer-Your_username- Your_zonesetting:0Yourpasswords0@zproxy.lum-superproxy.io:22225'、
https': 'http://lum-customer-Your_username- Your_zonesetting:0Yourpasswords0@zproxy.lum-superproxy.io:22225'}))
print(opener.open('http://lumtest.com/myip.json').read())</pre>
<hr />
<h3>红宝石</h3>
<pre>#!/usr/bin/ruby

require 'uri
require 'net/http'
需要 "net/https

写入 "要启用免费评估账户并获得 CUSTOMER、YOURZONE 和 YOURPASS，请联系 sales@brightdata.com

uri = URI.parse('http://lumtest.com/myip.json')
proxy = Net::HTTP::Proxy('zproxy.lum-superproxy.io', 22225, 'lum-customer-Your_username- Your_zonesetting', '0Yourpasswords0')

req = Net::HTTP::Get.new(uri.path)

result = proxy.start(uri.host,uri.port, :use_ssl =&gt; uri.scheme == 'https') do |http|
http.request(req)
结束

puts result.body</pre>
<h3>Perl</h3>
<pre>#!/usr/bin/perl
print '要启用免费评估账户并获取 CUSTOMER、YOURZONE 和 '
'YOURPASS，请联系 sales@brightdata.com'；
使用 LWP::UserAgent；
my $agent = LWP::UserAgent-&gt;new()；
$agent-&gt;proxy(['http', 'https'], "http://lum-customer-Your_username- Your_zonesetting:0Yourpasswords0\@zproxy.lum-superproxy.io:22225")；
print $agent-&gt;get('http://lumtest.com/myip.json')-&gt;content()；</pre>
<hr />
<h2 class="cp_page_header">搜索引擎爬虫 API</h2>
<h3>谷歌搜索爬虫 API</h3>
<h4>搜索</h4>
<p>本地化</p>
<div class="parameter_header">
<div class="parameter_label">熠     <span style="font-size: 16px;">用于定义搜索国家的双字母国家代码</span></div>
<div>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone:PASSWORD "http://www.google.com/search?q=pizza&amp;gl=us"</pre>
</div>
</div>
<div class="parameter_header">
<div class="parameter_label">hl     <span style="font-size: 16px;">用于定义页面语言的双字母语言代码</span></div>
<div>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone:PASSWORD "http://www.google.com/search?q=pizza&amp;hl=us"</pre>
</div>
<hr />
</div>
<p>搜索类型</p>
<div class="parameter_header">
<div class="parameter_label">tbm     <span style="font-size: 16px;">定义搜索类型。对于常规搜索，无需使用 </span><span class="parameter_label" style="font-size: 16px;">tbm</span><span style="font-size: 16px;"> 参数，而其他类型的 </span></div>
<div class="parameter_label"><span style="font-size: 16px;">            绝无仅有 </span><span class="parameter_label" style="font-size: 16px;">tbm</span><span style="font-size: 16px;"> 价值。</span></div>
</div>
<div class="parameter_input">            例如<br />
<span class="parameter_label">            tbm=isch</span> - 图像<br />
<span class="parameter_label">            tbm=shop</span> - 购物<br />
[%nws] - 新闻</div>
<div>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone:PASSWORD "http://www.google.com/search?q=pizza&amp;tbm=shop"</pre>
</div>
<div class="parameter_header">
<div class="parameter_label">ibp     <span style="font-size: 16px;">使用 </span><span class="parameter_label" style="font-size: 16px;">ibp</span><span style="font-size: 16px;"> 乔布斯搜索类型的参数。</span></div>
</div>
<div class="parameter_input">           例如<br />
<span class="parameter_label">           ibp=htl;jobs</span> - 工作机会</div>
<div>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD "http://www.google.com/search?q=pizza&ibp=htl%3Bjobs"</pre>
</div>
<hr />
<p>分页</p>
<div class="parameter_header">
<div class="parameter_label">启动     <span style="font-size: 16px;">定义结果偏移--结果从所选值开始。用于管理分页。</span></div>
</div>
<div class="parameter_input">             例如<br />
<span class="parameter_label">             start=0</span> (默认）- 第一页结果<br />
<span class="parameter_label">             start=10</span> - 第二页结果<br />
<span class="parameter_label">             开始=20</span> - 第三页结果等。</div>
<div>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone:PASSWORD "http://www.google.com/search?q=pizza&amp;start=10"</pre>
</div>
<div class="parameter_header">
<div class="parameter_label">木     <span style="font-size: 16px;">定义返回结果的数量。</span></div>
</div>
<div class="parameter_input">             例如<br />
<span class="parameter_label">             num=10</span> (默认）返回 10 个结果<br />
<span class="parameter_label">             num=30</span> 返回 30 个结果，等等。</div>
<div>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone:PASSWORD "http://www.google.com/search?q=pizza&amp;num=100"</pre>
</div>
<hr />
<p>地理位置</p>
<div class="parameter_header">
<div class="parameter_label">骡     <span style="font-size: 16px;">代表您希望用于搜索的编码位置，将用于更改地理位置。包含所有可用 </span><span class="parameter_label" style="font-size: 16px;">骡</span><span style="font-size: 16px;"> 值可以是 </span><a style="font-size: 16px; background-color: #ffffff;" href="https://developers.google.com/adwords/api/docs/appendix/geotargeting" target="_blank" rel="nofollow noopener">在此下载</a></div>
<div>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD "http://www.google.com/search?q=pizza&amp;uule=w+CAIQICINVW5pdGVkK1N0YXRlcw"</pre>
</div>
</div>
<hr />
<p>设备和输出格式</p>
<div class="parameter_header">
<div class="parameter_label">Lum_mobile     <span style="font-size: 16px;">定义要在用户代理中表示的设备类型</span></div>
</div>
<div class="parameter_input">
<p>                           默认或 <span class="parameter_label">lum_mobile=0</span> 将提供随机桌面用户代理，而 <span class="parameter_label">lum_mobile=1</span> 将提供随机的移动用户代理</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PA</code></pre>
</div>
</div>
</div>
</div>
</div>
<div class="parameter_header">
<div class="parameter_label">lum_json     <span style="font-size: 16px;">明亮的数据参数，允许返回解析后的 JSON 而不是原始 HTML</span></div>
</div>
<div class="parameter_input">                      例如<br />
<span class="parameter_label">                      lum_json=1</span> - 以 JSON 格式返回结果<br />
<span class="parameter_label">                      lum_json=html</span> - 返回带有包含原始 HTML 的 "html "字段的 JSON 文件<br />
<span class="parameter_label">                      lum_json=hotel</span> - 提出额外请求以检索酒店价格<br />
<span class="parameter_label">                      lum_json=hotel,html</span> - 用逗号分隔的两个值可以合并</div>
<div>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone:PASSWORD "http://www.google.com/search?q=pizza&amp;lum_json=1"</pre>
</div>
<hr />
<p>按图片搜索</p>
<div class="parameter_header">
<div class="parameter_label">下载     <span style="font-size: 16px;">在代理端下载图片，并使用 POST 请求发布到谷歌</span></div>
</div>
<div class="parameter_input">                       例如<br />
默认 - 如果谷歌无法下载图片，则下载后发布<br />
<span class="parameter_label">                       下载=1</span> - 强制下载并张贴图像<br />
<span class="parameter_label">                       下载=0</span> - 带图像 URL 的常规 GET 请求</div>
<div>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD "http://www.google.com/searchbyimage?image_url=https%3A%2F%2Flive.staticflickr.com%2F213%2F491726079_4f46636859_w.jpg&download=1"</pre>
</div>
<hr />
<p>多项请求</p>
<div class="parameter_header">
<div class="parameter_label">多     <span style="font-size: 16px;">使用 POST 请求通过我们的 API 服务器进行并行请求。</span></div>
</div>
<div class="parameter_input">               并行请求将使用相同的对等程序和会话，可用于比较测试，即对所选参数的两个不同值发出一对相同的请求<br />
<span class="parameter_label">               multi=[{"keyword": "pizza", "num":20},{"keyword": "pizza", "num":100}].</span> - 不同参数的同一关键词<br />
<span class="parameter_label">               multi=[{"关键字": "披萨"},{"关键字": "汉堡"}]</span> - 不同的关键词</div>
<div>
<pre class="p-0">curl -v -compressed "https://brightdata.com/api/serp/req" -H "Content-Type: application/json" -H "Authorization：Bearer API_TOKEN" -d "{\"country\":\"us\",\"multi\":[{\"keyword\":\"pizza\",\"num\":20},{\"keyword\":\"pizza\",\"num\":100}]}"</pre>
</div>
<hr />
<p>异步请求</p>
<div class="cp_serp_api_async_desc">发送请求，无需等待响应。通过指定端点或网络钩子收集结果。</div>
<div class="cp_serp_api_results_code">
<p class="faq_unit_item_p">要启动请求，请执行</p>
<pre class="p-0">RESPONSE_ID=`curl -i --silent -compressed "https://brightdata.com/api/serp/req?customer=username&amp;zone=ZONE" -H "Content-Type: application/json" -H "Authorization：Bearer " -d "{\"query\":{\"q\":\"pizza\"},\"country\":\"us\"}"| sed -En 's/^x-response-id: (.*)/\1/p' | tr -d '\r'`</pre>
</div>
<p>x-response-id "头将包含请求的 ID，以便在下一次请求中使用它来获取结果</p>
<pre class="p-0">curl -v --compressed "https://brightdata.com/api/serp/get_result?customer=username&amp;zone=ZONE&amp;response_id=${RESPONSE_ID}" -H "Authorization：Bearer "</pre>
<p>您可以在以下页面调整区段异步设置 <a href="https://brightdata.com/cp/zones?id=username" target="_blank" rel="nofollow noopener">分区页面</a>.<br />
可选设置：<br />
<b>结果寿命（天数）</b> - 结果保存天数<br />
<b>网络钩子 URL</b> - 交付成果<br />
<b>网络钩子请求方法</b> - 用于传送响应的 HTTP 方法，GET 或 POST 可选</p>
<hr />
<p>解析模式</p>
<div class="cp_serp_api_schema_desc">可以通过以下终端获取解析方案： <code>GET /api/serp/google/parsing_schema</code></div>
<div class="cp_serp_api_results_code">
<p class="faq_unit_item_p">要获取模式，请执行</p>
<pre class="p-0">curl --compressed "https://brightdata.com/api/serp/google/parsing_schema" -H "Authorization：Bearer API_TOKEN"</pre>
</div>
<hr />
<h4>地图</h4>
<p>本地化</p>
<div class="parameter_header">
<div class="parameter_label">熠     <span style="font-size: 16px;">用于定义搜索国家的双字母国家代码</span></div>
<div>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone:PASSWORD "http://www.google.com/maps/search/restaurants+new+york/?gl=us"</pre>
</div>
</div>
<div class="parameter_header">
<div class="parameter_label">hl <span style="font-size: 16px;">用于定义页面语言的双字母语言代码</span></div>
<div>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone:PASSWORD "http://www.google.com/maps/search/restaurants+new+york/?hl=en"</pre>
</div>
</div>
<hr />
<p>分页</p>
<div class="parameter_header">
<div class="parameter_label">启动     <span style="font-size: 16px;">定义结果偏移--结果从所选值开始。用于管理分页。</span></div>
</div>
<div class="parameter_input">             例如<br />
<span class="parameter_label">             start=0</span> (默认）- 第一页结果<br />
<span class="parameter_label">             开始=20</span> - 第二页结果<br />
<span class="parameter_label">             start=40</span> - 第三页结果等。</div>
<div>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD "http://www.google.com/maps/search/restaurants+new+york/?start=20"</pre>
</div>
<div class="parameter_header">
<div class="parameter_label">木     <span style="font-size: 16px;">定义返回结果的数量。</span></div>
</div>
<div class="parameter_input">             例如<br />
<span class="parameter_label">             num=40</span> (默认）返回 40 个结果<br />
<span class="parameter_label">             num=50</span> 返回 50 个结果，等等。</div>
<div>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD "http://www.google.com/maps/search/restaurants+new+york/?num=40"</pre>
</div>
<hr />
<p>输出格式</p>
<div class="parameter_header">
<div class="parameter_label">lum_json     <span style="font-size: 16px;">明亮的数据参数，允许返回解析后的 JSON 而不是原始 HTML</span></div>
</div>
<div class="parameter_input">                       例如<br />
<span class="parameter_label">                       lum_json=1</span> - 以 JSON 格式返回结果</div>
<div>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD "http://www.google.com/maps/search/restaurants+new+york/?lum_json=1"</pre>
</div>
<hr />
<h4>发展趋势</h4>
<p>地理</p>
<p><span style="font-size: 16px;">地理 </span><span style="font-size: 16px;">感兴趣的地点，双字母国家代码</span></p>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone:PASSWORD "http://trends.google.com/trends/explore?q=pizza&amp;geo=us"</pre>
<hr />
<p>本地化</p>
<div class="parameter_header">
<div class="parameter_label">hl     <span style="font-size: 16px;">首选语言，双字母语言代码</span></div>
<div>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone:PASSWORD "http://trends.google.com/trends/explore?q=pizza&amp;hl=de"</pre>
</div>
</div>
<hr />
<p>时间范围</p>
<div class="parameter_header">
<div class="parameter_label">日期     <span style="font-size: 16px;">要搜索的时间范围。可用值为</span></div>
</div>
<div class="parameter_input">             违约：过去 12 个月<br />
<span class="parameter_label">             现为 1-H</span> - 过去一小时<br />
<span class="parameter_label">             现在是4-H</span> - 过去 4 小时<br />
<span class="parameter_label">             现为一维</span> - 过去的一天<br />
<span class="parameter_label">             现在7d</span> - 过去 7 天<br />
<span class="parameter_label">             今天 1-m</span> - 过去 30 天<br />
<span class="parameter_label">             今天 3-m</span> - 过去 90 天<br />
<span class="parameter_label">             今天 12-m</span> - 过去 12 个月<br />
<span class="parameter_label">             今天 5-y</span> - 过去 5 年<br />
<span class="parameter_label">             2020-07-01 2020-12-31</span> - 自定义日期范围</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-</code></pre>
</div>
</div>
</div>
</div>
</div>
<hr />
<div class="title_header">
<div class="cp_title cp_title_small">类别</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_cat">
<div class="parameter_header">
<div class="parameter_label">猫     <span style="font-size: 16px;">要搜索的类别。默认在所有类别中搜索。</span></div>
</div>
<div class="parameter_input">
<p>           您可以找到所有类别的列表 <a href="https://trends.google.com/trends/api/explore/pickers/category?hl=en-US&tz=240" target="_blank" rel="noopener">这里</a>.</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"http:/</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
<hr />
<div class="title_header">
<div class="cp_title cp_title_small">搜索类型</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_gprop">
<div class="parameter_header">
<div class="parameter_label">gprop      <span style="font-size: 16px;">要过滤的 Google 属性。默认为网络搜索。</span></div>
</div>
<div class="parameter_input">
<p>                 可能的值是 <span class="parameter_label">图像</span>, <span class="parameter_label">新闻</span>, <span class="parameter_label">购物车</span>, <span class="parameter_label">视频</span></p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"http</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
<hr />
<div class="title_header">
<div class="cp_title cp_title_small">异步请求</div>
</div>
<div class="cp_serp_api_async_desc">发送请求，无需等待响应。通过指定端点或网络钩子收集结果。</div>
<div class="cp_serp_api_results_code">
<p class="faq_unit_item_p">要启动请求，请执行</p>
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token assign-left variable">响应标识</span><span class="token operator">=</span><span class="token variable">`<span class="token function">卷曲</span> -i --静音 --压缩 <span class="token string">"https://brightdata.com/api/serp/trends?customer=username&amp;zone=ZONE"</span> -H <span class="token string">"内容类型：应用程序/json"</span> -H <span class="token string">"授权：Bearer "</span> -d <span class="token string">"{<span class="token entity" title="\&quot;">\"</span>询问<span class="token entity" title="\&quot;">\"</span>:{<span class="token entity" title="\&quot;">\"</span>q<span class="token entity" title="\&quot;">\"</span>:<span class="token entity" title="\&quot;">\"</span>比萨饼<span class="token entity" title="\&quot;">\"</span>},<span class="token entity" title="\&quot;">\"</span>国家<span class="token entity" title="\&quot;">\"</span>:<span class="token entity" title="\&quot;">\"</span>我们<span class="token entity" title="\&quot;">\"</span>}"</span> <span class="token operator">|</span> <span class="token function">欙腓</span> -更多 <span class="token string">'s/^x-response-id: (.*)/<span class="token entity" title="\1">\1</span>/p'</span> <span class="token operator">|</span> <span class="token function">三</span> -d <span class="token string">'<span class="token entity" title="\r">\r</span>'</span>`</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="faq_unit_item_p">x-response-id "头将包含请求的 ID，以便在下一次请求中使用它来获取结果</p>
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v-压缩 <span class="token string">"https://brightdata.com/api/serp/get_result?customer=username&amp;zone=ZONE&amp;output=json&amp;response_id=<span class="token variable">${response_id}</span>"</span> -H <span class="token string">"授权：Bearer "</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p>您可以在以下页面调整区段异步设置 <a href="https://brightdata.com/cp/zones?id=username" target="_blank" rel="nofollow noopener">分区页面</a>.<br />
可选设置：<br />
<b>结果寿命（天数）</b> - 结果保存天数<br />
<b>网络钩子 URL</b> - 交付成果<br />
<b>网络钩子请求方法</b> - 用于传送响应的 HTTP 方法，GET 或 POST 可选</p>
<hr />
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="title_header">
<div>
<h4>评论</h4>
</div>
<div class="cp_title cp_title_small">特征 id</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_fid">
<div class="parameter_header">
<div class="parameter_label">fid 您要获取评论的功能 id。<br />
fid 参数可在谷歌搜索响应的 knowledge.fid 字段中找到。<br />
For example: http://www.google.com/search?q=hilton%20new%20york%20midtown</div>
</div>
<div class="parameter_input">
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"http://www.google.com/reviews?fid=0x808fba02425dad8f%3A0x6c296c66619367e0"</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny">
<hr />
<p><span style="font-size: 16px;">本地化</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="parameter_item parameter_item_api parameter_item_hl">
<div class="parameter_header">
<div class="parameter_label">hl      <span style="font-size: 16px;">首选语言，双字母语言代码</span></div>
</div>
<div class="parameter_input">
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"http://www.google.com/reviews?hl=de&fid=0x808fba02425dad8f%3A0x6c296c66619367e0"</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="title_header">
<div class="cp_title cp_title_small">
<hr />
<p>排序和筛选</p>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_sort">
<div class="parameter_header">
<div class="parameter_label">分类      <span style="font-size: 16px;">评论的排序方式。可能的值有</span></div>
</div>
<div class="parameter_input"><span class="parameter_label">             sort=qualityScore</span> (默认） - 最相关的优先<br />
<span class="parameter_label">             sort=newestFirst</span> - 最新第一<br />
<span class="parameter_label">             排序=评分高</span> - 最高分优先<br />
<span class="parameter_label">             排序=评分低</span> - 最低评级优先</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"http://www.google.com/reviews?fid=0x808fba02425dad8f%3A0x6c296c66619367e0&sort=newestFirst"</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_filter">
<div class="parameter_header">
<div class="parameter_label">过滤     <span style="font-size: 16px;">过滤关键字。只回复包含指定关键词的评论。例如</span></div>
</div>
<div class="parameter_input">
<p><span class="parameter_label">              过滤器=真棒</span> - 搜索包含 "真棒 "一词的评论</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"http://www.google.com/reviews?filter=awesome&fid=0x808fba02425dad8f%3A0x6c296c66619367e0"</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="title_header">
<div class="cp_title cp_title_small">
<hr />
<p>分页</p>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_start">
<div class="parameter_header">
<div class="parameter_label">启动     <span style="font-size: 16px;">定义结果偏移--结果从所选值开始。用于管理分页。</span></div>
</div>
<div class="parameter_input">             例如<br />
<span class="parameter_label">             start=0</span> (默认）- 第一页结果<br />
<span class="parameter_label">             start=10</span> - 第二页结果<br />
<span class="parameter_label">             开始=20</span> - 第三页结果等。</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"http://www.google.com/reviews?start=10&fid=0x808fba02425dad8f%3A0x6c296c66619367e0"</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="title_header">
<div class="cp_title cp_title_small">
<hr />
<p>异步请求</p>
</div>
</div>
<div class="cp_serp_api_async_desc">发送请求，无需等待响应。通过指定端点或网络钩子收集结果。</div>
<div class="cp_serp_api_results_code">
<p class="faq_unit_item_p">要启动请求，请执行</p>
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token assign-left variable">响应标识</span><span class="token operator">=</span><span class="token variable">`<span class="token function">卷曲</span> -i --静音 --压缩 <span class="token string">"https://brightdata.com/api/serp/reviews?customer=username&amp;zone=ZONE"</span> -H <span class="token string">"内容类型：应用程序/json"</span> -H <span class="token string">"授权：Bearer "</span> -d <span class="token string">"{<span class="token entity" title="\&quot;">\"</span>询问<span class="token entity" title="\&quot;">\"</span>:{<span class="token entity" title="\&quot;">\"</span>我<span class="token entity" title="\&quot;">\"</span>:<span class="token entity" title="\&quot;">\"</span>0x808fba02425dad8f:0x6c296c66619367e0<span class="token entity" title="\&quot;">\"</span>},<span class="token entity" title="\&quot;">\"</span>国家<span class="token entity" title="\&quot;">\"</span>:<span class="token entity" title="\&quot;">\"</span>我们<span class="token entity" title="\&quot;">\"</span>}"</span> <span class="token operator">|</span> <span class="token function">欙腓</span> -更多 <span class="token string">'s/^x-response-id: (.*)/<span class="token entity" title="\1">\1</span>/p'</span> <span class="token operator">|</span> <span class="token function">三</span> -d <span class="token string">'<span class="token entity" title="\r">\r</span>'</span>`</span></code></pre>
</div>
</div>
</div>
<p class="faq_unit_item_p">x-response-id "头将包含请求的 ID，以便在下一次请求中使用它来获取结果</p>
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v-压缩 <span class="token string">"https://brightdata.com/api/serp/get_result?customer=username&amp;zone=ZONE&amp;response_id=<span class="token variable">${response_id}</span>"</span> -H <span class="token string">"授权：Bearer "</span></code></pre>
</div>
</div>
</div>
</div>
<p>您可以在以下页面调整区段异步设置 <a href="https://brightdata.com/cp/zones?id=username" target="_blank" rel="nofollow noopener">分区页面</a>.<br />
可选设置：<br />
<b>结果寿命（天数）</b> - 结果保存天数<br />
<b>网络钩子 URL</b> - 交付成果<br />
<b>网络钩子请求方法</b> - 用于传送响应的 HTTP 方法，GET 或 POST 可选</p>
</div>
</div>
</div>
</div>
<hr />
<h3>必应搜索爬虫 API</h3>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="title_header">
<div class="cp_title cp_title_small">本地化</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_cc">
<div class="parameter_header">
<div class="parameter_label">cc     <span style="font-size: 16px;">用于定义搜索国家的双字母国家代码</span></div>
</div>
<div class="parameter_input">
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"http://www.bing.com/search?q=pizza&amp;cc=us"</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny">
<hr />
<p><span style="font-size: 16px;">地理位置</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="parameter_item parameter_item_api parameter_item_location">
<div class="parameter_header">
<div class="parameter_label">地点     <span style="font-size: 16px;">搜索原点的位置。</span></div>
</div>
<div class="parameter_input">
<p><span class="parameter_label">                    纬度</span> 和 <span class="parameter_label">长</span> 还必须指定参数</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"http://www.bing.com/search?q=pizza&location=New+York%2C+New+York%2C+United+States&lat=40.7001958&lon=-74.1087142"</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny"><span style="font-size: 16px;">纬度     </span><span style="font-size: 16px;">搜索原点的 GPS 纬度</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_lat">
<div class="parameter_input">
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"http://www.bing.com/search?q=pizza&amp;lat=40.7001958&amp;lon=-74.1087142"</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny"><span style="font-size: 16px;">长     </span><span style="font-size: 16px;">搜索原点的 GPS 经度</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_lon">
<div class="parameter_input">
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"http://www.bing.com/search?q=pizza&amp;lat=40.7001958&amp;lon=-74.1087142"</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny"><span style="font-size: 16px;">市场     </span><span style="font-size: 16px;">搜索结果来自的市场。使用 </span><a style="font-size: 16px; background-color: #ffffff;" href="https://brightdata.com/api/serp/bing/mkt_values" target="_blank" rel="noopener">此链接</a><span style="font-size: 16px;"> 来查看所有可选值。</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_mkt">
<div class="parameter_input">
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"http://www.bing.com/search?q=pizza&amp;mkt=en-US"</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="title_header">
<div class="cp_title cp_title_small">
<hr />
<p>分页</p>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_first">
<div class="parameter_header">
<div class="parameter_label">第一次     <span style="font-size: 16px;">定义结果偏移--结果从所选值开始。用于管理分页。</span></div>
</div>
<div class="parameter_input">             例如<br />
<span class="parameter_label">             first=1</span> (默认）- 第一页结果<br />
<span class="parameter_label">             first=11</span> - 第二页结果<br />
<span class="parameter_label">             first=21</span> - 第三页结果等。</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"http://www.bing.com/search?q=pizza&amp;first=11"</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny"><span style="font-size: 16px;">计数     </span><span style="font-size: 16px;">定义返回结果的数量。</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_count">
<div class="parameter_input">                例如<br />
<span class="parameter_label">                count=10</span> (默认）返回 10 个结果<br />
<span class="parameter_label">                count=30</span> 返回 30 个结果，等等。</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"http://www.bing.com/search?q=pizza&amp;num=20"</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny">
<hr />
<p><span style="font-size: 16px;">设备和输出格式</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="parameter_item parameter_item_api parameter_item_lum_mobile">
<div class="parameter_header">
<div class="parameter_label">Lum_mobile     <span style="font-size: 16px;">定义要在用户代理中表示的设备类型</span></div>
</div>
<div class="parameter_input">
<p>                           默认或 <span class="parameter_label">lum_mobile=0</span> 将提供随机桌面用户代理，而 <span class="parameter_label">lum_mobile=1</span> 将提供随机的移动用户代理</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"http://www.bing.com/search?q=pizza&amp;lum_mobile=1"</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny"><span style="font-size: 16px;">lum_json     </span><span style="font-size: 16px;">明亮的数据参数，允许返回解析后的 JSON 而不是原始 HTML</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_lum_json">
<div class="parameter_input">                       例如<br />
<span class="parameter_label">                       lum_json=1</span> - 以 JSON 格式返回结果<br />
<span class="parameter_label">                       lum_json=html</span> - 返回带有包含原始 HTML 的 "html "字段的 JSON 文件<br />
<span class="parameter_label">                       lum_json=hotel</span> - 提出额外请求以检索酒店价格<br />
<span class="parameter_label">                       lum_json=hotel,html</span> - 用逗号分隔的两个值可以合并</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"http://www.bing.com/search?q=pizza&amp;lum_json=1"</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="title_header">
<div class="cp_title cp_title_small">
<hr />
<p>异步请求</p>
</div>
</div>
<div class="cp_serp_api_async_desc">发送请求，无需等待响应。通过指定端点或网络钩子收集结果。</div>
<div class="cp_serp_api_results_code">
<p class="faq_unit_item_p">要启动请求，请执行</p>
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token assign-left variable">响应标识</span><span class="token operator">=</span><span class="token variable">`<span class="token function">卷曲</span> -i --静音 --压缩 <span class="token string">"https://brightdata.com/api/serp/bing/search?customer=username&amp;zone=ZONE"</span> -H <span class="token string">"内容类型：应用程序/json"</span> -H <span class="token string">"授权：Bearer "</span> -d <span class="token string">"{<span class="token entity" title="\&quot;">\"</span>询问<span class="token entity" title="\&quot;">\"</span>:{<span class="token entity" title="\&quot;">\"</span>q<span class="token entity" title="\&quot;">\"</span>:<span class="token entity" title="\&quot;">\"</span>比萨饼<span class="token entity" title="\&quot;">\"</span>},<span class="token entity" title="\&quot;">\"</span>国家<span class="token entity" title="\&quot;">\"</span>:<span class="token entity" title="\&quot;">\"</span>我们<span class="token entity" title="\&quot;">\"</span>}"</span> <span class="token operator">|</span> <span class="token function">欙腓</span> -更多 <span class="token string">'s/^x-response-id: (.*)/<span class="token entity" title="\1">\1</span>/p'</span> <span class="token operator">|</span> <span class="token function">三</span> -d <span class="token string">'<span class="token entity" title="\r">\r</span>'</span>`</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny"><span style="font-size: 16px;">x-response-id "头将包含请求的 ID，以便在下一次请求中使用它来获取结果</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v-压缩 <span class="token string">"https://brightdata.com/api/serp/get_result?customer=username&amp;zone=ZONE&amp;response_id=<span class="token variable">${response_id}</span>"</span> -H <span class="token string">"授权：Bearer "</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny"><span style="font-size: 16px;">您可以在以下页面调整区段异步设置 </span><a style="font-size: 16px; background-color: #ffffff;" href="https://brightdata.com/cp/zones?id=username" target="_blank" rel="nofollow noopener">分区页面</a><span style="font-size: 16px;">.</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p>可选设置：<br />
<b>结果寿命（天数）</b> - 结果保存天数<br />
<b>网络钩子 URL</b> - 交付成果<br />
<b>网络钩子请求方法</b> - 用于传送响应的 HTTP 方法，GET 或 POST 可选</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="title_header">
<div class="cp_title cp_title_small">
<hr />
<p>解析模式</p>
</div>
</div>
<div class="cp_serp_api_schema_desc">可以通过以下终端获取解析方案： <code>GET /api/serp/bing/parsing_schema</code></div>
<div class="cp_serp_api_results_code">
<p class="faq_unit_item_p">要获取模式，请执行</p>
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> --压缩 <span class="token string">"https://brightdata.com/api/serp/bing/parsing_schema"</span> -H <span class="token string">"授权：Bearer API_TOKEN"</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<hr />
<h3 class="cp_tab_label">Yandex 搜索爬虫 API</h3>
<div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="title_header">
<div class="cp_title cp_title_small">本地化</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_lr">
<div class="parameter_header">
<div class="parameter_label">lr     <span style="font-size: 16px;">要搜索的地区或国家。例如</span></div>
</div>
<div class="parameter_input"><span class="parameter_label">        1</span> - 莫斯科<br />
<span class="parameter_label">        2</span> - 圣彼得堡<br />
<span class="parameter_label">        84</span> - 美国<br />
<span class="parameter_label">        95</span> - 加拿大<br />
<span class="parameter_label">       134</span> - 中国</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"https://www.yandex.com/search/?text=pizza&amp;lr=84"</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny"><span style="font-size: 16px;">朗     </span><span style="font-size: 16px;">用于定义页面语言的双字母语言代码</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_lang">
<div class="parameter_input">
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"https://www.yandex.com/search/?text=pizza&amp;lang=en"</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="title_header">
<div class="cp_title cp_title_small">
<hr />
<p>分页</p>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_p">
<div class="parameter_header">
<div class="parameter_label">p     <span style="font-size: 16px;">定义结果页面--从所选值开始的结果。用于管理分页。</span></div>
</div>
<div class="parameter_input">       例如<br />
<span class="parameter_label">       p=1</span> (默认）- 第一页结果<br />
<span class="parameter_label">       p=2</span> - 第二页结果<br />
<span class="parameter_label">       p=4</span> - 第四页结果等。</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"https://www.yandex.com/search/?text=pizza&amp;p=1"</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny"><span style="font-size: 16px;">numdoc      </span><span style="font-size: 16px;">定义返回结果的数量。</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_numdoc">
<div class="parameter_input">
<p>                     取值 <span class="parameter_label">10</span>, <span class="parameter_label">20</span>, <span class="parameter_label">30</span>和 <span class="parameter_label">10</span>.使用这些值以外的数字时，如果小于 <span class="parameter_label">50</span>时，四舍五入到最接近的数字。当使用超过 <span class="parameter_label">50</span>四舍五入为 <span class="parameter_label">50</span> 发生。</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"https://www.yandex.com/search/?text=pizza&amp;numdoc=10"</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="title_header">
<div class="cp_title cp_title_small">
<hr />
<p>时间范围</p>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_within">
<div class="parameter_header">
<div class="parameter_label">内     <span style="font-size: 16px;">要搜索的时间范围。可用值为</span></div>
</div>
<div class="parameter_input"><span class="parameter_label">                 1</span> - 过去两周<br />
<span class="parameter_label">                 2</span> - 过去一个月<br />
<span class="parameter_label">                 3</span> - 过去 3 个月<br />
<span class="parameter_label">                 4</span> - 过去 6 个月<br />
<span class="parameter_label">                 5</span> - 过去一年<br />
<span class="parameter_label">                 6</span> - 过去两年<br />
<span class="parameter_label">                 7</span> - 过去的一天<br />
<span class="parameter_label">                 77</span> - 过去 24 小时<br />
<span class="parameter_label">                 8</span> - 过去 3 天<br />
<span class="parameter_label">                 9</span> - 过去一周</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"https://www.yandex.com/search/?text=pizza&amp;within=1"</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny"><span style="font-size: 16px;">完整日期     </span><span style="font-size: 16px;">定义结果开始日期。用于管理时间范围（格式为 DD.MM.YYYY）。</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_from_date_full">
<div class="parameter_input">                                 例如<br />
<span class="parameter_label">                                 from_date_full=12.12.2020</span> - 起始日期</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"https://www.yandex.com/search/?text=pizza&amp;from_date_full=12.12.2020"</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny"><span style="font-size: 16px;">至完整日期      </span><span style="font-size: 16px;">定义结果结束日期。用于管理时间范围（格式为 DD.MM.YYYY）。</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_to_date_full">
<div class="parameter_input">                             例如<br />
<span class="parameter_label">                             to_date_full=01.01.2021</span> - 搜索结束日期</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"https://www.yandex.com/search/?text=pizza&amp;to_date_full=01.01.2021"</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="title_header">
<div class="btn_icon btn_icon_no_link btn_icon_no_hover">
<div class="btn_icon_ic btn_icon_ic_perm_serp btn_icon_ic_small">
<hr />
<p><span style="font-size: 16px;">设备和输出格式</span></p>
</div>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_lum_mobile">
<div class="parameter_header">
<div class="parameter_label">Lum_mobile      <span style="font-size: 16px;">定义要在用户代理中表示的设备类型</span></div>
</div>
<div class="parameter_input">
<p>                            默认或 <span class="parameter_label">lum_mobile=0</span> 将提供随机桌面用户代理，而 <span class="parameter_label">lum_mobile=1</span> 将提供随机的移动用户代理</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"https://www.yandex.com/search/?lum_mobile=1&amp;text=pizza"</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="title_header">
<div class="cp_title cp_title_small">
<hr />
<p>异步请求</p>
</div>
</div>
<div class="cp_serp_api_async_desc">发送请求，无需等待响应。通过指定端点或网络钩子收集结果。</div>
<div class="cp_serp_api_results_code">
<p class="faq_unit_item_p">要启动请求，请执行</p>
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token assign-left variable">响应标识</span><span class="token operator">=</span><span class="token variable">`<span class="token function">卷曲</span> -i --静音 --压缩 <span class="token string">"https://brightdata.com/api/serp/yandex/search?customer=username&amp;zone=ZONE"</span> -H <span class="token string">"内容类型：应用程序/json"</span> -H <span class="token string">"授权：Bearer "</span> -d <span class="token string">"{<span class="token entity" title="\&quot;">\"</span>询问<span class="token entity" title="\&quot;">\"</span>:{<span class="token entity" title="\&quot;">\"</span>文本<span class="token entity" title="\&quot;">\"</span>:<span class="token entity" title="\&quot;">\"</span>比萨饼<span class="token entity" title="\&quot;">\"</span>},<span class="token entity" title="\&quot;">\"</span>国家<span class="token entity" title="\&quot;">\"</span>:<span class="token entity" title="\&quot;">\"</span>我们<span class="token entity" title="\&quot;">\"</span>}"</span> <span class="token operator">|</span> <span class="token function">欙腓</span> -更多 <span class="token string">'s/^x-response-id: (.*)/<span class="token entity" title="\1">\1</span>/p'</span> <span class="token operator">|</span> <span class="token function">三</span> -d <span class="token string">'<span class="token entity" title="\r">\r</span>'</span>`</span></code></pre>
</div>
</div>
</div>
<p class="faq_unit_item_p">x-response-id "头将包含请求的 ID，以便在下一次请求中使用它来获取结果</p>
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v-压缩 <span class="token string">"https://brightdata.com/api/serp/get_result?customer=username&amp;zone=ZONE&amp;response_id=<span class="token variable">${response_id}</span>"</span> -H <span class="token string">"授权：Bearer "</span></code></pre>
</div>
</div>
</div>
</div>
<p>您可以在以下页面调整区段异步设置 <a href="https://brightdata.com/cp/zones?id=username" target="_blank" rel="nofollow noopener">分区页面</a>.<br />
可选设置：<br />
<b>结果寿命（天数）</b> - 结果保存天数<br />
<b>网络钩子 URL</b> - 交付成果<br />
<b>网络钩子请求方法</b> - 用于传送响应的 HTTP 方法，GET 或 POST 可选</p>
</div>
</div>
</div>
</div>
</div>
<div class="cp_tab">
<hr />
<h3 class="cp_tab_label">DuckDuckGo 搜索爬虫 API</h3>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="title_header">
<div class="cp_title cp_title_small">本地化</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_kl">
<div class="parameter_header">
<div class="parameter_label">kl     <span style="font-size: 16px;">用于定义搜索国家和语言的国家和语言代码</span></div>
</div>
<div class="parameter_input">
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"https://duckduckgo.com/?q=pizza&amp;kl=us-en"</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny">
<hr />
<p><span style="font-size: 16px;">安全搜索</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="parameter_item parameter_item_api parameter_item_kp">
<div class="parameter_header">
<div class="parameter_label">kp     <span style="font-size: 16px;">从搜索结果中删除成人内容。</span></div>
</div>
<div class="parameter_input">         可用值为<br />
<span class="parameter_label">         1</span> - 打开安全搜索</div>
<div class="parameter_input"><span class="parameter_label">         3</span> - 缓和搜索内容<br />
<span class="parameter_label">         3</span> - 关闭安全搜索</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"https://duckduckgo.com/?q=pizza&amp;kp=1"</span></code></pre>
<div class="zcode_tooltip zcode_tooltip--bottom">
<div class="copy_wrapper">
<div class="btn_icon btn_icon_circle">
<div class="btn_icon_ic btn_icon_ic_copy btn_icon_ic_tiny">
<hr />
<p><span style="font-size: 16px;">时间范围</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="parameter_item parameter_item_api parameter_item_df">
<div class="parameter_header">
<div class="parameter_label">df     <span style="font-size: 16px;">要搜索的时间范围。可用值为</span></div>
</div>
<div class="parameter_input"><span class="parameter_label">         d</span> - 过去两周<br />
<span class="parameter_label">         w</span> - 过去一个月<br />
<span class="parameter_label">         m</span> - 过去 3 个月<br />
<span class="parameter_label">         w</span> - 过去 6 个月</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"https://duckduckgo.com/?q=pizza&amp;df=d"</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="title_header">
<div class="cp_title cp_title_small">
<hr />
<p>设备和输出格式</p>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_lum_mobile">
<div class="parameter_header">
<div class="parameter_label">Lum_mobile     <span style="font-size: 16px;">定义要在用户代理中表示的设备类型</span></div>
</div>
<div class="parameter_input">
<p>                           默认或 <span class="parameter_label">lum_mobile=0</span> 将提供随机桌面用户代理，而 <span class="parameter_label">lum_mobile=1</span> 将提供随机的移动用户代理</p>
<div class="cp_serp_api_results_code">
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"https://duckduckgo.com/?q=pizza&amp;lum_mobile=1"</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="cp_container parameters_unit">
<div class="cp_container_content">
<div class="title_header">
<div class="cp_title cp_title_small">
<hr />
<p>异步请求</p>
</div>
</div>
<div class="cp_serp_api_async_desc">发送请求，无需等待响应。通过指定端点或网络钩子收集结果。</div>
<div class="cp_serp_api_results_code">
<p class="faq_unit_item_p">要启动请求，请执行</p>
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token assign-left variable">响应标识</span><span class="token operator">=</span><span class="token variable">`<span class="token function">卷曲</span> -i --静音 --压缩 <span class="token string">"https://brightdata.com/api/serp/duckduckgo/search?customer=username&amp;zone=ZONE"</span> -H <span class="token string">"内容类型：应用程序/json"</span> -H <span class="token string">"授权：Bearer "</span> -d <span class="token string">"{<span class="token entity" title="\&quot;">\"</span>询问<span class="token entity" title="\&quot;">\"</span>:{<span class="token entity" title="\&quot;">\"</span>q<span class="token entity" title="\&quot;">\"</span>:<span class="token entity" title="\&quot;">\"</span>比萨饼<span class="token entity" title="\&quot;">\"</span>},<span class="token entity" title="\&quot;">\"</span>国家<span class="token entity" title="\&quot;">\"</span>:<span class="token entity" title="\&quot;">\"</span>我们<span class="token entity" title="\&quot;">\"</span>}"</span> <span class="token operator">|</span> <span class="token function">欙腓</span> -更多 <span class="token string">'s/^x-response-id: (.*)/<span class="token entity" title="\1">\1</span>/p'</span> <span class="token operator">|</span> <span class="token function">三</span> -d <span class="token string">'<span class="token entity" title="\r">\r</span>'</span>`</span></code></pre>
</div>
</div>
</div>
<p class="faq_unit_item_p">x-response-id "头将包含请求的 ID，以便在下一次请求中使用它来获取结果</p>
<div class="copy-container">
<div class="zcode_wrapper">
<div class="zcode_source">
<pre class="language-bash"><code class="zcode_lang_source zcode_lang_source--mh1 language-bash"><span class="token function">卷曲</span> -v-压缩 <span class="token string">"https://brightdata.com/api/serp/get_result?customer=username&amp;zone=ZONE&amp;response_id=<span class="token variable">${response_id}</span>"</span> -H <span class="token string">"授权：Bearer "</span></code></pre>
</div>
</div>
</div>
</div>
<p>您可以在以下页面调整区段异步设置 <a href="https://brightdata.com/cp/zones?id=username" target="_blank" rel="nofollow noopener">分区页面</a>.<br />
可选设置：<br />
<b>结果寿命（天数）</b> - 结果保存天数<br />
<b>网络钩子 URL</b> - 交付成果<br />
<b>网络钩子请求方法</b> - 用于传送响应的 HTTP 方法，GET 或 POST 可选</p>
</div>
</div>
</div>
</div>
</div>
<hr />
<h4>资源</h4>
<ul>
<li><a href="https://www.bestproxyreviews.com/luminati/" target="_blank" rel="noopener">https://www.bestproxyreviews.com/luminati/</a></li>
<li><a href="https://brightdata.com/cp/serp_api/api/google" target="_blank" rel="nofollow noopener">https://brightdata.com/cp/serp_api/playground/google</a></li>
</ul>
<hr />
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/how-to-use-bright-data-api/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">8710</post-id>	</item>
		<item>
		<title>How to Use Free ProxyScrape API</title>
		<link>https://proxysp.com/zh/free-proxyscrape-api/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=free-proxyscrape-api</link>
					<comments>https://proxysp.com/zh/free-proxyscrape-api/#respond</comments>
		
		<dc:creator><![CDATA[proxysp]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[Manuals]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=8485</guid>

					<description><![CDATA[你知道如何使用免费的 ProxyScrape API 吗？本文将为您提供详细指导。此 API 用于我们的免费代理列表和...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/free-proxyscrape-api/"> <span class="screen-reader-text">如何使用免费的 ProxyScrape API</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>你知道如何使用免费的 ProxyScrape API 吗？本文将为您提供详细指导。</p></blockquote>
<p>该 API 用于我们的免费代理列表，其返回的结果可在任何地方免费使用。</p>
<h2>获取代理列表</h2>
<pre>https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all</pre>
<div>
<div><strong>代码样本、</strong></div>
<div></div>
<div>
<h3>C#</h3>
<pre>var client = new RestClient("https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all"); client.Timeout = -1; var request = new RestRequest(Method.GET); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content)；</pre>
<h3>CURL</h3>
<pre>curl --location --request GET 'https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all'</pre>
<h3>飞镖 - Http</h3>
<pre>var request = http.Request('GET', Uri.parse('https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all')); http.StreamedResponse response = await request.send(); if (response.statusCode == 200) { print(await response.stream.bytesToString()); } else { print(response.reasonPhrase); } }</pre>
<h3>围棋 - 本地</h3>
<pre>package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all" method := "GET" client := &amp;http.Client { } req, err := http.NewRequest(method, url, nil) if err != nil { fmt.Println(err return } res, err := client.Do(req) if err != nilNewRequest(method, url, nil) if err != nil { fmt.Println(err) return } res, err := client.Do(req) if err != nil { fmt.Println(err) return } defer res.Body.Close() body, err := ioutil.ReadAll(res.Body) if err != nil { fmt.Println(err) return } fmt.Println(string(body)) }</pre>
<h3>超文本传输协定</h3>
<pre>GET /v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all HTTP/1.1 Host: api.proxyscrape.com</pre>
<h3>java okhttp</h3>
<pre>OkHttpClient client = new OkHttpClient().newBuilder() .build(); Request request = new Request.Builder() .url("https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all") .method("GET", null) .build(); Response response = client.newCall(request).execute()；</pre>
</div>
</div>
<h3>JavaScript - 抓取</h3>
<pre>var requestOptions = { method: 'GET', redirect: 'follow' }; fetch("https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all", requestOptions) .then(response =&gt; response.text()) .then(result =&gt; console.log(result)) .catch(error =&gt; console.log('error', error))；</pre>
<h3>JavaScript - jQuery</h3>
<pre>var settings = { "url"："https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all", "method"："GET", "timeout"：0, }; $.ajax(settings).done(function (response) { console.log(response); })；</pre>
<h3>JavaScript - XHR</h3>
<pre> var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener("readystatechange", function() { if(this.readyState === 4) { console.log(this.responseText); }.}); xhr.open("GET", "https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all"); xhr.send()；</pre>
<h3>C - libcurl</h3>
<pre>CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(curl, CURLOPT_URL, "https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all"); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https")；struct curl_slist *headers = NULL; curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); res = curl_easy_perform(curl); } curl_easy_cleanup(curl)；</pre>
<h3>NodeJs - Axios</h3>
<pre>var axios = require('axios'); var config = { method: 'get', url：https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all', headers：{ }}; axios(config) .then(function (response) { console.log(JSON.stringify(response.data)); }) .catch(function (error) { console.log(error); })；</pre>
<div class="styles__LanguageDropdownContainer-a58kfo-12 jvdkTJ">
<div class="styles__DropDownContainer-a58kfo-0 htYUoE" tabindex="-1">
<div class="styles__DropdownSelectorContainer-a58kfo-11 cvEhHU">
<div class="styles__DropDownHeader-a58kfo-1 fpZSxZ">
<h3 class="styles__DropDownValue-a58kfo-3 dUOehM">NodeJs - 本地</h3>
<pre>var https = require('follow-redirects').https; var fs = require('fs'); var options = { 'method': 'GET', 'hostname': 'api.proxyscrape.com', 'path': '/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all', 'headers': { }, 'maxRedirects': 20 }; var req = https.request(options, function (res) { var chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function (chunk) { var body = Buffer.concat(chunks); console.log(body.toString()); }); res.on("error", function (error) { console.error(error); }); }); req.end()；</pre>
<div></div>
</div>
<h3>DNodeJs - 请求</h3>
</div>
</div>
</div>
<pre>var request = require('request'); var options = { 'method': 'GET', 'url': 'https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all', 'headers': { }.}; request(options, function (error, response) { if (error) throw new Error(error); console.log(response.body); })；</pre>
<div></div>
<h3>PHP - cURL</h3>
<pre>'https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all', CURLOPT_RETURNTRANSFER =&gt; true, CURLOPT_ENCODING =&gt; ''、CURLOPT_MAXREDIRS =&gt; 10, CURLOPT_TIMEOUT =&gt; 0, CURLOPT_FOLLOWLOCATION =&gt; true, CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST =&gt; 'GET', ))；$response = curl_exec($curl); curl_close($curl); echo $response；</pre>
<div></div>
<h3>Python - http.client</h3>
<pre>import http.client conn = http.client.HTTPSConnection("api.proxyscrape.com") payload = '' headers = {} conn.request("GET", "/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))</pre>
<div></div>
<h3>Python - 请求</h3>
<pre>import requests url = "https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all" payload={} headers = {} response = requests.request("GET", url, headers=headers, data=payload) print(response.text)</pre>
<div></div>
<h3>Ruby - Net::HTTP</h3>
<pre>require "uri" require "net/http" url = URI("https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all") https = Net::HTTP.new(url.host, url.port) https.use_ssl = true request = Net::HTTP::Get.new(url) response = https.request(request) puts response.read_body</pre>
<div></div>
<h3>外壳 - Httpie</h3>
<pre>http --follow --timeout 3600 GET 'https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all'</pre>
<div></div>
<h3>外壳 - 获取</h3>
<pre>wget --no-check-certificate --quiet \ --method GET \ --timeout=0 \ --header '' \ 'https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all'</pre>
<p>&nbsp;</p>
<h3>Swift - URLSession</h3>
<pre>import Foundation #if canImport(FoundationNetworking) import FoundationNetworking #endif var semaphore = DispatchSemaphore (value: 0) var request = URLRequest(url：URL(string："https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all")!,timeoutInterval：request.httpMethod = "GET" let task = URLSession.shared.dataTask(with: request) { data, response, error in guard let data = data else { print(String(describing: error)) semaphore.signal() return } print(String(data: data, encoding: .utf8)!) semaphore.signal() } task.resume() semaphore.wait()</pre>
<div></div>
<div>
<div>参数</div>
<div><div class="su-table su-table-responsive su-table-alternate su-table-fixed"></div>
<div>
<table width="298">
<tbody>
<tr>
<td style="font-weight: 400;" width="72">要求</td>
<td style="font-weight: 400;" width="226">显示代理<br />
定义代理是在浏览器中下载还是显示。可能的值</p>
<ul>
<li>displayproxies：在浏览器中显示代理服务器</li>
<li>getproxies：下载代理服务器</li>
</ul>
</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">规程</td>
<td style="font-weight: 400;" width="226">http<br />
应下载的代理协议。可能的值</p>
<ul>
<li>http</li>
<li>袜子4</li>
<li>袜子5</li>
<li>一应俱全</li>
</ul>
<p>如果要同时下载两个协议，可以用逗号分隔这些值，例如：protocol=socks4,socks5<br />
如果未定义此参数，则默认为全部。</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">超时</td>
<td style="font-weight: 400;" width="226">10000<br />
应下载代理的最大超时（毫秒）。</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">国家</td>
<td style="font-weight: 400;" width="226">一应俱全<br />
国家参数可以是任何 Alpha 2 ISO 国家代码或 "全部"。未定义国家时，国家将自动设置为 "全部"。您也可以在一个请求中使用多个国家，方法是用逗号分隔它们。</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">ssl</td>
<td style="font-weight: 400;" width="226">一应俱全<br />
代理服务器是否支持 SSL（HTTPS）？此参数仅用于下载 HTTP 代理服务器。</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">匿名性</td>
<td style="font-weight: 400;" width="226">一应俱全<br />
定义代理应具有的匿名级别：</p>
<ul>
<li>俊杰</li>
<li>匿名</li>
<li>透明</li>
<li>一应俱全</li>
</ul>
<p>如果未定义匿名级别，则默认为 "全部"。您也可以在一个请求中使用多个匿名级别，方法是用逗号分隔它们。<br />
该参数仅适用于 HTTP(s) 代理。</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="styles__ExampleTitle-sc-1gk0rxh-1 coCuLw">请求示例：</div>
<div>
<pre class="language-javascript"><code class="language-javascript"><span class="token keyword">变异</span> 要求 <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">要求</span><span class="token punctuation">(</span><span class="token string">GET</span><span class="token punctuation">,</span> 乌里<span class="token punctuation">.</span><span class="token function">解析</span><span class="token punctuation">(</span><span class="token string">'https://api.proxyscrape.com/v2/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all'</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>


http<span class="token punctuation">.</span>StreamedResponse 响应 <span class="token operator">=</span> <span class="token keyword">等</span> 要求<span class="token punctuation">.</span><span class="token function">发送</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token keyword">如果</span> <span class="token punctuation">(</span>回应<span class="token punctuation">.</span>状态代码 <span class="token operator">==</span> <span class="token number">200</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
  <span class="token function">打印</span><span class="token punctuation">(</span><span class="token keyword">等</span> 回应<span class="token punctuation">.</span>溪流<span class="token punctuation">.</span><span class="token function">字节到字符串</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token keyword">不然</span> <span class="token punctuation">{</span>
  <span class="token function">打印</span><span class="token punctuation">(</span>回应<span class="token punctuation">.</span>原因<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span></code></pre>
</div>
<hr />
<h2>获取代理列表详情</h2>
<pre>https://api.proxyscrape.com/v2/?request=proxyinfo</pre>
<div><span style="font-size: 16px;">此 API 端点将返回可用代理的信息，例如</span></div>
<div>
<ul>
<li>可用代理权数量</li>
<li>代理列表上次更新后的时间</li>
<li>可用国家</li>
<li>代理机构的相关组织</li>
<li>代理端口</li>
</ul>
<p>此 API 端点还支持 "获取代理列表 "中描述的所有参数。</p>
<p>参数</p>
<div class="su-table su-table-responsive su-table-alternate su-table-fixed">
<table width="298">
<tbody>
<tr>
<td style="font-weight: 400;" width="72">要求</td>
<td style="font-weight: 400;" width="226">代理信息</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">简化</td>
<td style="font-weight: 400;" width="226">真<br />
如果只想接收可用代理的数量，请使用此参数。</td>
</tr>
</tbody>
</table>
</div>
<div class="styles__ExampleTitle-sc-1gk0rxh-1 coCuLw">申请示例</div>
<div>
<pre class="language-javascript"><code class="language-javascript"><span class="token keyword">变异</span> 要求 <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">要求</span><span class="token punctuation">(</span><span class="token string">GET</span><span class="token punctuation">,</span> 乌里<span class="token punctuation">.</span><span class="token function">解析</span><span class="token punctuation">(</span><span class="token string">'https://api.proxyscrape.com/v2/?request=proxyinfo'</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>


http<span class="token punctuation">.</span>StreamedResponse 响应 <span class="token operator">=</span> <span class="token keyword">等</span> 要求<span class="token punctuation">.</span><span class="token function">发送</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token keyword">如果</span> <span class="token punctuation">(</span>回应<span class="token punctuation">.</span>状态代码 <span class="token operator">==</span> <span class="token number">200</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
  <span class="token function">打印</span><span class="token punctuation">(</span><span class="token keyword">等</span> 回应<span class="token punctuation">.</span>溪流<span class="token punctuation">.</span><span class="token function">字节到字符串</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token keyword">不然</span> <span class="token punctuation">{</span>
  <span class="token function">打印</span><span class="token punctuation">(</span>回应<span class="token punctuation">.</span>原因<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span></code></pre>
</div>
</div>
<hr />
<h4 id="references" class="ftwp-heading">参考资料</h4>
<ul>
<li><a href="https://docs.proxyscrape.com/#74a576d0-6201-494b-af94-e8aaf44b9c46" target="_blank" rel="nofollow noopener">https://docs.proxyscrape.com/#74a576d0-6201-494b-af94-e8aaf44b9c46</a></li>
</ul>
<hr />
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/free-proxyscrape-api/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">8485</post-id>	</item>
		<item>
		<title>How to Use Baidu Real-Time Crawler [Part 4]: Oxylabs Real-Time Crawler for Baidu</title>
		<link>https://proxysp.com/zh/oxylabs-baidu-real-time-crawler/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oxylabs-baidu-real-time-crawler</link>
					<comments>https://proxysp.com/zh/oxylabs-baidu-real-time-crawler/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[How to Use OxyLabs Proxy (OxyLabs User Manual Navigation)]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7635</guid>

					<description><![CDATA[你知道如何使用 OxyLabs Real-time Crawler for Baidu 吗？这是 OxyLabs 官方最全面的介绍。快速入门 实时爬虫内置了...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/oxylabs-baidu-real-time-crawler/"> <span class="screen-reader-text">如何使用百度实时爬虫 [第 4 部分]：Oxylabs 用于百度的实时爬虫</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>你知道如何使用 OxyLabs Real-time Crawler for Baidu 吗？这是 OxyLabs 官方最全面的介绍。</p></blockquote>
<h2 id="quick-start">快速入门</h2>
<p>Real-Time Crawler 专为重型数据检索操作而设计。你可以使用 Real-Time Crawler 访问各种百度网页。它可以毫不费力地从搜索引擎中提取网页数据，不会出现任何延迟或错误。</p>
<p>用于百度的实时抓取器 <a class="custom_link" href="https://en.wikipedia.org/wiki/Basic_access_authentication" target="_blank" rel="nofollow noopener">基本 HTTP 身份验证</a> 需要发送用户名和密码。</p>
<p>这是迄今为止开始使用百度实时爬虫的最快方法。您将发送一个查询 <code>阿迪达斯</code> 至 <code>百度搜索</code> 使用 <a href="#realtime">实时</a> 整合方法。不要忘记替换 <code>用户名</code> 和 <code>密码</code> 使用代理用户凭据。</p>
<pre>curl --user "USERNAME:PASSWORD" 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json" -d '{"source"："baidu_search", "domain"："com", "query"："adidas"}'
</pre>
<p>如果您有任何本文件未涉及的问题，请联系您的客户经理或我们的支持人员，地址是 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a>.</p>
<hr />
<h2 id="integration-methods">整合方法</h2>
<p>用于百度的实时爬虫支持三种集成方法，它们都有各自独特的优势：</p>
<ul>
<li><a href="#push-pull">推拉式</a>.使用这种方法，现在需要与我们的端点保持活动连接，以检索数据。在发出请求后，我们的系统会在任务完成后自动 ping 用户服务器（请参阅 <a href="#callback">回调</a>).这种方法可以节省计算资源，而且易于扩展。</li>
<li><a href="#realtime">实时</a>.该方法要求用户与我们的端点保持活动连接，以便在任务完成时成功获取结果。这种方法可以在一个服务中实现，而推拉法则需要两个步骤。</li>
<li><a href="#superapi">超级用户接口</a>.这种方法与实时方法非常相似，但用户可以使用 HTML Cralwer 作为代理，而不是向我们的端点发布数据。要检索数据，用户必须设置一个代理端点，并向所需的 URL 发送 GET 请求。必须使用标头添加其他参数。</li>
</ul>
<p>我们推荐的数据提取方法是 <a href="#push-pull">推拉式</a>.</p>
<hr />
<h3 id="push-pull">推拉式</h3>
<p>这是最简单、最可靠、最值得推荐的数据传输方法。在推拉式方案中，您向我们发送查询，我们向您返回工作 <code>本我</code>工作完成后，您可以使用 <code>本我</code> 中检索内容 <code>/结果</code> 端点。你可以自己检查作业完成状态，也可以设置一个能接受 POST 查询的简单监听器。</p>
<p>这样，一旦作业准备就绪，我们就会向您发送回调消息。在本例中，结果将自动 <a href="#upload-to-storage">上传到您的 S3 存储桶</a> 名为 <code>您的邮筒名称</code>.</p>
<hr />
<h4 id="single-query"><strong>单一查询</strong></h4>
<p>以下端点将处理对一个关键字或 URL 的单次查询。API 将返回一条确认信息，其中包含任务信息，包括任务 <code>本我</code>.您可以使用它来检查任务完成状态 <code>本我</code>或者，您也可以要求我们在扫描任务完成后 ping 您的回调端点，方法是添加 <code>回调URL</code> 在查询中。</p>
<pre>邮寄 https://data.oxylabs.io/v1/queries
</pre>
<p>您需要在 JSON 主体中将查询参数作为数据发布。</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："baidu_search", "domain"："com", "query"："adidas", "callback_url"："https://your.callback.url"，"storage_type"："s3"，"storage_url"："your_bucket_name"}'
</pre>
<p>API 将以 JSON 格式响应查询信息，并将其打印在响应体中，与此类似：</p>
<pre>{
  "callback_url"："https://your.callback.url"、
  "client_id"：5,
  "created_at"："2019-10-01 00:00:01",
  "域"："com"、
  "geo_location": null、
  "id"："12345678900987654321",
  "限制"：10,
  "locale": null、
  "pages"：1,
  "render": null、
  "query"："adidas"、
  "来源"："baidu_search"、
  "start_page"：1,
  "状态"："pending"、
  "storage_type"："s3",
  "storage_url"："YOUR_BUCKET_NAME/12345678900987654321.json",
  "subdomain"："www"、
  "updated_at"："2019-10-01 00:00:01",
  "user_agent_type"："desktop"、
  "_链接"：[
    {
      "rel"："self"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321",
      "method"："GET"
    },
    {
      "rel"："results"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321/results",
      "method"："GET"
    }
  ]
}
</pre>
<hr />
<h4 id="check-job-status"><strong>检查工作状态</strong></h4>
<p>如果您的查询有 <code>回调URL</code>一旦完成刮擦任务，我们将向您发送一条包含内容链接的信息。但是，如果没有 <code>回调URL</code> 在查询中，您需要自己检查任务状态。为此，您需要使用 <code>href</code> 根据 <code>rel</code>:<code>自我</code> 在您向我们的 API 提交查询后收到的响应信息中。它应该与下面的内容相似： <code>http://data.oxylabs.io/v1/queries/12345678900987654321</code>.</p>
<pre>GET https://data.oxylabs.io/v1/queries/{id}
</pre>
<p>查询该链接将返回工作信息，包括其 <code>地位</code>.有 3 种可能 <code>地位</code> 价值观</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><code>未决</code></td>
<td>任务仍在队列中，尚未完成。</td>
</tr>
<tr>
<td><code>完成的</code></td>
<td>任务完成后，您可以通过在 <code>href</code> 根据 <code>rel</code>:<code>成果</code> : <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code></td>
</tr>
<tr>
<td><code>有问题</code></td>
<td>任务出了问题，我们无法完成，很可能是目标网站方面的服务器出错。</td>
</tr>
</tbody>
</table>
</div>
<pre>curl --user user:pass1 'http://data.oxylabs.io/v1/queries/12345678900987654321'
</pre>
<p>API 将在响应正文中打印 JSON 格式的查询信息。请注意，任务 <code>地位</code> 改为 <code>完成的</code>.现在您可以通过查询 <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code>.</p>
<p>您还可以看到任务已被 <code>updated_at</code> <code>2019-10-01 00:00:15</code> - 查询需要 14 秒才能完成。</p>
<pre>{
  "client_id"：5,
  "created_at"："2019-10-01 00:00:01",
  "域"："com"、
  "geo_location": null、
  "id"："12345678900987654321",
  "限制"：10,
  "locale": null、
  "pages"：1,
  "render": null、
  "query"："adidas"、
  "来源"："baidu_search"、
  "start_page"：1,
  "状态"："done"、
  "subdomain"："www"、
  "updated_at"："2019-10-01 00:00:15",
  "user_agent_type"："desktop"、
  "_链接"：[
    {
      "rel"："self"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321",
      "method"："GET"
    },
    {
      "rel"："results"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321/results",
      "method"："GET"
    }
  ]
}
</pre>
<hr />
<h4 id="retrieve-job-content"><strong>检索工作内容</strong></h4>
<p>通过检查作业状态或接收我们的回调，一旦知道作业已准备就绪，您就可以使用以下 URL 获取作业 <code>href</code> 根据 <code>rel</code>:<code>成果</code> 在我们的初始响应或回调信息中。看起来应该类似于下面这样： <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code>.</p>
<pre>GET https://data.oxylabs.io/v1/queries/{id}/results
</pre>
<p>通过设置 "任务状态"，可以自动检索结果，而无需定期检查任务状态。 <a href="#callback">回调</a> 服务。用户需要指定运行回调服务的服务器的 IP 或域。当我们的系统完成一项任务时，它将向所提供的 IP 或域发送一条信息，回调服务将下载结果，如 <a href="#callback">回调实现示例</a>.</p>
<pre>curl --user user:pass1 'http://data.oxylabs.io/v1/queries/12345678900987654321/results'
</pre>
<p>API 将返回工作内容：</p>
<pre>{
  "结果"：[
    {
      "content"："&lt;!
        内容
      &quot;,
      &quot;created_at&quot;：&quot;2019-10-01 00:00:01&quot;,
      &quot;更新时间&quot;：&quot;2019-10-01 00:00:15&quot;,
      &quot;页&quot;：1,
      &quot;url&quot;：&quot;https://www.baidu.com/search?q=adidas&amp;hl=en&amp;gl=US&quot;、
      &quot;job_id&quot;：&quot;12345678900987654321&quot;,
      &quot;status_code&quot;：200
    }
  ]
}
</pre>
<hr />
<h4 id="callback"><strong>回调</strong></h4>
<p>回调是一个 <code>职位</code> 我们会向您的机器发送请求，告知数据提取任务已完成，并提供下载刮擦内容的 URL。这意味着您不再需要 <a href="#check-job-status">检查工作状态</a> 手动操作。一旦数据到齐，我们会通知您，您现在需要做的就是 <a href="#retrieve-job-content">取回</a>.</p>
<pre># 请查看 Python 和 PHP 代码示例。
</pre>
<p>回调输出示例</p>
<pre>{
   "created_at":"2019-10-01 00:00:01",
   "updated_at":"2019-10-01 00:00:15",
   "locale":null、
   "client_id":163、
   "user_agent_type": "desktop"、
   "source": "baidu_search"、
   "页面":1、
   "子域": "www"、
   "status": "done"、
   "start_page":1、
   "render":null、
   "priority":0、
   "ttl":0、
   "origin": "api"、
   "persist":true、
   "id":"12345678900987654321",
   "callback_url": "http://your.callback.url/"、
   "query": "adidas"、
   "domain": "com"、
   "limit":10、
   "geo_location":null、
   {...}
   "_links":[
      {
         "href":"https://data.oxylabs.io/v1/queries/12345678900987654321",
         "method": "GET"、
         "rel": "self"
      },
      {
         "href":"https://data.oxylabs.io/v1/queries/12345678900987654321/results",
         "method": "GET"、
         "rel": "results" }
      }
   ],
}
</pre>
<hr />
<h4 id="batch-query"><strong>批量查询</strong></h4>
<p>实时爬虫还支持执行多个关键字，每批最多可执行 1,000 个关键字。以下端点将向提取队列提交多个关键词。</p>
<pre>邮寄 https://data.oxylabs.io/v1/queries/batch
</pre>
<p>您需要在 JSON 主体中将查询参数作为数据发布。</p>
<p>系统会将每个关键词作为一个单独请求处理。如果您提供了回调 URL，您将为每个关键字收到单独的调用。否则，我们的初始响应将包含工作 <code>本我</code>的所有关键字。例如，如果您发送了 50 个关键字，我们将返回 50 个唯一的职位。 <code>本我</code>s.</p>
<p>重要！ <code>询问</code> 是唯一一个可以有多个值的参数。所有其他参数对于该批次查询都是一样的。</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries/batch' -H 'Content-Type: application/json' -d '@keywords.json
 -d'@keywords.json'（关键词
</pre>
<p><code>keywords.json</code> 内容：</p>
<pre>{
   "query":[
      "阿迪达斯"、
      "耐克"、
      "蕾博克"
   ],
   "来源"："baidu_search"、
   "域"："com"、
   "callback_url"："https://your.callback.url"
}
</pre>
<p>API 将以 JSON 格式响应查询信息，并将其打印在响应体中，与此类似：</p>
<pre>{
  "查询"：[
    {
      "callback_url"："https://your.callback.url"、
      {...}
      "created_at"："2019-10-01 00:00:01",
      "域"："com"、
      "id"："12345678900987654321",
      {...}
      "查询"："阿迪达斯"、
      "来源"："baidu_search"、
      {...}
          "rel"："results"、
          "href"："http://data.oxylabs.io/v1/queries/12345678900987654321/results",
          "method"："GET"
        }
      ]
    },
    {
      "callback_url"："https://your.callback.url"、
      {...}
      "created_at"："2019-10-01 00:00:01",
      "域"："com"、
      "id"："12345678901234567890",
      {...}
      "查询"："NIKE"、
      "来源"："baidu_search"、
      {...}
          "rel"："results"、
          "href"："http://data.oxylabs.io/v1/queries/12345678901234567890/results",
          "method"："GET"
        }
      ]
    },
    {
      "callback_url"："https://your.callback.url"、
      {...}
      "created_at"："2019-10-01 00:00:01",
      "域"："com"、
      "id"："01234567899876543210",
      {...}
      "查询"："reebok"、
      "来源"："baidu_search"、
      {...}
          "rel"："results"、
          "href"："http://data.oxylabs.io/v1/queries/01234567899876543210/results",
          "method"："GET"
        }
      ]
    }
  ]
}
</pre>
<hr />
<h4 id="get-notifier-ip-address-list"><strong>获取通知程序 IP 地址列表</strong></h4>
<p>您可能希望将向您发送回调信息的 IP 列入白名单，或为其他目的获取这些 IP 的列表。这可以通过 <code>获取</code>在这个端点上： <code>https://data.oxylabs.io/v1/info/callbacker_ips</code>.</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/info/callbacker_ips'
</pre>
<p>API 将返回向您的系统发出回调请求的 IP 列表：</p>
<pre>{
    "ips"：[
        "x.x.x.x"、
        "y.y.y.y"
    ]
}
</pre>
<hr />
<h4 id="upload-to-storage"><strong>上传到存储器</strong></h4>
<p>默认情况下，RTC 任务结果存储在我们的数据库中。这意味着您需要查询我们的结果端点并自行检索内容。自定义存储功能允许您将结果存储在自己的云存储中。该功能的优势在于，您无需为了获取结果而发出额外请求，所有内容都会直接存储到您的存储桶中。</p>
<p>我们支持亚马逊 S3 和谷歌云存储。如果您想使用其他类型的存储，请联系您的客户经理，讨论功能交付时间表。</p>
<p id="amazon-s3"><strong>亚马逊 S3</strong></p>
<p>要将作业结果上传到 Amazon S3 存储桶，请为我们的服务设置访问权限。为此，请访问 <code>https://s3.console.aws.amazon.com/ &gt; S3 &gt; 存储 &gt; 桶名称（如果没有，请新建） &gt; 权限 &gt; 桶策略</code></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8268" src="https://www.proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Baidu-Upload-to-Storage.png" alt="Oxylabs Real-Time Crawler for Baidu Upload to Storage" width="485" height="333" srcset="https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Baidu-Upload-to-Storage.png 485w, https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Baidu-Upload-to-Storage-300x206.png 300w" sizes="(max-width: 485px) 100vw, 485px" /></p>
<p>您可以在此找到水桶政策 <a class="custom_link" href="https://docs.oxylabs.io/resources/s3_bucket_policy.json" target="_blank" rel="noopener">JSON</a> 或右侧的代码示例区。不要忘记在 <code>您的邮筒名称</code>.通过该策略，我们可以向您的邮筒写入内容，允许您访问上传的文件，并了解邮筒的位置。</p>
<p id="google-cloud-storage"><strong>谷歌云存储</strong></p>
<p>要将作业结果上传到您的 Google Cloud Storage 存储桶，请为我们的服务设置特殊权限。为此，请使用 <code>存储.对象.创建</code> 权限并将其分配给 Oxylabs 服务帐户电子邮件 <code>oxyserps-storage@oxyserps-storage.iam.gserviceaccount.com</code>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8270" src="https://www.proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Baidu-Upload-to-Storage1.png" alt="Oxylabs Real-Time Crawler for Baidu Upload to Storage1" width="479" height="310" srcset="https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Baidu-Upload-to-Storage1.png 479w, https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Baidu-Upload-to-Storage1-300x194.png 300w" sizes="(max-width: 479px) 100vw, 479px" /></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8269" src="https://www.proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Baidu-Upload-to-Storage2.png" alt="Oxylabs Real-Time Crawler for Baidu Upload to Storage2" width="482" height="670" srcset="https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Baidu-Upload-to-Storage2.png 482w, https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Baidu-Upload-to-Storage2-216x300.png 216w" sizes="(max-width: 482px) 100vw, 482px" /></p>
<p id="usage"><strong>使用方法</strong></p>
<p>要使用此功能，请在请求中指定两个附加参数。了解更多信息 <a href="#direct">这里</a>.</p>
<p>上传路径如下 <code>YOUR_BUCKET_NAME/job_ID.json</code>.您可以在提交请求后从我们收到的回复正文中找到职位 ID。在 <a href="#single-query">本例</a> 工作编号为 <code>12345678900987654321</code>.</p>
<hr />
<h3 id="realtime">实时</h3>
<p>数据提交方式与推拉方式相同，但在实时情况下，我们将在连接打开时返回内容。您向我们发送查询，连接保持打开，我们检索内容并发送给您。处理的端点如下：</p>
<pre>邮寄 https://realtime.oxylabs.io/v1/queries
</pre>
<p>开放连接的超时限制为 150 秒，因此在极少数负载较重的情况下，我们可能无法确保将数据发送给您。</p>
<p>您需要在 JSON 主体中将查询参数作为数据发布。详情请参阅示例。</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："baidu_search", "domain"："com", "query"："adidas"}'
</pre>
<p>打开连接时将返回的响应体示例：</p>
<pre>{
  "结果"：[
    {
      "content"："
      内容
      "
      "created_at"："2019-10-01 00:00:01",
      "更新时间"："2019-10-01 00:00:15",
      "id": null、
      "page"：1,
      "url"："https://www.baidu.com/search?q=adidas&amp;hl=en&amp;gl=US"、
      "job_id"："12345678900987654321",
      "status_code"：200
    }
  ]
}
</pre>
<hr />
<h3 id="superapi">超级用户接口</h3>
<p>如果您曾经使用过普通代理进行数据搜刮，那么集成 SuperAPI 传输方法将轻而易举。只需将我们的入口节点用作代理，使用实时爬虫凭据进行授权，并忽略证书即可。在 <code>cURL</code> 这是 <code>-k</code> 或 <code>--不安全</code>.您的数据将通过开放连接发送给您。</p>
<pre>GET realtime.oxylabs.io:60000
</pre>
<p>超级用户接口只支持少量参数，因为它 <strong>仅适用于 <a href="#direct">直接</a> 数据源</strong> 其中提供了完整的 URL。这些参数应作为标头发送。这是可接受的参数列表：</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><code>X-OxySERPs-User-Agent-Type</code></td>
<td>虽然无法指明特定的 User-Agent，但您可以让我们知道您使用的浏览器和平台。支持的用户代理列表如下所示 <a href="#user-agent">这里</a>.</td>
</tr>
</tbody>
</table>
</div>
<p>如果您在设置超级用户接口时需要帮助，请致电 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a>.</p>
<pre>curl -k -x realtime.oxylabs.io:60000 -U user:pass1 -H "X-OxySERPs-User-Agent-Type: desktop_chrome" "https://www.baidu.com/search?q=adidas"
</pre>
<hr />
<h2 id="data-sources">数据来源</h2>
<p>使用实时爬虫从百度检索数据有多种方法。您可以通过以下方式向我们提供完整的 URL <a href="#direct">直接</a>或通过专门构建的数据源指定参数，例如 <a href="#search">搜索</a>购物产品或图片。</p>
<p>如果您不确定选择哪种方式，请给我们留言 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a> 或联系您的客户经理。</p>
<hr />
<h3 id="direct">直接</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8272 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Baidu-Direct.png" alt="Oxylabs Real-Time Crawler for Baidu Direct" width="425" height="29" srcset="https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Baidu-Direct.png 425w, https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Baidu-Direct-300x20.png 300w" sizes="(max-width: 425px) 100vw, 425px" /></p>
<p><code>百度</code> 源设计用于检索各种百度页面的直接 URL 内容。这意味着您可以向我们提供所需百度页面的直接 URL，而无需发送多个参数。我们不会剥离任何参数或以任何其他方式更改您的 URL。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">百度</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">网址</td>
<td style="font-weight: 400;" width="72">直接 URL（链接）至百度页面</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下<a href="#user-agent"> 这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">回调端点的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在 <a href="#upload-to-storage">上传到存储器 </a>页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p>在本例中，应用程序接口将检索百度搜索关键字 <code>阿迪达斯</code> 推拉法</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："baidu", "url"："http://www.baidu.com/s?ie=utf-8&amp;f=8&amp;rsv_bp=1&amp;rsv_idx=1&amp;ch=&amp;tn=baidu&amp;bar=&amp;wd=adidas"}'
</pre>
<p>以下是实时模式下的相同示例：</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："baidu", "url"："http://www.baidu.com/s?ie=utf-8&amp;f=8&amp;rsv_bp=1&amp;rsv_idx=1&amp;ch=&amp;tn=baidu&amp;bar=&amp;wd=adidas"}'
</pre>
<p>并通过超级用户接口（SuperAPI）：</p>
<pre>curl -k -x realtime.oxylabs.io:60000 -U user:pass1 "http://www.baidu.com/s?ie=utf-8&amp;f=8&amp;rsv_bp=1&amp;rsv_idx=1&amp;ch=&amp;tn=baidu&amp;bar=&amp;wd=adidas"
</pre>
<hr />
<h3 id="search">搜索</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8273 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Baidu-Search.png" alt="Oxylabs Real-Time Crawler for Baidu Search" width="425" height="26" srcset="https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Baidu-Search.png 425w, https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-Real-Time-Crawler-for-Baidu-Search-300x18.png 300w" sizes="(max-width: 425px) 100vw, 425px" /></p>
<p><code>百度搜索</code> 该源代码旨在检索 HTML 格式的百度搜索结果（SERP）。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72"><strong>参数</strong></td>
<td style="font-weight: 400;" width="72"><strong>说明</strong></td>
<td style="font-weight: 400;" width="72"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">百度搜索</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">领域</td>
<td style="font-weight: 400;" width="72">域名本地化</td>
<td style="font-weight: 400;" width="72">网</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">询问</td>
<td style="font-weight: 400;" width="72">UTF 编码的关键字</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">start_page</td>
<td style="font-weight: 400;" width="72">起始页码</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">页面</td>
<td style="font-weight: 400;" width="72">要检索的页数</td>
<td style="font-weight: 400;" width="72">1</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">限额</td>
<td style="font-weight: 400;" width="72">每页要检索的结果数量</td>
<td style="font-weight: 400;" width="72">10</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下<a href="#user-agent"> 这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">回调端点的 URL</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在 <a href="#upload-to-storage">上传到存储器</a> 页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p>实时爬虫向 baidu.com 发出请求，检索关键词 adidas 从第 11 位到第 20 位的搜索结果页面。数据检索任务成功完成后，实时爬虫会将原始 HTML 页面输出的下载 URL 发布到 your.callback.url。</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："baidu_search", "domain"："com", "query"："adidas", "start_page"：11, "pages"：10, "callback_url"："https://your.callback.url"}'
</pre>
<p>以下是实时模式下的相同示例：</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
 -d '{"source"："baidu_search", "domain"："com", "query"："adidas", "start_page"：11, "pages"：10, "callback_url"："https://your.callback.url"}'
</pre>
<hr />
<h2 id="parameter-values">参数值</h2>
<h3 id="user-agent">用户代理</h3>
<p>下载完整列表 <code>用户代理类型</code> JSON 中的值 <a class="custom_link" href="https://docs.oxylabs.io/resources/user_agent_type.json" target="_blank" rel="noopener">这里</a>.</p>
<pre>[
  {
    "user_agent_type"："桌面"、
    "描述"："随机桌面浏览器用户代理"
  },
  {
    "user_agent_type"："desktop_firefox"、
    "描述"："最新版桌面火狐浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_chrome"、
    "description"："最新版桌面 Chrome 浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_opera"、
    "description"："最新版本桌面 Opera 的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_edge"、
    "description"："桌面边缘最新版本之一的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_safari"、
    "description"："桌面 Safari 最新版本之一的随机用户代理"。
  },
  {
    "user_agent_type"："mobile"、
    "description"："随机移动浏览器用户代理"
  },
  {
    "user_agent_type"："mobile_android"、
    "description"（描述）："最新版本安卓浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："mobile_ios"、
    "描述"："最新版本 iPhone 浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："平板电脑"、
    "描述"："随机平板电脑浏览器用户代理"
  },
  {
    "user_agent_type"："tablet_android"、
    "描述"："最新版本安卓平板电脑的随机用户代理"。
  },
  {
    "user_agent_type"："tablet_ios"、
    "description"："最新版本 iPad 平板电脑的随机用户代理"。
  }
]
</pre>
<hr />
<h2 id="account-status">账户状态</h2>
<h3 id="usage-statistics">使用统计</h3>
<p>您可以通过查询以下端点找到您的使用统计数据：</p>
<pre>GET https://data.oxylabs.io/v1/stats
</pre>
<p>默认情况下，API 将返回所有时间的使用统计数据。添加 <code>group_by=month</code> 将返回月度统计数据，而 <code>group_by=day</code> 将返回每日数字。</p>
<p>该查询将返回所有时间的统计数据。您可以通过添加 <code>group_by=day</code> 或 <code>group_by=month</code></p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/stats'
</pre>
<p>输出示例</p>
<pre>{
    "数据"：{
        "sources"：[
            {
                "realtime_results_count"："90",
                "results_count"："10",
                "标题"："百度"
            },
            {
                "realtime_results_count"："19",
                "results_count"："87",
                "标题"："baidu_search
            }
        ]
    },
    "元"：{
        "group_by": null
    }
}
</pre>
<hr />
<h3 id="limits">限制</h3>
<p>以下终端将提供您的每月承诺信息以及已使用的金额：</p>
<pre>GET https://data.oxylabs.io/v1/stats/limits
</pre>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/stats/limits'
</pre>
<p>输出示例</p>
<pre>{
    "monthly_requests_commitment"：4500000,
    "used_requests"：985000
}
</pre>
<hr />
<h2 id="response-codes">响应代码</h2>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>代码</th>
<th>现状</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>204</code></td>
<td>无内容</td>
<td>您正在尝试检索一项尚未完成的任务。</td>
</tr>
<tr>
<td><code>400</code></td>
<td>多种错误信息</td>
<td>请求结构错误，可能是参数拼写错误或值无效。响应体将显示更具体的错误信息。</td>
</tr>
<tr>
<td><code>401</code></td>
<td>未提供授权标头"/"授权标头无效"/"未找到客户端</td>
<td>缺少授权标头或登录凭证不正确。</td>
</tr>
<tr>
<td><code>403</code></td>
<td>禁止</td>
<td>您的帐户无法访问此资源。</td>
</tr>
<tr>
<td><code>404</code></td>
<td>未找到</td>
<td>您要查找的职位编号已不再可用。</td>
</tr>
<tr>
<td><code>429</code></td>
<td>请求太多</td>
<td>超出费率限制。请联系您的客户经理以提高限额。</td>
</tr>
<tr>
<td><code>500</code></td>
<td>未知错误</td>
<td>无法提供服务。</td>
</tr>
<tr>
<td><code>524</code></td>
<td>超时</td>
<td>无法提供服务。</td>
</tr>
<tr>
<td><code>612</code></td>
<td>未定义的内部错误</td>
<td>出了点问题，我们未能完成您提交的任务。您可以免费再试一次，因为我们不会向您收取任何费用。 <code>有问题</code> 工作如果还不行，请联系我们。</td>
</tr>
<tr>
<td><code>613</code></td>
<td>重试次数过多后出现故障</td>
<td>我们曾尝试清除您提交的作业，但在达到重试限制后放弃了。您可以免费再试一次，因为我们不会向您收取任何费用。 <code>有问题</code> 工作如果还不行，请联系我们。</td>
</tr>
</tbody>
</table>
</div>
<p>云存储上传响应代码：</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>代码</th>
<th>现状</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>10001</code></td>
<td>意外异常</td>
<td>发生了严重的错误。我们可能已经知道，并正在修复。无论如何，请告诉我们。</td>
</tr>
<tr>
<td><code>13000</code></td>
<td>上传成功</td>
<td>一切顺利！</td>
</tr>
<tr>
<td><code>13001</code></td>
<td>上传失败</td>
<td>我们无法上传您的工作结果。</td>
</tr>
<tr>
<td><code>13102</code></td>
<td>没有这样的道路</td>
<td>我们找不到这样名字的水桶。请仔细检查。</td>
</tr>
<tr>
<td><code>13103</code></td>
<td>拒绝访问</td>
<td>Bucket 没有所需的权限。要了解如何授予我们必要的权限，请参阅 <a href="#upload-to-storage">这里</a>.</td>
</tr>
</tbody>
</table>
</div>
<hr />
<h4>参考资料</h4>
<ul>
<li><a href="https://docs.oxylabs.io/rtc/source/baidu/index.html" target="_blank" rel="nofollow noopener">https://docs.oxylabs.io/rtc/source/baidu/index.html</a></li>
<li><a href="https://docs.oxylabs.io/rtc/index.html" target="_blank" rel="nofollow noopener">https://docs.oxylabs.io/rtc/index.html</a></li>
</ul>
<p>&nbsp;</p>
<hr />
<blockquote><p><strong>免责声明</strong> 这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/oxylabs-baidu-real-time-crawler/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7635</post-id>	</item>
		<item>
		<title>How to Use HTML Crawler API [Part 5]: OxyLabs Real-Time Crawler for Other Sites</title>
		<link>https://proxysp.com/zh/oxylabs-html-crawler-api/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oxylabs-html-crawler-api</link>
					<comments>https://proxysp.com/zh/oxylabs-html-crawler-api/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[How to Use OxyLabs Proxy (OxyLabs User Manual Navigation)]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=7636</guid>

					<description><![CDATA[你知道如何使用 OxyLabs 实时网页爬虫吗？这是 OxyLabs 官方最全面的介绍。快速启动 HTML Crawler API ...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/oxylabs-html-crawler-api/"> <span class="screen-reader-text">如何使用 HTML 爬虫 API [第 5 部分]：用于其他网站的 OxyLabs 实时抓取器</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>你知道如何使用 OxyLabs 实时网页爬虫吗？这是 OxyLabs 官方最全面的介绍。</p></blockquote>
<h2 id="quick-start">快速入门</h2>
<p>HTML Crawler API 可帮助您进行繁重的数据检索操作。您可以使用 HTML Crawler API 访问各种公共页面。它能毫不费力地提取网络数据，不会出现任何延迟或错误。</p>
<p>HTML 抓取程序应用程序接口使用 <a class="custom_link" href="https://en.wikipedia.org/wiki/Basic_access_authentication" target="_blank" rel="nofollow noopener">基本 HTTP 身份验证</a> 需要发送用户名和密码。</p>
<p>这是迄今为止开始使用 HTML Crawler API 最快的方法。您将向 <code>https://ip.oxylabs.io</code> 使用 <a href="#realtime">实时</a> 整合方法。不要忘记替换 <code>用户名</code> 和 <code>密码</code> 使用代理用户凭据。</p>
<pre>curl --user "USERNAME:PASSWORD" 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json" -d '{"source"："universal", "url"："https://ip.oxylabs.io"}'
</pre>
<p>如果您有任何本文件未涉及的问题，请联系您的客户经理或我们的支持人员，地址是 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a>.</p>
<hr />
<div class="inside-code">
<h2 id="integration-methods">整合方法</h2>
<p>HTML Crawler API 支持三种集成方法，它们都有各自独特的优势：</p>
<ul>
<li><a href="#push-pull">推拉式</a>.使用这种方法，现在需要与我们的端点保持活动连接，以检索数据。在发出请求后，我们的系统会在任务完成后自动 ping 用户服务器（请参阅 <a href="#callback">回调</a>).这种方法可以节省计算资源，而且易于扩展。</li>
<li><a href="#realtime">实时</a>.该方法要求用户与我们的端点保持活动连接，以便在任务完成时成功获取结果。这种方法可以在一个服务中实现，而推拉法则需要两个步骤。</li>
<li><a href="#superapi">超级用户接口</a>.这种方法与实时方法非常相似，但用户可以使用 HTML Cralwer 作为代理，而不是向我们的端点发布数据。要检索数据，用户必须设置一个代理端点，并向所需的 URL 发送 GET 请求。必须使用标头添加其他参数。</li>
</ul>
<p>我们推荐的数据提取方法是 <a href="#push-pull">推拉式</a>.</p>
<hr />
</div>
<h3 id="push-pull">推拉式</h3>
<p>这是最简单、最可靠、最值得推荐的数据传输方法。在推拉式方案中，您向我们发送查询，我们向您返回工作 <code>本我</code>工作完成后，您可以使用 <code>本我</code> 中检索内容 <code>/结果</code> 端点。你可以自己检查作业完成状态，也可以设置一个能接受 POST 查询的简单监听器。</p>
<p>这样，一旦作业准备就绪，我们就会向您发送回调消息。在本例中，结果将自动 <a href="#upload-to-storage">上传到您的 S3 存储桶</a> 名为 <code>您的邮筒名称</code>.</p>
<hr />
<h4 id="single-query"><strong>单一查询</strong></h4>
<p>以下端点将处理对一个关键字或 URL 的单次查询。API 将返回一条确认信息，其中包含任务信息，包括任务 <code>本我</code>.您可以使用它来检查任务完成状态 <code>本我</code>或者，您也可以要求我们在扫描任务完成后 ping 您的回调端点，方法是添加 <code>回调URL</code> 在查询中。</p>
<pre>邮寄 https://data.oxylabs.io/v1/queries
</pre>
<p>您需要在 JSON 主体中将查询参数作为数据发布。</p>
<pre>curl --user user:pass1\
'https://data.oxylabs.io/v1/queries' \
-H "Content-Type: application/json"\
-d '{"source"："universal", "url"："https://stackoverflow.com/questions/tagged/python", "callback_url"："https://your.callback.url", "storage_type"："s3", "storage_url"："your_bucket_name"}'
</pre>
<p>API 将以 JSON 格式响应查询信息，并将其打印在响应体中，与此类似：</p>
<pre>{
  "callback_url"："https://your.callback.url"、
  "client_id"：5,
  "created_at"："2019-10-01 00:00:01",
  "域"："com"、
  "geo_location": null、
  "id"："12345678900987654321",
  "限制"：10,
  "locale": null、
  "pages"：1,
  "parse": false、
  "render": null、
  "url"："https://stackoverflow.com/questions/tagged/python"、
  "源"："universal"、
  "start_page"：1,
  "状态"："pending"、
  "storage_type"："s3",
  "storage_url"："YOUR_BUCKET_NAME/12345678900987654321.json",
  "subdomain"："www"、
  "updated_at"："2019-10-01 00:00:01",
  "user_agent_type"："desktop"、
  "_链接"：[
    {
      "rel"："self"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321",
      "method"："GET"
    },
    {
      "rel"："results"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321/results",
      "method"："GET"
    }
  ]
}
</pre>
<hr />
<h4 id="check-job-status"><strong>检查工作状态</strong></h4>
<p>如果您的查询有 <code>回调URL</code>我们会在扫描任务完成后向您发送一条包含内容链接的信息。但是，如果没有 <code>回调URL</code> 在查询中，您需要自己检查任务状态。为此，您需要使用 <code>href</code> 根据 <code>rel</code>:<code>自我</code> 在您向我们的 API 提交查询后收到的响应信息中。它应该与下面的内容相似： <code>http://data.oxylabs.io/v1/queries/12345678900987654321</code>.</p>
<pre>GET https://data.oxylabs.io/v1/queries/{id}
</pre>
<p>查询此链接将返回工作信息，包括其 <code>地位</code>.有三种可能 <code>地位</code> 价值观</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><code>未决</code></td>
<td>任务仍在队列中，尚未完成。</td>
</tr>
<tr>
<td><code>完成的</code></td>
<td>任务完成后，您可以通过在 <code>href</code> 根据 <code>rel</code>:<code>成果</code> : <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code></td>
</tr>
<tr>
<td><code>有问题</code></td>
<td>任务出现了问题，我们无法完成任务，很可能是由于目标网站方面的服务器出错。</td>
</tr>
</tbody>
</table>
</div>
<pre>curl --user user:pass1 'http://data.oxylabs.io/v1/queries/12345678900987654321'
</pre>
<p>API 将在响应体中打印 JSON 格式的查询信息。请注意，任务 <code>地位</code> 改为 <code>完成的</code>.现在您可以通过查询 <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code>.</p>
<p>您还可以看到任务已被 <code>updated_at</code> <code>2019-10-01 00:00:15</code> - 查询需要 14 秒才能完成。</p>
<pre>{
  "client_id"：5,
  "created_at"："2019-10-01 00:00:01",
  "域"："com"、
  "geo_location": null、
  "id"："12345678900987654321",
  "限制"：10,
  "locale": null、
  "pages"：1,
  "parse": false、
  "render": null、
  "url"："sofa"、
  "源"："universal"、
  "start_page"：1,
  "状态"："done"、
  "subdomain"："www"、
  "updated_at"："2019-10-01 00:00:15",
  "user_agent_type"："desktop"、
  "_链接"：[
    {
      "rel"："self"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321",
      "method"："GET"
    },
    {
      "rel"："results"、
      "href"："http://data.oxylabs.io/v1/queries/12345678900987654321/results",
      "method"："GET"
    }
  ]
}
</pre>
<hr />
<h4 id="retrieve-job-content"><strong>检索工作内容</strong></h4>
<p>通过检查作业的状态，一旦知道可以检索作业，就可以使用 <code>href</code> 根据 <code>rel</code>:<code>成果</code> 在我们的初始响应中。它看起来应该与此类似： <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code>.</p>
<pre>GET https://data.oxylabs.io/v1/queries/{id}/results
</pre>
<p>通过设置 "任务状态"，可以自动检索结果，而无需定期检查任务状态。 <a href="#callback">回调</a> 服务。用户需要指定运行回调服务的服务器的 IP 或域。当我们的系统完成一项任务时，它将向所提供的 IP 或域发送一条信息，回调服务将下载结果，如 <a href="#callback">回调实现示例</a>.</p>
<pre>curl --user user:pass1 'http://data.oxylabs.io/v1/queries/12345678900987654321/results'
</pre>
<p>API 将返回工作内容：</p>
<pre>{
  "结果"：[
    {
      "content"："&lt;!
        内容
      &quot;,
      &quot;created_at&quot;：&quot;2019-10-01 00:00:01&quot;,
      &quot;更新时间&quot;：&quot;2019-10-01 00:00:15&quot;,
      &quot;页&quot;：1,
      &quot;url&quot;：&quot;https://stackoverflow.com/questions/tagged/python&quot;、
      &quot;job_id&quot;：&quot;12345678900987654321&quot;,
      &quot;status_code&quot;：200
    }
  ]
}
</pre>
<hr />
<h4 id="callback"><strong>回调</strong></h4>
<p>回调是一个 <code>职位</code> 我们会向您的机器发送请求，告知数据提取任务已完成，并提供下载刮擦内容的 URL。这意味着您不再需要 <a href="#check-job-status">检查工作状态</a> 手动操作。一旦数据到齐，我们会通知您，您现在需要做的就是 <a href="#retrieve-job-content">取回</a>.</p>
<pre># 请查看 Python 和 PHP 代码示例。
</pre>
<p>回调输出示例</p>
<pre>{
   "created_at":"2019-10-01 00:00:01",
   "updated_at":"2019-10-01 00:00:15",
   "locale":null、
   "client_id":163、
   "user_agent_type": "desktop"、
   "源": "universal"、
   "pages":1、
   "子域": "www"、
   "status": "done"、
   "start_page":1、
   "parse":0、
   "render":null、
   "priority":0、
   "ttl":0、
   "origin": "api"、
   "persist":true、
   "id":"12345678900987654321",
   "callback_url": "http://your.callback.url/"、
   "url": "https://stackoverflow.com/questions/tagged/python"、
   "domain": "de"、
   "limit":10、
   "geo_location":null、
   {...}
   "_links":[
      {
         "href":"https://data.oxylabs.io/v1/queries/12345678900987654321",
         "method": "GET"、
         "rel": "self"
      },
      {
         "href":"https://data.oxylabs.io/v1/queries/12345678900987654321/results",
         "method": "GET"、
         "rel": "results" }
      }
   ],
}
</pre>
<hr />
<h4 id="batch-query"><strong>批量查询</strong></h4>
<p>HTML 抓取器 API 还支持执行多个关键词，每批最多可执行 1,000 个关键词。以下端点将向提取队列提交多个关键词。</p>
<pre>邮寄 https://data.oxylabs.io/v1/queries/batch
</pre>
<p>您需要在 JSON 主体中将查询参数作为数据发布。</p>
<p>系统会将每个关键字作为一个单独请求来处理。如果您提供了回调 URL，则每个关键字都会收到一个单独的调用。否则，我们的初始响应将包含任务 <code>本我</code>的所有关键字。例如，如果您发送了 50 个关键字，我们将返回 50 个唯一的职位。 <code>本我</code>s.</p>
<p>重要！ <code>询问</code> 是唯一一个可以有多个值的参数。所有其他参数对于该批次查询都是一样的。</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/queries/batch' -H 'Content-Type: application/json' \
 -d'@keywords.json'。
</pre>
<p><code>keywords.json</code> 内容：</p>
<pre>{
   "url":[
      "https://stackoverflow.com/questions/tagged/python"、
      "https://stackoverflow.com/questions/tagged/golang"、
      "https://stackoverflow.com/questions/tagged/php"
   ],
   "源"："通用"、
   "callback_url"："https://your.callback.url"
}
</pre>
<p>API 将以 JSON 格式响应查询信息，并将其打印在响应体中，与此类似：</p>
<pre>{
  "查询"：[
    {
      "callback_url"："https://your.callback.url"、
      {...}
      "created_at"："2019-10-01 00:00:01",
      "域"："com"、
      "id"："12345678900987654321",
      {...}
      "url"："https://stackoverflow.com/questions/tagged/python"、
      "来源"："universal"、
      {...}
          "rel"："results"、
          "href"："http://data.oxylabs.io/v1/queries/12345678900987654321/results",
          "method"："GET"
        }
      ]
    },
    {
      "callback_url"："https://your.callback.url"、
      {...}
      "created_at"："2019-10-01 00:00:01",
      "域"："com"、
      "id"："12345678901234567890",
      {...}
      "url"："https://stackoverflow.com/questions/tagged/golang"、
      "来源"："universal"、
      {...}
          "rel"："results"、
          "href"："http://data.oxylabs.io/v1/queries/12345678901234567890/results",
          "method"："GET"
        }
      ]
    },
    {
      "callback_url"："https://your.callback.url"、
      {...}
      "created_at"："2019-10-01 00:00:01",
      "域"："com"、
      "id"："01234567899876543210",
      {...}
      "url"："https://stackoverflow.com/questions/tagged/php"、
      "来源"："universal"、
      {...}
          "rel"："results"、
          "href"："http://data.oxylabs.io/v1/queries/01234567899876543210/results",
          "method"："GET"
        }
      ]
    }
  ]
}
</pre>
<hr />
<h4 id="get-notifier-ip-address-list"><strong>获取通知程序 IP 地址列表</strong></h4>
<p>您可能希望将向您发送回调信息的 IP 列入白名单，或为其他目的获取这些 IP 的列表。这可以通过 <code>获取</code>在这个端点上： <code>https://data.oxylabs.io/v1/info/callbacker_ips</code>.</p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/info/callbacker_ips'
</pre>
<p>API 将返回向您的系统发出回调请求的 IP 列表：</p>
<pre>{
    "ips"：[
        "x.x.x.x"、
        "y.y.y.y"
    ]
}
</pre>
<hr />
<h4 id="upload-to-storage"><strong>上传到存储器</strong></h4>
<p>默认情况下，RTC 任务结果存储在我们的数据库中。这意味着您需要查询我们的结果端点并自行检索内容。自定义存储功能允许您将结果存储在自己的云存储中。该功能的优势在于，您无需为了获取结果而发出额外请求，所有内容都会直接存储到您的存储桶中。</p>
<p>我们支持亚马逊 S3 和谷歌云存储。如果您想使用其他类型的存储，请联系您的客户经理，讨论功能交付时间表。</p>
<p id="amazon-s3"><strong>亚马逊 S3</strong></p>
<p>要将作业结果上传到 Amazon S3 存储桶，请为我们的服务设置访问权限。为此，请访问 <code>https://s3.console.aws.amazon.com/ &gt; S3 &gt; 存储 &gt; 桶名称（如果没有，请新建） &gt; 权限 &gt; 桶策略</code></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8280" src="https://www.proxysp.com/wp-content/uploads/2021/09/Oxylabs-HTML-Crawler-API-Upload-to-Storage1.png" alt="Oxylabs HTML Crawler API Upload to Storage1" width="482" height="323" srcset="https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-HTML-Crawler-API-Upload-to-Storage1.png 482w, https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-HTML-Crawler-API-Upload-to-Storage1-300x201.png 300w" sizes="(max-width: 482px) 100vw, 482px" /></p>
<p>您可以在此找到水桶政策 <a class="custom_link" href="https://docs.oxylabs.io/resources/s3_bucket_policy.json" target="_blank" rel="noopener">JSON</a> 或右侧的代码示例区。不要忘记在 <code>您的邮筒名称</code>.通过该策略，我们可以向您的邮筒写入内容，允许您访问上传的文件，并了解邮筒的位置。</p>
<p id="google-cloud-storage"><strong>谷歌云存储</strong></p>
<p>要将作业结果上传到您的 Google Cloud Storage 存储桶，请为我们的服务设置特殊权限。为此，请使用 <code>存储.对象.创建</code> 权限并将其分配给 Oxylabs 服务帐户电子邮件 <code>oxyserps-storage@oxyserps-storage.iam.gserviceaccount.com</code>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8281" src="https://www.proxysp.com/wp-content/uploads/2021/09/Oxylabs-HTML-Crawler-API-Upload-to-Storage2.png" alt="Oxylabs HTML Crawler API Upload to Storage2" width="483" height="306" srcset="https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-HTML-Crawler-API-Upload-to-Storage2.png 483w, https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-HTML-Crawler-API-Upload-to-Storage2-300x190.png 300w" sizes="(max-width: 483px) 100vw, 483px" /></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8282" src="https://www.proxysp.com/wp-content/uploads/2021/09/Oxylabs-HTML-Crawler-API-Upload-to-Storage3.png" alt="Oxylabs HTML Crawler API Upload to Storage3" width="486" height="668" srcset="https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-HTML-Crawler-API-Upload-to-Storage3.png 486w, https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-HTML-Crawler-API-Upload-to-Storage3-218x300.png 218w" sizes="(max-width: 486px) 100vw, 486px" /></p>
<p id="usage"><strong>使用方法</strong></p>
<p>要使用此功能，请在请求中指定两个附加参数。了解更多信息 <a href="#direct">这里</a>.</p>
<p>上传路径如下 <code>YOUR_BUCKET_NAME/job_ID.json</code>.您可以在提交请求后从我们收到的回复正文中找到职位 ID。在 <a href="#single-query">本例</a> 工作编号为 <code>12345678900987654321</code>.</p>
<pre>{
    "版本"："2012-10-17",
    "Id"："Policy1577442634787",
    "声明"：[
        {
            "Sid"："Stmt1577442633719"、
            "效果"："允许"、
            "校长"：{
                "AWS"："arn:aws:iam::324311890426:user/oxylabs.s3.uploader"
            },
            "Action"："s3:GetBucketLocation"、
            "资源"："arn:aws:s3:::YOUR_BUCKET_NAME" }.
        },
        {
            "Sid"："Stmt1577442633719"、
            "效果"："允许"、
            "校长"：{
                "AWS"："arn:aws:iam::324311890426:user/oxylabs.s3.uploader"
            },
            "Action"：[
                "s3:PutObject"、
                "s3:PutObjectAcl"。
            ],
            "资源"："arn:aws:s3:::YOUR_BUCKET_NAME/*"。
        }
    ]
}
</pre>
<hr />
<h3 id="realtime">实时</h3>
<p>数据提交与推拉式方法相同，但使用实时方法时，我们将在连接打开时返回内容。您向我们发送一个查询，连接保持打开，我们检索内容并将其发送给您。处理此问题的端点如下：</p>
<pre>邮寄 https://realtime.oxylabs.io/v1/queries
</pre>
<p>开放连接的超时限制为 100 秒。因此，在极少数负载较重的情况下，我们可能无法确保将数据发送给您。</p>
<p>您需要在 JSON 主体中将查询参数作为数据发布。详情请参阅示例。</p>
<pre>curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json" \
 -d '{"source"："universal", "url"："https://stackoverflow.com/questions/tagged/python"}'
</pre>
<p>打开连接时将返回的响应体示例：</p>
<pre>{
  "结果"：[
    {
      "content"："
      内容
      "
      "created_at"："2019-10-01 00:00:01",
      "更新时间"："2019-10-01 00:00:15",
      "id": null、
      "page"：1,
      "url"："https://stackoverflow.com/questions/tagged/python"、
      "job_id"："12345678900987654321",
      "status_code"：200
    }
  ]
}
</pre>
<hr />
<h3 id="superapi">超级用户接口</h3>
<p>如果您曾经使用过普通代理进行数据搜刮，那么集成 SuperAPI 传输方法将轻而易举。您只需将我们的入口节点用作代理，使用 HTML Crawler API 凭据进行授权，然后忽略证书即可。在 <code>cURL</code> 这是 <code>-k</code> 或 <code>--不安全</code>.您的数据将通过开放连接发送给您。</p>
<pre>GET realtime.oxylabs.io:60000
</pre>
<p>超级用户接口只支持少量参数，因为它 <strong>仅适用于 <a href="#direct">直接</a> 数据源</strong> 其中提供了完整的 URL。这些参数应作为标头发送。这是一份可接受的参数列表：</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><code>X-OxySERPs-User-Agent-Type</code></td>
<td>虽然无法指明特定的 User-Agent，但您可以让我们知道您使用的浏览器和平台。支持的用户代理列表如下所示 <a href="#user_agent_type">这里</a>.</td>
</tr>
</tbody>
</table>
</div>
<p>如果您在设置超级用户接口时需要帮助，请通过以下方式与我们联系 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a>.</p>
<pre>curl -k \
-x realtime.oxylabs.io:60000\
-U user:pass1
-H "X-OxySERPs-User-Agent-Type: desktop_chrome" \
"https://stackoverflow.com/questions/tagged/python"
</pre>
<hr />
<h2 id="content-type">内容类型</h2>
<p>HTML 抓取程序 API 返回 <strong>原始HTML</strong>.</p>
<hr />
<h3 id="download-images">下载图片</h3>
<p>可以通过 HTML Crawler API 下载图像。如果通过 SuperAPI 下载，只需将输出保存到图片扩展名即可。例如</p>
<p><code>curl -k -x realtime.oxylabs.io:60000 -U user:pass1 "https://example.com/image.jpg" &gt;&gt; image.jpg</code></p>
<p>如果您使用 <a href="#push-pull">推拉式</a> 或 <a href="#realtime">实时</a> 方法，您需要添加 <code>content_encoding</code> 参数的值为 <code>base64</code>.收到结果后，您需要解码来自 <code>内容</code> 转换成字节并保存为图像文件。右侧有一个 Python 示例。</p>
<hr />
<h2 id="data-sources">数据来源</h2>
<p>HTML Crawler API 接受 URL 以及其他参数，如 User-Agent 类型、代理位置等。请参阅此方法，我们将其称为 <a href="#direct">直接</a>下文将对此进行说明。</p>
<p>HTML Crawler API 能够在刮擦时渲染 JavaScript。这样，您就能从网页中获取更多数据，并获得屏幕截图。</p>
<p>如果您对文件的任何部分有疑问，请致电我们 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a> 或联系您的客户经理。</p>
<hr />
<h3 id="direct">直接</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-8283 alignnone" src="https://www.proxysp.com/wp-content/uploads/2021/09/Oxylabs-HTML-Crawler-API-Direct.png" alt="Oxylabs HTML Crawler API Direct" width="429" height="25" srcset="https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-HTML-Crawler-API-Direct.png 429w, https://proxysp.com/wp-content/uploads/2021/09/Oxylabs-HTML-Crawler-API-Direct-300x17.png 300w" sizes="(max-width: 429px) 100vw, 429px" /></p>
<p><code>万有</code> 源的目的是检索互联网上任何 URL 的内容。 <code>职位</code>-将 JSON 格式的参数发送到以下端点，将把指定的 URL 提交到提取队列。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72">参数</td>
<td style="font-weight: 400;" width="72">说明</td>
<td style="font-weight: 400;" width="72">默认值</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">万有</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">网址</td>
<td style="font-weight: 400;" width="72">通用网页的直接 URL（链接</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下 <a href="#user_agent_type">这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地理位置</td>
<td style="font-weight: 400;" width="72">用于检索数据的代理地理位置。支持位置的完整列表如下 <a href="#geo_location">这里。</a></td>
<td style="font-weight: 400;" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地点</td>
<td style="font-weight: 400;" width="72">正如 Accept-Language 标头所期望的那样。</td>
<td style="font-weight: 400;" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">给予</td>
<td style="font-weight: 400;" width="72">启用 JavaScript 渲染。在目标需要 JavaScript 加载内容时使用。仅适用于推拉（又称回调）方法。该参数有两个可用值：html（获取原始输出）和 png（获取 Base64 编码的截图）。</td>
<td style="font-weight: 400;" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">content_encoding</td>
<td style="font-weight: 400;" width="72">如果要下载图像，请添加此参数。了解更多信息 <a href="#download-images">这里。</a></td>
<td style="font-weight: 400;" width="72">base64</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">Base64 编码的 POST 请求正文。它只有在 http_method 设置为 post 时才有用。</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">内容</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">递上自己的饼干</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">饼干</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">指明是否希望扫描程序跟踪重定向（带有目标 URL 的 3xx 响应），以获取重定向链末端 URL 的内容。</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">follow_redirects</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">传递自己的标头</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">页眉</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">如果您想通过 Universal scraper 向目标 URL 发出 POST 请求，请将其设置为 "发布"。</td>
<td style="font-weight: 400;" rowspan="2" width="72">获取</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">http_method</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">如果您想在多个请求中使用同一个代理，可以使用此参数。只需将会话设置为任意字符串，我们就会为该 ID 分配一个代理，并最多保留 10 分钟。之后，如果您使用相同的会话 ID 发出另一个请求，我们就会为该特定会话 ID 分配一个新的代理。</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">session_id</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">定义一个自定义 HTTP 响应代码（或其中的几个），我们应根据该代码认为刮擦成功并将内容返回给您。如果您希望我们返回 503 错误页面或在其他一些非标准情况下，这可能会很有用。</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">成功状态代码</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">URL 到您的回调端点。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。我们支持 Amazon S3 和 Google Cloud Storage。这些存储服务提供商的 storage_type 参数值分别为 s3 和 gcs。完整的实现可以在 <a href="#upload-to-storage">上传到存储器</a> 页。此功能只能通过推拉（回调）方法使用。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" colspan="3" width="216">   - 所需参数</td>
</tr>
</tbody>
</table>
</div>
<p>在本例中，应用程序接口将以推拉方式检索一个通用产品页面。所有可用参数都包含在内（尽管在同一请求中并非总是必要或兼容），以便让您了解如何格式化您的请求：</p>
<pre>curl --user user:pass1
'https://data.oxylabs.io/v1/queries' \
-H "Content-Type: application/json"\
 -d '{"source": "universal", "url": "https://stackoverflow.com/questions/tagged/python", "user_agent_type": "mobile", "context":[{"key": "headers", "value":{"Accept-Language": "en-US", "Content-Type": "application/octet-stream", "Custom-Header": "custom header content"}},{"key": "cookies", "value":[{"key": "NID", "value"："1234567890"},{"key":"1P JAR","value":"0987654321"}]},{"key":"follow_redirects","value":true},{"key":"http_method","value":"post"},{"key":"content","value":"YmFzZTY0RW5jb2RlZFBPU1RCb2R5"},{"key":"successful_status_codes","value":[808,909]}]}
</pre>
<p>以下是实时模式下的相同示例：</p>
<pre>curl --user user:pass1
'https://data.oxylabs.io/v1/queries' \
-H "Content-Type: application/json"\
-d '{"source"："universal", "url"："https://stackoverflow.com/questions/tagged/python", "user_agent_type"："mobile", "context"：{"key"："headers", "value": ["Accept-Language"："en-US"，"Content-Type"："application/octet-stream"，"Custom-Header"："自定义标题内容"]}，{"key"："cookies"，"value"：[{"key"："NID"，"值"："1234567890"}，{"key"："1P JAR"，"值"："0987654321"}，{"key"："follow_redirects", "value": true}, {"key"："http_method", "value"："post"}, {"key"："内容"，"值"："base64EncodedPOSTBody"}, {"key"："successful_status_codes", "value": [303, 808, 909]}]}]}'
</pre>
<p>并通过超级用户接口（SuperAPI）：</p>
<pre># GET 请求可以如下所示：
curl -k \
-x http://realtime.oxylabs.io:60000 \
-U user:pass1
"https://stackoverflow.com/questions/tagged/python" \
-H "X-OxySERPs-Session-Id：1234567890abcdef"\H
-H "X-OxySERPs-Geo-Location：India" （印度
-H "Accept-Language: en-US"\
-H "Content-Type: application/octet-stream" （内容类型：应用程序/八进制流
-H "Custom-Header: custom header content" （自定义头内容
-H "Cookie：nid=1234567890; 1p_jar=0987654321" \\H "X-Status-Code.
-H "X-Status-Code：303, 808, 909"

# POST请求具有相同的结构，但包含一个参数，指定它是一个POST请求：
curl -X POST \
-k \
-x http://realtime.oxylabs.io:60000 \
-U user:pass1 "https://stackoverflow.com/questions/tagged/python"\
-H "X-OxySERPs-Session-Id：1234567890abcdef" \
-H "X-OxySERPs-Geo-Location：India" （印度
-H "Custom-Header: custom header content" （自定义头内容
-H "Cookie：nid=1234567890; 1p_jar=0987654321" \\H "X-Status Code.
-H "X-Status-Code：303, 808, 909"
</pre>
<hr />
<h2 id="parameter-values">参数值</h2>
<h3 id="geo_location">地理位置</h3>
<p>支持的地理位置完整列表以 CSV 格式提供 <a class="custom_link" href="https://docs.oxylabs.io/resources/universal-supported-geo_location-values.csv" target="_blank" rel="noopener">这里</a>.</p>
<pre>"阿拉伯联合酋长国
"阿尔巴尼亚
"亚美尼亚
"安哥拉
"阿根廷
"澳大利亚
...
"乌拉圭
"乌兹别克斯坦
"委内瑞拉玻利瓦尔共和国
越南
"南非"
"津巴布韦
</pre>
<hr />
<h3 id="http_method">HTTP_Method</h3>
<p>通用爬虫支持两种 HTTP(S) 方法： <code>获取</code> (默认）和 <code>职位</code>.</p>
<pre>"GET"、
"POST
</pre>
<hr />
<h3 id="render">渲染</h3>
<p>Universal Crawler 可渲染 Javascript 并返回渲染的 HTML 文档或 PNG 网页截图。</p>
<pre>"html"、
"png
</pre>
<hr />
<h3 id="user_agent_type">User_Agent_Type</h3>
<p>下载完整列表 <code>用户代理类型</code> JSON 中的值 <a class="custom_link" href="https://docs.oxylabs.io/resources/user_agent_type.json" target="_blank" rel="noopener">这里</a>.</p>
<pre>[
  {
    "user_agent_type"："桌面"、
    "描述"："随机桌面浏览器用户代理"
  },
  {
    "user_agent_type"："desktop_firefox"、
    "描述"："最新版桌面火狐浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_chrome"、
    "description"："最新版桌面 Chrome 浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_opera"、
    "description"："最新版本桌面 Opera 的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_edge"、
    "description"："桌面边缘最新版本之一的随机用户代理"。
  },
  {
    "user_agent_type"："desktop_safari"、
    "description"："桌面 Safari 最新版本之一的随机用户代理"。
  },
  {
    "user_agent_type"："mobile"、
    "description"："随机移动浏览器用户代理"
  },
  {
    "user_agent_type"："mobile_android"、
    "description"（描述）："最新版本安卓浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："mobile_ios"、
    "描述"："最新版本 iPhone 浏览器的随机用户代理"。
  },
  {
    "user_agent_type"："平板电脑"、
    "描述"："随机平板电脑浏览器用户代理"
  },
  {
    "user_agent_type"："tablet_android"、
    "描述"："最新版本安卓平板电脑的随机用户代理"。
  },
  {
    "user_agent_type"："tablet_ios"、
    "description"："最新版本 iPad 平板电脑的随机用户代理"。
  }
]
</pre>
<hr />
<h2 id="account-status">账户状态</h2>
<h3 id="usage-statistics">使用统计</h3>
<p>您可以通过查询以下端点找到您的使用统计数据：</p>
<pre>GET https://data.oxylabs.io/v1/stats
</pre>
<p>默认情况下，API 将返回所有时间的使用统计数据。添加 <code>group_by=month</code> 将返回月度统计数据，而 <code>group_by=day</code> 将返回每日数字。</p>
<p>此查询将返回所有时间的统计数据。您可以通过添加以下任一选项来查询每日和每月的使用量 <code>group_by=day</code> 或 <code>group_by=month</code></p>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/stats'
</pre>
<p>输出示例</p>
<pre>{
    "数据"：{
        "sources"：[
            {
                "realtime_results_count"："90",
                "results_count"："10",
                "标题"："通用"
            }
        ]
    },
    "元"：{
        "group_by": null
    }
}
</pre>
<hr />
<h3 id="limits">限制</h3>
<p>以下端点将提供您的每月承诺信息以及已使用的承诺额度：</p>
<pre>GET https://data.oxylabs.io/v1/stats/limits
</pre>
<pre>curl --user user:pass1 'https://data.oxylabs.io/v1/stats/limits'
</pre>
<p>输出示例</p>
<pre>{
    "monthly_requests_commitment"：4500000,
    "used_requests"：985000
}
</pre>
<hr />
<h2 id="response-codes">响应代码</h2>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>代码</th>
<th>现状</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>204</code></td>
<td>无内容</td>
<td>您正在尝试检索一项尚未完成的任务。</td>
</tr>
<tr>
<td><code>400</code></td>
<td>多种错误信息</td>
<td>请求结构错误，可能是参数拼写错误或值无效。响应体将显示更具体的错误信息。</td>
</tr>
<tr>
<td><code>401</code></td>
<td>未提供授权标头"/"授权标头无效"/"未找到客户端</td>
<td>缺少授权标头或登录凭证不正确。</td>
</tr>
<tr>
<td><code>403</code></td>
<td>禁止</td>
<td>您的帐户无法访问此资源。</td>
</tr>
<tr>
<td><code>404</code></td>
<td>未找到</td>
<td>您要查找的职位编号已不再可用。</td>
</tr>
<tr>
<td><code>429</code></td>
<td>请求太多</td>
<td>超出费率限制。请联系您的客户经理以提高限额。</td>
</tr>
<tr>
<td><code>500</code></td>
<td>未知错误</td>
<td>无法提供服务。</td>
</tr>
<tr>
<td><code>524</code></td>
<td>超时</td>
<td>无法提供服务。</td>
</tr>
<tr>
<td><code>612</code></td>
<td>未定义的内部错误</td>
<td>出了点问题，我们未能完成您提交的任务。您可以免费再试一次，因为我们不会向您收取任何费用。 <code>有问题</code> 工作。如果无效，请与我们联系。</td>
</tr>
<tr>
<td><code>613</code></td>
<td>重试次数过多后出现故障</td>
<td>我们曾尝试清除您提交的作业，但在达到重试限制后放弃了。您可以免费再试一次，因为我们不会向您收取任何费用。 <code>有问题</code> 工作。如果无效，请与我们联系。</td>
</tr>
</tbody>
</table>
</div>
<hr />
<h4>参考资料</h4>
<ul>
<li><a href="https://docs.oxylabs.io/rtc/source/html-crawler-api/index.html" target="_blank" rel="nofollow noopener">https://docs.oxylabs.io/rtc/source/html-crawler-api/index.html</a></li>
<li><a href="https://docs.oxylabs.io/rtc/index.html" target="_blank" rel="nofollow noopener">https://docs.oxylabs.io/rtc/index.html</a></li>
</ul>
<p>&nbsp;</p>
<hr />
<blockquote><p><strong>免责声明</strong> 这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/oxylabs-html-crawler-api/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7636</post-id>	</item>
		<item>
		<title>How to Use ProxyScrape Premium API</title>
		<link>https://proxysp.com/zh/proxyscrape-premium-api/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=proxyscrape-premium-api</link>
					<comments>https://proxysp.com/zh/proxyscrape-premium-api/#respond</comments>
		
		<dc:creator><![CDATA[proxysp]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[Manuals]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=8489</guid>

					<description><![CDATA[本文将介绍如何以编程方式使用 ProxyScrape Premium API 服务。现在就开始吧！获取代理列表 https://api.proxyscrape.com/v2/account/datacenter_shared/proxy-list?auth=nhuyjukilompnbvfrtyuui&amp;type=getproxies&amp;country[]=all&amp;protocol=http&amp;format=normal 示例请求 var request = http.Request('GET', ...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/proxyscrape-premium-api/"> <span class="screen-reader-text">如何使用 ProxyScrape Premium API</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>本文将介绍如何以编程方式使用 ProxyScrape Premium API 服务。现在就开始吧！</p></blockquote>
<h2>获取代理列表</h2>
<pre>https://api.proxyscrape.com/v2/account/datacenter_shared/proxy-list?auth=nhuyjukilompnbvfrtyuui&type=getproxies&country[]=all&protocol=http&format=normal</pre>
<p>&nbsp;</p>
<div class="su-table su-table-responsive su-table-alternate su-table-fixed">
<table width="407">
<tbody>
<tr>
<td style="font-weight: 400;" width="72">授权</td>
<td style="font-weight: 400;" width="335">nhuyjukilompnbvfrtyuui<br />
提供您的 API 验证密钥</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">类型</td>
<td style="font-weight: 400;" width="335">获取代理<br />
下载代理服务器，或在浏览器中显示代理服务器：</p>
<ul>
<li>获取代理</li>
<li>显示代理</li>
</ul>
</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">国家[]</td>
<td style="font-weight: 400;" width="335">一应俱全<br />
提供您账户中可用的任何 Alpha 2 ISO 国家代码。如果您想同时下载多个国家/地区，请重复以下参数：&amp;country[]=us&amp;country[]=de如果未提供此参数，则默认为所有国家/地区。</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">规程</td>
<td style="font-weight: 400;" width="335">http<br />
定义要下载的代理协议：</p>
<ul>
<li>http</li>
<li>袜子</li>
</ul>
<p>HTTP 代理服务器支持 SSL (https)。Socks 代理服务器支持 Socks4 和 Socks5。</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">格式</td>
<td style="font-weight: 400;" width="335">正常<br />
您希望接收代理服务器的格式：</p>
<ul>
<li>正常：简单的代理列表</li>
<li>json：返回所有代理及其相关国家和状态。</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="styles__ExampleTitle-sc-1gk0rxh-1 coCuLw">申请示例</div>
<div>
<pre class="language-javascript"><code class="language-javascript"><span class="token keyword">变异</span> 要求 <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">要求</span><span class="token punctuation">(</span><span class="token string">GET</span><span class="token punctuation">,</span> 乌里<span class="token punctuation">.</span><span class="token function">解析</span><span class="token punctuation">(</span><span class="token string">'https://api.proxyscrape.com/v2/account/datacenter_shared/proxy-list?auth=nhuyjukilompnbvfrtyuui&amp;type=getproxies&amp;country[]=all&amp;protocol=http&amp;format=normal'（ https://api.proxyscrape.com/v2/account/datacenter_shared/proxy-list?auth=nhuyjukilompnbvfrtyuui&amp;type=getproxies&amp;country[]=all&amp;protocol=http&amp;format=normal</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>


http<span class="token punctuation">.</span>StreamedResponse 响应 <span class="token operator">=</span> <span class="token keyword">等</span> 要求<span class="token punctuation">.</span><span class="token function">发送</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token keyword">如果</span> <span class="token punctuation">(</span>回应<span class="token punctuation">.</span>状态代码 <span class="token operator">==</span> <span class="token number">200</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
  <span class="token function">打印</span><span class="token punctuation">(</span><span class="token keyword">等</span> 回应<span class="token punctuation">.</span>溪流<span class="token punctuation">.</span><span class="token function">字节到字符串</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token keyword">不然</span> <span class="token punctuation">{</span>
  <span class="token function">打印</span><span class="token punctuation">(</span>回应<span class="token punctuation">.</span>原因<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span></code></pre>
</div>
<hr />
<h2>获取经过验证的 IP</h2>
<pre>https://api.proxyscrape.com/v2/account/datacenter_shared/whitelist?auth=nhuyjukilompnbvfrtyuui&type=get</pre>
<p>显示已通过账户验证的 IP。</p>
<p>参数</p>
<div class="su-table su-table-responsive su-table-alternate su-table-fixed">
<table width="298">
<tbody>
<tr>
<td style="font-weight: 400;" width="72">授权</td>
<td style="font-weight: 400;" width="226">nhuyjukilompnbvfrtyuui<br />
提供您的 API 验证密钥</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">类型</td>
<td style="font-weight: 400;" width="226">获取<br />
获取账户上经过验证的 IP</td>
</tr>
</tbody>
</table>
</div>
<div class="styles__ExampleTitle-sc-1gk0rxh-1 coCuLw">申请示例</div>
<div>
<pre class="language-javascript"><code class="language-javascript"><span class="token keyword">变异</span> 要求 <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">要求</span><span class="token punctuation">(</span><span class="token string">GET</span><span class="token punctuation">,</span> 乌里<span class="token punctuation">.</span><span class="token function">解析</span><span class="token punctuation">(</span><span class="token string">'https://api.proxyscrape.com/v2/account/datacenter_shared/whitelist?auth=nhuyjukilompnbvfrtyuui&amp;type=get'</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>


http<span class="token punctuation">.</span>StreamedResponse 响应 <span class="token operator">=</span> <span class="token keyword">等</span> 要求<span class="token punctuation">.</span><span class="token function">发送</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token keyword">如果</span> <span class="token punctuation">(</span>回应<span class="token punctuation">.</span>状态代码 <span class="token operator">==</span> <span class="token number">200</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
  <span class="token function">打印</span><span class="token punctuation">(</span><span class="token keyword">等</span> 回应<span class="token punctuation">.</span>溪流<span class="token punctuation">.</span><span class="token function">字节到字符串</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token keyword">不然</span> <span class="token punctuation">{</span>
  <span class="token function">打印</span><span class="token punctuation">(</span>回应<span class="token punctuation">.</span>原因<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span></code></pre>
</div>
<div>
<hr />
</div>
<h2>GET 验证一个 IP</h2>
<pre>https://api.proxyscrape.com/v2/account/datacenter_shared/whitelist?auth=nhuyjukilompnbvfrtyuui&type=set&ip[]=1.1.1.1</pre>
<p>请注意，每个新的身份验证请求都必须包含所有需要保持身份验证的 IP。要取消 IP 身份验证，可以重新发送身份验证请求，但不包括必须取消身份验证的 IP。</p>
<p>参数</p>
<div class="su-table su-table-responsive su-table-alternate su-table-fixed">
<p>&nbsp;</p>
</div>
<div class="styles__ExampleTitle-sc-1gk0rxh-1 coCuLw">申请示例</div>
<div class="styles__ExampleTitle-sc-1gk0rxh-1 coCuLw">
<pre class="language-javascript"><code class="language-javascript"><span class="token keyword">变异</span> 要求 <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">要求</span><span class="token punctuation">(</span><span class="token string">GET</span><span class="token punctuation">,</span> 乌里<span class="token punctuation">.</span><span class="token function">解析</span><span class="token punctuation">(</span><span class="token string">'https://api.proxyscrape.com/v2/account/datacenter_shared/whitelist?auth=nhuyjukilompnbvfrtyuui&amp;type=set&amp;ip[]=1.1.1.1'</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>


http<span class="token punctuation">.</span>StreamedResponse 响应 <span class="token operator">=</span> <span class="token keyword">等</span> 要求<span class="token punctuation">.</span><span class="token function">发送</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token keyword">如果</span> <span class="token punctuation">(</span>回应<span class="token punctuation">.</span>状态代码 <span class="token operator">==</span> <span class="token number">200</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
  <span class="token function">打印</span><span class="token punctuation">(</span><span class="token keyword">等</span> 回应<span class="token punctuation">.</span>溪流<span class="token punctuation">.</span><span class="token function">字节到字符串</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token keyword">不然</span> <span class="token punctuation">{</span>
  <span class="token function">打印</span><span class="token punctuation">(</span>回应<span class="token punctuation">.</span>原因<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span></code></pre>
</div>
<hr />
<h2>GET 验证多个 IP</h2>
<pre>https://api.proxyscrape.com/v2/account/datacenter_shared/whitelist?auth=nhuyjukilompnbvfrtyuui&type=set&ip[]=1.1.1.1&ip[]=1.1.1.2&ip[]=1.1.1.3</pre>
<p>要验证多个 IP，只需重复 ip[] 参数即可。</p>
<p>参数</p>
<div class="su-table su-table-responsive su-table-alternate su-table-fixed">
<table width="298">
<tbody>
<tr>
<td style="font-weight: 400;" width="72">授权</td>
<td style="font-weight: 400;" width="226">nhuyjukilompnbvfrtyuui<br />
提供您的 API 验证密钥</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">类型</td>
<td style="font-weight: 400;" width="226">设置<br />
设置 IP 请求</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">ip[]</td>
<td style="font-weight: 400;" width="226">1.1.1.1<br />
提供必须验证的 IP 之一</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">ip[]</td>
<td style="font-weight: 400;" width="226">1.1.1.2<br />
提供必须验证的 IP 之一</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">ip[]</td>
<td style="font-weight: 400;" width="226">1.1.1.3<br />
提供必须验证的 IP 之一</td>
</tr>
</tbody>
</table>
</div>
<div>
<div class="styles__ExampleTitle-sc-1gk0rxh-1 coCuLw">申请示例</div>
<div>
<pre class="language-javascript"><code class="language-javascript"><span class="token keyword">变异</span> 要求 <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">要求</span><span class="token punctuation">(</span><span class="token string">GET</span><span class="token punctuation">,</span> 乌里<span class="token punctuation">.</span><span class="token function">解析</span><span class="token punctuation">(</span><span class="token string">'https://api.proxyscrape.com/v2/account/datacenter_shared/whitelist?auth=nhuyjukilompnbvfrtyuui&amp;type=set&amp;ip[]=1.1.1.1&amp;ip[]=1.1.1.2&amp;ip[]=1.1.1.3'</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>


http<span class="token punctuation">.</span>StreamedResponse 响应 <span class="token operator">=</span> <span class="token keyword">等</span> 要求<span class="token punctuation">.</span><span class="token function">发送</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token keyword">如果</span> <span class="token punctuation">(</span>回应<span class="token punctuation">.</span>状态代码 <span class="token operator">==</span> <span class="token number">200</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
  <span class="token function">打印</span><span class="token punctuation">(</span><span class="token keyword">等</span> 回应<span class="token punctuation">.</span>溪流<span class="token punctuation">.</span><span class="token function">字节到字符串</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token keyword">不然</span> <span class="token punctuation">{</span>
  <span class="token function">打印</span><span class="token punctuation">(</span>回应<span class="token punctuation">.</span>原因<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span></code></pre>
</div>
</div>
<div>
<hr />
<h4 id="references" class="ftwp-heading">参考资料</h4>
</div>
<ul>
<li><a href="https://docs.proxyscrape.com/#b91b6c21-172c-48b3-ab99-6f297d5d9a7b" target="_blank" rel="nofollow noopener">https://docs.proxyscrape.com/#b91b6c21-172c-48b3-ab99-6f297d5d9a7b</a></li>
</ul>
<hr />
<blockquote>
<div><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</div>
</blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/proxyscrape-premium-api/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">8489</post-id>	</item>
		<item>
		<title>How to Use Scraping Robot API? Learn Manuals Before You Buy</title>
		<link>https://proxysp.com/zh/how-to-use-scraping-robot-api/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-use-scraping-robot-api</link>
					<comments>https://proxysp.com/zh/how-to-use-scraping-robot-api/#respond</comments>
		
		<dc:creator><![CDATA[proxysp]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[Manuals]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=8698</guid>

					<description><![CDATA[想购买 Scraping Robot API 用于网络搜索？在此之前，你必须知道如何使用它。本文将为您详细介绍如何使用 Scraping Robot API。<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/how-to-use-scraping-robot-api/"> <span class="screen-reader-text">如何使用 Scraping Robot API？购买前学习手册</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>想购买 Scraping Robot API 用于网络搜索？在此之前，你必须知道如何使用它。本文将为你提供详细指导。</p></blockquote>
<h2>搜索机器人应用程序接口</h2>
<h3>基本用法</h3>
<header class="headline-container21aRBSn8Bqg6 headline-container_basic1DFntTggitfX">
<div class="markdown-body undefined excerptT2m-MzSJGRK7" role="doc-subtitle" data-testid="RDMD">
<p>本页将介绍 Scraping Robot 的基本功能</p>
</div>
</header>
<div class="markdown-body" data-testid="RDMD">
<p>Scraping Robot API 只提供一个 API 端点。只需发送 http 请求到 <a href="https://api.scrapingrobot.com/" target="_blank" rel="nofollow noopener">https://api.scrapingrobot.com</a> 使用作为查询参数传递的 API 密钥，获取所需的数据。</p>
<p>所有任务参数都以 JSON 对象的形式在 POST 主体中传递。</p>
<div id="post-sample-code" class="heading-anchor anchor waypoint"><strong style="font-size: 16px;">POST 示例代码</strong></div>
<p><a href="https://api.scrapingrobot.com/?token=" target="_self" rel="noopener">https://api.scrapingrobot.com?token=</a>&lt;YOUR_SR_TOKEN&gt;</p>
<p>代码示例</p>
<pre class="p-0">{  
<span class="cm-property">  "url"</span>: <span class="cm-string">"https://www.scrapingrobot.com/"</span>,  
<span class="cm-property">  "模块"</span>: <span class="cm-string">"HtmlChromeScraper"</span> 
}</pre>
<hr />
</div>
<h3>认证</h3>
<p>向 Scraping Robot API 提出的每个请求都应包含一个访问令牌。如果用户没有提供令牌或令牌无效，Scraping Robot 将以状态 401（未授权）作出响应。</p>
<p>令牌可以通过两种方式传递：</p>
<ul>
<li>作为查询参数：
<ul>
<li>token=</li>
</ul>
</li>
<li>在授权标头（承载认证）中：
<ul>
<li>授权：承载者</li>
</ul>
</li>
</ul>
<p><strong>请注意： </strong>要获得 Scraping Robot API 访问令牌，您必须在以下网址注册账户 <a href="https://dashboard.scrapingrobot.com/sign-up" target="_blank" rel="nofollow noopener">https://dashboard.scrapingrobot.com/sign-up</a>.</p>
<hr />
<h2>错误处理</h2>
<h3>授权参数缺失</h3>
<p>如果你忘记将 Scraping Robot 面板上的 API 密钥作为 "令牌 "路径参数包含在 API 调用中，我们会在屏幕右侧显示错误信息。</p>
<p>授权参数缺失</p>
<pre>{
<span class="cm-property">   "状态"</span>: <span class="cm-string">"失败"</span>,
<span class="cm-property">   "日期"</span>: <span class="cm-string">"Thu, 01 Mar 2020 10:00:00 GMT"</span>,
<span class="cm-property">   "错误"</span>: <span class="cm-string">"未找到令牌查询参数"</span>
}</pre>
<p>要纠正这一错误，请在 API 调用中将您的 Scraping Robot 面板中的 API 密钥作为 "令牌 "路径参数，这样您就有权向我们的系统提出请求。</p>
<hr />
<h3>授权参数无效</h3>
<p>如果您在 API 调用中将无效的 API 密钥作为 "令牌 "路径参数，我们将在屏幕右侧显示错误信息。</p>
<p>授权参数无效</p>
<pre>{
<span class="cm-property">   "状态"</span>: <span class="cm-string">"失败"</span>,
<span class="cm-property">   "日期"</span>: <span class="cm-string">"Thu, 01 Mar 2020 10:00:00 GMT"</span>,
<span class="cm-property">   "错误"</span>: <span class="cm-string">"客户端令牌无效"</span>
}</pre>
<p>要纠正这一错误，请在 API 调用中将您的 Scraping Robot 面板中的 API 密钥作为 "令牌 "路径参数，这样您就有权向我们的系统提出请求。</p>
<hr />
<h3>学分不足</h3>
<p>如果您的账户中没有足够的点数来执行您请求的刮擦任务，我们将在屏幕右侧显示错误信息。</p>
<p>学分不足</p>
<pre>{
  "状态"："FAIL"、
  "date"："Thu, 01 Mar 2020 10:00:00 GMT"、
  "错误"："您没有足够的点数
}</pre>
<p>要纠正此错误，请通过 Scraping Robot 控制面板或 <a href="https://scrapingrobot.com/contact-us/" target="_blank" rel="nofollow noopener">联系我们的支持团队</a> 将积分添加到您的账户。</p>
<hr />
<h3>请求体不是有效的 JSON</h3>
<p>如果您发送的请求没有有效的 JSON，我们会在屏幕右侧显示错误信息。</p>
<p>无效 JSON 包括任何非 JSON 格式和不具备 JSON 结构的内容。这与接下来解释的 "无效请求正文 "错误不同。</p>
<p>请求体不是有效的 JSON</p>
<pre>{
  "状态"："FAIL"、
  "date": "Thu, 01 Mar 2020 10:00:00 GMT"、
  "error"："Request-body is not a valid JSON" （请求体不是有效的 JSON
}</pre>
<p>要纠正此错误，请修复请求正文中的 JSON 并再次尝试请求。您可以在网上找到 JSON 验证器，帮助您正确格式化 JSON。</p>
<hr />
<h3>无效请求体</h3>
<p>如果您发送了 JSON 正文，但正文参数不正确或顺序不对，我们会在屏幕右侧显示错误信息。</p>
<p>无效请求体</p>
<pre>{
  "状态"："FAIL"、
  "date": "Thu, 01 Mar 2020 10:00:00 GMT"、
  "error"："无效 json 格式：..."
}</pre>
<p>要纠正此错误，请查看您发送的请求的 API 文档，以确保所有参数正确无误。如果您无法自行解决该问题，请 <a href="https://scrapingrobot.com/contact-us/" target="_blank" rel="nofollow noopener">联系我们的支持团队</a> 寻求帮助，我们很乐意提供帮助！</p>
<hr />
<h3>服务超载</h3>
<p>如果在您提出请求时我们的服务已超负荷，我们将在屏幕右侧显示错误信息。</p>
<p>服务超载</p>
<pre>{
  "状态"："FAIL"、
  "date": "Thu, 01 Mar 2020 10:00:00 GMT"、
  "错误"："服务超载。稍后再试"。
}</pre>
<p>要纠正这一错误，请 <a href="https://scrapingrobot.com/contact-us/" target="_blank" rel="nofollow noopener">联系我们的支持团队</a> 了解最新情况。</p>
<hr />
<h3>页面加载失败</h3>
<p>如果 Scraping Robot 无法加载您要搜刮的页面，我们会在屏幕右侧显示错误信息。</p>
<p>页面加载失败</p>
<pre>{
  "状态"："FAIL"、
  "date": "Thu, 01 Mar 2020 10:00:00 GMT"、
  "错误"："请稍后再重试此任务"
}</pre>
<p>要纠正这一错误，请 <a href="https://scrapingrobot.com/contact-us/" target="_blank" rel="nofollow noopener">联系我们的支持团队</a> 寻求帮助。</p>
<hr />
<h3>内部错误</h3>
<p>如果我们的系统出现问题，我们会在屏幕右侧显示错误信息。</p>
<p>内部错误</p>
<pre>{
  "错误"："内部服务器错误"、
  "date"："Thu, 01 Mar 2020 10:00:00 GMT"、
  "status"："FAIL" (失败)
}</pre>
<p>要纠正这一错误，请 <a href="https://scrapingrobot.com/contact-us/" target="_blank" rel="nofollow noopener">联系我们的支持团队</a> 寻求帮助。</p>
<hr />
<h2>荣誉</h2>
<h3>获取信贷余额</h3>
<p><span class="APIMethod APIMethod_fixedWidth APIMethod_get headline-container-api-method1Hc-Fm7uaccR" data-testid="http-method">获取 </span><span class="headline-container-article-info-url2nV_XrjpFuVQ" style="font-size: 13px; color: #4f5a66; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" title="https://api.scrapingrobot.com/balance?token=&lt;YOUR_SR_TOKEN&gt;" data-testid="serverurl">https://api.scrapingrobot.com/balance?token=&lt;YOUR_SR_TOKEN&gt;</span></p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="0" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"></div><div class="su-tabs-panes"></div></div>






[/su_tab]
<hr />
<div class="card-body">
<h3>获取信贷使用统计</h3>
</div>
<div class="headline-container-article-info2GaOf2jMpV0r"><span class="APIMethod APIMethod_fixedWidth APIMethod_get headline-container-api-method1Hc-Fm7uaccR" data-testid="http-method">获取</span> <span class="headline-container-article-info-url2nV_XrjpFuVQ" title="https://api.scrapingrobot.com/stats?token=&lt;YOUR_SR_TOKEN&gt;&type=daily" data-testid="serverurl">https://api.scrapingrobot.com/stats?token=&lt;YOUR_SR_TOKEN&gt;&type=daily</span></div>
<div class="markdown-body undefined excerptT2m-MzSJGRK7" role="doc-subtitle" data-testid="RDMD">
<p>该终端将显示指定时间段内的信用额度使用情况。</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="5" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>节点</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button">选项卡标题</span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>C++</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<div class="card-body">
<pre class="p-0"><span class="hljs-string">curl --request GET\
--url 'https://api.scrapingrobot.com/balance?token=' \
--header'Accept:application/json'（接受：应用程序/json</span></pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Node&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<div class="card-body">
<pre class="p-0"><span class="hljs-string">const fetch = require('node-fetch')；
const url = 'https://api.scrapingrobot.com/balance?token='；
const options = {method: 'GET', headers：{Accept: 'application/json'}}；
fetch(url, options)
  .then(res =&gt; res.json())
  .then(json =&gt; console.log(json))
  .catch(err =&gt; console.error('error:' + err))；</span></pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<div class="card-body">
<pre class="p-0">request('GET', 'https://api.scrapingrobot.com/balance?token=', [
标题' =&gt; [
'Accept' =&gt; 'application/json'、
],
]);

echo $response-&gt;getBody()；<span class="hljs-string"> </span></pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<div class="card-body">
<pre class="p-0">进口请求

url = "https://api.scrapingrobot.com/balance?token="

headers = {"Accept"："application/json"}

response = requests.request("GET", url, headers=headers)

print(response.text)
</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="Tab title">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<div class="card-body">
<pre class="p-0">const options = {method: 'GET', headers：{Accept: 'application/json'}}；

fetch('https://api.scrapingrobot.com/balance?token=', options)
.then(response =&gt; response.json())
.then(response =&gt; console.log(response))
.catch(err =&gt; console.error(err))；
</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;C++&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<div class="card-body">
<pre class="p-0">CURL *hnd = curl_easy_init()；

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET")；
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.scrapingrobot.com/balance?token=")；

struct curl_slist *headers = NULL；
headers = curl_slist_append(headers, "Accept: application/json")；
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers)；

CURLcode ret = curl_easy_perform(hnd)；
</pre>
</div>
</div></div></div>






[/su_tab]
<hr />
</div>
<div class="card-body">
<h2>Html API</h2>
</div>
<h3>使用 POST 请求创建任务</h3>
<h1>/</h1>
<div class="headline-container-article-info2GaOf2jMpV0r"><span class="APIMethod APIMethod_fixedWidth APIMethod_post headline-container-api-method1Hc-Fm7uaccR" data-testid="http-method">邮寄</span> <span class="headline-container-article-info-url2nV_XrjpFuVQ" title="https://api.scrapingrobot.com/" data-testid="serverurl">https://api.scrapingrobot.com/</span></div>
<div>创建刮擦任务</div>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="5" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>节点</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"> <strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>JavaScript</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>C++</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<p>要求</p>
<pre class="p-0">curl --request GET\
--url 'https://api.scrapingrobot.com/stats?token=&amp;type=daily'\
--header'Accept:application/json'（接受：应用程序/json
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Node&lt;/strong&gt;">
<p>要求</p>
<pre class="p-0">const fetch = require('node-fetch')；

const url = 'https://api.scrapingrobot.com/stats?token=&amp;type=daily'；
const options = {method: 'GET', headers：{Accept: 'application/json'}}；

fetch(url, options)
.then(res =&gt; res.json())
.then(json =&gt; console.log(json))
.catch(err =&gt; console.error('error:' + err))；
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<p>要求</p>
<pre class="p-0">request('GET', 'https://api.scrapingrobot.com/stats?token=&amp;type=daily', [
标题' =&gt; [
Accept' =&gt; 'application/json'、
],
]);

echo $response-&gt;getBody()；
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title=" &lt;strong&gt;Python&lt;/strong&gt;">
<p>要求</p>
<pre class="p-0">进口请求

url = "https://api.scrapingrobot.com/stats?token=&amp;type=daily"

headers = {"Accept"："application/json"}

response = requests.request("GET", url, headers=headers)

print(response.text)
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;JavaScript&lt;/strong&gt;">
<p>要求</p>
<pre class="p-0">const options = {method: 'GET', headers：{Accept: 'application/json'}}；

fetch('https://api.scrapingrobot.com/stats?token=&amp;type=daily', options)
.then(response =&gt; response.json())
.then(response =&gt; console.log(response))
.catch(err =&gt; console.error(err))；
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;C++&lt;/strong&gt;">
<p>要求</p>
<pre class="p-0">CURL *hnd = curl_easy_init()；

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET")；
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.scrapingrobot.com/stats?token=&amp;type=daily")；

struct curl_slist *headers = NULL；
headers = curl_slist_append(headers, "Accept: application/json")；
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers)；

CURLcode ret = curl_easy_perform(hnd)；
</pre>
</div></div></div>






[/su_tab]
<hr />
<h3>使用 GET-request 创建任务</h3>
<div class="headline-container-grid-itemGdPV-VbhShYs button-containerobFfV0vf6giV">
<h1>/</h1>
</div>
<div class="headline-container-article-info2GaOf2jMpV0r"><span class="APIMethod APIMethod_fixedWidth APIMethod_get headline-container-api-method1Hc-Fm7uaccR" data-testid="http-method">获取</span> <span class="headline-container-article-info-url2nV_XrjpFuVQ" title="https://api.scrapingrobot.com/" data-testid="serverurl">https://api.scrapingrobot.com/</span></div>
<div class="markdown-body undefined excerptT2m-MzSJGRK7" role="doc-subtitle" data-testid="RDMD">
<p>创建刮擦任务</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="5" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>节点</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>JavaScript</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>C++</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0">curl --request POST \
--url 'https://api.scrapingrobot.com/?responseType=json&waitUntil=load&noScripts=false&noImages=true&noFonts=true&noCss=true&contentType=text%2Fplain' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Node&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0">const sdk = require('api')('@staging-docs-scrapingrobot/v1.0#1b382ykufox5uf');

sdk.server('https:/api.scrapingrobot.com/');
sdk.post('', {
responseType: 'json',
waitUntil: 'load',
noScripts: 'false',
noImages: 'true',
noFonts: 'true',
noCss: 'true',
contentType: 'text%2Fplain'
})
.then(res =&gt; console.log(res))
.catch(err =&gt; console.error(err));
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0">&lt;?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client-&gt;request('POST', 'https://api.scrapingrobot.com/?responseType=json&waitUntil=load&noScripts=false&noImages=true&noFonts=true&noCss=true&contentType=text%2Fplain', [
'headers' =&gt; [
'Accept' =&gt; 'application/json',
'Content-Type' =&gt; 'application/json',
],
]);

echo $response-&gt;getBody();
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0">import requests

url = "https://api.scrapingrobot.com/?responseType=json&waitUntil=load&noScripts=false&noImages=true&noFonts=true&noCss=true&contentType=text%2Fplain"

headers = {
"Accept": "application/json",
"Content-Type": "application/json"
}

response = requests.request("POST", url, headers=headers)

print(response.text)
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;JavaScript&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0">const options = {
method: 'POST',
headers: {Accept: 'application/json', 'Content-Type': 'application/json'}
};

fetch('https://api.scrapingrobot.com/?responseType=json&waitUntil=load&noScripts=false&noImages=true&noFonts=true&noCss=true&contentType=text%2Fplain', options)
.then(response =&gt; response.json())
.then(response =&gt; console.log(response))
.catch(err =&gt; console.error(err));
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;C++&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0">CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.scrapingrobot.com/?responseType=json&waitUntil=load&noScripts=false&noImages=true&noFonts=true&noCss=true&contentType=text%2Fplain");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Accept: application/json");
headers = curl_slist_append(headers, "Content-Type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
</pre>
</div></div></div>






[/su_tab]
</div>
<hr />
<div class="card-body">
<h3>获取当前积分余额</h3>
<div class="headline-container-grid-itemGdPV-VbhShYs button-containerobFfV0vf6giV">
<p><strong>/平衡</strong></p>
<p><span class="APIMethod APIMethod_fixedWidth APIMethod_get headline-container-api-method1Hc-Fm7uaccR" data-testid="http-method">获取</span> <span class="headline-container-article-info-url2nV_XrjpFuVQ" title="https://api.scrapingrobot.com/balance" data-testid="serverurl">https://api.scrapingrobot.com/balance</span></p>
</div>
<div class="markdown-body undefined excerptT2m-MzSJGRK7" role="doc-subtitle" data-testid="RDMD">
<p>获取当前积分余额</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="5" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>节点</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"> <strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>JavaScript</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>C++</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0">curl --request GET\
--url https://api.scrapingrobot.com/ \
--header'Accept:application/json'（接受：应用程序/json
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Node&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0">const sdk = require('api')('@staging-docs-scrapingrobot/v1.0#1b382ykufox5uf')；

sdk.server('https:/api.scrapingrobot.com/')；
sdk.get('', {
responseType：'json'、
waitUntil：load'、
noScripts：false'、
noImages：true
noFonts: 'true'、
noCss: 'true
})
.then(res =&gt; console.log(res))
.catch(err =&gt; console.error(err))；
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0">request('GET', 'https://api.scrapingrobot.com/?responseType=json&amp;waitUntil=load&amp;noScripts=false&amp;noImages=true&amp;noFonts=true&amp;noCss=true', [
标题' =&gt; [
'Accept' =&gt; 'application/json'、
],
]);

echo $response-&gt;getBody()；
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title=" &lt;strong&gt;Python&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0">进口请求

url = "https://api.scrapingrobot.com/?responseType=json&amp;waitUntil=load&amp;noScripts=false&amp;noImages=true&amp;noFonts=true&amp;noCss=true"

headers = {"Accept"："application/json"}

response = requests.request("GET", url, headers=headers)

print(response.text)
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;JavaScript&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0">const options = {method: 'GET', headers：{Accept: 'application/json'}}；

fetch('https://api.scrapingrobot.com/?responseType=json&amp;waitUntil=load&amp;noScripts=false&amp;noImages=true&amp;noFonts=true&amp;noCss=true', options)
.then(response =&gt; response.json())
.then(response =&gt; console.log(response))
.catch(err =&gt; console.error(err))；
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;C++&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<p>CURL *hnd = curl_easy_init()；</p>
<pre class="p-0">curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET")；
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.scrapingrobot.com/?responseType=json&amp;waitUntil=load&amp;noScripts=false&amp;noImages=true&amp;noFonts=true&amp;noCss=true")；

struct curl_slist *headers = NULL；
headers = curl_slist_append(headers, "Accept: application/json")；
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers)；

CURLcode ret = curl_easy_perform(hnd)；
</pre>
</div></div></div>






[/su_tab]
</div>
<h4></h4>
<h4 id="references" class="ftwp-heading">参考资料</h4>
<ul>
<li><a href="https://docs.scrapingrobot.com/reference/getting-started-with-your-api" target="_blank" rel="nofollow noopener">https://docs.scrapingrobot.com/reference/getting-started-with-your-api</a></li>
</ul>
<hr />
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>
<pre class="p-0"></pre>
</div>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/how-to-use-scraping-robot-api/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">8698</post-id>	</item>
		<item>
		<title>How to Use Oxylabs Scraper API [Part 1]: Oxylabs E-Commerce Scraper API</title>
		<link>https://proxysp.com/zh/oxylabs-ecommerce-scraper-api/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oxylabs-ecommerce-scraper-api</link>
					<comments>https://proxysp.com/zh/oxylabs-ecommerce-scraper-api/#respond</comments>
		
		<dc:creator><![CDATA[proxysp]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[How to Use OxyLabs Proxy (OxyLabs User Manual Navigation)]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=9117</guid>

					<description><![CDATA[你知道如何使用 Oxylabs E-Commerce Scraper API 吗？这是 OxyLabs 官方最全面的介绍。快速入门 Scraper API 的构建是为了...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/oxylabs-ecommerce-scraper-api/"> <span class="screen-reader-text">如何使用 Oxylabs Scraper API [第 1 部分]：Oxylabs 电子商务 Scraper API</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>你知道如何使用 Oxylabs E-Commerce Scraper API 吗？这是 OxyLabs 官方最全面的介绍。</p></blockquote>
<p><a href="https://www.proxysp.com/redirect/oxylabs" target="_blank" rel="nofollow noopener"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-9221" src="https://www.proxysp.com/wp-content/uploads/2021/11/Oxylabs-E-Commerce-Scraper-API-pricing.jpg" alt="Oxylabs E-Commerce Scraper API pricing" width="921" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/11/Oxylabs-E-Commerce-Scraper-API-pricing.jpg 921w, https://proxysp.com/wp-content/uploads/2021/11/Oxylabs-E-Commerce-Scraper-API-pricing-300x163.jpg 300w, https://proxysp.com/wp-content/uploads/2021/11/Oxylabs-E-Commerce-Scraper-API-pricing-768x417.jpg 768w" sizes="(max-width: 921px) 100vw, 921px" /></a></p>
<h2 id="quick-start">快速入门</h2>
<p>Scraper API 可帮助您进行繁重的数据检索操作。您可以使用 Scraper API 访问各种公共页面。它能毫不费力地提取网络数据，不会出现任何延迟或错误。</p>
<p>Scraper API 使用 <a class="custom_link" href="https://en.wikipedia.org/wiki/Basic_access_authentication" target="_blank" rel="nofollow noopener">基本 HTTP 身份验证</a> 需要发送用户名和密码。</p>
<p>这是迄今为止开始使用 Scraper API 最快的方法。您将向 <code>https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html</code> 使用 <a class="custom_link" href="#realtime">实时</a> 美国的整合方法 <code>地理位置</code> 并检索已 <code>经过解析的</code> 数据。如果想获取页面 HTML 而不是解析后的数据，只需删除 <code>解析</code> 和 <code>解析器类型</code> 参数。不要忘记替换 <code>用户名</code> 和 <code>密码</code> 使用代理用户凭据。</p>
<div class="inside-code">
<div class="highlight inside-code-body"><code>卷曲 <span class="nt">--用户</span> <span class="s2">"用户名:密码"</span> 'https://realtime.oxylabs.io/v1/queries' <span class="nt">-H</span> "内容类型：应用程序/json" <span class="nt">-d</span> '{"源"："universal_ecommerce", "url"："https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html", "geo-location"："United States", "parser_type"："ecommerce_product", "parse": true}'</code></div>
<p><span style="font-size: 16px;">如果您有任何本文件未涉及的问题，请联系您的客户经理或我们的支持人员，地址是 </span><a class="custom_link" style="font-size: 16px; background-color: #ffffff;" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a><span style="font-size: 16px;">.</span></p>
<hr />
</div>
<h2 id="integration-methods">整合方法</h2>
<p>Scraper API 支持三种集成方法，它们都有各自独特的优势：</p>
<ul>
<li><a class="custom_link" href="#push-pull">推拉式</a>.使用这种方法，现在需要与我们的端点保持活动连接，以检索数据。在发出请求时，我们的系统能够在任务完成后自动 ping 用户服务器（见回调）。这种方法可以节省计算资源，而且易于扩展。</li>
<li><a class="custom_link" href="#realtime">实时</a>.该方法要求用户与我们的端点保持活动连接，以便在任务完成时成功获取结果。这种方法可以在一个服务中实现，而推拉法则需要两个步骤。</li>
<li><a href="#superapi">超级用户接口</a>.这种方法与实时方法非常相似，但用户可以使用 HTML Cralwer 作为代理，而不是向我们的端点发布数据。要检索数据，用户必须设置一个代理端点，并向所需的 URL 发送 GET 请求。必须使用标头添加其他参数。</li>
</ul>
<p>我们推荐的数据提取方法是 <a class="custom_link" href="#push-pull">推拉式</a>.</p>
<hr />
<h3 id="push-pull">推拉式</h3>
<p>这是最简单、最可靠、最值得推荐的数据传输方法。在推拉式方案中，您向我们发送查询，我们向您返回工作 <code>本我</code>工作完成后，您可以使用 <code>本我</code> 中检索内容 <code>/结果</code> 端点。您可以自己检查作业完成状态，也可以设置一个能接受 POST 查询的简单监听器。这样，一旦作业准备就绪，我们就会给你发送一条回调消息。在本例中，结果将自动 <a class="custom_link" href="#upload-to-storage">上传到您的 S3 存储桶</a> 名为 <code>您的邮筒名称</code>.</p>
<hr />
<h4 id="single-query">单一查询</h4>
<p>以下端点将处理对一个关键字或 URL 的单次查询。API 将返回一条确认信息，其中包含任务信息，包括任务 <code>本我</code>.您可以使用它来检查任务完成状态 <code>本我</code>或者，您也可以要求我们在扫描任务完成后 ping 您的回调端点，方法是添加 <code>回调URL</code> 在查询中。</p>
<div class="endpoint">
<pre><strong>邮寄 https://data.oxylabs.io/v1/queries</strong></pre>
</div>
<p>您需要在 JSON 主体中将查询参数作为数据发布。</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>节点</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>JavaScript</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>C++</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0">curl --request GET\
--url https://api.scrapingrobot.com/balance \
--header'Accept:application/json'（接受：应用程序/json
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Node&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0">const sdk = require('api')('@staging-docs-scrapingrobot/v1.0#1b382ykufox5uf')；

sdk.get('/balance')
.then(res =&gt; console.log(res))
.catch(err =&gt; console.error(err))；
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0"> 
request('GET', 'https://api.scrapingrobot.com/balance', [
标题' =&gt; [
'Accept' =&gt; 'application/json'、
],
]);

echo $response-&gt;getBody()；
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0">进口请求

url = "https://api.scrapingrobot.com/balance"

headers = {"Accept"："application/json"}

response = requests.request("GET", url, headers=headers)

print(response.text)
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;JavaScript&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0">const options = {method: 'GET', headers：{Accept: 'application/json'}}；

fetch('https://api.scrapingrobot.com/balance', options)
.then(response =&gt; response.json())
.then(response =&gt; console.log(response))
.catch(err =&gt; console.error(err))；
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;C++&lt;/strong&gt;">
<p><span class="APIRequest-header-titlewXRS3m3wzYvA">要求</span></p>
<pre class="p-0">CURL *hnd = curl_easy_init()；

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET")；
curl_easy_setopt(hnd,CURLOPT_URL, "https://api.scrapingrobot.com/balance")；

struct curl_slist *headers = NULL；
headers = curl_slist_append(headers, "Accept: application/json")；
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers)；

CURLcode ret = curl_easy_perform(hnd)；
</pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1<span class="se">\</span>
<span class="s1">'https://data.oxylabs.io/v1/queries'</span> <span class="se">\</span>
-H <span class="s2">"内容类型：应用程序/json"</span> <span class="se">\</span>
-d <span class="s1">'{"源"："universal_ecommerce", "url"："https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"，"callback_url"："https://your.callback.url"，"storage_type"："s3"，"storage_url"："your_bucket_name"}'</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>


<span class="c"># 结构有效载荷。</span>
<span class="n">载荷</span> <span class="o">=</span> <span class="p">{</span>
    <span class="s">来源</span><span class="p">:</span> <span class="s">universal_ecommerce</span><span class="p">,</span>
    <span class="s">'url'（网址</span><span class="p">:</span> <span class="s">'https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html'</span><span class="p">,</span>
    <span class="s">回调URL</span><span class="p">:</span> <span class="s">'https://your.callback.url'</span><span class="p">,</span>
    <span class="s">存储类型</span><span class="p">:</span> <span class="s">'s3'</span><span class="p">,</span>
    <span class="s">存储URL</span><span class="p">:</span> <span class="s">your_bucket_name</span>
<span class="p">}</span>

<span class="c"># 获取响应。</span>
<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="s">POST</span><span class="p">,</span>
    <span class="s">'https://data.oxylabs.io/v1/queries'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
    <span class="n">json</span><span class="o">=</span><span class="n">载荷</span><span class="p">,</span>
<span class="p">)</span>

<span class="c"># 向 stdout 打印经过修饰的响应。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$params</span> <span class="o">=</span> <span class="k">矩阵</span><span class="p">(</span>
    <span class="s1">来源</span> <span class="o">=&gt;</span> <span class="s1">universal_ecommerce</span><span class="p">,</span>
    <span class="s1">'url'（网址</span> <span class="o">=&gt;</span> <span class="s1">'https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html'</span><span class="p">,</span>
    <span class="s1">回调URL</span> <span class="o">=&gt;</span> <span class="s1">'https://your.callback.url'</span><span class="p">,</span>
    <span class="s1">存储类型</span> <span class="o">=&gt;</span> <span class="s1">'s3'</span><span class="p">,</span>
    <span class="s1">存储URL</span> <span class="o">=&gt;</span> <span class="s1">your_bucket_name</span>
<span class="p">);</span>

<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://data.oxylabs.io/v1/queries"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_postfields</span><span class="p">,</span> <span class="nb">json_encode</span><span class="p">(</span><span class="nv">$params</span><span class="p">));</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_POST</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$headers</span> <span class="o">=</span> <span class="k">矩阵</span><span class="p">();</span>
<span class="nv">$headers</span><span class="p">[]</span> <span class="o">=</span> <span class="s2">"内容类型：应用程序/json"</span><span class="p">;</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_httpheader</span><span class="p">,</span> <span class="nv">$headers</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err">目前不支持 HTTP 方法</span></code></pre>
</div></div></div>
<p>API 将以 JSON 格式响应查询信息，并将其打印在响应体中，与此类似：</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>
  <span class="s2">"回调URL"</span><span class="p">:</span> <span class="s2">"https://your.callback.url"</span><span class="p">,</span>
  <span class="s2">"client_id"</span><span class="p">:</span> <span class="mi">5</span><span class="p">,</span>
  <span class="s2">"创建时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:01"</span><span class="p">,</span>
  <span class="s2">"域"</span><span class="p">:</span> <span class="s2">"com"</span><span class="p">,</span>
  <span class="s2">"地理位置"</span><span class="p">:</span> <span class="kc">无效</span><span class="p">,</span>
  <span class="s2">"id"</span><span class="p">:</span> <span class="s2">"12345678900987654321"</span><span class="p">,</span>
  <span class="s2">"限制"</span><span class="p">:</span> <span class="mi">10</span><span class="p">,</span>
  <span class="s2">"locale"</span><span class="p">:</span> <span class="kc">无效</span><span class="p">,</span>
  <span class="s2">"页面"</span><span class="p">:</span> <span class="mi">1</span><span class="p">,</span>
  <span class="s2">"解析"</span><span class="p">:</span> <span class="kc">错误</span><span class="p">,</span>
  <span class="s2">"渲染"</span><span class="p">:</span> <span class="kc">无效</span><span class="p">,</span>
  <span class="s2">"url"</span><span class="p">:</span> <span class="s2">"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"</span><span class="p">,</span>
  <span class="s2">"源"</span><span class="p">:</span> <span class="s2">"universal_ecommerce"</span><span class="p">,</span>
  <span class="s2">"起始页"</span><span class="p">:</span> <span class="mi">1</span><span class="p">,</span>
  <span class="s2">"状态"</span><span class="p">:</span> <span class="s2">"待定"</span><span class="p">,</span>
  <span class="s2">"存储类型"</span><span class="p">:</span> <span class="s2">"s3"</span><span class="p">,</span>
  <span class="s2">"storage_url"</span><span class="p">:</span> <span class="s2">"YOUR_BUCKET_NAME/12345678900987654321.json"</span><span class="p">,</span>
  <span class="s2">"子域"</span><span class="p">:</span> <span class="s2">"www"</span><span class="p">,</span>
  <span class="s2">"更新时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:01"</span><span class="p">,</span>
  <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"桌面"</span><span class="p">,</span>
  <span class="s2">"_链接"</span><span class="p">:</span> <span class="p">[</span>
    <span class="p">{</span>
      <span class="s2">"rel"</span><span class="p">:</span> <span class="s2">"自我"</span><span class="p">,</span>
      <span class="s2">"href"</span><span class="p">:</span> <span class="s2">"http://data.oxylabs.io/v1/queries/12345678900987654321"</span><span class="p">,</span>
      <span class="s2">"方法"</span><span class="p">:</span> <span class="s2">"GET"</span>
    <span class="p">},</span>
    <span class="p">{</span>
      <span class="s2">"rel"</span><span class="p">:</span> <span class="s2">"结果"</span><span class="p">,</span>
      <span class="s2">"href"</span><span class="p">:</span> <span class="s2">"http://data.oxylabs.io/v1/queries/12345678900987654321/results"</span><span class="p">,</span>
      <span class="s2">"方法"</span><span class="p">:</span> <span class="s2">"GET"</span>
    <span class="p">}</span>
  <span class="p">]</span>
<span class="p">}</span></code></pre>
<hr />
<h4 id="check-job-status">检查工作状态</h4>
<p>如果您的查询有 <code>回调URL</code>我们会在扫描任务完成后向您发送一条包含内容链接的信息。但是，如果没有 <code>回调URL</code> 在查询中，您需要自己检查任务状态。为此，您需要使用 <code>href</code> 根据 <code>rel</code>:<code>自我</code> 在您向我们的 API 提交查询后收到的响应信息中。它应该与下面的内容相似： <code>http://data.oxylabs.io/v1/queries/12345678900987654321</code>.</p>
<div class="endpoint">
<pre><strong>GET https://data.oxylabs.io/v1/queries/{id}</strong></pre>
</div>
<p>查询此链接将返回工作信息，包括其 <code>地位</code>.有三种可能 <code>地位</code> 价值观</p>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><code>未决</code></td>
<td>任务仍在队列中，尚未完成。</td>
</tr>
<tr>
<td><code>完成的</code></td>
<td>任务完成后，您可以通过在 <code>href</code> 根据 <code>rel</code>:<code>成果</code> : <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code></td>
</tr>
<tr>
<td><code>有问题</code></td>
<td>任务出现了问题，我们无法完成任务，很可能是由于目标网站方面的服务器出错。</td>
</tr>
</tbody>
</table>
</div>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1 <span class="s1">'http://data.oxylabs.io/v1/queries/12345678900987654321'</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>

<span class="c"># 从统计终点获取响应。</span>
<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="n">方法</span><span class="o">=</span><span class="s">GET</span><span class="p">,</span>
    <span class="n">网址</span><span class="o">=</span><span class="s">'http://data.oxylabs.io/v1/queries/12345678900987654321'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
<span class="p">)</span>

<span class="c"># 向 stdout 打印经过修饰的 JSON 响应。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"http://data.oxylabs.io/v1/queries/12345678900987654321"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_customrequest</span><span class="p">,</span> <span class="s2">"GET"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err">目前不支持 HTTP 方法</span></code></pre>
</div></div></div>
<p>API 将在响应体中打印 JSON 格式的查询信息。请注意，任务 <code>地位</code> 改为 <code>完成的</code>.现在您可以通过查询 <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code>.</p>
<p>您还可以看到任务已被 <code>updated_at</code> <code>2019-10-01 00:00:15</code> - 查询需要 14 秒才能完成。</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>
  <span class="s2">"client_id"</span><span class="p">:</span> <span class="mi">5</span><span class="p">,</span>
  <span class="s2">"创建时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:01"</span><span class="p">,</span>
  <span class="s2">"域"</span><span class="p">:</span> <span class="s2">"com"</span><span class="p">,</span>
  <span class="s2">"地理位置"</span><span class="p">:</span> <span class="kc">无效</span><span class="p">,</span>
  <span class="s2">"id"</span><span class="p">:</span> <span class="s2">"12345678900987654321"</span><span class="p">,</span>
  <span class="s2">"限制"</span><span class="p">:</span> <span class="mi">10</span><span class="p">,</span>
  <span class="s2">"locale"</span><span class="p">:</span> <span class="kc">无效</span><span class="p">,</span>
  <span class="s2">"页面"</span><span class="p">:</span> <span class="mi">1</span><span class="p">,</span>
  <span class="s2">"解析"</span><span class="p">:</span> <span class="kc">错误</span><span class="p">,</span>
  <span class="s2">"渲染"</span><span class="p">:</span> <span class="kc">无效</span><span class="p">,</span>
  <span class="s2">"url"</span><span class="p">:</span> <span class="s2">"沙发"</span><span class="p">,</span>
  <span class="s2">"源"</span><span class="p">:</span> <span class="s2">"universal_ecommerce"</span><span class="p">,</span>
  <span class="s2">"起始页"</span><span class="p">:</span> <span class="mi">1</span><span class="p">,</span>
  <span class="s2">"状态"</span><span class="p">:</span> <span class="s2">"完成"</span><span class="p">,</span>
  <span class="s2">"子域"</span><span class="p">:</span> <span class="s2">"www"</span><span class="p">,</span>
  <span class="s2">"更新时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:15"</span><span class="p">,</span>
  <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"桌面"</span><span class="p">,</span>
  <span class="s2">"_链接"</span><span class="p">:</span> <span class="p">[</span>
    <span class="p">{</span>
      <span class="s2">"rel"</span><span class="p">:</span> <span class="s2">"自我"</span><span class="p">,</span>
      <span class="s2">"href"</span><span class="p">:</span> <span class="s2">"http://data.oxylabs.io/v1/queries/12345678900987654321"</span><span class="p">,</span>
      <span class="s2">"方法"</span><span class="p">:</span> <span class="s2">"GET"</span>
    <span class="p">},</span>
    <span class="p">{</span>
      <span class="s2">"rel"</span><span class="p">:</span> <span class="s2">"结果"</span><span class="p">,</span>
      <span class="s2">"href"</span><span class="p">:</span> <span class="s2">"http://data.oxylabs.io/v1/queries/12345678900987654321/results"</span><span class="p">,</span>
      <span class="s2">"方法"</span><span class="p">:</span> <span class="s2">"GET"</span>
    <span class="p">}</span>
  <span class="p">]</span>
<span class="p">}</span></code></pre>
<hr />
<h4 id="retrieve-job-content">检索工作内容</h4>
<p>通过检查作业的状态，一旦知道可以检索作业，就可以使用 <code>href</code> 根据 <code>rel</code>:<code>成果</code> 在我们的初始响应中。它看起来应该与此类似： <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code>.</p>
<div class="endpoint">
<pre><strong>GET https://data.oxylabs.io/v1/queries/{id}/results</strong></pre>
</div>
<p>通过设置回调服务，可以自动检索结果，而无需定期检查作业状态。用户需要指定运行回调服务的服务器的 IP 或域。当我们的系统完成一项作业时，它将向所提供的 IP 或域发送一条信息，回调服务将下载结果，如回调实现示例中所述。</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1 <span class="s1">'http://data.oxylabs.io/v1/queries/12345678900987654321/results'</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>

<span class="c"># 从统计终点获取响应。</span>
<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="n">方法</span><span class="o">=</span><span class="s">GET</span><span class="p">,</span>
    <span class="n">网址</span><span class="o">=</span><span class="s">'http://data.oxylabs.io/v1/queries/12345678900987654321/results'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
<span class="p">)</span>

<span class="c"># 将经过修饰的 JSON 响应打印到 stdout。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"http://data.oxylabs.io/v1/queries/12345678900987654321/results"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_customrequest</span><span class="p">,</span> <span class="s2">"GET"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err">目前不支持 HTTP 方法</span></code></pre>
</div></div></div>
<p>API 将返回工作内容：</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>
  <span class="s2">"结果"</span><span class="p">:</span> <span class="p">[</span>
    <span class="p">{</span>
      <span class="s2">"内容"</span><span class="p">:</span> <span class="s2">"
        内容
      "</span><span class="p">,</span>
      <span class="s2">"创建时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:01"</span><span class="p">,</span>
      <span class="s2">"更新时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:15"</span><span class="p">,</span>
      <span class="s2">"页"</span><span class="p">:</span> <span class="mi">1</span><span class="p">,</span>
      <span class="s2">"url"</span><span class="p">:</span> <span class="s2">"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"</span><span class="p">,</span>
      <span class="s2">"job_id"</span><span class="p">:</span> <span class="s2">"12345678900987654321"</span><span class="p">,</span>
      <span class="s2">"状态代码"</span><span class="p">:</span> <span class="mi">200</span>
    <span class="p">}</span>
  <span class="p">]</span>
<span class="p">}</span></code></pre>
<hr />
<h4 id="callback">回调</h4>
<p>回调是一个 <code>职位</code> 我们会向您的机器发送请求，告知数据提取任务已完成，并提供下载刮擦内容的 URL。这意味着您不再需要 <a class="custom_link" href="https://developers.oxylabs.io/scraper-apis/ecommerce_scraper_api/source/universal/index.html?http#check-job-status" target="_blank" rel="noopener">检查工作状态</a> 手动操作。一旦数据到齐，我们会通知您，您现在需要做的就是 <a class="custom_link" href="#retrieve-job-content">取回</a>.</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code><span class="c"># 请查看 Python 和 PHP 代码示例。</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="c"># 这是一个简单的 Sanic 网络服务器，通过 localhost:8080 监听回调路由。</span>
<span class="c"># 它会将作业结果打印到 stdout。</span>
<span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>
<span class="kn">从</span> <span class="nn">卫生</span> <span class="kn">舶来品</span> <span class="n">萨尼奇</span><span class="p">,</span> <span class="n">回应</span>


<span class="n">AUTH_TUPLE</span> <span class="o">=</span> <span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">)</span>

<span class="n">应用</span> <span class="o">=</span> <span class="n">萨尼奇</span><span class="p">()</span>


<span class="c"># 定义 /job_listener 端点，接受 POST 请求。</span>
<span class="nd">@app.route</span><span class="p">(</span><span class="s">/job_listener</span><span class="p">,</span> <span class="n">方法</span><span class="o">=</span><span class="p">[</span><span class="s">POST</span><span class="p">])</span>
<span class="n">异步</span> <span class="k">捍卫</span> <span class="nf">工作监听器</span><span class="p">(</span><span class="n">要求</span><span class="p">):</span>
    <span class="k">尝试</span><span class="p">:</span>
        <span class="n">重新</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">json</span>
        <span class="n">链接</span> <span class="o">=</span> <span class="n">重新</span><span class="o">.</span><span class="n">获取</span><span class="p">(</span><span class="s">链接</span><span class="p">,</span> <span class="p">[])</span>
        <span class="k">对于</span> <span class="n">链接</span> <span class="ow">于</span> <span class="n">链接</span><span class="p">:</span>
            <span class="k">如果</span> <span class="n">链接</span><span class="p">[</span><span class="s">rel</span><span class="p">]</span> <span class="o">==</span> <span class="s">结果</span><span class="p">:</span>
                <span class="c"># Sanic 是异步的，但请求是同步的，以充分发挥</span>
                <span class="c"># 利用 Sanic 的优势，使用 aiohttp。</span>
                <span class="n">res_response</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
                    <span class="n">方法</span><span class="o">=</span><span class="s">GET</span><span class="p">,</span>
                    <span class="n">网址</span><span class="o">=</span><span class="n">链接</span><span class="p">[</span><span class="s">href</span><span class="p">],</span>
                    <span class="n">授权</span><span class="o">=</span><span class="n">AUTH_TUPLE</span><span class="p">,</span>
                <span class="p">)</span>
                <span class="n">打印</span><span class="p">(</span><span class="n">res_response</span><span class="o">.</span><span class="n">json</span><span class="p">())</span>
                <span class="k">断裂</span>
    <span class="k">除开</span> <span class="nb">例外情况</span> <span class="k">作为</span> <span class="n">e</span><span class="p">:</span>
        <span class="k">打印</span><span class="p">(</span><span class="s">"监听器异常：{}"</span><span class="o">.</span><span class="n">格式</span><span class="p">(</span><span class="n">e</span><span class="p">))</span>
    <span class="k">返回</span> <span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">(</span><span class="n">地位</span><span class="o">=</span><span class="mi">200</span><span class="p">,</span> <span class="n">机构</span><span class="o">=</span><span class="p">{</span><span class="s">状态</span><span class="p">:</span> <span class="s">好的</span><span class="p">})</span>


<span class="k">如果</span> <span class="n">姓名____</span> <span class="o">==</span> <span class="s">'__main__'（__main__</span><span class="p">:</span>
    <span class="n">应用</span><span class="o">.</span><span class="n">运行</span><span class="p">(</span><span class="n">东道主</span><span class="o">=</span><span class="s">'0.0.0.0'</span><span class="p">,</span> <span class="n">港</span><span class="o">=</span><span class="mi">8080</span><span class="p">)</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>
<span class="nv">$stdout</span> <span class="o">=</span> <span class="nb">fopen</span><span class="p">(</span><span class="s1">php://stdout</span><span class="p">,</span> <span class="s1">'w'</span><span class="p">);</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">isset</span><span class="p">(</span><span class="nv">$_POST</span><span class="p">))</span> <span class="p">{</span>
    <span class="nv">$result</span> <span class="o">=</span> <span class="nb">数组合并</span><span class="p">(</span><span class="nv">$_POST</span><span class="p">,</span> <span class="p">(</span><span class="k">矩阵</span><span class="p">)</span> <span class="nb">json_decode</span><span class="p">(</span><span class="nb">file_get_contents</span><span class="p">(</span><span class="s1">php://input</span><span class="p">)));</span>

    <span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

    <span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://data.oxylabs.io/v1/queries/"</span><span class="o">.</span><span class="nv">$result</span><span class="p">[</span><span class="s1">id</span><span class="p">]</span><span class="o">.</span><span class="s1">结果</span><span class="p">);</span>
    <span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
    <span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_customrequest</span><span class="p">,</span> <span class="s2">"GET"</span><span class="p">);</span>
    <span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

    <span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
    <span class="nb">fwrite</span><span class="p">(</span><span class="nv">$stdout</span><span class="p">,</span> <span class="nv">$result</span><span class="p">);</span>

    <span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
        <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
    <span class="p">}</span>
    <span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err">目前不支持 HTTP 方法</span></code></pre>
</div></div></div>
<p>回调输出示例</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>  
   <span class="s2">"创建时间"</span><span class="p">:</span><span class="s2">"2019-10-01 00:00:01"</span><span class="p">,</span>
   <span class="s2">"更新时间"</span><span class="p">:</span><span class="s2">"2019-10-01 00:00:15"</span><span class="p">,</span>
   <span class="s2">"locale"</span><span class="p">:</span><span class="kc">无效</span><span class="p">,</span>
   <span class="s2">"client_id"</span><span class="p">:</span><span class="mi">163</span><span class="p">,</span>
   <span class="s2">"user_agent_type"</span><span class="p">:</span><span class="s2">"桌面"</span><span class="p">,</span>
   <span class="s2">"源"</span><span class="p">:</span><span class="s2">"universal_ecommerce"</span><span class="p">,</span>
   <span class="s2">"页面"</span><span class="p">:</span><span class="mi">1</span><span class="p">,</span>
   <span class="s2">"子域"</span><span class="p">:</span><span class="s2">"www"</span><span class="p">,</span>
   <span class="s2">"状态"</span><span class="p">:</span><span class="s2">"完成"</span><span class="p">,</span>
   <span class="s2">"起始页"</span><span class="p">:</span><span class="mi">1</span><span class="p">,</span>
   <span class="s2">"解析"</span><span class="p">:</span><span class="mi">0</span><span class="p">,</span>
   <span class="s2">"渲染"</span><span class="p">:</span><span class="kc">无效</span><span class="p">,</span>
   <span class="s2">"优先权"</span><span class="p">:</span><span class="mi">0</span><span class="p">,</span>
   <span class="s2">"ttl"</span><span class="p">:</span><span class="mi">0</span><span class="p">,</span>
   <span class="s2">"起源"</span><span class="p">:</span><span class="s2">"api"</span><span class="p">,</span>
   <span class="s2">"坚持"</span><span class="p">:</span><span class="kc">真</span><span class="p">,</span>
   <span class="s2">"id"</span><span class="p">:</span><span class="s2">"12345678900987654321"</span><span class="p">,</span>
   <span class="s2">"回调URL"</span><span class="p">:</span><span class="s2">"http://your.callback.url/"</span><span class="p">,</span>
   <span class="s2">"url"</span><span class="p">:</span><span class="s2">"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"</span><span class="p">,</span>
   <span class="s2">"域"</span><span class="p">:</span><span class="s2">"de"</span><span class="p">,</span>
   <span class="s2">"限制"</span><span class="p">:</span><span class="mi">10</span><span class="p">,</span>
   <span class="s2">"地理位置"</span><span class="p">:</span><span class="kc">无效</span><span class="p">,</span>
   <span class="p">{</span><span class="err">...</span><span class="p">}</span>
   <span class="s2">"_链接"</span><span class="p">:[</span>
      <span class="p">{</span>  
         <span class="s2">"href"</span><span class="p">:</span><span class="s2">"https://data.oxylabs.io/v1/queries/12345678900987654321"</span><span class="p">,</span>
         <span class="s2">"方法"</span><span class="p">:</span><span class="s2">"GET"</span><span class="p">,</span>
         <span class="s2">"rel"</span><span class="p">:</span><span class="s2">"自我"</span>
      <span class="p">},</span>
      <span class="p">{</span>  
         <span class="s2">"href"</span><span class="p">:</span><span class="s2">"https://data.oxylabs.io/v1/queries/12345678900987654321/results"</span><span class="p">,</span>
         <span class="s2">"方法"</span><span class="p">:</span><span class="s2">"GET"</span><span class="p">,</span>
         <span class="s2">"rel"</span><span class="p">:</span><span class="s2">"结果"</span>
      <span class="p">}</span>
   <span class="p">],</span>
<span class="p">}</span></code></pre>
<hr />
<h4 id="batch-query">批量查询</h4>
<p>Scraper API 还接受每次查询多个关键词，每批最多可提取 1,000 个关键词。以下端点将向提取队列提交多个关键词。</p>
<div class="endpoint">
<pre><strong>邮寄 https://data.oxylabs.io/v1/queries/batch</strong></pre>
</div>
<p>您需要在 JSON 主体中将查询参数作为数据发布。</p>
<p>系统会将每个关键字作为一个单独请求来处理。如果您提供了回调 URL，则每个关键字都会收到一个单独的调用。否则，我们的初始响应将包含任务 <code>本我</code>的所有关键字。例如，如果您发送了 50 个关键字，我们将返回 50 个唯一的职位。 <code>本我</code>s.</p>
<p>重要！ <code>询问</code> 是唯一一个可以有多个值的参数。所有其他参数对于该批次查询都是一样的。</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1 <span class="s1">'https://data.oxylabs.io/v1/queries/batch'</span> -H <span class="s1">内容类型：应用程序/json</span> <span class="se">\</span>
 -d <span class="s1">@keywords.json</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">舶来品</span> <span class="nn">json</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>


<span class="c"># 从文件中获取有效载荷。</span>
<span class="k">与</span> <span class="nb">开</span><span class="p">(</span><span class="s">关键词.json</span><span class="p">,</span> <span class="s">'r'</span><span class="p">)</span> <span class="k">作为</span> <span class="n">f</span><span class="p">:</span>
    <span class="n">载荷</span> <span class="o">=</span> <span class="n">json</span><span class="o">.</span><span class="n">载荷</span><span class="p">(</span><span class="n">f</span><span class="o">.</span><span class="n">阅读</span><span class="p">())</span>

<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="s">POST</span><span class="p">,</span>
    <span class="s">'https://data.oxylabs.io/v1/queries/batch'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
    <span class="n">json</span><span class="o">=</span><span class="n">载荷</span><span class="p">,</span>
<span class="p">)</span>

<span class="c"># 打印经过修饰的回复。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$paramsFile</span> <span class="o">=</span> <span class="nb">file_get_contents</span><span class="p">(</span><span class="nb">真实路径</span><span class="p">(</span><span class="s2">"keywords.json"</span><span class="p">));</span>
<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://data.oxylabs.io/v1/queries/batch"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_postfields</span><span class="p">,</span> <span class="nv">$paramsFile</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_POST</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$headers</span> <span class="o">=</span> <span class="k">矩阵</span><span class="p">();</span>
<span class="nv">$headers</span><span class="p">[]</span> <span class="o">=</span> <span class="s2">"内容类型：应用程序/json"</span><span class="p">;</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_httpheader</span><span class="p">,</span> <span class="nv">$headers</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err">目前不支持 HTTP 方法</span></code></pre>
</div></div></div>
<p><code>keywords.json</code> 内容：</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>  
   <span class="s2">"url"</span><span class="p">:[</span>  
      <span class="s2">"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"</span><span class="p">,</span>
      <span class="s2">"https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html"</span><span class="p">,</span>
      <span class="s2">"https://books.toscrape.com/catalogue/soumission_998/index.html"</span>
   <span class="p">],</span>
   <span class="s2">"源"</span><span class="p">:</span> <span class="s2">"universal_ecommerce"</span><span class="p">,</span>
   <span class="s2">"回调URL"</span><span class="p">:</span> <span class="s2">"https://your.callback.url"</span>
<span class="p">}</span>
</code></pre>
<p>API 将以 JSON 格式响应查询信息，并将其打印在响应体中，与此类似：</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>
  <span class="s2">"查询"</span><span class="p">:</span> <span class="p">[</span>
    <span class="p">{</span>
      <span class="s2">"回调URL"</span><span class="p">:</span> <span class="s2">"https://your.callback.url"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
      <span class="s2">"创建时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:01"</span><span class="p">,</span>
      <span class="s2">"域"</span><span class="p">:</span> <span class="s2">"com"</span><span class="p">,</span>
      <span class="s2">"id"</span><span class="p">:</span> <span class="s2">"12345678900987654321"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
      <span class="s2">"url"</span><span class="p">:</span> <span class="s2">"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"</span><span class="p">,</span>
      <span class="s2">"源"</span><span class="p">:</span> <span class="s2">"universal_ecommerce"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
          <span class="s2">"rel"</span><span class="p">:</span> <span class="s2">"结果"</span><span class="p">,</span>
          <span class="s2">"href"</span><span class="p">:</span> <span class="s2">"http://data.oxylabs.io/v1/queries/12345678900987654321/results"</span><span class="p">,</span>
          <span class="s2">"方法"</span><span class="p">:</span> <span class="s2">"GET"</span>
        <span class="p">}</span>
      <span class="p">]</span>
    <span class="p">},</span>
    <span class="p">{</span>
      <span class="s2">"回调URL"</span><span class="p">:</span> <span class="s2">"https://your.callback.url"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
      <span class="s2">"创建时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:01"</span><span class="p">,</span>
      <span class="s2">"域"</span><span class="p">:</span> <span class="s2">"com"</span><span class="p">,</span>
      <span class="s2">"id"</span><span class="p">:</span> <span class="s2">"12345678901234567890"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
      <span class="s2">"url"</span><span class="p">:</span> <span class="s2">"https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html"</span><span class="p">,</span>
      <span class="s2">"源"</span><span class="p">:</span> <span class="s2">"universal_ecommerce"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
          <span class="s2">"rel"</span><span class="p">:</span> <span class="s2">"结果"</span><span class="p">,</span>
          <span class="s2">"href"</span><span class="p">:</span> <span class="s2">"http://data.oxylabs.io/v1/queries/12345678901234567890/results"</span><span class="p">,</span>
          <span class="s2">"方法"</span><span class="p">:</span> <span class="s2">"GET"</span>
        <span class="p">}</span>
      <span class="p">]</span>
    <span class="p">},</span>
    <span class="p">{</span>
      <span class="s2">"回调URL"</span><span class="p">:</span> <span class="s2">"https://your.callback.url"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
      <span class="s2">"创建时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:01"</span><span class="p">,</span>
      <span class="s2">"域"</span><span class="p">:</span> <span class="s2">"com"</span><span class="p">,</span>
      <span class="s2">"id"</span><span class="p">:</span> <span class="s2">"01234567899876543210"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
      <span class="s2">"url"</span><span class="p">:</span> <span class="s2">"https://books.toscrape.com/catalogue/soumission_998/index.html"</span><span class="p">,</span>
      <span class="s2">"源"</span><span class="p">:</span> <span class="s2">"universal_ecommerce"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
          <span class="s2">"rel"</span><span class="p">:</span> <span class="s2">"结果"</span><span class="p">,</span>
          <span class="s2">"href"</span><span class="p">:</span> <span class="s2">"http://data.oxylabs.io/v1/queries/01234567899876543210/results"</span><span class="p">,</span>
          <span class="s2">"方法"</span><span class="p">:</span> <span class="s2">"GET"</span>
        <span class="p">}</span>
      <span class="p">]</span>
    <span class="p">}</span>
  <span class="p">]</span>
<span class="p">}</span></code></pre>
<hr />
<h4 id="get-notifier-ip-address-list">获取通知程序 IP 地址列表</h4>
<p>您可能希望将向您发送回调信息的 IP 列入白名单，或为其他目的获取这些 IP 的列表。这可以通过 <code>获取</code>在这个端点上： <code>https://data.oxylabs.io/v1/info/callbacker_ips</code>.</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1 <span class="s1">'https://data.oxylabs.io/v1/info/callbacker_ips'</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>

<span class="c"># 从回调 IP 端点获取响应。</span>
<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="n">方法</span><span class="o">=</span><span class="s">GET</span><span class="p">,</span>
    <span class="n">网址</span><span class="o">=</span><span class="s">'https://data.oxylabs.io/v1/info/callbacker_ips'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
<span class="p">)</span>

<span class="c"># 将经过修饰的 JSON 响应打印到 stdout。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://data.oxylabs.io/v1/info/callbacker_ips"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_customrequest</span><span class="p">,</span> <span class="s2">"GET"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err">目前不支持 HTTP 方法</span></code></pre>
</div></div></div>
<p>API 将返回向您的系统发出回调请求的 IP 列表：</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>
    <span class="s2">"ips"</span><span class="p">:</span> <span class="p">[</span>
        <span class="s2">"x.x.x.x"</span><span class="p">,</span>
        <span class="s2">"y.y.y.y"</span>
    <span class="p">]</span>
<span class="p">}</span></code></pre>
<hr />
<h4 id="upload-to-storage">上传到存储器</h4>
<p>默认情况下，Ecommerce Spraper API 的作业结果存储在我们的数据库中。这意味着您需要查询我们的结果端点并自行检索内容。自定义存储功能允许您将结果存储在自己的云存储中。该功能的优点是您无需额外请求即可获取结果，所有内容都会直接存储到您的存储桶中。</p>
<p>目前，我们只支持 Amazon S3。如果您想使用其他类型的存储，请联系您的客户经理讨论时间安排。</p>
<p>要将作业结果上传到 Amazon S3 存储桶，需要设置特殊权限。为此，请转到 <code>https://s3.console.aws.amazon.com/ &gt; S3 &gt; 存储 &gt; 桶名称（如果没有，请新建） &gt; 权限 &gt; 桶策略</code></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-9123" src="https://www.proxysp.com/wp-content/uploads/2021/11/Oxylabs-ECommerce-Universal-Scraper-API-Upload-to-Storage.png" alt="Oxylabs ECommerce Universal Scraper API Upload to Storage" width="482" height="319" srcset="https://proxysp.com/wp-content/uploads/2021/11/Oxylabs-ECommerce-Universal-Scraper-API-Upload-to-Storage.png 482w, https://proxysp.com/wp-content/uploads/2021/11/Oxylabs-ECommerce-Universal-Scraper-API-Upload-to-Storage-300x199.png 300w" sizes="(max-width: 482px) 100vw, 482px" /></p>
<p>您可以在此找到水桶政策 <a class="custom_link" href="https://developers.oxylabs.io/resources/s3_bucket_policy.json" target="_blank" rel="noopener">JSON</a> 或右侧的代码示例区。不要忘记更改 <code>您的邮筒名称</code>.该策略允许我们写入您的邮筒、为您上传文件并了解邮筒的位置。</p>
<p>要使用此功能，您需要在请求中指定两个附加参数。了解更多信息 <a class="custom_link" href="#direct">这里</a>.</p>
<p>上传路径如下 <code>YOUR_BUCKET_NAME/job_ID.json</code>.您可以在提交请求后从我们收到的回复正文中找到工作编号。在 <a class="custom_link" href="#single-query">本例</a> 工作编号为 <code>12345678900987654321</code>.</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>
    <span class="s2">"版本"</span><span class="p">:</span> <span class="s2">"2012-10-17"</span><span class="p">,</span>
    <span class="s2">"Id"</span><span class="p">:</span> <span class="s2">"Policy1577442634787"</span><span class="p">,</span>
    <span class="s2">"声明"</span><span class="p">:</span> <span class="p">[</span>
        <span class="p">{</span>
            <span class="s2">"希德"</span><span class="p">:</span> <span class="s2">"Stmt1577442633719"</span><span class="p">,</span>
            <span class="s2">"效果"</span><span class="p">:</span> <span class="s2">"允许"</span><span class="p">,</span>
            <span class="s2">"校长"</span><span class="p">:</span> <span class="p">{</span>
                <span class="s2">"AWS"</span><span class="p">:</span> <span class="s2">"arn:aws:iam::324311890426:user/oxylabs.s3.uploader"</span>
            <span class="p">},</span>
            <span class="s2">"行动"</span><span class="p">:</span> <span class="s2">"s3:GetBucketLocation</span><span class="p">,</span>
            <span class="s2">"资源"</span><span class="p">:</span> <span class="s2">"arn:aws:s3:::YOUR_BUCKET_NAME"</span>
        <span class="p">},</span>
        <span class="p">{</span>
            <span class="s2">"希德"</span><span class="p">:</span> <span class="s2">"Stmt1577442633719"</span><span class="p">,</span>
            <span class="s2">"效果"</span><span class="p">:</span> <span class="s2">"允许"</span><span class="p">,</span>
            <span class="s2">"校长"</span><span class="p">:</span> <span class="p">{</span>
                <span class="s2">"AWS"</span><span class="p">:</span> <span class="s2">"arn:aws:iam::324311890426:user/oxylabs.s3.uploader"</span>
            <span class="p">},</span>
            <span class="s2">"行动"</span><span class="p">:</span> <span class="p">[</span>
                <span class="s2">"s3:PutObject</span><span class="p">,</span>
                <span class="s2">"s3:PutObjectAcl"</span>
            <span class="p">],</span>
            <span class="s2">"资源"</span><span class="p">:</span> <span class="s2">"arn:aws:s3:::YOUR_BUCKET_NAME/*"</span>
        <span class="p">}</span>
    <span class="p">]</span>
<span class="p">}</span></code></pre>
<hr />
<h3 id="realtime">实时</h3>
<p>数据提交与推拉式方法相同，但使用实时方法时，我们将在连接打开时返回内容。您向我们发送一个查询，连接保持打开，我们检索内容并将其发送给您。处理此问题的端点如下：</p>
<div class="endpoint">
<pre><strong>邮寄 https://realtime.oxylabs.io/v1/queries</strong></pre>
</div>
<p>开放连接的超时限制为 100 秒。因此，在极少数负载较重的情况下，我们可能无法确保将数据发送给您。</p>
<p>您需要在 JSON 主体中将查询参数作为数据发布。详情请参阅示例。</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1 <span class="s1">'https://realtime.oxylabs.io/v1/queries'</span> -H <span class="s2">"内容类型：应用程序/json"</span> <span class="se">\</span>
 -d <span class="s1">'{"源"："universal_ecommerce", "url"："https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"}'</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>


<span class="c"># 结构有效载荷。</span>
<span class="n">载荷</span> <span class="o">=</span> <span class="p">{</span>
    <span class="s">来源</span><span class="p">:</span> <span class="s">universal_ecommerce</span><span class="p">,</span>
    <span class="s">'url'（网址</span><span class="p">:</span> <span class="s">'https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html'</span><span class="p">,</span>
<span class="p">}</span>

<span class="c"># 获取响应。</span>
<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="s">POST</span><span class="p">,</span>
    <span class="s">'https://realtime.oxylabs.io/v1/queries'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
    <span class="n">json</span><span class="o">=</span><span class="n">载荷</span><span class="p">,</span>
<span class="p">)</span>

<span class="c"># 返回的不是包含任务状态和结果 url 的响应，而是</span>
<span class="c"># JSON 响应结果。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$params</span> <span class="o">=</span> <span class="k">矩阵</span><span class="p">(</span>
    <span class="s1">来源</span> <span class="o">=&gt;</span> <span class="s1">universal_ecommerce</span><span class="p">,</span>
    <span class="s1">查询</span> <span class="o">=&gt;</span> <span class="s1">沙发</span><span class="p">,</span>
<span class="p">);</span>

<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://realtime.oxylabs.io/v1/queries"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_postfields</span><span class="p">,</span> <span class="nb">json_encode</span><span class="p">(</span><span class="nv">$params</span><span class="p">));</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_POST</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$headers</span> <span class="o">=</span> <span class="k">矩阵</span><span class="p">();</span>
<span class="nv">$headers</span><span class="p">[]</span> <span class="o">=</span> <span class="s2">"内容类型：应用程序/json"</span><span class="p">;</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_httpheader</span><span class="p">,</span> <span class="nv">$headers</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err"># URL 必须编码以转义 `&amp;` 和 `=` 字符。本示例中不需要。

https://realtime.oxylabs.io/v1/queries?source=universal_ecommerce&amp;url=https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html&amp;access_token=12345abcde</span></code></pre>
</div></div></div>
<p>打开连接时将返回的响应体示例：</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>
  <span class="s2">"结果"</span><span class="p">:</span> <span class="p">[</span>
    <span class="p">{</span>
      <span class="s2">"内容"</span><span class="p">:</span> <span class="s2">"&lt;html
      内容
      "</span>
      <span class="s2">"创建时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:01"</span><span class="p">,</span>
      <span class="s2">"更新时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:15"</span><span class="p">,</span>
      <span class="s2">"id"</span><span class="p">:</span> <span class="kc">无效</span><span class="p">,</span>
      <span class="s2">"页"</span><span class="p">:</span> <span class="mi">1</span><span class="p">,</span>
      <span class="s2">"url"</span><span class="p">:</span> <span class="s2">"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"</span><span class="p">,</span>
      <span class="s2">"job_id"</span><span class="p">:</span> <span class="s2">"12345678900987654321"</span><span class="p">,</span>
      <span class="s2">"状态代码"</span><span class="p">:</span> <span class="mi">200</span>
    <span class="p">}</span>
  <span class="p">]</span>
<span class="p">}</span></code></pre>
<hr />
<h3 id="superapi">超级用户接口</h3>
<p>如果您曾经使用过普通代理进行数据搜刮，那么集成 SuperAPI 传输方法将轻而易举。您只需将我们的入口节点用作代理，使用 Scraper API 凭据进行授权，然后忽略证书即可。在 <code>cURL</code> 这是 <code>-k</code> 或 <code>--不安全</code>.您的数据将通过开放连接发送给您。</p>
<div class="endpoint">
<pre><strong>GET realtime.oxylabs.io:60000</strong></pre>
</div>
<p>超级用户接口只支持少量参数，因为它 <strong>仅适用于 <a class="custom_link" href="#direct">直接</a> 数据源</strong> 其中提供了完整的 URL。这些参数应作为标头发送。这是一份可接受的参数列表：</p>
<table>
<tbody>
<tr>
<td><code>X-OxySERPs-User-Agent-Type</code></td>
<td>虽然无法指明特定的 User-Agent，但您可以让我们知道您使用的浏览器和平台。支持的用户代理列表如下所示 <a class="custom_link" href="#user_agent_type">这里</a>.</td>
</tr>
</tbody>
</table>
<p>如果您在设置超级用户接口时需要帮助，请通过以下方式与我们联系 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a>.</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl -k <span class="se">\</span>
-x realtime.oxylabs.io:60000 <span class="se">\</span>
-用户：pass1 <span class="se">\</span>
-H <span class="s2">"X-OxySERPs-User-Agent-Type: desktop_chrome"</span> <span class="se">\</span>
<span class="s2">"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>

<span class="c"># 定义代理口令。不要忘记在此处填写您的真实用户和密码。</span>
<span class="n">代理</span> <span class="o">=</span> <span class="p">{</span>
  <span class="s">http</span><span class="p">:</span> <span class="s">'http://user:pass1@realtime.oxylabs.io:60000'</span><span class="p">,</span>
  <span class="s">https</span><span class="p">:</span> <span class="s">'https://user:pass1@realtime.oxylabs.io:60000'</span><span class="p">,</span>
<span class="p">}</span>

<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="s">GET</span><span class="p">,</span>
    <span class="s">'https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
    <span class="n">核对</span><span class="o">=</span><span class="bp">假的</span><span class="p">,</span>  <span class="c"># 或接受我们的证书。</span>
    <span class="n">代理</span><span class="o">=</span><span class="n">代理</span><span class="p">,</span>
<span class="p">)</span>

<span class="c"># 将结果页打印到 stdout</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">文本</span><span class="p">)</span>

<span class="c"># 将返回的 HTML 保存为 result.html 文件</span>
<span class="k">与</span> <span class="nb">开</span><span class="p">(</span><span class="s">结果.html</span><span class="p">,</span> <span class="s">'w'</span><span class="p">)</span> <span class="k">作为</span> <span class="n">f</span><span class="p">:</span>
    <span class="n">f</span><span class="o">.</span><span class="n">写道</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">文本</span><span class="p">)</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>
<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_PROXY</span><span class="p">,</span> <span class="s1">realtime.oxylabs.io:60000</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_proxyuserpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_ssl_verifypeer</span><span class="p">,</span> <span class="kc">错误</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_ssl_verifyhost</span><span class="p">,</span> <span class="kc">错误</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err">超级用户接口不支持 HTTP 方法</span></code></pre>
</div></div></div>
<hr />
<h2 id="content-type">内容类型</h2>
<p>Scraper API 返回 <strong>原始HTML</strong>以及 <strong>结构化 JSON</strong>.</p>
<h3 id="download-images">下载图片</h3>
<p>可以通过 Scraper API 下载图像。如果通过 SuperAPI 下载，只需将输出保存到图片扩展名即可。例如</p>
<p><code>curl -k -x realtime.oxylabs.io:60000 -U user:pass1 "https://example.com/image.jpg" &gt;&gt; image.jpg</code></p>
<p>如果您使用 <a class="custom_link" href="#push-pull">推拉式</a> 或 <a class="custom_link" href="#realtime">实时</a> 方法，您需要添加 <code>content_encoding</code> 参数的值为 <code>base64</code>.收到结果后，您需要解码来自 <code>内容</code> 转换成字节并保存为图像文件。右侧有一个 Python 示例。</p>
<hr />
<h2 id="data-sources">数据来源</h2>
<p>Scraper API 接受 URL 以及其他参数，如 User-Agent 类型、代理位置等。请参见此方法，我们将其称为 <a class="custom_link" href="#direct">直接</a>下文将对此进行说明。</p>
<p>Scraper API 能够在扫描时渲染 JavaScript。这样，您就能从网页中获取更多数据，并获得屏幕截图。</p>
<p>如果您对文件的任何部分有疑问，请致电我们 <a class="custom_link" href="mailto:support@oxylabs.io" target="_blank" rel="nofollow noopener">support@oxylabs.io</a> 或联系您的客户经理。</p>
<hr />
<h3 id="direct">直接</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-9126 alignleft" src="https://www.proxysp.com/wp-content/uploads/2021/11/Oxylabs-ECommerce-Universal-Scraper-API-Direct.png" alt="Oxylabs ECommerce Universal Scraper API Direct" width="426" height="17" srcset="https://proxysp.com/wp-content/uploads/2021/11/Oxylabs-ECommerce-Universal-Scraper-API-Direct.png 426w, https://proxysp.com/wp-content/uploads/2021/11/Oxylabs-ECommerce-Universal-Scraper-API-Direct-300x12.png 300w" sizes="(max-width: 426px) 100vw, 426px" /></p>
<p>&nbsp;</p>
<p><code>universal_ecommerce</code> 源的目的是检索互联网上任何 URL 的内容。 <code>职位</code>-将 JSON 格式的参数发送到以下端点，将把指定的 URL 提交到提取队列。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="216">
<tbody>
<tr>
<td style="font-weight: 400;" width="72">参数</td>
<td style="font-weight: 400;" width="72">说明</td>
<td style="font-weight: 400;" width="72">默认值</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">消息来源</td>
<td style="font-weight: 400;" width="72">数据来源</td>
<td style="font-weight: 400;" width="72">universal_ecommerce</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">网址</td>
<td style="font-weight: 400;" width="72">通用网页的直接 URL（链接</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">用户代理类型</td>
<td style="font-weight: 400;" width="72">设备类型和浏览器。完整列表如下 <a href="#user_agent_type">这里。</a></td>
<td style="font-weight: 400;" width="72">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地理位置</td>
<td style="font-weight: 400;" width="72">用于检索数据的代理地理位置。支持位置的完整列表如下 <a href="#geo_location">这里。</a></td>
<td style="font-weight: 400;" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">地点</td>
<td style="font-weight: 400;" width="72">正如 Accept-Language 标头所期望的那样。</td>
<td style="font-weight: 400;" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">给予</td>
<td style="font-weight: 400;" width="72">启用 JavaScript 渲染。在目标需要 JavaScript 加载内容时使用。仅适用于推拉（又称回调）方法。该参数有两个可用值：html（获取原始输出）和 png（获取 Base64 编码的截图）。</td>
<td style="font-weight: 400;" width="72"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">content_encoding</td>
<td style="font-weight: 400;" width="72">如果要下载图像，请添加此参数。了解更多信息 <a href="#download-images">这里。</a></td>
<td style="font-weight: 400;" width="72">base64</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">Base64 编码的 POST 请求正文。它只有在 http_method 设置为 post 时才有用。</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">内容</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">递上自己的饼干</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">饼干</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">指明是否希望扫描程序跟踪重定向（带有目标 URL 的 3xx 响应），以获取重定向链末端 URL 的内容。</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">follow_redirects</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">传递自己的标头</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">页眉</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">如果您想通过电子商务通用抓取器向目标 URL 发出 POST 请求，请将其设置为 "发布"。</td>
<td style="font-weight: 400;" rowspan="2" width="72">获取</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">http_method</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">如果您想在多个请求中使用同一个代理，可以使用此参数。只需将会话设置为任意字符串，我们就会为该 ID 分配一个代理，并最多保留 10 分钟。之后，如果您使用相同的会话 ID 发出另一个请求，我们就会为该特定会话 ID 分配一个新的代理。</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">session_id</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">背景</td>
<td style="font-weight: 400;" rowspan="2" width="72">定义一个自定义 HTTP 响应代码（或其中的几个），我们应根据该代码认为刮擦成功并将内容返回给您。如果您希望我们返回 503 错误页面或在其他一些非标准情况下，这可能会很有用。</td>
<td style="font-weight: 400;" rowspan="2" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">成功状态代码</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">回调URL</td>
<td style="font-weight: 400;" width="72">URL 到您的回调端点。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">解析</td>
<td style="font-weight: 400;" width="72">true 将返回结构化数据，只要提交的 URL 指向电子商务产品页面即可。将此参数与解析器类型参数结合使用，可使用我们的自适应解析器。</td>
<td style="font-weight: 400;" width="72">假</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">解析器类型</td>
<td style="font-weight: 400;" width="72">将值设为 ecommerce_product，以访问自适应解析器。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储类型</td>
<td style="font-weight: 400;" width="72">存储服务提供商。目前只支持亚马逊 S3：s3。完整的实现可以在<a href="#upload-to-storage"> 上传到存储器</a> 页。只能通过推拉（回调）方法运行。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">存储URL</td>
<td style="font-weight: 400;" width="72">您的 Amazon S3 存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="72">&#8211;</td>
</tr>
</tbody>
</table>
</div>
<p><code class="required">  </code> - 所需参数</p>
<p>在本例中，应用程序接口将以推拉方式检索一个电子商务通用产品页面。所有可用参数都包含在内（尽管在同一请求中并非总是必要或兼容），以便让您了解如何格式化您的请求：</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1 <span class="se">\</span>
<span class="s1">'https://data.oxylabs.io/v1/queries'</span> <span class="se">\</span>
-H <span class="s2">"内容类型：应用程序/json"</span> <span class="se">\</span>
 -d <span class="s1">'{"源"："universal_ecommerce", "url"："https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html", "user_agent_type"："mobile", "render"："html"、
 "上下文"：{"key"："headers", "value": ["Accept-Language"："en-US", "Content-Type"："application/octet-stream", "Custom-Header"："自定义标题内容"]}，{"key"："cookies"，"value"：[{"key"："NID"，"值"："1234567890"}，{"key"："1P JAR"，"值"："0987654321"}，{"key"："follow_redirects", "value": true}, {"key"："http_method", "value"："get"}, {"key"："内容"，"值"："base64EncodedPOSTBody"}, {"key"："successful_status_codes", "value": [303, 808, 909]}]}]}'</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>


<span class="c"># 结构有效载荷。</span>
<span class="n">载荷</span> <span class="o">=</span> <span class="p">{</span>
    <span class="s">来源</span><span class="p">:</span> <span class="s">universal_ecommerce</span><span class="p">,</span>
    <span class="s">'url'（网址</span><span class="p">:</span> <span class="s">'https://www.etsy.com/listing/399423455/big-glass-house-planter-handmade-glass?ref=hp_prn&amp;frs=1'</span><span class="p">,</span>
    <span class="s">用户代理类型</span><span class="p">:</span> <span class="s">桌面</span><span class="p">,</span>
    <span class="s">地理位置</span><span class="p">:</span> <span class="s">美国</span><span class="p">,</span>
    <span class="s">解析</span><span class="p">:</span> <span class="n">真</span><span class="p">,</span>
    <span class="s">解析器类型</span><span class="p">:</span> <span class="s">"电子商务产品"</span><span class="p">,</span>
    <span class="s">上下文</span><span class="p">:</span> <span class="p">[</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">session_id</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="s">1234567890abcdef</span>
        <span class="p">}</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">标题</span><span class="p">,</span> <span class="s">价值</span><span class="p">:</span> 
            <span class="p">{</span>
             <span class="s">接受语言</span><span class="p">:</span> <span class="s">en-US</span><span class="p">,</span>
             <span class="s">内容类型</span><span class="p">:</span> <span class="s">应用程序/八字节流</span><span class="p">,</span>
             <span class="s">自定义标题</span><span class="p">:</span> <span class="s">自定义标题内容</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">饼干</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="p">[{</span>
              <span class="s">钥匙</span><span class="p">:</span> <span class="s">NID</span><span class="p">,</span>
             <span class="s">价值</span><span class="p">:</span> <span class="s">'1234567890'</span>
           <span class="p">},</span>
           <span class="p">{</span>
              <span class="s">钥匙</span><span class="p">:</span> <span class="s">1P_JAR</span><span class="p">,</span>
             <span class="s">价值</span><span class="p">:</span> <span class="s">'0987654321'</span>
           <span class="p">}</span>
         <span class="p">]</span>
        <span class="p">},</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">follow_redirects</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="n">真</span>
        <span class="p">},</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">成功状态代码</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="p">[</span><span class="mi">303</span><span class="p">,</span> <span class="mi">808</span><span class="p">,</span> <span class="mi">909</span><span class="p">]</span>
        <span class="p">},</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">http_method</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="s">获取</span>
        <span class="p">}</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">内容</span>
          <span class="s">价值</span><span class="p">:</span> <span class="s">base64EncodedPOSTBody</span>
        <span class="p">}</span>
    <span class="p">],</span>
    <span class="s">回调URL</span><span class="p">:</span> <span class="s">'https://your.callback.url'</span><span class="p">,</span>
<span class="p">}</span>

<span class="c"># 获取响应。</span>
<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="s">POST</span><span class="p">,</span>
    <span class="s">'https://data.oxylabs.io/v1/queries'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
    <span class="n">json</span><span class="o">=</span><span class="n">载荷</span><span class="p">,</span>
<span class="p">)</span>

<span class="c"># 向 stdout 打印经过修饰的响应。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$params</span> <span class="o">=</span> <span class="p">[</span>
    <span class="s1">来源</span> <span class="o">=&gt;</span> <span class="s1">universal_ecommerce</span><span class="p">,</span>
    <span class="s1">'url'（网址</span> <span class="o">=&gt;</span> <span class="s1">'https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html'</span><span class="p">,</span>
    <span class="s1">上下文</span> <span class="o">=&gt;</span> <span class="p">[</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">session_id</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">1234567890abcdef</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">标题</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="p">[</span>
                <span class="s1">接受语言</span> <span class="o">=&gt;</span> <span class="s1">en-US</span><span class="p">,</span>
                <span class="s1">内容类型</span> <span class="o">=&gt;</span> <span class="s1">应用程序/八字节流</span><span class="p">,</span>
                <span class="s1">自定义标题</span> <span class="o">=&gt;</span> <span class="s1">自定义标题内容</span>
            <span class="p">],</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">饼干</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="p">[</span>
                <span class="p">[</span><span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">NID</span><span class="p">,</span> <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">'1234567890'</span><span class="p">],</span>
                <span class="p">[</span><span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">1P_JAR</span><span class="p">,</span> <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">'0987654321'</span><span class="p">]</span>
            <span class="p">]</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">follow_redirects</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">真实</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">成功状态代码</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="p">[</span><span class="mi">303</span><span class="p">,</span> <span class="mi">808</span><span class="p">,</span> <span class="mi">909</span><span class="p">]</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">http_method</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">获取</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">内容</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">base64EncodedPOSTBody</span>
        <span class="p">]</span>
    <span class="p">]</span>
<span class="p">];</span>

<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://data.oxylabs.io/v1/queries"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_postfields</span><span class="p">,</span> <span class="nb">json_encode</span><span class="p">(</span><span class="nv">$params</span><span class="p">));</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_POST</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$headers</span> <span class="o">=</span> <span class="k">矩阵</span><span class="p">();</span>
<span class="nv">$headers</span><span class="p">[]</span> <span class="o">=</span> <span class="s2">"内容类型：应用程序/json"</span><span class="p">;</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_httpheader</span><span class="p">,</span> <span class="nv">$headers</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err">HTTP 方法目前不支持 Push-Pull</span></code></pre>
</div></div></div>
<p>以下是实时模式下的相同示例：</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1 <span class="se">\</span>
<span class="s1">'https://data.oxylabs.io/v1/queries'</span> <span class="se">\</span>
-H <span class="s2">"内容类型：应用程序/json"</span> <span class="se">\</span>
-d <span class="s1">'{"源"："universal_ecommerce", "url"："https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html", "user_agent_type"："mobile", "context"：{"key"："headers"（标题），"value"（值）：["Accept-Language"（接受语言）："en-US"，"Content-Type"："application/octet-stream"，"Custom-Header"："自定义标题内容"]}，{"key"："cookies"，"value"：[{"key"："NID"，"值"："1234567890"}，{"key"："1P JAR"，"值"："0987654321"}，{"key"："follow_redirects", "value": true}, {"key"："http_method", "value"："get"}, {"key"："内容"，"值"："base64EncodedPOSTBody"}, {"key"："successful_status_codes", "value": [303, 808, 909]}]}]}'</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>

<span class="c"># 结构有效载荷。</span>
<span class="n">载荷</span> <span class="o">=</span> <span class="p">{</span>
    <span class="s">来源</span><span class="p">:</span> <span class="s">universal_ecommerce</span><span class="p">,</span>
    <span class="s">'url'（网址</span><span class="p">:</span> <span class="s">'https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html'</span><span class="p">,</span>
    <span class="s">用户代理类型</span><span class="p">:</span> <span class="s">移动</span><span class="p">,</span>
    <span class="s">地理位置</span><span class="p">:</span> <span class="s">美国</span><span class="p">,</span>
    <span class="s">上下文</span><span class="p">:</span> <span class="p">[</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">session_id</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="s">1234567890abcdef</span>
        <span class="p">}</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">标题</span><span class="p">,</span> <span class="s">价值</span><span class="p">:</span> 
            <span class="p">{</span>
             <span class="s">接受语言</span><span class="p">:</span> <span class="s">en-US</span><span class="p">,</span>
             <span class="s">内容类型</span><span class="p">:</span> <span class="s">应用程序/八字节流</span><span class="p">,</span>
             <span class="s">自定义标题</span><span class="p">:</span> <span class="s">自定义标题内容</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">饼干</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="p">[{</span>
              <span class="s">钥匙</span><span class="p">:</span> <span class="s">NID</span><span class="p">,</span>
             <span class="s">价值</span><span class="p">:</span> <span class="s">'1234567890'</span>
           <span class="p">},</span>
           <span class="p">{</span>
              <span class="s">钥匙</span><span class="p">:</span> <span class="s">1P_JAR</span><span class="p">,</span>
             <span class="s">价值</span><span class="p">:</span> <span class="s">'0987654321'</span>
           <span class="p">}</span>
         <span class="p">]</span>
        <span class="p">},</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">follow_redirects</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="n">真</span>
        <span class="p">},</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">成功状态代码</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="p">[</span><span class="mi">303</span><span class="p">,</span> <span class="mi">808</span><span class="p">,</span> <span class="mi">909</span><span class="p">]</span>
        <span class="p">},</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">http_method</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="s">获取</span>
        <span class="p">}</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">内容</span>
          <span class="s">价值</span><span class="p">:</span> <span class="s">base64EncodedPOSTBody</span>
        <span class="p">}</span>
    <span class="p">],</span>
<span class="p">}</span>

<span class="c"># 获取响应。</span>
<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="s">POST</span><span class="p">,</span>
    <span class="s">'https://realtime.oxylabs.io/v1/queries'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
    <span class="n">json</span><span class="o">=</span><span class="n">载荷</span><span class="p">,</span>
<span class="p">)</span>

<span class="c"># 返回的不是包含任务状态和结果 url 的响应，而是</span>
<span class="c"># JSON 响应结果。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$params</span> <span class="o">=</span> <span class="p">[</span>
    <span class="s1">来源</span> <span class="o">=&gt;</span> <span class="s1">universal_ecommerce</span><span class="p">,</span>
    <span class="s1">'url'（网址</span> <span class="o">=&gt;</span> <span class="s1">'https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html'</span><span class="p">,</span>
    <span class="s1">上下文</span> <span class="o">=&gt;</span> <span class="p">[</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">session_id</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">1234567890abcdef</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">标题</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="p">[</span>
                <span class="s1">接受语言</span> <span class="o">=&gt;</span> <span class="s1">en-US</span><span class="p">,</span>
                <span class="s1">内容类型</span> <span class="o">=&gt;</span> <span class="s1">应用程序/八字节流</span><span class="p">,</span>
                <span class="s1">自定义标题</span> <span class="o">=&gt;</span> <span class="s1">自定义标题内容</span>
            <span class="p">],</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">饼干</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="p">[</span>
                <span class="p">[</span><span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">NID</span><span class="p">,</span> <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">'1234567890'</span><span class="p">],</span>
                <span class="p">[</span><span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">1P_JAR</span><span class="p">,</span> <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">'0987654321'</span><span class="p">]</span>
            <span class="p">]</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">follow_redirects</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">真实</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">成功状态代码</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="p">[</span><span class="mi">303</span><span class="p">,</span> <span class="mi">808</span><span class="p">,</span> <span class="mi">909</span><span class="p">]</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">http_method</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">获取</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">内容</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">base64EncodedPOSTBody</span>
        <span class="p">]</span>
    <span class="p">]</span>
<span class="p">];</span>

<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://data.oxylabs.io/v1/queries"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_postfields</span><span class="p">,</span> <span class="nb">json_encode</span><span class="p">(</span><span class="nv">$params</span><span class="p">));</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_POST</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$headers</span> <span class="o">=</span> <span class="k">矩阵</span><span class="p">();</span>
<span class="nv">$headers</span><span class="p">[]</span> <span class="o">=</span> <span class="s2">"内容类型：应用程序/json"</span><span class="p">;</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_httpheader</span><span class="p">,</span> <span class="nv">$headers</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err"># The whole string you submit has to be URL-encoded.

https://realtime.oxylabs.io/v1/queries?source=universal_ecommerce&url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2Ftagged%2Fpython&access_token=12345abcde</span></code></pre>
</div></div></div>
<p>并通过超级用户接口（SuperAPI）：</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code><span class="c"># GET 请求可以如下所示：</span>
curl -k <span class="se">\</span>
-x http://realtime.oxylabs.io:60000 <span class="se">\</span>
-用户：pass1 <span class="se">\</span>
<span class="s2">"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"</span> <span class="se">\</span>
-H <span class="s2">"X-OxySERPs-Session-Id：1234567890abcdef"</span> <span class="se">\</span>
-H <span class="s2">"X-OxySERPs-地理位置：印度"</span> <span class="se">\</span>
-H <span class="s2">"接受语言：en-US"</span> <span class="se">\</span>
-H <span class="s2">"内容类型：应用程序/八字节流</span> <span class="se">\</span>
-H <span class="s2">"自定义标题：自定义标题内容"</span> <span class="se">\</span>
-H <span class="s2">"Cookie：NID=1234567890; 1P_JAR=0987654321"</span> <span class="se">\</span>
-H <span class="s2">"X-Status-Code：303, 808, 909"</span>

<span class="c"># POST 请求具有相同的结构，但包含一个指定为 POST 请求的参数：</span>
curl -X POST <span class="se">\</span>
-k <span class="se">\</span>
-x http://realtime.oxylabs.io:60000 <span class="se">\</span>
-用户：pass1 <span class="s2">"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"</span> <span class="se">\</span>
-H <span class="s2">"X-OxySERPs-Session-Id：1234567890abcdef"</span> <span class="se">\</span>
-H <span class="s2">"X-OxySERPs-地理位置：印度"</span> <span class="se">\</span>
-H <span class="s2">"自定义标题：自定义标题内容"</span> <span class="se">\</span>
-H <span class="s2">"Cookie：NID=1234567890; 1P_JAR=0987654321"</span> <span class="se">\</span>
-H <span class="s2">"X-Status-Code：303, 808, 909"</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>

<span class="c"># 定义代理口令。不要忘记在此处填写您的真实用户和密码。</span>
<span class="n">代理</span> <span class="o">=</span> <span class="p">{</span>
  <span class="s">http</span><span class="p">:</span> <span class="s">'http://user:pass1@realtime.oxylabs.io:60000'</span><span class="p">,</span>
  <span class="s">https</span><span class="p">:</span> <span class="s">'https://user:pass1@realtime.oxylabs.io:60000'</span><span class="p">,</span>
<span class="p">}</span>

<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="s">GET</span><span class="p">,</span>
    <span class="s">'https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
    <span class="n">核对</span><span class="o">=</span><span class="bp">假的</span><span class="p">,</span>  <span class="c"># 或接受我们的证书。</span>
    <span class="n">代理</span><span class="o">=</span><span class="n">代理</span><span class="p">,</span>
<span class="p">)</span>

<span class="c"># 将结果页打印到 stdout</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">文本</span><span class="p">)</span>

<span class="c"># 将返回的 HTML 保存为 result.html 文件</span>
<span class="k">与</span> <span class="nb">开</span><span class="p">(</span><span class="s">结果.html</span><span class="p">,</span> <span class="s">'w'</span><span class="p">)</span> <span class="k">作为</span> <span class="n">f</span><span class="p">:</span>
    <span class="n">f</span><span class="o">.</span><span class="n">写道</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">文本</span><span class="p">)</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>
<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_PROXY</span><span class="p">,</span> <span class="s1">realtime.oxylabs.io:60000</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_proxyuserpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_ssl_verifypeer</span><span class="p">,</span> <span class="kc">错误</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_ssl_verifyhost</span><span class="p">,</span> <span class="kc">错误</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err">超级用户接口不支持 HTTP 方法</span></code></pre>
</div></div></div>
<hr />
<h2 id="parameter-values">参数值</h2>
<h3 id="geo_location">地理位置</h3>
<p>支持的地理位置完整列表以 CSV 格式提供 <a class="custom_link" href="https://developers.oxylabs.io/resources/universal-supported-geo_location-values.csv" target="_blank" rel="noopener">这里</a>.</p>
<pre class="highlight json tab-json"><code><span class="s2">"阿拉伯联合酋长国</span><span class="p">,</span>
<span class="s2">"阿尔巴尼亚"</span><span class="p">,</span>
<span class="s2">"亚美尼亚</span><span class="p">,</span>
<span class="s2">"安哥拉"</span><span class="p">,</span>
<span class="s2">"阿根廷"</span><span class="p">,</span>
<span class="s2">"澳大利亚"</span><span class="p">,</span>
<span class="err">...</span>
<span class="s2">"乌拉圭"</span><span class="p">,</span>
<span class="s2">"乌兹别克斯坦"</span><span class="p">,</span>
<span class="s2">"委内瑞拉玻利瓦尔共和国</span><span class="p">,</span>
<span class="s2">"越南"</span><span class="p">,</span>
<span class="s2">"南非"</span><span class="p">,</span>
<span class="s2">"津巴布韦</span></code></pre>
<hr />
<h3 id="http_method">HTTP_Method</h3>
<p>电子商务 Universal Scraper API 支持两种 HTTP(S) 方法： <code>获取</code> (默认）和 <code>职位</code>.</p>
<pre class="highlight json tab-json"><code><span class="s2">"GET"</span><span class="p">,</span>
<span class="s2">"发布"</span></code></pre>
<hr />
<h3 id="render">渲染</h3>
<p>E-commerce Universal Scraper API 可渲染 Javascript 并返回渲染的 HTML 文档或 PNG 网页截图。</p>
<pre class="highlight json tab-json"><code><span class="s2">"html"</span><span class="p">,</span>
<span class="s2">"png"</span></code></pre>
<hr />
<h3 id="user_agent_type">User_Agent_Type</h3>
<p>下载完整列表 <code>用户代理类型</code> JSON 中的值 <a class="custom_link" href="https://developers.oxylabs.io/resources/user_agent_type.json" target="_blank" rel="noopener">这里</a>.</p>
<pre class="highlight json tab-json"><code><span class="p">[</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"桌面"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"随机桌面浏览器用户代理"</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"desktop_firefox"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版桌面火狐浏览器的随机用户代理"</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"桌面铬色"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版桌面 Chrome 浏览器的随机用户代理"。</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"桌面歌剧"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版桌面 Opera 的随机用户代理"。</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"桌面边缘"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版桌面 Edge 的随机用户代理"。</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"desktop_safari"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版桌面 Safari 的随机用户代理"。</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"移动"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"随机移动浏览器用户代理"</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"mobile_android"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版安卓浏览器的随机用户代理"</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"mobile_ios"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版 iPhone 浏览器的随机用户代理"。</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"平板电脑"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"随机平板电脑浏览器用户代理"</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"tablet_android"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版安卓平板电脑的随机用户代理"</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"tablet_ios"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版 iPad 平板电脑的随机用户代理"。</span>
  <span class="p">}</span>
<span class="p">]</span></code></pre>
<hr />
<h2 id="account-status">账户状态</h2>
<h3 id="usage-statistics">使用统计</h3>
<p>您可以通过查询以下端点找到您的使用统计数据：</p>
<div class="endpoint">
<pre><strong>GET https://data.oxylabs.io/v2/stats</strong></pre>
</div>
<p>默认情况下，API 将返回所有时间的使用统计数据。添加 <code>group_by=month</code> 将返回月度统计数据，而 <code>group_by=day</code> 将返回每日数字。</p>
<p>此查询将返回所有时间的统计数据。您可以通过添加以下任一选项来查询每日和每月的使用量 <code>group_by=day</code> 或 <code>group_by=month</code></p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="3" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1 <span class="s1">'https://data.oxylabs.io/v2/stats'</span>
</code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>

<span class="c"># 从统计终端获取响应。</span>
<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="n">方法</span><span class="o">=</span><span class="s">GET</span><span class="p">,</span>
    <span class="n">网址</span><span class="o">=</span><span class="s">'https://data.oxylabs.io/v2/stats'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
<span class="p">)</span>

<span class="c"># 向 stdout 打印经过修饰的 JSON 响应。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://data.oxylabs.io/v2/stats"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_customrequest</span><span class="p">,</span> <span class="s2">"GET"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div></div></div>
<p>输出示例</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>
    <span class="s2">"数据"</span><span class="p">:</span> <span class="p">{</span>
        <span class="s2">"来源"</span><span class="p">:</span> <span class="p">[</span>
            <span class="p">{</span>
                <span class="s2">"实时结果计数"</span><span class="p">:</span> <span class="s2">"90"</span><span class="p">,</span>
                <span class="s2">"结果数"</span><span class="p">:</span> <span class="s2">"10"</span><span class="p">,</span>
                <span class="s2">"标题"</span><span class="p">:</span> <span class="s2">"universal_ecommerce"</span>
            <span class="p">}</span>
        <span class="p">]</span>
    <span class="p">},</span>
    <span class="s2">"元"</span><span class="p">:</span> <span class="p">{</span>
        <span class="s2">"group_by"</span><span class="p">:</span> <span class="kc">无效</span>
    <span class="p">}</span>
<span class="p">}</span>
</code></pre>
<hr />
<h3 id="limits">限制</h3>
<p>以下端点将提供您的每月承诺信息以及已使用的承诺额度：</p>
<div class="endpoint">
<pre><strong>GET https://data.oxylabs.io/v2/stats/limits</strong></pre>
</div>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="3" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1 <span class="s1">'https://data.oxylabs.io/v2/stats/limits'</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>

<span class="c"># 从统计终端获取响应。</span>
<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="n">方法</span><span class="o">=</span><span class="s">GET</span><span class="p">,</span>
    <span class="n">网址</span><span class="o">=</span><span class="s">'https://data.oxylabs.io/v2/stats/limits'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
<span class="p">)</span>

<span class="c"># 向 stdout 打印经过修饰的 JSON 响应。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://data.oxylabs.io/v2/stats/limits"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_customrequest</span><span class="p">,</span> <span class="s2">"GET"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div></div></div>
<p>输出示例</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>
    <span class="s2">"每月要求承诺"</span><span class="p">:</span> <span class="mi">4500000</span><span class="p">,</span>
    <span class="s2">"已用请求"</span><span class="p">:</span> <span class="mi">985000</span>
<span class="p">}</span></code></pre>
<hr />
<h2 id="response-codes">响应代码</h2>
<table>
<thead>
<tr>
<th>代码</th>
<th>现状</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>204</code></td>
<td>无内容</td>
<td>您正在尝试检索一项尚未完成的任务。</td>
</tr>
<tr>
<td><code>400</code></td>
<td>多种错误信息</td>
<td>请求结构错误，可能是参数拼写错误或值无效。响应体将显示更具体的错误信息。</td>
</tr>
<tr>
<td><code>401</code></td>
<td>未提供授权标头"/"授权标头无效"/"未找到客户端</td>
<td>缺少授权标头或登录凭证不正确。</td>
</tr>
<tr>
<td><code>403</code></td>
<td>禁止</td>
<td>您的帐户无法访问此资源。</td>
</tr>
<tr>
<td><code>404</code></td>
<td>未找到</td>
<td>您要查找的职位编号已不再可用。</td>
</tr>
<tr>
<td><code>429</code></td>
<td>请求太多</td>
<td>超出费率限制。请联系您的客户经理以提高限额。</td>
</tr>
<tr>
<td><code>500</code></td>
<td>未知错误</td>
<td>无法提供服务。</td>
</tr>
<tr>
<td><code>524</code></td>
<td>超时</td>
<td>无法提供服务。</td>
</tr>
<tr>
<td><code>612</code></td>
<td>未定义的内部错误</td>
<td>出了点问题，我们未能完成您提交的任务。您可以免费再试一次，因为我们不会向您收取任何费用。 <code>有问题</code> 工作。如果无效，请与我们联系。</td>
</tr>
<tr>
<td><code>613</code></td>
<td>重试次数过多后出现故障</td>
<td>我们曾尝试清除您提交的作业，但在达到重试限制后放弃了。您可以免费再试一次，因为我们不会向您收取任何费用。 <code>有问题</code> 工作。如果无效，请与我们联系。</td>
</tr>
</tbody>
</table>
<hr />
<h4>参考资料</h4>
<ul>
<li style="list-style-type: none;">
<ul>
<li><a href="https://developers.oxylabs.io/scraper-apis/ecommerce_scraper_api/source/universal/index.html#quick-start" target="_blank" rel="nofollow noopener">https://developers.oxylabs.io/scraper-apis/ecommerce_scraper_api/source/universal/index.html#quick-start</a></li>
<li><a href="https://developers.oxylabs.io/scraper-apis/" target="_blank" rel="nofollow noopener">https://developers.oxylabs.io/scraper-apis/ </a></li>
</ul>
</li>
</ul>
<hr />
<blockquote><p><strong>免责声明</strong> 这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/oxylabs-ecommerce-scraper-api/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">9117</post-id>	</item>
		<item>
		<title>How to Use Zenscrape API</title>
		<link>https://proxysp.com/zh/how-to-use-zenscrape-api/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-use-zenscrape-api</link>
					<comments>https://proxysp.com/zh/how-to-use-zenscrape-api/#respond</comments>
		
		<dc:creator><![CDATA[proxysp]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[Manuals]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=8684</guid>

					<description><![CDATA[想使用 Zenscrape API 进行网络刮刮卡？所以你必须知道如何使用 Zenscrape API。本文将为您提供详细指导。...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/how-to-use-zenscrape-api/"> <span class="screen-reader-text">如何使用 Zenscrape API</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>想使用 Zenscrape API 进行网页刮削吗？所以你必须知道如何使用 Zenscrape API。本文将为你提供详细指导。开始吧</p></blockquote>
<h2>文件</h2>
<p><b>专业提示</b>: <a href="https://app.zenscrape.com/register" target="_blank" rel="nofollow noopener">注册</a> 在此注册您的免费 apikey，以下所有代码片段都将包含您的私人 apikey。如果您已经注册、 <a href="https://app.zenscrape.com/login" target="_blank" rel="nofollow noopener">登录</a> 在查看文档之前。</p>
<h3 id="postman">邮差系列</h3>
<p>为了给您提供最佳的开发体验，我们还创建了一个 Postman 集合，其中涵盖了我们的所有端点，包括大量示例。 <a href="https://app.getpostman.com/run-collection/85f8b936e3e1870c3fa9" target="_blank" rel="nofollow noopener">在邮差中运行</a>.</p>
<hr />
<h3 id="failed">贷记费用和申请失败</h3>
<p>计入配额的信用点数取决于请求类型配置和 API 端点返回的状态代码。因此，一个请求可能需要花费 1 到 25 个信用点。您可以使用我们的请求生成器在您的 <a href="https://app.zenscrape.com/" target="_blank" rel="nofollow noopener">仪表盘</a>.它可生成最常用编程语言的代码片段。您可以找到我们的错误代码列表 <a href="https://app.zenscrape.com/documentation#errorCodes" target="_blank" rel="nofollow noopener">这里</a>.</p>
<table class="table">
<thead>
<tr>
<th class="pl-0" scope="col"><code>保险费</code></th>
<th scope="col"><code>给予</code></th>
<th scope="col">以学分计算的成本</th>
</tr>
</thead>
<tbody>
<tr>
<td>错误</td>
<td>错误</td>
<td>1</td>
</tr>
<tr>
<td>错误</td>
<td>真</td>
<td>5</td>
</tr>
<tr>
<td>真</td>
<td>错误</td>
<td>10</td>
</tr>
<tr>
<td>真</td>
<td>真</td>
<td>25</td>
</tr>
</tbody>
</table>
<hr />
<h3>基本用法</h3>
<p>通过该端点可以获取网站内容。基本使用时，除 apikey 外，只需一个参数。</p>
<div class="card-header"><code>GET POST /get</code></div>
<div class="card-body">
<p>Zenscrape 添加 <code>网址</code> 参数将从目标网站获取 HTML 内容。此请求配置将使用标准代理，并将作为 1 个点数计入每月限额。</p>
<pre class="p-0"><code class="bash p-3 hljs">卷曲 <span class="hljs-string">"https://app.zenscrape.com/api/v1/get?url=http://httpbin.org/ip"</span> \
    -H <span class="hljs-string">"apikey: YOUR-APIKEY"</span> </code></pre>
<p>将生成以下回复：</p>
<pre class="p-0"><code class="html p-3 hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">网页</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">率领</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">率领</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">机构</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">预先</span> <span class="hljs-attr">风格</span>=<span class="hljs-string">"word-wrap: break-word; white-space: pre-wrap;"</span>&gt;</span>
            {
                "origin"："80.102.66.13"
            }
        <span class="hljs-tag">&lt;/<span class="hljs-name">预先</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">机构</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">网页</span>&gt;</span></code></pre>
</div>
<hr />
<h3>网络抓取 API</h3>
<p><code>GET POST /get</code></p>
<p>参见演示答复：</p>
<div class="card-body">
<pre class="p-0">&lt;html&gt; 
   &lt;head&gt;&lt;/head&gt; 
     &lt;body&gt; 
       &lt;pre&gt; 
          { 
<span class="hljs-attr">            "起源"</span>: <span class="hljs-string">"223.233.44.142"</span> 
          } 
      &lt;/pre&gt; 
    &lt;/body&gt; 
&lt;/html&gt;</pre>
</div>
<p>该端点接受以下参数：</p>
<div class="su-table su-table-responsive su-table-alternate su-table-fixed">
<table class="table">
<thead>
<tr>
<th class="pl-0" scope="col">参数</th>
<th scope="col">类型</th>
<th scope="col">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>网址</td>
<td><b>所需</b></td>
<td>要搜索的目标网站</td>
</tr>
<tr>
<td>保险费</td>
<td><b>可选的</b>, 布尔型，20 个学分计入配额</td>
<td>使用住宅代理，解锁难以搜索的网站</td>
</tr>
<tr>
<td>地点</td>
<td><b>可选的</b>默认：全球</td>
<td>如果 <code>premium=false</code> 可能的位置是 "na"（北美）和 "eu"（欧洲）<br />
如果 <code>premium=true</code> 您可以从我们的 <a href="https://app.zenscrape.com/documentation#proxyLocationList" target="_blank" rel="nofollow noopener">230 多个国家名单</a></td>
</tr>
<tr>
<td>keep_headers</td>
<td><b>可选的</b>, 布尔型</td>
<td>允许传递前向标头（如用户代理、cookie）</td>
</tr>
<tr>
<td>设备类型</td>
<td><b>可选的</b>, 布尔型</td>
<td>默认设置为桌面用户代理。设置为 "移动 "时，将设置为 iPhone 或 Android 用户代理</td>
</tr>
<tr>
<td>给予</td>
<td><b>可选的</b>, 布尔型，计入配额的 5 个学分</td>
<td>使用无头浏览器获取依赖于 javascript 的内容</td>
</tr>
<tr>
<td>等待</td>
<td><b>可选的</b>整数</td>
<td>最大值：15，只能与 <code>render=true</code> 浏览器刮除 HTML 标记前等待内容呈现的秒数</td>
</tr>
<tr>
<td>wait_for_css</td>
<td><b>可选的</b>整数</td>
<td>只能与 <code>render=true</code>等待 css-selector 变为可见</td>
</tr>
<tr>
<td>届会</td>
<td><b>可选的</b>字符串</td>
<td>如果您想重复使用一个 IP，可以使用随机字符串，例如 <code>session=kdQ1VeQE</code></td>
</tr>
<tr>
<td>滚动到底部</td>
<td><b>可选的</b>, 布尔型</td>
<td>只能与 <code>render=true</code>在返回页面内容之前，滚动到页面底部</td>
</tr>
</tbody>
</table>
</div>
<p>Zenscrape 是一种 REST 应用程序接口，可通过任何编程语言接受 HTTP 请求。下面的示例通过代理连接到网址 https://httpbin.org/ip，并在浏览器中渲染内容，然后将标记返回给您。</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="5" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>浏览器</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong> Node.js</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Browser&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https%3A%2F%2Fhttpbin.org%2Fip&premium=true&country=de&render=true</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">卷曲 <span class="hljs-string">"https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https%3A%2F%2Fhttpbin.org%2Fip&premium=true&country=de&render=true"</span></pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0"><span class="hljs-keyword">舶来品</span> requests headers = { <span class="hljs-string">"apikey"</span>: <span class="hljs-string">"您的密码"</span>} params = ( (<span class="hljs-string">"url"</span>,<span class="hljs-string">"https://httpbin.org/ip"</span>), (<span class="hljs-string">"溢价"</span>,<span class="hljs-string">"真"</span>), (<span class="hljs-string">"国家"</span>,<span class="hljs-string">"de"</span>), (<span class="hljs-string">"渲染"</span>,<span class="hljs-string">"真"</span>), ); response = requests.get(<span class="hljs-string">'https://app.zenscrape.com/api/v1/get'</span>, headers=headers, params=params); print(response.text)</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt; Node.js&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0"><span class="hljs-keyword">变异</span> 请求 = <span class="hljs-built_in">要求</span>(<span class="hljs-string">请求</span>); <span class="hljs-keyword">变异</span> 选项 = { <span class="hljs-attr">网址</span>: <span class="hljs-string">'https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&amp;url=https://httpbin.org/ip&amp;premium=true&amp;country=de&amp;render=true'</span> }; <span class="hljs-function"><span class="hljs-keyword">功能</span> <span class="hljs-title">回调</span>(<span class="hljs-params">错误、响应、正文</span>) </span>{ <span class="hljs-keyword">如果</span> (!error &amp;&amp; response.statusCode == <span class="hljs-number">200</span>) { <span class="hljs-built_in">游戏机</span>.log(body); }} request(options, callback)；</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">$ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER、 <span class="hljs-literal">真</span>); curl_setopt($ch, CURLOPT_HEADER、 <span class="hljs-literal">错误</span>); $data = [ <span class="hljs-string">"url"</span> =&gt; <span class="hljs-string">"https://httpbin.org/ip"</span>, <span class="hljs-string">"溢价"</span> =&gt; <span class="hljs-string">"真"</span>, <span class="hljs-string">"国家"</span> =&gt; <span class="hljs-string">"de"</span>, <span class="hljs-string">"渲染"</span> =&gt; <span class="hljs-string">"真"</span>, ]; curl_setopt($ch, CURLOPT_URL、 <span class="hljs-string">"https://app.zenscrape.com/api/v1/get？"</span> http_build_query($data)); curl_setopt($ch, CURLOPT_HTTPHEADER、 <span class="hljs-keyword">矩阵</span>( <span class="hljs-string">"内容类型：应用程序/json"</span>, <span class="hljs-string">"apikey: YOUR-APIKEY"</span>, )); $response = curl_exec($ch); curl_close($ch); $json = json_decode($response); var_dump($json)；</pre>
</div>
</div></div></div>
<hr />
<h3>代理模式</h3>
<p><code>GET POST </code></p>
<p>参见演示答复：</p>
<div class="card-body">
<p>将生成以下回复：</p>
<pre class="p-0">&lt;html&gt; 
   &lt;head&gt;&lt;/head&gt; 
     &lt;body&gt; 
       &lt;pre&gt; 
          { 
<span class="hljs-attr">            "起源"： <span class="hljs-string">"223.233.44.142"</span></span> 
          } 
      &lt;/pre&gt; 
    &lt;/body&gt; &lt;/html&gt;</pre>
</div>
<p class="mb-4">除了 REST API，Zenscrape 还提供 HTTP 代理接口。您可以集成任何已经依赖代理的应用程序。只需使用您的 API 密钥作为用户名，并使用您通常提供的任何参数作为密码即可。</p>
<p class="mb-4">HTTP 代理将返回 <code>HTTP/1.1 407 需要代理验证</code> 以防您的证书无效。</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="3" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">curl -k -x <span class="hljs-string">"http://YOUR-APIKEY:render=true&amp;wait_for_css=.author@proxy-server.zenscrape.com:8282"</span> https://quotes.toscrape.com/js</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0"><span class="hljs-keyword">舶来品</span> 请求 代理 = { <span class="hljs-string">"http"</span>: <span class="hljs-string">"http://YOUR-APIKEY:render=true&amp;wait_for_css=.author@proxy-server.zenscrape.com:8282"</span>, <span class="hljs-string">"https"</span>: <span class="hljs-string">"http://YOUR-APIKEY:render=true&amp;wait_for_css=.author@proxy-server.zenscrape.com:8282"</span> } response = requests.get(<span class="hljs-string">'https://quotes.toscrape.com/js'</span>，代理=代理，验证=<span class="hljs-literal">假的</span>); print(response.text)</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">$ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER、 <span class="hljs-literal">真</span>); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER、 <span class="hljs-literal">错误</span>); curl_setopt($ch, CURLOPT_URL、 <span class="hljs-string">"https://quotes.toscrape.com/js"</span>); curl_setopt($ch, CURLOPT_PROXY、 <span class="hljs-string">"proxy-server.zenscrape.com:8282"</span>); curl_setopt($ch, CURLOPT_PROXYUSERPWD、 <span class="hljs-string">"YOUR-APIKEY:render=true&amp;wait_for_css=.author"</span>); $response = curl_exec($ch); curl_close($ch); var_dump($response)；</pre>
</div>
</div></div></div>
<hr />
<h3>高级代理位置列表</h3>
<p>以下地点列表可用于 <code>地点</code> 参数，如果 <code>保险费</code> 设置为 <code>真</code>.</p>
<div class="su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-spoiler-title" tabindex="0" role="button"><span class="su-spoiler-icon"></span>北美</div><div class="su-spoiler-content su-u-clearfix su-u-trim">
<div class="col-md-4">
<ul>
<li>ai - 安圭拉</li>
<li>ag - 安提瓜和巴布达</li>
<li>aw - 阿鲁巴</li>
<li>bs - 巴哈马</li>
<li>bb - 巴巴多斯</li>
<li>bz - 伯利兹</li>
<li>bm - 百慕大群岛</li>
<li>bq - 博内尔岛、圣尤斯特歇斯岛和萨巴岛</li>
<li>vg - 英属维尔京群岛</li>
<li>ca - 加拿大</li>
<li>ky - 开曼群岛</li>
<li>cr - 哥斯达黎加</li>
<li>cu - 古巴</li>
<li>cw - 库拉索岛</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>dm - 多米尼克</li>
<li>多米尼加共和国</li>
<li>sv - 萨尔瓦多</li>
<li>gd - 格林纳达</li>
<li>gp - 瓜德罗普岛</li>
<li>gt - 危地马拉</li>
<li>ht - 海地</li>
<li>hn - 洪都拉斯</li>
<li>jm - 牙买加</li>
<li>mq - 马提尼克岛</li>
<li>mx - 墨西哥</li>
<li>ni - 尼加拉瓜</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>pa - 巴拿马</li>
<li>pr - 波多黎各</li>
<li>Bl - 圣巴泰勒米</li>
<li>kn - 圣基茨和尼维斯</li>
<li>LC - 圣卢西亚</li>
<li>mf - 圣马丁</li>
<li>下午 - 圣皮埃尔和密克隆岛</li>
<li>vc - 圣文森特和格林纳丁斯</li>
<li>sx - 圣马丁岛</li>
<li>tt - 特立尼达和多巴哥</li>
<li>tc - 特克斯和凯科斯群岛</li>
<li>us - 美国</li>
<li>vi - 美属维尔京群岛</li>
</ul>
</div>
</div></div>
<div class="su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-spoiler-title" tabindex="0" role="button"><span class="su-spoiler-icon"></span>欧洲</div><div class="su-spoiler-content su-u-clearfix su-u-trim">
<div class="col-md-4">
<ul>
<li>ax - 阿兰群岛</li>
<li>阿尔巴尼亚</li>
<li>ad - 安道尔</li>
<li>奥地利</li>
<li>白俄罗斯</li>
<li>be - 比利时</li>
<li>ba - 波斯尼亚和黑塞哥维那</li>
<li>bg - 保加利亚</li>
<li>hr - 克罗地亚</li>
<li>cy - 塞浦路斯</li>
<li>cz - 捷克共和国</li>
<li>dk - 丹麦</li>
<li>ee - 爱沙尼亚</li>
<li>fo - 法罗群岛</li>
<li>fi - 芬兰</li>
<li>fr - 法国</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>de - 德国</li>
<li>gi - 直布罗陀</li>
<li>gr - 希腊</li>
<li>gl - 格陵兰</li>
<li>gg - 格恩西岛</li>
<li>hu - 匈牙利</li>
<li>是 - 冰岛</li>
<li>ie - 爱尔兰</li>
<li>im - 马恩岛</li>
<li>意大利</li>
<li>je - Jersey</li>
<li>xk - 科索沃</li>
<li>lv - 拉脱维亚</li>
<li>li - 列支敦士登</li>
<li>lt - 立陶宛</li>
<li>lu - 卢森堡</li>
<li>mk - 马其顿</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>mt - 马耳他</li>
<li>md - 摩尔多瓦</li>
<li>mc - 摩纳哥</li>
<li>我--黑山</li>
<li>nl - 荷兰</li>
<li>否 - 挪威</li>
<li>pl - 波兰</li>
<li>pt - 葡萄牙</li>
<li>ro - 罗马尼亚</li>
<li>sm - 圣马力诺</li>
<li>rs - 塞尔维亚</li>
<li>sk - 斯洛伐克</li>
<li>si - 斯洛文尼亚</li>
<li>es - 西班牙</li>
<li>se - 瑞典</li>
<li>ch - 瑞士</li>
<li>tr - 土耳其</li>
<li>ua - 乌克兰</li>
<li>uk - 英国</li>
<li>va - 梵蒂冈</li>
</ul>
</div>
</div></div>
<div class="su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-spoiler-title" tabindex="0" role="button"><span class="su-spoiler-icon"></span>亚洲</div><div class="su-spoiler-content su-u-clearfix su-u-trim">
<div class="col-md-4">
<ul>
<li>af - 阿富汗</li>
<li>am - 亚美尼亚</li>
<li>az - 阿塞拜疆</li>
<li>bh - 巴林</li>
<li>bd - 孟加拉国</li>
<li>bt - 不丹</li>
<li>bn - 文莱</li>
<li>kh - 柬埔寨</li>
<li>cn - 中国</li>
<li>ge - 格鲁吉亚</li>
<li>hk - 香港</li>
<li>在 - 印度</li>
<li>毫米 - 缅甸</li>
<li>np - 尼泊尔</li>
<li>om - 阿曼</li>
<li>pk - 巴基斯坦</li>
<li>ph - 菲律宾</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>id - 印度尼西亚</li>
<li>ir - 伊朗</li>
<li>iq - 伊拉克</li>
<li>il - 以色列</li>
<li>jp - 日本</li>
<li>jo - 约旦</li>
<li>kz - 哈萨克斯坦</li>
<li>kw - 科威特</li>
<li>公斤 - 吉尔吉斯斯坦</li>
<li>la - 寮国</li>
<li>磅 - 黎巴嫩</li>
<li>mo - 澳门</li>
<li>我的 - 马来西亚</li>
<li>mv - 马尔代夫</li>
<li>mn - 蒙古</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>qa - 卡塔尔</li>
<li>ru - 俄罗斯</li>
<li>sa - 沙特阿拉伯</li>
<li>sg - 新加坡</li>
<li>kr - 韩国</li>
<li>lk - 斯里兰卡</li>
<li>sy - 叙利亚</li>
<li>tw - 台湾</li>
<li>tj - 塔吉克斯坦</li>
<li>泰国</li>
<li>tm - 土库曼斯坦</li>
<li>ae - 阿拉伯联合酋长国</li>
<li>uz - 乌兹别克斯坦</li>
<li>vn - 越南</li>
<li>也门</li>
</ul>
</div>
</div></div>
<div class="su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-spoiler-title" tabindex="0" role="button"><span class="su-spoiler-icon"></span>南美洲</div><div class="su-spoiler-content su-u-clearfix su-u-trim">
<div class="col-md-4">
<ul>
<li>ar - 阿根廷</li>
<li>博 - 玻利维亚</li>
<li>br - 巴西</li>
<li>cl - 智利</li>
<li>哥伦比亚</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>ms - 蒙特塞拉特</li>
<li>ec - 厄瓜多尔</li>
<li>fk - 福克兰群岛</li>
<li>gf - 法属圭亚那</li>
<li>gy - 圭亚那</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>py - 巴拉圭</li>
<li>pe - 秘鲁</li>
<li>苏里南</li>
<li>uy - 乌拉圭</li>
<li>委内瑞拉</li>
</ul>
</div>
</div></div>
<div class="su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-spoiler-title" tabindex="0" role="button"><span class="su-spoiler-icon"></span>澳大利亚和大洋洲</div><div class="su-spoiler-content su-u-clearfix su-u-trim">
<div class="col-md-4">
<ul class="country-list">
<li>au - 澳大利亚</li>
<li>cx - 圣诞岛</li>
<li>cc - 科科斯群岛</li>
<li>ck - 库克群岛</li>
<li>tl - 东帝汶</li>
<li>fj - 斐济</li>
<li>pf - 法属波利尼西亚</li>
<li>gu - 关岛</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>ki - 基里巴斯</li>
<li>mh - 马绍尔群岛</li>
<li>fm - 密克罗尼西亚</li>
<li>nr - 瑙鲁</li>
<li>nc - 新喀里多尼亚</li>
<li>nz - 新西兰</li>
<li>mp - 北马里亚纳群岛</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>pw - 帕劳</li>
<li>pg - 巴布亚新几内亚</li>
<li>ws - 萨摩亚</li>
<li>sb - 所罗门群岛</li>
<li>汤加</li>
<li>tv - 图瓦卢</li>
<li>vu - 瓦努阿图</li>
<li>vf - 瓦利斯群岛和富图纳群岛</li>
</ul>
</div>
</div></div>
<div class="su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-spoiler-title" tabindex="0" role="button"><span class="su-spoiler-icon"></span>非洲</div><div class="su-spoiler-content su-u-clearfix su-u-trim">
<div class="col-md-4">
<ul class="country-list">
<li>dz - 阿尔及利亚</li>
<li>ao - 安哥拉</li>
<li>bj - 贝宁</li>
<li>bw - 博茨瓦纳</li>
<li>bf - 布基纳法索</li>
<li>bi - 布隆迪</li>
<li>厘米 - 喀麦隆</li>
<li>cv - 佛得角</li>
<li>cf - 中非共和国</li>
<li>td - 乍得</li>
<li>公里 - 科摩罗</li>
<li>dj - 吉布提</li>
<li>eg - 埃及</li>
<li>gq - 赤道几内亚</li>
<li>厄立特里亚</li>
<li>et - 埃塞俄比亚</li>
<li>ga - 加蓬</li>
<li>gm - 冈比亚</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>gh - 加纳</li>
<li>gn - 几内亚</li>
<li>gw - 几内亚</li>
<li>ci - 象牙海岸</li>
<li>ke - 肯尼亚</li>
<li>ls - 莱索托</li>
<li>lr - 利比里亚</li>
<li>ly - 利比亚</li>
<li>mg - 马达加斯加</li>
<li>mw - 马拉维</li>
<li>毫升 - 马里</li>
<li>先生 - 毛里塔尼亚</li>
<li>mu - 毛里求斯</li>
<li>yt - 马约特</li>
<li>ma - 摩洛哥</li>
<li>mz - 莫桑比克</li>
<li>na - 纳米比亚</li>
<li>ne - 尼日尔</li>
<li>ng - 尼日利亚</li>
<li>cg - 刚果共和国</li>
<li>re - 团聚</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>rw - 卢旺达</li>
<li>st - 圣多美和普林西比</li>
<li>塞内加尔</li>
<li>sc - 塞舌尔</li>
<li>塞拉利昂</li>
<li>索马里</li>
<li>za - 南非</li>
<li>ss - 南苏丹</li>
<li>sd - 苏丹</li>
<li>sz - 斯威士兰</li>
<li>tz - 坦桑尼亚</li>
<li>tg - 多哥</li>
<li>tn - 突尼斯</li>
<li>ug - 乌干达</li>
<li>eh - 西撒哈拉</li>
<li>zm - 赞比亚</li>
<li>zw - 津巴布韦</li>
</ul>
</div>
</div></div>
<hr />
<h3 id="authentification">验证和 Apikey 信息</h3>
<p>Zenscrape 使用 API 密钥允许访问 API。你可以在我们的开发者门户注册一个新的 API 密钥。您可以在我们的 <a href="https://app.zenscrape.com/register" target="_blank" rel="nofollow noopener">开发者门户</a>.......。 <code>/status</code> 路由返回剩余信用点数。</p>
<p>您可以通过以下方式进行授权：</p>
<p class="hs-docs-heading h5 d-inline mr-2">GET POST /status</p>
<p>Zenscrape 会在类似以下内容的标头中查找 API 密钥（建议使用，适用于所有请求）：</p>
<div class="card-body">
<pre class="p-0">卷曲 <span class="hljs-string">"https://app.zenscrape.com/api/v1/status"</span> \ -H <span class="hljs-string">"apikey: YOUR-APIKEY"</span></pre>
</div>
<p>或</p>
<div class="card-body">
<pre class="p-0">卷曲 <span class="hljs-string">"https://app.zenscrape.com/api/v1/status?apikey=YOUR-APIKEY"</span></pre>
</div>
<p>或</p>
<div class="card-body">
<pre class="p-0">卷曲 <span class="hljs-string">"https://app.zenscrape.com/api/v1/status -F "</span>apikey=YOUR-APIKEY<span class="hljs-string">"</span></pre>
</div>
<hr />
<h3>错误代码</h3>
<p>Zenscrape API 使用以下错误代码：</p>
<div class="su-table su-table-responsive su-table-alternate">
<table class="table">
<thead>
<tr>
<th class="pl-0" scope="col">HTTP 错误代码</th>
<th scope="col">意义</th>
</tr>
</thead>
<tbody>
<tr>
<td>403</td>
<td>禁止 - API 密钥错误，您没有足够的点数或没有足够的权限访问。</td>
</tr>
<tr>
<td>404</td>
<td>未找到 - 未找到任何结果。</td>
</tr>
<tr>
<td>429</td>
<td>请求过多 - 您已达到并发限制。请等待或升级</td>
</tr>
<tr>
<td>500</td>
<td>内部服务器错误</td>
</tr>
</tbody>
</table>
</div>
<p class="mb-4">API 在此模板中返回错误：</p>
<div class="card-body">
<pre class="p-0">{ 
<span class="hljs-attr">   "错误"</span>: [{ 
<span class="hljs-attr">      "url"</span>: <span class="hljs-string">"失踪"</span> 
   }] 
}</pre>
</div>
<hr />
<h2>常见用例</h2>
<h3 id="premiumProxies">使用高级代理</h3>
<p>Zenscrape 提供大量优质代理，是搜索难以搜索的网站时的首选。要使用代理池，只需设置 <code>premium=true</code>.此外，您还可以使用 location 参数指定一个地点。本例中我们选择了 "se"（瑞典）。您可以查看所有支持位置的列表 <a href="https://app.zenscrape.com/documentation#proxyLocationList" target="_blank" rel="nofollow noopener">这里</a>.</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="5" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>浏览器</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong> Node.js</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Browser&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https%3A%2F%2Fhttpbin.org%2Fip&premium=true&country=se</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">卷曲 <span class="hljs-string">"https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https%3A%2F%2Fhttpbin.org%2Fip&premium=true&country=se"</span></pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0"><span class="hljs-keyword">舶来品</span> requests headers = { <span class="hljs-string">"apikey"</span>: <span class="hljs-string">"您的密码"</span>} params = ( (<span class="hljs-string">"url"</span>,<span class="hljs-string">"https://httpbin.org/ip"</span>), (<span class="hljs-string">"溢价"</span>,<span class="hljs-string">"真"</span>), (<span class="hljs-string">"国家"</span>,<span class="hljs-string">"se"</span>), ); response = requests.get(<span class="hljs-string">'https://app.zenscrape.com/api/v1/get'</span>, headers=headers, params=params); print(response.text)</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt; Node.js&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0"><span class="hljs-keyword">变异</span> 请求 = <span class="hljs-built_in">要求</span>(<span class="hljs-string">请求</span>); <span class="hljs-keyword">变异</span> 选项 = { <span class="hljs-attr">网址</span>: <span class="hljs-string">'https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&amp;url=https://httpbin.org/ip&amp;premium=true&amp;country=se'</span> }; <span class="hljs-function"><span class="hljs-keyword">功能</span> <span class="hljs-title">回调</span>(<span class="hljs-params">错误、响应、正文</span>) </span>{ <span class="hljs-keyword">如果</span> (!error &amp;&amp; response.statusCode == <span class="hljs-number">200</span>) { <span class="hljs-built_in">游戏机</span>.log(body); }} request(options, callback)；</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">$ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER、 <span class="hljs-literal">真</span>); curl_setopt($ch, CURLOPT_HEADER、 <span class="hljs-literal">错误</span>); $data = [ <span class="hljs-string">"url"</span> =&gt; <span class="hljs-string">"https://httpbin.org/ip"</span>, <span class="hljs-string">"溢价"</span> =&gt; <span class="hljs-string">"真"</span>, <span class="hljs-string">"国家"</span> =&gt; <span class="hljs-string">"se"</span>, ]; curl_setopt($ch, CURLOPT_URL、 <span class="hljs-string">"https://app.zenscrape.com/api/v1/get？"</span> http_build_query($data)); curl_setopt($ch, CURLOPT_HTTPHEADER、 <span class="hljs-keyword">矩阵</span>( <span class="hljs-string">"内容类型：应用程序/json"</span>, <span class="hljs-string">"apikey: YOUR-APIKEY"</span>, )); $response = curl_exec($ch); curl_close($ch); $json = json_decode($response); var_dump($json)；</pre>
</div>
</div></div></div>
<hr />
<h3>设置自定义标题</h3>
<p>没有必要为避免被阻止而设置自定义页眉，因为我们自己就可以管理页眉。如果您仍想设置自定义标头，可以通过设置 <code>keep_headers=true</code>.在本例中，我们设置了自定义用户代理。</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="5" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>浏览器</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong> Node.js</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Browser&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https%3A%2F%2Fhttpbin.org%2Fheaders&keep_headers=true&country=us</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">curl -H <span class="hljs-string">"User-Agent: 123"</span> \ <span class="hljs-string">"https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https%3A%2F%2Fhttpbin.org%2Fheaders&keep_headers=true&country=us"</span></pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0"><span class="hljs-keyword">舶来品</span> requests headers = { <span class="hljs-string">"apikey"</span>: <span class="hljs-string">"您的密码"</span>, <span class="hljs-string">"用户代理"</span>: <span class="hljs-string">"123"</span> } params = ( (<span class="hljs-string">"url"</span>,<span class="hljs-string">"https://httpbin.org/headers"</span>), (<span class="hljs-string">"keep_headers"</span>,<span class="hljs-string">"真"</span>), (<span class="hljs-string">"国家"</span>,<span class="hljs-string">"我们"</span>), ); response = requests.get(<span class="hljs-string">'https://app.zenscrape.com/api/v1/get'</span>, headers=headers, params=params); print(response.text)</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt; Node.js&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0"><span class="hljs-keyword">变异</span> 请求 = <span class="hljs-built_in">要求</span>(<span class="hljs-string">请求</span>); <span class="hljs-keyword">变异</span> 标题 = { <span class="hljs-string">用户代理</span>: <span class="hljs-string">'123'</span> }; <span class="hljs-keyword">变异</span> 选项 = { <span class="hljs-attr">网址</span>: <span class="hljs-string">'https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&amp;url=https://httpbin.org/headers&amp;keep_headers=true&amp;country=us'</span>, <span class="hljs-attr">页眉</span>：标题 }； <span class="hljs-function"><span class="hljs-keyword">功能</span> <span class="hljs-title">回调</span>(<span class="hljs-params">错误、响应、正文</span>) </span>{ <span class="hljs-keyword">如果</span> (!error &amp;&amp; response.statusCode == <span class="hljs-number">200</span>) { <span class="hljs-built_in">游戏机</span>.log(body); }} request(options, callback)；</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">$ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER、 <span class="hljs-literal">真</span>); curl_setopt($ch, CURLOPT_HEADER、 <span class="hljs-literal">错误</span>); $data = [ <span class="hljs-string">"url"</span> =&gt; <span class="hljs-string">"https://httpbin.org/headers"</span>, <span class="hljs-string">"keep_headers"</span> =&gt; <span class="hljs-string">"真"</span>, <span class="hljs-string">"国家"</span> =&gt; <span class="hljs-string">"我们"</span>, ]; curl_setopt($ch, CURLOPT_URL、 <span class="hljs-string">"https://app.zenscrape.com/api/v1/get？"</span> http_build_query($data)); curl_setopt($ch, CURLOPT_HTTPHEADER、 <span class="hljs-keyword">矩阵</span>( <span class="hljs-string">"内容类型：应用程序/json"</span>, <span class="hljs-string">"apikey: YOUR-APIKEY"</span>, <span class="hljs-string">"User-Agent: 123"</span> )); $response = curl_exec($ch); curl_close($ch); $json = json_decode($response); var_dump($json)；</pre>
</div>
</div></div></div>
<hr />
<h3>启用 JS 渲染</h3>
<p>很多网站都使用 vue、react 等前端框架。为了提取需要 javascript 的组件，请设置 <code>render=true</code>.</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="5" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>浏览器</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong> Node.js</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Browser&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https%3A%2F%2Fhttpbin.org%2Fheaders&keep_headers=true&country=us</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">curl -H <span class="hljs-string">"User-Agent: 123"</span> \ <span class="hljs-string">"https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https%3A%2F%2Fhttpbin.org%2Fheaders&keep_headers=true&country=us"</span></pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0"><span class="hljs-keyword">舶来品</span> requests headers = { <span class="hljs-string">"apikey"</span>: <span class="hljs-string">"您的密码"</span>, <span class="hljs-string">"用户代理"</span>: <span class="hljs-string">"123"</span> } params = ( (<span class="hljs-string">"url"</span>,<span class="hljs-string">"https://httpbin.org/headers"</span>), (<span class="hljs-string">"keep_headers"</span>,<span class="hljs-string">"真"</span>), (<span class="hljs-string">"国家"</span>,<span class="hljs-string">"我们"</span>), ); response = requests.get(<span class="hljs-string">'https://app.zenscrape.com/api/v1/get'</span>, headers=headers, params=params); print(response.text)</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt; Node.js&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0"><span class="hljs-keyword">变异</span> 请求 = <span class="hljs-built_in">要求</span>(<span class="hljs-string">请求</span>); <span class="hljs-keyword">变异</span> 标题 = { <span class="hljs-string">用户代理</span>: <span class="hljs-string">'123'</span> }; <span class="hljs-keyword">变异</span> 选项 = { <span class="hljs-attr">网址</span>: <span class="hljs-string">'https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&amp;url=https://httpbin.org/headers&amp;keep_headers=true&amp;country=us'</span>, <span class="hljs-attr">页眉</span>：标题 }； <span class="hljs-function"><span class="hljs-keyword">功能</span> <span class="hljs-title">回调</span>(<span class="hljs-params">错误、响应、正文</span>) </span>{ <span class="hljs-keyword">如果</span> (!error &amp;&amp; response.statusCode == <span class="hljs-number">200</span>) { <span class="hljs-built_in">游戏机</span>.log(body); }} request(options, callback)；</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">$ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER、 <span class="hljs-literal">真</span>); curl_setopt($ch, CURLOPT_HEADER、 <span class="hljs-literal">错误</span>); $data = [ <span class="hljs-string">"url"</span> =&gt; <span class="hljs-string">"https://httpbin.org/headers"</span>, <span class="hljs-string">"keep_headers"</span> =&gt; <span class="hljs-string">"真"</span>, <span class="hljs-string">"国家"</span> =&gt; <span class="hljs-string">"我们"</span>, ]; curl_setopt($ch, CURLOPT_URL、 <span class="hljs-string">"https://app.zenscrape.com/api/v1/get？"</span> http_build_query($data)); curl_setopt($ch, CURLOPT_HTTPHEADER、 <span class="hljs-keyword">矩阵</span>( <span class="hljs-string">"内容类型：应用程序/json"</span>, <span class="hljs-string">"apikey: YOUR-APIKEY"</span>, <span class="hljs-string">"User-Agent: 123"</span> )); $response = curl_exec($ch); curl_close($ch); $json = json_decode($response); var_dump($json)；</pre>
</div>
</div></div></div>
<hr />
<h3>绕过 Cloudflare DDoS 保护</h3>
<div id="cloudFlare" class="hs-docs-content-divider">
<div class="row justify-content-center mb-3">
<div class="col-md-12">
<p>很多提供有趣内容的网站都实施了 cloudflare DDoS 保护。当 cloudflare DDoS 保护出现时，Zenscrape 会自动检测，并在保护层消失后返回页面内容。因此，cloudflare DDoS 保护是自动处理的，不需要您采取任何行动。</p>
</div>
</div>
</div>
<div id="blockResources" class="hs-docs-content-divider mb-3">
<div class="row justify-content-center mb-3">
<div class="col-md-12">
<hr />
<h3>阻止特定资源</h3>
<p>为了提高速度或抑制某些页面行为，阻止某些资源加载可能是有用的。在下面的示例中，我们决定阻止 <code>样式表</code>, <code>图像</code> 及其他 <code>媒体</code> 从加载。请记住 <code>资源块</code> 只能与 <code>render=true</code>.</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="5" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>浏览器</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong> Node.js</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Browser&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https%3A%2F%2Fquotes.toscrape.com%2Fjs&render=true&block_resources=stylesheet%2Cimage%2Cmedia</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">卷曲 <span class="hljs-string">"https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https%3A%2F%2Fquotes.toscrape.com%2Fjs&render=true&block_resources=stylesheet%2Cimage%2Cmedia"</span></pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0"><span class="hljs-keyword">舶来品</span> requests headers = { <span class="hljs-string">"apikey"</span>: <span class="hljs-string">"您的密码"</span>} params = ( (<span class="hljs-string">"url"</span>,<span class="hljs-string">"https://quotes.toscrape.com/js"</span>), (<span class="hljs-string">"渲染"</span>,<span class="hljs-string">"真"</span>), (<span class="hljs-string">"block_resources"</span>,<span class="hljs-string">"样式表、图像、媒体"</span>), ); response = requests.get(<span class="hljs-string">'https://app.zenscrape.com/api/v1/get'</span>, headers=headers, params=params); print(response.text)</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt; Node.js&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0"><span class="hljs-keyword">变异</span> 请求 = <span class="hljs-built_in">要求</span>(<span class="hljs-string">请求</span>); <span class="hljs-keyword">变异</span> 选项 = { <span class="hljs-attr">网址</span>: <span class="hljs-string">'https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&amp;url=https://quotes.toscrape.com/js&amp;render=true&amp;block_resources=stylesheet,image,media'</span> }; <span class="hljs-function"><span class="hljs-keyword">功能</span> <span class="hljs-title">回调</span>(<span class="hljs-params">错误、响应、正文</span>) </span>{ <span class="hljs-keyword">如果</span> (!error &amp;&amp; response.statusCode == <span class="hljs-number">200</span>) { <span class="hljs-built_in">游戏机</span>.log(body); }} request(options, callback)；</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">$ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER、 <span class="hljs-literal">真</span>); curl_setopt($ch, CURLOPT_HEADER、 <span class="hljs-literal">错误</span>); $data = [ <span class="hljs-string">"url"</span> =&gt; <span class="hljs-string">"https://quotes.toscrape.com/js"</span>, <span class="hljs-string">"渲染"</span> =&gt; <span class="hljs-string">"真"</span>, <span class="hljs-string">"block_resources"</span> =&gt; <span class="hljs-string">"样式表、图像、媒体"</span>, ]; curl_setopt($ch, CURLOPT_URL、 <span class="hljs-string">"https://app.zenscrape.com/api/v1/get？"</span> http_build_query($data)); curl_setopt($ch, CURLOPT_HTTPHEADER、 <span class="hljs-keyword">矩阵</span>( <span class="hljs-string">"内容类型：应用程序/json"</span>, <span class="hljs-string">"apikey: YOUR-APIKEY"</span>, )); $response = curl_exec($ch); curl_close($ch); $json = json_decode($response); var_dump($json)；</pre>
</div>
</div></div></div>
<hr />
<h3>设置 Cookie</h3>
<p>还可以使用 <code>keep_headers=true</code>.然后，标头只需包含 cookie 名称和值即可。</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="5" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>浏览器</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong> Node.js</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Browser&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https%3A%2F%2Fquotes.toscrape.com%2Fcookies&keep_headers=true</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">curl -H <span class="hljs-string">"Cookie：sessionid=27382738"</span> \ <span class="hljs-string">"https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https%3A%2F%2Fquotes.toscrape.com%2Fcookies&keep_headers=true"</span></pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0"><span class="hljs-keyword">舶来品</span> requests headers = { <span class="hljs-string">"apikey"</span>: <span class="hljs-string">"您的密码"</span>, <span class="hljs-string">"饼干"</span>: <span class="hljs-string">"sessionid=27382738"</span> } params = ( (<span class="hljs-string">"url"</span>,<span class="hljs-string">"https://quotes.toscrape.com/cookies"</span>), (<span class="hljs-string">"keep_headers"</span>,<span class="hljs-string">"真"</span>), ); response = requests.get(<span class="hljs-string">'https://app.zenscrape.com/api/v1/get'</span>, headers=headers, params=params); print(response.text)</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt; Node.js&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0"><span class="hljs-keyword">变异</span> 请求 = <span class="hljs-built_in">要求</span>(<span class="hljs-string">请求</span>);, <span class="hljs-keyword">变异</span> 标题 = { <span class="hljs-string">用户代理</span>: <span class="hljs-string">'123'</span>, <span class="hljs-string">饼干</span>: <span class="hljs-string">sessionid=27382738</span> }; <span class="hljs-keyword">变异</span> 选项 = { <span class="hljs-attr">网址</span>: <span class="hljs-string">'https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&amp;url=https://quotes.toscrape.com/cookies&amp;keep_headers=true'</span> }; <span class="hljs-function"><span class="hljs-keyword">功能</span> <span class="hljs-title">回调</span>(<span class="hljs-params">错误、响应、正文</span>) </span>{ <span class="hljs-keyword">如果</span> (!error &amp;&amp; response.statusCode == <span class="hljs-number">200</span>) { <span class="hljs-built_in">游戏机</span>.log(body); }} request(options, callback)；</pre>
</div>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<div class="card-body">
<pre class="p-0">$ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER、 <span class="hljs-literal">真</span>); curl_setopt($ch, CURLOPT_HEADER、 <span class="hljs-literal">错误</span>); $data = [ <span class="hljs-string">"url"</span> =&gt; <span class="hljs-string">"https://quotes.toscrape.com/cookies"</span>, <span class="hljs-string">"keep_headers"</span> =&gt; <span class="hljs-string">"真"</span>, ]; curl_setopt($ch, CURLOPT_URL、 <span class="hljs-string">"https://app.zenscrape.com/api/v1/get？"</span> http_build_query($data)); curl_setopt($ch, CURLOPT_HTTPHEADER、 <span class="hljs-keyword">矩阵</span>( <span class="hljs-string">"内容类型：应用程序/json"</span>, <span class="hljs-string">"apikey: YOUR-APIKEY"</span>,, <span class="hljs-string">"Cookie：sessionid=27382738"</span> )); $response = curl_exec($ch); curl_close($ch); $json = json_decode($response); var_dump($json)；</pre>
</div>
</div></div></div>
<hr />
<h4 id="references" class="ftwp-heading">参考资料</h4>
<ul>
<li><a href="https://app.zenscrape.com/documentation#webScrapingApi" target="_blank" rel="nofollow noopener">https://app.zenscrape.com/documentation#webScrapingApi </a></li>
</ul>
<hr />
<blockquote><p><strong>免责声明</strong>:这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/how-to-use-zenscrape-api/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">8684</post-id>	</item>
		<item>
		<title>How to Use Oxylabs Scraper API [Part 2]: Oxylabs Web Scraper API</title>
		<link>https://proxysp.com/zh/oxylabs-web-scraper-api/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oxylabs-web-scraper-api</link>
					<comments>https://proxysp.com/zh/oxylabs-web-scraper-api/#respond</comments>
		
		<dc:creator><![CDATA[proxysp]]></dc:creator>
		<pubdate>Thu, 01 Jan 1970 00:00:00 +0000</pubdate>
				<category><![CDATA[How to Use OxyLabs Proxy (OxyLabs User Manual Navigation)]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=9062</guid>

					<description><![CDATA[你知道如何使用 Oxylabs Web Scraper API 吗？这是 OxyLabs 官方最全面的介绍。快速入门 Web Scraper API 建立于 ...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/oxylabs-web-scraper-api/"> <span class="screen-reader-text">如何使用 Oxylabs Scraper API [第 2 部分]：Oxylabs Web Scraper API</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>你知道如何使用 Oxylabs Web Scraper API 吗？这是 OxyLabs 官方最全面的介绍。</p></blockquote>
<h2><a href="https://www.proxysp.com/redirect/oxylabs" target="_blank" rel="nofollow noopener"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-9217" src="https://www.proxysp.com/wp-content/uploads/2021/11/Oxylabs-Web-Scraper-API-pricing.jpg" alt="Oxylabs Web Scraper API pricing" width="898" height="500" srcset="https://proxysp.com/wp-content/uploads/2021/11/Oxylabs-Web-Scraper-API-pricing.jpg 898w, https://proxysp.com/wp-content/uploads/2021/11/Oxylabs-Web-Scraper-API-pricing-300x167.jpg 300w, https://proxysp.com/wp-content/uploads/2021/11/Oxylabs-Web-Scraper-API-pricing-768x428.jpg 768w" sizes="(max-width: 898px) 100vw, 898px" /></a></h2>
<h2 id="quick-start">快速入门</h2>
<p>Web Scraper API 可帮助您进行繁重的数据检索操作。您可以使用 Web Scraper API 访问各种公共页面。它能毫不费力地提取网页数据，不会出现任何延迟或错误。</p>
<p>Web Scraper API 使用 <a class="custom_link" href="https://en.wikipedia.org/wiki/Basic_access_authentication" target="_blank" rel="nofollow noopener">基本 HTTP 身份验证</a> 需要发送用户名和密码。</p>
<p>这是迄今为止开始使用 Web Scraper API 最快的方法。您将向 <code>https://ip.oxylabs.io</code> 使用 <a class="custom_link" href="#realtime" target="_blank" rel="noopener">实时</a> 整合方法。不要忘记替换 <code>用户名</code> 和 <code>密码</code> 使用代理用户凭据。</p>
<pre>curl --user "USERNAME:PASSWORD" 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json" -d '{"source"："universal", "url"："https://ip.oxylabs.io"}'
</pre>
<p>如果您有任何本文件未涉及的问题，请联系您的客户经理或我们的支持人员，地址是 <a class="custom_link" href="mailto:support@oxylabs.io">support@oxylabs.io</a>.</p>
<hr />
<h2 id="integration-methods">整合方法</h2>
<p>Web Scraper API 支持三种集成方法，它们都有各自独特的优势：</p>
<ul>
<li><a href="#push-pull">推拉式</a>.使用这种方法，现在需要与我们的端点保持活动连接，以检索数据。在发出请求后，我们的系统会在任务完成后自动 ping 用户服务器（请参阅  <a href="#Callback">回调</a>).这种方法可以节省计算资源，而且易于扩展。</li>
<li><a class="custom_link" href="#realtime">实时</a>.该方法要求用户与我们的端点保持活动连接，以便在任务完成时成功获取结果。这种方法可以在一个服务中实现，而推拉法则需要两个步骤。</li>
<li><a class="custom_link" href="#superapi">超级用户接口</a>.这种方法与实时方法非常相似，但用户可以使用 HTML Cralwer 作为代理，而不是向我们的端点发布数据。要检索数据，用户必须设置一个代理端点，并向所需的 URL 发送 GET 请求。必须使用标头添加其他参数。</li>
</ul>
<p>我们推荐的数据提取方法是 <a class="custom_link" href="#push-pull">推拉式</a>.</p>
<hr />
<h3 id="push-pull">推拉式</h3>
<p>这是最简单、最可靠、最值得推荐的数据传输方法。在推拉式方案中，您向我们发送查询，我们向您返回工作 <code>本我</code>工作完成后，您可以使用 <code>本我</code> 中检索内容 <code>/结果</code> 端点。您可以自己检查作业完成状态，也可以设置一个能接受 POST 查询的简单监听器。这样，一旦作业准备就绪，我们就会给你发送一条回调消息。在本例中，结果将自动 <a class="custom_link" href="#upload-to-storage">上传到您的 S3 存储桶</a> 名为 <code>您的邮筒名称</code>.</p>
<hr />
<h4 id="single-query">单一查询</h4>
<p>以下端点将处理对一个关键字或 URL 的单次查询。API 将返回一条确认信息，其中包含任务信息，包括任务 <code>本我</code>.您可以使用它来检查任务完成状态 <code>本我</code>或者，您也可以要求我们在扫描任务完成后 ping 您的回调端点，方法是添加 <code>回调URL</code> 在查询中。</p>
<div class="endpoint">
<pre><strong>邮寄 https://data.oxylabs.io/v1/queries</strong></pre>
</div>
<p>您需要在 JSON 主体中将查询参数作为数据发布。</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1<span class="se">\</span>
<span class="s1">'https://data.oxylabs.io/v1/queries'</span> <span class="se">\</span>
-H <span class="s2">"内容类型：应用程序/json"</span> <span class="se">\</span>
-d <span class="s1">'{"源"："universal", "url"："https://stackoverflow.com/questions/tagged/python"、"callback_url"："https://your.callback.url"、"storage_type"："s3", "storage_url"："your_bucket_name"}'</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>


<span class="c"># 结构有效载荷。</span>
<span class="n">载荷</span> <span class="o">=</span> <span class="p">{</span>
    <span class="s">来源</span><span class="p">:</span> <span class="s">普遍性</span><span class="p">,</span>
    <span class="s">'url'（网址</span><span class="p">:</span> <span class="s">'https://stackoverflow.com/questions/tagged/python'</span><span class="p">,</span>
    <span class="s">回调URL</span><span class="p">:</span> <span class="s">'https://your.callback.url'</span><span class="p">,</span>
    <span class="s">存储类型</span><span class="p">:</span> <span class="s">'s3'</span><span class="p">,</span>
    <span class="s">存储URL</span><span class="p">:</span> <span class="s">your_bucket_name</span>
<span class="p">}</span>

<span class="c"># 获取响应。</span>
<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="s">POST</span><span class="p">,</span>
    <span class="s">'https://data.oxylabs.io/v1/queries'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
    <span class="n">json</span><span class="o">=</span><span class="n">载荷</span><span class="p">,</span>
<span class="p">)</span>

<span class="c"># 向 stdout 打印经过修饰的响应。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$params</span> <span class="o">=</span> <span class="k">矩阵</span><span class="p">(</span>
    <span class="s1">来源</span> <span class="o">=&gt;</span> <span class="s1">普遍性</span><span class="p">,</span>
    <span class="s1">'url'（网址</span> <span class="o">=&gt;</span> <span class="s1">'https://stackoverflow.com/questions/tagged/python'</span><span class="p">,</span>
    <span class="s1">回调URL</span> <span class="o">=&gt;</span> <span class="s1">'https://your.callback.url'</span><span class="p">,</span>
    <span class="s1">存储类型</span> <span class="o">=&gt;</span> <span class="s1">'s3'</span><span class="p">,</span>
    <span class="s1">存储URL</span> <span class="o">=&gt;</span> <span class="s1">your_bucket_name</span>
<span class="p">);</span>

<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://data.oxylabs.io/v1/queries"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_postfields</span><span class="p">,</span> <span class="nb">json_encode</span><span class="p">(</span><span class="nv">$params</span><span class="p">));</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_POST</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$headers</span> <span class="o">=</span> <span class="k">矩阵</span><span class="p">();</span>
<span class="nv">$headers</span><span class="p">[]</span> <span class="o">=</span> <span class="s2">"内容类型：应用程序/json"</span><span class="p">;</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_httpheader</span><span class="p">,</span> <span class="nv">$headers</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err">目前不支持 HTTP 方法</span></code></pre>
</div></div></div>
<p>API 将以 JSON 格式响应查询信息，并将其打印在响应体中，与此类似：</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>
  <span class="s2">"回调URL"</span><span class="p">:</span> <span class="s2">"https://your.callback.url"</span><span class="p">,</span>
  <span class="s2">"client_id"</span><span class="p">:</span> <span class="mi">5</span><span class="p">,</span>
  <span class="s2">"创建时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:01"</span><span class="p">,</span>
  <span class="s2">"域"</span><span class="p">:</span> <span class="s2">"com"</span><span class="p">,</span>
  <span class="s2">"地理位置"</span><span class="p">:</span> <span class="kc">无效</span><span class="p">,</span>
  <span class="s2">"id"</span><span class="p">:</span> <span class="s2">"12345678900987654321"</span><span class="p">,</span>
  <span class="s2">"限制"</span><span class="p">:</span> <span class="mi">10</span><span class="p">,</span>
  <span class="s2">"locale"</span><span class="p">:</span> <span class="kc">无效</span><span class="p">,</span>
  <span class="s2">"页面"</span><span class="p">:</span> <span class="mi">1</span><span class="p">,</span>
  <span class="s2">"解析"</span><span class="p">:</span> <span class="kc">错误</span><span class="p">,</span>
  <span class="s2">"渲染"</span><span class="p">:</span> <span class="kc">无效</span><span class="p">,</span>
  <span class="s2">"url"</span><span class="p">:</span> <span class="s2">"https://stackoverflow.com/questions/tagged/python"</span><span class="p">,</span>
  <span class="s2">"源"</span><span class="p">:</span> <span class="s2">"普遍"</span><span class="p">,</span>
  <span class="s2">"起始页"</span><span class="p">:</span> <span class="mi">1</span><span class="p">,</span>
  <span class="s2">"状态"</span><span class="p">:</span> <span class="s2">"待定"</span><span class="p">,</span>
  <span class="s2">"存储类型"</span><span class="p">:</span> <span class="s2">"s3"</span><span class="p">,</span>
  <span class="s2">"storage_url"</span><span class="p">:</span> <span class="s2">"YOUR_BUCKET_NAME/12345678900987654321.json"</span><span class="p">,</span>
  <span class="s2">"子域"</span><span class="p">:</span> <span class="s2">"www"</span><span class="p">,</span>
  <span class="s2">"更新时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:01"</span><span class="p">,</span>
  <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"桌面"</span><span class="p">,</span>
  <span class="s2">"_链接"</span><span class="p">:</span> <span class="p">[</span>
    <span class="p">{</span>
      <span class="s2">"rel"</span><span class="p">:</span> <span class="s2">"自我"</span><span class="p">,</span>
      <span class="s2">"href"</span><span class="p">:</span> <span class="s2">"http://data.oxylabs.io/v1/queries/12345678900987654321"</span><span class="p">,</span>
      <span class="s2">"方法"</span><span class="p">:</span> <span class="s2">"GET"</span>
    <span class="p">},</span>
    <span class="p">{</span>
      <span class="s2">"rel"</span><span class="p">:</span> <span class="s2">"结果"</span><span class="p">,</span>
      <span class="s2">"href"</span><span class="p">:</span> <span class="s2">"http://data.oxylabs.io/v1/queries/12345678900987654321/results"</span><span class="p">,</span>
      <span class="s2">"方法"</span><span class="p">:</span> <span class="s2">"GET"</span>
    <span class="p">}</span>
  <span class="p">]</span>
<span class="p">}</span></code></pre>
<hr />
<h4 id="check-job-status">检查工作状态</h4>
<p>如果您的查询有 <code>回调URL</code>我们会在扫描任务完成后向您发送一条包含内容链接的信息。但是，如果没有 <code>回调URL</code> 在查询中，您需要自己检查任务状态。为此，您需要使用 <code>href</code> 根据 <code>rel</code>:<code>自我</code> 在您向我们的 API 提交查询后收到的响应信息中。它应该与下面的内容相似： <code>http://data.oxylabs.io/v1/queries/12345678900987654321</code>.</p>
<div class="endpoint">
<pre><strong>GET https://data.oxylabs.io/v1/queries/{id}</strong></pre>
</div>
<p>查询此链接将返回工作信息，包括其 <code>地位</code>.有三种可能 <code>地位</code> 价值观</p>
<div class="su-table su-table-responsive">
<table>
<thead>
<tr>
<td><code>未决</code></td>
<td>任务仍在队列中，尚未完成。</td>
</tr>
<tr>
<td><code>完成的</code></td>
<td>任务完成后，您可以通过在 <code>href</code> 根据 <code>rel</code>:<code>成果</code> : <code>http://data.oxylabs.io/v1/queries/12345678900987654321/results</code></td>
</tr>
<tr>
<td><code>有问题</code></td>
<td>任务出现了问题，我们无法完成任务，很可能是由于目标网站方面的服务器出错。</td>
</tr>
</thead>
</table>
</div>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1 <span class="s1">'https://data.oxylabs.io/v1/queries/batch'</span> -H <span class="s1">内容类型：应用程序/json</span> <span class="se">\</span>
 -d <span class="s1">@keywords.json</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">舶来品</span> <span class="nn">json</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>


<span class="c"># 从文件中获取有效载荷。</span>
<span class="k">与</span> <span class="nb">开</span><span class="p">(</span><span class="s">关键词.json</span><span class="p">,</span> <span class="s">'r'</span><span class="p">)</span> <span class="k">作为</span> <span class="n">f</span><span class="p">:</span>
    <span class="n">载荷</span> <span class="o">=</span> <span class="n">json</span><span class="o">.</span><span class="n">载荷</span><span class="p">(</span><span class="n">f</span><span class="o">.</span><span class="n">阅读</span><span class="p">())</span>

<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="s">POST</span><span class="p">,</span>
    <span class="s">'https://data.oxylabs.io/v1/queries/batch'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
    <span class="n">json</span><span class="o">=</span><span class="n">载荷</span><span class="p">,</span>
<span class="p">)</span>

<span class="c"># 打印经过修饰的回复。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$paramsFile</span> <span class="o">=</span> <span class="nb">file_get_contents</span><span class="p">(</span><span class="nb">真实路径</span><span class="p">(</span><span class="s2">"keywords.json"</span><span class="p">));</span>
<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://data.oxylabs.io/v1/queries/batch"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_postfields</span><span class="p">,</span> <span class="nv">$paramsFile</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_POST</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$headers</span> <span class="o">=</span> <span class="k">矩阵</span><span class="p">();</span>
<span class="nv">$headers</span><span class="p">[]</span> <span class="o">=</span> <span class="s2">"内容类型：应用程序/json"</span><span class="p">;</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_httpheader</span><span class="p">,</span> <span class="nv">$headers</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err">目前不支持 HTTP 方法</span></code></pre>
</div></div></div>
<p><code>keywords.json</code> 内容：</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>  
   <span class="s2">"url"</span><span class="p">:[</span>  
      <span class="s2">"https://stackoverflow.com/questions/tagged/python"</span><span class="p">,</span>
      <span class="s2">"https://stackoverflow.com/questions/tagged/golang"</span><span class="p">,</span>
      <span class="s2">"https://stackoverflow.com/questions/tagged/php"</span>
   <span class="p">],</span>
   <span class="s2">"源"</span><span class="p">:</span> <span class="s2">"普遍"</span><span class="p">,</span>
   <span class="s2">"回调URL"</span><span class="p">:</span> <span class="s2">"https://your.callback.url"</span>
<span class="p">}</span>
</code></pre>
<p>API 将以 JSON 格式响应查询信息，并将其打印在响应体中，与此类似：</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>
  <span class="s2">"查询"</span><span class="p">:</span> <span class="p">[</span>
    <span class="p">{</span>
      <span class="s2">"回调URL"</span><span class="p">:</span> <span class="s2">"https://your.callback.url"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
      <span class="s2">"创建时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:01"</span><span class="p">,</span>
      <span class="s2">"域"</span><span class="p">:</span> <span class="s2">"com"</span><span class="p">,</span>
      <span class="s2">"id"</span><span class="p">:</span> <span class="s2">"12345678900987654321"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
      <span class="s2">"url"</span><span class="p">:</span> <span class="s2">"https://stackoverflow.com/questions/tagged/python"</span><span class="p">,</span>
      <span class="s2">"源"</span><span class="p">:</span> <span class="s2">"普遍"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
          <span class="s2">"rel"</span><span class="p">:</span> <span class="s2">"结果"</span><span class="p">,</span>
          <span class="s2">"href"</span><span class="p">:</span> <span class="s2">"http://data.oxylabs.io/v1/queries/12345678900987654321/results"</span><span class="p">,</span>
          <span class="s2">"方法"</span><span class="p">:</span> <span class="s2">"GET"</span>
        <span class="p">}</span>
      <span class="p">]</span>
    <span class="p">},</span>
    <span class="p">{</span>
      <span class="s2">"回调URL"</span><span class="p">:</span> <span class="s2">"https://your.callback.url"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
      <span class="s2">"创建时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:01"</span><span class="p">,</span>
      <span class="s2">"域"</span><span class="p">:</span> <span class="s2">"com"</span><span class="p">,</span>
      <span class="s2">"id"</span><span class="p">:</span> <span class="s2">"12345678901234567890"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
      <span class="s2">"url"</span><span class="p">:</span> <span class="s2">"https://stackoverflow.com/questions/tagged/golang"</span><span class="p">,</span>
      <span class="s2">"源"</span><span class="p">:</span> <span class="s2">"普遍"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
          <span class="s2">"rel"</span><span class="p">:</span> <span class="s2">"结果"</span><span class="p">,</span>
          <span class="s2">"href"</span><span class="p">:</span> <span class="s2">"http://data.oxylabs.io/v1/queries/12345678901234567890/results"</span><span class="p">,</span>
          <span class="s2">"方法"</span><span class="p">:</span> <span class="s2">"GET"</span>
        <span class="p">}</span>
      <span class="p">]</span>
    <span class="p">},</span>
    <span class="p">{</span>
      <span class="s2">"回调URL"</span><span class="p">:</span> <span class="s2">"https://your.callback.url"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
      <span class="s2">"创建时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:01"</span><span class="p">,</span>
      <span class="s2">"域"</span><span class="p">:</span> <span class="s2">"com"</span><span class="p">,</span>
      <span class="s2">"id"</span><span class="p">:</span> <span class="s2">"01234567899876543210"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
      <span class="s2">"url"</span><span class="p">:</span> <span class="s2">"https://stackoverflow.com/questions/tagged/php"</span><span class="p">,</span>
      <span class="s2">"源"</span><span class="p">:</span> <span class="s2">"普遍"</span><span class="p">,</span>
      <span class="p">{</span><span class="err">...</span><span class="p">}</span>
          <span class="s2">"rel"</span><span class="p">:</span> <span class="s2">"结果"</span><span class="p">,</span>
          <span class="s2">"href"</span><span class="p">:</span> <span class="s2">"http://data.oxylabs.io/v1/queries/01234567899876543210/results"</span><span class="p">,</span>
          <span class="s2">"方法"</span><span class="p">:</span> <span class="s2">"GET"</span>
        <span class="p">}</span>
      <span class="p">]</span>
    <span class="p">}</span>
  <span class="p">]</span>
<span class="p">}</span></code></pre>
<hr />
<h4 id="get-notifier-ip-address-list">获取通知程序 IP 地址列表</h4>
<p>您可能希望将向您发送回调信息的 IP 列入白名单，或为其他目的获取这些 IP 的列表。这可以通过 <code>获取</code>在这个端点上： <code>https://data.oxylabs.io/v1/info/callbacker_ips</code>.</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1 <span class="s1">'https://data.oxylabs.io/v1/info/callbacker_ips'</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>

<span class="c"># 从回调 IP 端点获取响应。</span>
<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="n">方法</span><span class="o">=</span><span class="s">GET</span><span class="p">,</span>
    <span class="n">网址</span><span class="o">=</span><span class="s">'https://data.oxylabs.io/v1/info/callbacker_ips'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
<span class="p">)</span>

<span class="c"># 将经过修饰的 JSON 响应打印到 stdout。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://data.oxylabs.io/v1/info/callbacker_ips"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_customrequest</span><span class="p">,</span> <span class="s2">"GET"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err">目前不支持 HTTP 方法</span></code></pre>
</div></div></div>
<p>API 将返回向您的系统发出回调请求的 IP 列表：</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>
    <span class="s2">"ips"</span><span class="p">:</span> <span class="p">[</span>
        <span class="s2">"x.x.x.x"</span><span class="p">,</span>
        <span class="s2">"y.y.y.y"</span>
    <span class="p">]</span>
<span class="p">}</span></code></pre>
<hr />
<h4 id="upload-to-storage">上传到存储器</h4>
<p>默认情况下，Web Scraper API 的作业结果存储在我们的数据库中。这意味着您需要查询我们的结果端点并自行检索内容。自定义存储功能允许您将结果存储在自己的云存储中。此功能的优势在于，您无需额外请求即可获取结果，所有内容都会直接存储到您的存储桶中。</p>
<p>目前，我们只支持 Amazon S3。如果您想使用其他类型的存储，请联系您的客户经理讨论时间安排。</p>
<p>要将作业结果上传到 Amazon S3 存储桶，需要设置特殊权限。为此，请转到 <code>https://s3.console.aws.amazon.com/ &gt; S3 &gt; 存储 &gt; 桶名称（如果没有，请新建） &gt; 权限 &gt; 桶策略</code></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-9064" src="https://www.proxysp.com/wp-content/uploads/2021/11/oxylabs-web-scraper-api-upload-to-storage.png" alt="oxylabs web scraper api upload to storage" width="481" height="321" srcset="https://proxysp.com/wp-content/uploads/2021/11/oxylabs-web-scraper-api-upload-to-storage.png 481w, https://proxysp.com/wp-content/uploads/2021/11/oxylabs-web-scraper-api-upload-to-storage-300x200.png 300w" sizes="(max-width: 481px) 100vw, 481px" /></p>
<p>您可以在此找到水桶政策 <a class="custom_link" href="https://developers.oxylabs.io/resources/s3_bucket_policy.json" target="_blank" rel="noopener">JSON</a> 或右侧的代码示例区。不要忘记更改 <code>您的邮筒名称</code>.该策略允许我们写入您的邮筒、为您上传文件并了解邮筒的位置。</p>
<p>要使用此功能，您需要在请求中指定两个附加参数。了解更多信息 <a href="#direct">这里</a>.</p>
<p>上传路径如下 <code>YOUR_BUCKET_NAME/job_ID.json</code>.您可以在提交请求后从我们收到的回复正文中找到工作编号。在 <a class="custom_link" href="https://developers.oxylabs.io/scraper-apis/web_scraper_api/source/web-scraper-api/index.html?php#single-query" target="_blank" rel="noopener">本例</a> 工作编号为 <code>12345678900987654321</code>.</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>
    <span class="s2">"版本"</span><span class="p">:</span> <span class="s2">"2012-10-17"</span><span class="p">,</span>
    <span class="s2">"Id"</span><span class="p">:</span> <span class="s2">"Policy1577442634787"</span><span class="p">,</span>
    <span class="s2">"声明"</span><span class="p">:</span> <span class="p">[</span>
        <span class="p">{</span>
            <span class="s2">"希德"</span><span class="p">:</span> <span class="s2">"Stmt1577442633719"</span><span class="p">,</span>
            <span class="s2">"效果"</span><span class="p">:</span> <span class="s2">"允许"</span><span class="p">,</span>
            <span class="s2">"校长"</span><span class="p">:</span> <span class="p">{</span>
                <span class="s2">"AWS"</span><span class="p">:</span> <span class="s2">"arn:aws:iam::324311890426:user/oxylabs.s3.uploader"</span>
            <span class="p">},</span>
            <span class="s2">"行动"</span><span class="p">:</span> <span class="s2">"s3:GetBucketLocation</span><span class="p">,</span>
            <span class="s2">"资源"</span><span class="p">:</span> <span class="s2">"arn:aws:s3:::YOUR_BUCKET_NAME"</span>
        <span class="p">},</span>
        <span class="p">{</span>
            <span class="s2">"希德"</span><span class="p">:</span> <span class="s2">"Stmt1577442633719"</span><span class="p">,</span>
            <span class="s2">"效果"</span><span class="p">:</span> <span class="s2">"允许"</span><span class="p">,</span>
            <span class="s2">"校长"</span><span class="p">:</span> <span class="p">{</span>
                <span class="s2">"AWS"</span><span class="p">:</span> <span class="s2">"arn:aws:iam::324311890426:user/oxylabs.s3.uploader"</span>
            <span class="p">},</span>
            <span class="s2">"行动"</span><span class="p">:</span> <span class="p">[</span>
                <span class="s2">"s3:PutObject</span><span class="p">,</span>
                <span class="s2">"s3:PutObjectAcl"</span>
            <span class="p">],</span>
            <span class="s2">"资源"</span><span class="p">:</span> <span class="s2">"arn:aws:s3:::YOUR_BUCKET_NAME/*"</span>
        <span class="p">}</span>
    <span class="p">]</span>
<span class="p">}</span></code></pre>
<hr />
<h3 id="realtime">实时</h3>
<p>数据提交与推拉式方法相同，但使用实时方法时，我们将在连接打开时返回内容。您向我们发送一个查询，连接保持打开，我们检索内容并将其发送给您。处理此问题的端点如下：</p>
<div class="endpoint">
<pre><strong>邮寄 https://realtime.oxylabs.io/v1/queries</strong></pre>
</div>
<p>开放连接的超时限制为 100 秒。因此，在极少数负载较重的情况下，我们可能无法确保将数据发送给您。</p>
<p>您需要在 JSON 主体中将查询参数作为数据发布。详情请参阅示例。</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1 <span class="s1">'https://realtime.oxylabs.io/v1/queries'</span> -H <span class="s2">"内容类型：应用程序/json"</span> <span class="se">\</span>
 -d <span class="s1">'{"源"："universal"，"url"："https://stackoverflow.com/questions/tagged/python"}'</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>


<span class="c"># 结构有效载荷。</span>
<span class="n">载荷</span> <span class="o">=</span> <span class="p">{</span>
    <span class="s">来源</span><span class="p">:</span> <span class="s">普遍性</span><span class="p">,</span>
    <span class="s">'url'（网址</span><span class="p">:</span> <span class="s">'https://stackoverflow.com/questions/tagged/python'</span><span class="p">,</span>
<span class="p">}</span>

<span class="c"># 获取响应。</span>
<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="s">POST</span><span class="p">,</span>
    <span class="s">'https://realtime.oxylabs.io/v1/queries'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
    <span class="n">json</span><span class="o">=</span><span class="n">载荷</span><span class="p">,</span>
<span class="p">)</span>

<span class="c"># 返回的不是包含任务状态和结果 url 的响应，而是</span>
<span class="c"># JSON 响应结果。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$params</span> <span class="o">=</span> <span class="k">矩阵</span><span class="p">(</span>
    <span class="s1">来源</span> <span class="o">=&gt;</span> <span class="s1">普遍性</span><span class="p">,</span>
    <span class="s1">查询</span> <span class="o">=&gt;</span> <span class="s1">沙发</span><span class="p">,</span>
<span class="p">);</span>

<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://realtime.oxylabs.io/v1/queries"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_postfields</span><span class="p">,</span> <span class="nb">json_encode</span><span class="p">(</span><span class="nv">$params</span><span class="p">));</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_POST</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$headers</span> <span class="o">=</span> <span class="k">矩阵</span><span class="p">();</span>
<span class="nv">$headers</span><span class="p">[]</span> <span class="o">=</span> <span class="s2">"内容类型：应用程序/json"</span><span class="p">;</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_httpheader</span><span class="p">,</span> <span class="nv">$headers</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err"># URL 必须编码以转义 `&amp;` 和 `=` 字符。本示例中不需要。

https://realtime.oxylabs.io/v1/queries?source=universal&amp;url=https://stackoverflow.com/questions/tagged/python&amp;access_token=12345abcde</span></code></pre>
</div></div></div>
<p>打开连接时将返回的响应体示例：</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>
  <span class="s2">"结果"</span><span class="p">:</span> <span class="p">[</span>
    <span class="p">{</span>
      <span class="s2">"内容"</span><span class="p">:</span> <span class="s2">"&lt;html
      内容
      "</span>
      <span class="s2">"创建时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:01"</span><span class="p">,</span>
      <span class="s2">"更新时间"</span><span class="p">:</span> <span class="s2">"2019-10-01 00:00:15"</span><span class="p">,</span>
      <span class="s2">"id"</span><span class="p">:</span> <span class="kc">无效</span><span class="p">,</span>
      <span class="s2">"页"</span><span class="p">:</span> <span class="mi">1</span><span class="p">,</span>
      <span class="s2">"url"</span><span class="p">:</span> <span class="s2">"https://stackoverflow.com/questions/tagged/python"</span><span class="p">,</span>
      <span class="s2">"job_id"</span><span class="p">:</span> <span class="s2">"12345678900987654321"</span><span class="p">,</span>
      <span class="s2">"状态代码"</span><span class="p">:</span> <span class="mi">200</span>
    <span class="p">}</span>
  <span class="p">]</span>
<span class="p">}</span></code></pre>
<hr />
<h3 id="superapi">超级用户接口</h3>
<p>如果您曾经使用过普通代理进行数据搜刮，那么集成 SuperAPI 传输方法将轻而易举。您只需将我们的入口节点用作代理，使用 Web Scraper API 凭据进行授权，然后忽略证书即可。在 <code>cURL</code> 这是 <code>-k</code> 或 <code>--不安全</code>.您的数据将通过开放连接发送给您。</p>
<div class="endpoint">
<pre><strong>GET realtime.oxylabs.io:60000</strong></pre>
</div>
<p>超级用户接口只支持少量参数，因为它 <strong>仅适用于 <a class="custom_link" href="#direct">直接</a> 数据源</strong> 其中提供了完整的 URL。这些参数应作为标头发送。这是一份可接受的参数列表：</p>
<table>
<tbody>
<tr>
<td><code>X-OxySERPs-User-Agent-Type</code></td>
<td>虽然无法指明特定的 User-Agent，但您可以让我们知道您使用的浏览器和平台。支持的用户代理列表如下所示 <a class="custom_link" href="#user_agent_type">这里</a>.</td>
</tr>
</tbody>
</table>
<p>如果您在设置超级用户接口时需要帮助，请通过以下方式与我们联系 <a class="custom_link" href="mailto:support@oxylabs.io">support@oxylabs.io</a>.</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl -k <span class="se">\</span>
-x realtime.oxylabs.io:60000 <span class="se">\</span>
-用户：pass1 <span class="se">\</span>
-H <span class="s2">"X-OxySERPs-User-Agent-Type: desktop_chrome"</span> <span class="se">\</span>
<span class="s2">"https://stackoverflow.com/questions/tagged/python"</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>

<span class="c"># 定义代理口令。不要忘记在此处填写您的真实用户和密码。</span>
<span class="n">代理</span> <span class="o">=</span> <span class="p">{</span>
  <span class="s">http</span><span class="p">:</span> <span class="s">'http://user:pass1@realtime.oxylabs.io:60000'</span><span class="p">,</span>
  <span class="s">https</span><span class="p">:</span> <span class="s">'https://user:pass1@realtime.oxylabs.io:60000'</span><span class="p">,</span>
<span class="p">}</span>

<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="s">GET</span><span class="p">,</span>
    <span class="s">'https://stackoverflow.com/questions/tagged/python'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
    <span class="n">核对</span><span class="o">=</span><span class="bp">假的</span><span class="p">,</span>  <span class="c"># 或接受我们的证书。</span>
    <span class="n">代理</span><span class="o">=</span><span class="n">代理</span><span class="p">,</span>
<span class="p">)</span>

<span class="c"># 将结果页打印到 stdout</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">文本</span><span class="p">)</span>

<span class="c"># 将返回的 HTML 保存为 result.html 文件</span>
<span class="k">与</span> <span class="nb">开</span><span class="p">(</span><span class="s">结果.html</span><span class="p">,</span> <span class="s">'w'</span><span class="p">)</span> <span class="k">作为</span> <span class="n">f</span><span class="p">:</span>
    <span class="n">f</span><span class="o">.</span><span class="n">写道</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">文本</span><span class="p">)</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>
<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://stackoverflow.com/questions/tagged/python"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_PROXY</span><span class="p">,</span> <span class="s1">realtime.oxylabs.io:60000</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_proxyuserpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_ssl_verifypeer</span><span class="p">,</span> <span class="kc">错误</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_ssl_verifyhost</span><span class="p">,</span> <span class="kc">错误</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err">超级用户接口不支持 HTTP 方法</span></code></pre>
</div></div></div>
<hr />
<h2 id="content-type">内容类型</h2>
<p>Web Scraper API 返回 <strong>原始HTML</strong>.</p>
<h3 id="download-images">下载图片</h3>
<p>可以通过 Web Scraper API 下载图像。如果通过 SuperAPI 下载，只需将输出保存到图片扩展名即可。例如</p>
<p><code>curl -k -x realtime.oxylabs.io:60000 -U user:pass1 "https://example.com/image.jpg" &gt;&gt; image.jpg</code></p>
<p>如果您使用 <a class="custom_link" href="#push-pull">推拉式</a> 或 <a class="custom_link" href="#realtime">实时</a> 方法，您需要添加 <code>content_encoding</code> 参数的值为 <code>base64</code>.收到结果后，您需要解码来自 <code>内容</code> 转换成字节并保存为图像文件。右侧有一个 Python 示例。</p>
<hr />
<h2 id="data-sources">数据来源</h2>
<p>Web Scraper API 接受 URL 以及其他参数，如 User-Agent 类型、代理位置等。请参见此方法，我们将其称为 <a class="custom_link" href="#direct">直接</a>下文将对此进行说明。</p>
<p>Web Scraper API 能够在刮擦时渲染 JavaScript。这样，您就能从网页中获取更多数据，并获得屏幕截图。</p>
<p>如果您对文件的任何部分有疑问，请致电我们 <a class="custom_link" href="mailto:support@oxylabs.io">support@oxylabs.io</a> 或联系您的客户经理。</p>
<hr />
<h3 id="direct">直接</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-9103 alignleft" src="https://www.proxysp.com/wp-content/uploads/2021/11/Oxylabs-Web-Scraper-Api-Direct-1.png" alt="Oxylabs Web Scraper Api Direct" width="427" height="21" srcset="https://proxysp.com/wp-content/uploads/2021/11/Oxylabs-Web-Scraper-Api-Direct-1.png 427w, https://proxysp.com/wp-content/uploads/2021/11/Oxylabs-Web-Scraper-Api-Direct-1-300x15.png 300w" sizes="(max-width: 427px) 100vw, 427px" /></p>
<p>&nbsp;</p>
<p>Web Scraper API 用于检索互联网上任何 URL 的内容。 <code>职位</code>-将 JSON 格式的参数发送到以下端点，将把指定的 URL 提交到提取队列。</p>
<p><span class="test">查询参数</span></p>
<div class="su-table su-table-responsive su-table-alternate">
<table width="439">
<tbody>
<tr>
<td style="font-weight: 400;" width="159"><strong>参数</strong></td>
<td style="font-weight: 400;" width="160"><strong>说明</strong></td>
<td style="font-weight: 400;" width="120"><strong>默认值</strong></td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">消息来源</td>
<td style="font-weight: 400;" width="160">数据来源</td>
<td style="font-weight: 400;" width="120">万有</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">网址</td>
<td style="font-weight: 400;" width="160">通用网页的直接 URL（链接</td>
<td style="font-weight: 400;" width="120">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">用户代理类型</td>
<td style="font-weight: 400;" width="160">设备类型和浏览器。完整列表如下<a href="#user_agent_type"> 这里。</a></td>
<td style="font-weight: 400;" width="120">桌面</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">地理位置</td>
<td style="font-weight: 400;" width="160">用于检索数据的代理地理位置。支持位置的完整列表如下<a href="#geo_location"> 这里。</a></td>
<td style="font-weight: 400;" width="120"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">地点</td>
<td style="font-weight: 400;" width="160">正如 Accept-Language 标头所期望的那样。</td>
<td style="font-weight: 400;" width="120"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">给予</td>
<td style="font-weight: 400;" width="160">启用 JavaScript 渲染。在目标需要 JavaScript 加载内容时使用。仅适用于推拉（又称回调）方法。该参数有两个可用值：html（获取原始输出）和 png（获取 Base64 编码的截图）。</td>
<td style="font-weight: 400;" width="120"></td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">content_encoding</td>
<td style="font-weight: 400;" width="160">如果要下载图像，请添加此参数。了解更多信息<a href="#download-images"> 这里。</a></td>
<td style="font-weight: 400;" width="120">base64</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">背景</td>
<td style="font-weight: 400;" rowspan="2" width="160">Base64 编码的 POST 请求正文。它只有在 http_method 设置为 post 时才有用。</td>
<td style="font-weight: 400;" rowspan="2" width="120">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">内容</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">背景</td>
<td style="font-weight: 400;" rowspan="2" width="160">递上自己的饼干</td>
<td style="font-weight: 400;" rowspan="2" width="120">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">饼干</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">背景</td>
<td style="font-weight: 400;" rowspan="2" width="160">指明是否希望扫描程序跟踪重定向（带有目标 URL 的 3xx 响应），以获取重定向链末端 URL 的内容。</td>
<td style="font-weight: 400;" rowspan="2" width="120">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">follow_redirects</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">背景</td>
<td style="font-weight: 400;" rowspan="2" width="160">传递自己的标头</td>
<td style="font-weight: 400;" rowspan="2" width="120">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">页眉</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">背景</td>
<td style="font-weight: 400;" rowspan="2" width="160">如果您想通过 Universal scraper 向目标 URL 发出 POST 请求，请将其设置为 "发布"。</td>
<td style="font-weight: 400;" rowspan="2" width="120">获取</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">http_method</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">背景</td>
<td style="font-weight: 400;" rowspan="2" width="160">如果您想在多个请求中使用同一个代理，可以使用此参数。只需将会话设置为任意字符串，我们就会为该 ID 分配一个代理，并最多保留 10 分钟。之后，如果您使用相同的会话 ID 发出另一个请求，我们就会为该特定会话 ID 分配一个新的代理。</td>
<td style="font-weight: 400;" rowspan="2" width="120">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">session_id</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">背景</td>
<td style="font-weight: 400;" rowspan="2" width="160">定义一个自定义 HTTP 响应代码（或其中的几个），我们应根据该代码认为刮擦成功并将内容返回给您。如果您希望我们返回 503 错误页面或在其他一些非标准情况下，这可能会很有用。</td>
<td style="font-weight: 400;" rowspan="2" width="120">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">成功状态代码</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">回调URL</td>
<td style="font-weight: 400;" width="160">URL 到您的回调端点。</td>
<td style="font-weight: 400;" width="120">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">存储类型</td>
<td style="font-weight: 400;" width="160">存储服务提供商。目前只支持亚马逊 S3：s3。完整的实现可以在 <a href="#upload-to-storage">上传到存储器 </a>页。只能通过推拉（回调）方法运行。</td>
<td style="font-weight: 400;" width="120">&#8211;</td>
</tr>
<tr>
<td style="font-weight: 400;" width="159">存储URL</td>
<td style="font-weight: 400;" width="160">您的 Amazon S3 存储桶名称。仅适用于推挽（回调）方法。</td>
<td style="font-weight: 400;" width="120">&#8211;</td>
</tr>
</tbody>
</table>
</div>
<p><code class="required">  </code> - 所需参数</p>
<p>在本例中，应用程序接口将以推拉方式检索一个通用产品页面。所有可用参数都包含在内（尽管在同一请求中并非总是必要或兼容），以便让您了解如何格式化您的请求：</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1 <span class="se">\</span>
<span class="s1">'https://data.oxylabs.io/v1/queries'</span> <span class="se">\</span>
-H <span class="s2">"内容类型：应用程序/json"</span> <span class="se">\</span>
 -d <span class="s1">'{"源"："universal", "url"："https://stackoverflow.com/questions/tagged/python", "user_agent_type"："mobile", "render"："html"、
 "上下文"：{"key"："headers", "value": ["Accept-Language"："en-US", "Content-Type"："application/octet-stream", "Custom-Header"："自定义标题内容"]}，{"key"："cookies"，"value"：[{"key"："NID"，"值"："1234567890"}，{"key"："1P JAR"，"值"："0987654321"}，{"key"："follow_redirects", "value": true}, {"key"："http_method", "value"："get"}, {"key"："内容"，"值"："base64EncodedPOSTBody"}, {"key"："successful_status_codes", "value": [303, 808, 909]}]}]}'</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>


<span class="c"># 结构有效载荷。</span>
<span class="n">载荷</span> <span class="o">=</span> <span class="p">{</span>
    <span class="s">来源</span><span class="p">:</span> <span class="s">普遍性</span><span class="p">,</span>
    <span class="s">'url'（网址</span><span class="p">:</span> <span class="s">'https://www.etsy.com/listing/399423455/big-glass-house-planter-handmade-glass?ref=hp_prn&amp;frs=1'</span><span class="p">,</span>
    <span class="s">用户代理类型</span><span class="p">:</span> <span class="s">桌面</span><span class="p">,</span>
    <span class="s">地理位置</span><span class="p">:</span> <span class="s">美国</span><span class="p">,</span>
    <span class="s">上下文</span><span class="p">:</span> <span class="p">[</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">session_id</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="s">1234567890abcdef</span>
        <span class="p">}</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">标题</span><span class="p">,</span> <span class="s">价值</span><span class="p">:</span> 
            <span class="p">{</span>
             <span class="s">接受语言</span><span class="p">:</span> <span class="s">en-US</span><span class="p">,</span>
             <span class="s">内容类型</span><span class="p">:</span> <span class="s">应用程序/八字节流</span><span class="p">,</span>
             <span class="s">自定义标题</span><span class="p">:</span> <span class="s">自定义标题内容</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">饼干</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="p">[{</span>
              <span class="s">钥匙</span><span class="p">:</span> <span class="s">NID</span><span class="p">,</span>
             <span class="s">价值</span><span class="p">:</span> <span class="s">'1234567890'</span>
           <span class="p">},</span>
           <span class="p">{</span>
              <span class="s">钥匙</span><span class="p">:</span> <span class="s">1P_JAR</span><span class="p">,</span>
             <span class="s">价值</span><span class="p">:</span> <span class="s">'0987654321'</span>
           <span class="p">}</span>
         <span class="p">]</span>
        <span class="p">},</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">follow_redirects</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="n">真</span>
        <span class="p">},</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">成功状态代码</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="p">[</span><span class="mi">303</span><span class="p">,</span> <span class="mi">808</span><span class="p">,</span> <span class="mi">909</span><span class="p">]</span>
        <span class="p">},</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">http_method</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="s">获取</span>
        <span class="p">}</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">内容</span>
          <span class="s">价值</span><span class="p">:</span> <span class="s">base64EncodedPOSTBody</span>
        <span class="p">}</span>
    <span class="p">],</span>
    <span class="s">回调URL</span><span class="p">:</span> <span class="s">'https://your.callback.url'</span><span class="p">,</span>
<span class="p">}</span>

<span class="c"># 获取响应。</span>
<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="s">POST</span><span class="p">,</span>
    <span class="s">'https://data.oxylabs.io/v1/queries'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
    <span class="n">json</span><span class="o">=</span><span class="n">载荷</span><span class="p">,</span>
<span class="p">)</span>

<span class="c"># 向 stdout 打印经过修饰的响应。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$params</span> <span class="o">=</span> <span class="p">[</span>
    <span class="s1">来源</span> <span class="o">=&gt;</span> <span class="s1">普遍性</span><span class="p">,</span>
    <span class="s1">'url'（网址</span> <span class="o">=&gt;</span> <span class="s1">'https://stackoverflow.com/questions/tagged/python'</span><span class="p">,</span>
    <span class="s1">上下文</span> <span class="o">=&gt;</span> <span class="p">[</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">session_id</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">1234567890abcdef</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">标题</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="p">[</span>
                <span class="s1">接受语言</span> <span class="o">=&gt;</span> <span class="s1">en-US</span><span class="p">,</span>
                <span class="s1">内容类型</span> <span class="o">=&gt;</span> <span class="s1">应用程序/八字节流</span><span class="p">,</span>
                <span class="s1">自定义标题</span> <span class="o">=&gt;</span> <span class="s1">自定义标题内容</span>
            <span class="p">],</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">饼干</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="p">[</span>
                <span class="p">[</span><span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">NID</span><span class="p">,</span> <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">'1234567890'</span><span class="p">],</span>
                <span class="p">[</span><span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">1P_JAR</span><span class="p">,</span> <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">'0987654321'</span><span class="p">]</span>
            <span class="p">]</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">follow_redirects</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">真实</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">成功状态代码</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="p">[</span><span class="mi">303</span><span class="p">,</span> <span class="mi">808</span><span class="p">,</span> <span class="mi">909</span><span class="p">]</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">http_method</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">获取</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">内容</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">base64EncodedPOSTBody</span>
        <span class="p">]</span>
    <span class="p">]</span>
<span class="p">];</span>

<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://data.oxylabs.io/v1/queries"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_postfields</span><span class="p">,</span> <span class="nb">json_encode</span><span class="p">(</span><span class="nv">$params</span><span class="p">));</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_POST</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$headers</span> <span class="o">=</span> <span class="k">矩阵</span><span class="p">();</span>
<span class="nv">$headers</span><span class="p">[]</span> <span class="o">=</span> <span class="s2">"内容类型：应用程序/json"</span><span class="p">;</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_httpheader</span><span class="p">,</span> <span class="nv">$headers</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err">HTTP 方法目前不支持 Push-Pull</span></code></pre>
</div></div></div>
<p>以下是实时模式下的相同示例：</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1 <span class="se">\</span>
<span class="s1">'https://data.oxylabs.io/v1/queries'</span> <span class="se">\</span>
-H <span class="s2">"内容类型：应用程序/json"</span> <span class="se">\</span>
-d <span class="s1">'{"源"："universal", "url"："https://stackoverflow.com/questions/tagged/python", "user_agent_type"："mobile", "context"：{"key"："headers", "value": ["Accept-Language"："en-US"，"Content-Type"："application/octet-stream"，"Custom-Header"："自定义标题内容"]}，{"key"："cookies"，"value"：[{"key"："NID"，"值"："1234567890"}，{"key"："1P JAR"，"值"："0987654321"}，{"key"："follow_redirects", "value": true}, {"key"："http_method", "value"："get"}, {"key"："内容"，"值"："base64EncodedPOSTBody"}, {"key"："successful_status_codes", "value": [303, 808, 909]}]}]}'</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>

<span class="c"># 结构有效载荷。</span>
<span class="n">载荷</span> <span class="o">=</span> <span class="p">{</span>
    <span class="s">来源</span><span class="p">:</span> <span class="s">普遍性</span><span class="p">,</span>
    <span class="s">'url'（网址</span><span class="p">:</span> <span class="s">'https://stackoverflow.com/questions/tagged/python'</span><span class="p">,</span>
    <span class="s">用户代理类型</span><span class="p">:</span> <span class="s">移动</span><span class="p">,</span>
    <span class="s">地理位置</span><span class="p">:</span> <span class="s">美国</span><span class="p">,</span>
    <span class="s">上下文</span><span class="p">:</span> <span class="p">[</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">session_id</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="s">1234567890abcdef</span>
        <span class="p">}</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">标题</span><span class="p">,</span> <span class="s">价值</span><span class="p">:</span> 
            <span class="p">{</span>
             <span class="s">接受语言</span><span class="p">:</span> <span class="s">en-US</span><span class="p">,</span>
             <span class="s">内容类型</span><span class="p">:</span> <span class="s">应用程序/八字节流</span><span class="p">,</span>
             <span class="s">自定义标题</span><span class="p">:</span> <span class="s">自定义标题内容</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">饼干</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="p">[{</span>
              <span class="s">钥匙</span><span class="p">:</span> <span class="s">NID</span><span class="p">,</span>
             <span class="s">价值</span><span class="p">:</span> <span class="s">'1234567890'</span>
           <span class="p">},</span>
           <span class="p">{</span>
              <span class="s">钥匙</span><span class="p">:</span> <span class="s">1P_JAR</span><span class="p">,</span>
             <span class="s">价值</span><span class="p">:</span> <span class="s">'0987654321'</span>
           <span class="p">}</span>
         <span class="p">]</span>
        <span class="p">},</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">follow_redirects</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="n">真</span>
        <span class="p">},</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">成功状态代码</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="p">[</span><span class="mi">303</span><span class="p">,</span> <span class="mi">808</span><span class="p">,</span> <span class="mi">909</span><span class="p">]</span>
        <span class="p">},</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">http_method</span><span class="p">,</span>
          <span class="s">价值</span><span class="p">:</span> <span class="s">获取</span>
        <span class="p">}</span>
        <span class="p">{</span>
          <span class="s">钥匙</span><span class="p">:</span> <span class="s">内容</span>
          <span class="s">价值</span><span class="p">:</span> <span class="s">base64EncodedPOSTBody</span>
        <span class="p">}</span>
    <span class="p">],</span>
<span class="p">}</span>

<span class="c"># 获取响应。</span>
<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="s">POST</span><span class="p">,</span>
    <span class="s">'https://realtime.oxylabs.io/v1/queries'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
    <span class="n">json</span><span class="o">=</span><span class="n">载荷</span><span class="p">,</span>
<span class="p">)</span>

<span class="c"># 返回的不是包含任务状态和结果 url 的响应，而是</span>
<span class="c"># JSON 响应结果。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$params</span> <span class="o">=</span> <span class="p">[</span>
    <span class="s1">来源</span> <span class="o">=&gt;</span> <span class="s1">普遍性</span><span class="p">,</span>
    <span class="s1">'url'（网址</span> <span class="o">=&gt;</span> <span class="s1">'https://stackoverflow.com/questions/tagged/python'</span><span class="p">,</span>
    <span class="s1">上下文</span> <span class="o">=&gt;</span> <span class="p">[</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">session_id</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">1234567890abcdef</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">标题</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="p">[</span>
                <span class="s1">接受语言</span> <span class="o">=&gt;</span> <span class="s1">en-US</span><span class="p">,</span>
                <span class="s1">内容类型</span> <span class="o">=&gt;</span> <span class="s1">应用程序/八字节流</span><span class="p">,</span>
                <span class="s1">自定义标题</span> <span class="o">=&gt;</span> <span class="s1">自定义标题内容</span>
            <span class="p">],</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">饼干</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="p">[</span>
                <span class="p">[</span><span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">NID</span><span class="p">,</span> <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">'1234567890'</span><span class="p">],</span>
                <span class="p">[</span><span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">1P_JAR</span><span class="p">,</span> <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">'0987654321'</span><span class="p">]</span>
            <span class="p">]</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">follow_redirects</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">真实</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">成功状态代码</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="p">[</span><span class="mi">303</span><span class="p">,</span> <span class="mi">808</span><span class="p">,</span> <span class="mi">909</span><span class="p">]</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">http_method</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">获取</span>
        <span class="p">],</span>
        <span class="p">[</span>
            <span class="s1">钥匙</span> <span class="o">=&gt;</span> <span class="s1">内容</span><span class="p">,</span>
            <span class="s1">价值</span> <span class="o">=&gt;</span> <span class="s1">base64EncodedPOSTBody</span>
        <span class="p">]</span>
    <span class="p">]</span>
<span class="p">];</span>

<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://data.oxylabs.io/v1/queries"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_postfields</span><span class="p">,</span> <span class="nb">json_encode</span><span class="p">(</span><span class="nv">$params</span><span class="p">));</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_POST</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$headers</span> <span class="o">=</span> <span class="k">矩阵</span><span class="p">();</span>
<span class="nv">$headers</span><span class="p">[]</span> <span class="o">=</span> <span class="s2">"内容类型：应用程序/json"</span><span class="p">;</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_httpheader</span><span class="p">,</span> <span class="nv">$headers</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err"># The whole string you submit has to be URL-encoded.

https://realtime.oxylabs.io/v1/queries?source=universal&url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2Ftagged%2Fpython&access_token=12345abcde</span></code></pre>
</div></div></div>
<p>并通过超级用户接口（SuperAPI）：</p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="4" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>超文本传输协定</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code><span class="c"># GET 请求可以如下所示：</span>
curl -k <span class="se">\</span>
-x http://realtime.oxylabs.io:60000 <span class="se">\</span>
-用户：pass1 <span class="se">\</span>
<span class="s2">"https://stackoverflow.com/questions/tagged/python"</span> <span class="se">\</span>
-H <span class="s2">"X-OxySERPs-Session-Id：1234567890abcdef"</span> <span class="se">\</span>
-H <span class="s2">"X-OxySERPs-地理位置：印度"</span> <span class="se">\</span>
-H <span class="s2">"接受语言：en-US"</span> <span class="se">\</span>
-H <span class="s2">"内容类型：应用程序/八字节流</span> <span class="se">\</span>
-H <span class="s2">"自定义标题：自定义标题内容"</span> <span class="se">\</span>
-H <span class="s2">"Cookie：NID=1234567890; 1P_JAR=0987654321"</span> <span class="se">\</span>
-H <span class="s2">"X-Status-Code：303, 808, 909"</span>

<span class="c"># POST 请求具有相同的结构，但包含一个指定为 POST 请求的参数：</span>
curl -X POST <span class="se">\</span>
-k <span class="se">\</span>
-x http://realtime.oxylabs.io:60000 <span class="se">\</span>
-用户：pass1 <span class="s2">"https://stackoverflow.com/questions/tagged/python"</span> <span class="se">\</span>
-H <span class="s2">"X-OxySERPs-Session-Id：1234567890abcdef"</span> <span class="se">\</span>
-H <span class="s2">"X-OxySERPs-地理位置：印度"</span> <span class="se">\</span>
-H <span class="s2">"自定义标题：自定义标题内容"</span> <span class="se">\</span>
-H <span class="s2">"Cookie：NID=1234567890; 1P_JAR=0987654321"</span> <span class="se">\</span>
-H <span class="s2">"X-Status-Code：303, 808, 909"</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>

<span class="c"># 定义代理口令。不要忘记在此处填写您的真实用户和密码。</span>
<span class="n">代理</span> <span class="o">=</span> <span class="p">{</span>
  <span class="s">http</span><span class="p">:</span> <span class="s">'http://user:pass1@realtime.oxylabs.io:60000'</span><span class="p">,</span>
  <span class="s">https</span><span class="p">:</span> <span class="s">'https://user:pass1@realtime.oxylabs.io:60000'</span><span class="p">,</span>
<span class="p">}</span>

<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="s">GET</span><span class="p">,</span>
    <span class="s">'https://stackoverflow.com/questions/tagged/python'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
    <span class="n">核对</span><span class="o">=</span><span class="bp">假的</span><span class="p">,</span>  <span class="c"># 或接受我们的证书。</span>
    <span class="n">代理</span><span class="o">=</span><span class="n">代理</span><span class="p">,</span>
<span class="p">)</span>

<span class="c"># 将结果页打印到 stdout</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">文本</span><span class="p">)</span>

<span class="c"># 将返回的 HTML 保存为 result.html 文件</span>
<span class="k">与</span> <span class="nb">开</span><span class="p">(</span><span class="s">结果.html</span><span class="p">,</span> <span class="s">'w'</span><span class="p">)</span> <span class="k">作为</span> <span class="n">f</span><span class="p">:</span>
    <span class="n">f</span><span class="o">.</span><span class="n">写道</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">文本</span><span class="p">)</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>
<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://stackoverflow.com/questions/tagged/python"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_PROXY</span><span class="p">,</span> <span class="s1">realtime.oxylabs.io:60000</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_proxyuserpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_ssl_verifypeer</span><span class="p">,</span> <span class="kc">错误</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_ssl_verifyhost</span><span class="p">,</span> <span class="kc">错误</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;HTTP&lt;/strong&gt;">
<pre class="highlight http tab-http"><code><span class="err">超级用户接口不支持 HTTP 方法</span></code></pre>
</div></div></div>
<hr />
<h2 id="parameter-values">参数值</h2>
<h3 id="geo_location">地理位置</h3>
<p>支持的地理位置完整列表以 CSV 格式提供 <a class="custom_link" href="https://developers.oxylabs.io/resources/universal-supported-geo_location-values.csv" target="_blank" rel="noopener">这里</a>.</p>
<pre class="highlight json tab-json"><code><span class="s2">"阿拉伯联合酋长国</span><span class="p">,</span>
<span class="s2">"阿尔巴尼亚"</span><span class="p">,</span>
<span class="s2">"亚美尼亚</span><span class="p">,</span>
<span class="s2">"安哥拉"</span><span class="p">,</span>
<span class="s2">"阿根廷"</span><span class="p">,</span>
<span class="s2">"澳大利亚"</span><span class="p">,</span>
<span class="err">...</span>
<span class="s2">"乌拉圭"</span><span class="p">,</span>
<span class="s2">"乌兹别克斯坦"</span><span class="p">,</span>
<span class="s2">"委内瑞拉玻利瓦尔共和国</span><span class="p">,</span>
<span class="s2">"越南"</span><span class="p">,</span>
<span class="s2">"南非"</span><span class="p">,</span>
<span class="s2">"津巴布韦</span></code></pre>
<hr />
<h3 id="http_method">HTTP_Method</h3>
<p>通用爬虫支持两种 HTTP(S) 方法： <code>获取</code> (默认）和 <code>职位</code>.</p>
<pre class="highlight json tab-json"><code><span class="s2">"GET"</span><span class="p">,</span>
<span class="s2">"发布"</span></code></pre>
<hr />
<h3 id="render">渲染</h3>
<p>Universal Crawler 可渲染 Javascript 并返回渲染的 HTML 文档或 PNG 网页截图。</p>
<pre class="highlight json tab-json"><code><span class="s2">"html"</span><span class="p">,</span>
<span class="s2">"png"</span></code></pre>
<hr />
<h3 id="user_agent_type">User_Agent_Type</h3>
<p>下载完整列表 <code>用户代理类型</code> JSON 中的值 <a class="custom_link" href="https://developers.oxylabs.io/resources/user_agent_type.json" target="_blank" rel="noopener">这里</a>.</p>
<pre class="highlight json tab-json"><code><span class="p">[</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"桌面"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"随机桌面浏览器用户代理"</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"desktop_firefox"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版桌面火狐浏览器的随机用户代理"</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"桌面铬色"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版桌面 Chrome 浏览器的随机用户代理"。</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"桌面歌剧"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版桌面 Opera 的随机用户代理"。</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"桌面边缘"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版桌面 Edge 的随机用户代理"。</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"desktop_safari"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版桌面 Safari 的随机用户代理"。</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"移动"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"随机移动浏览器用户代理"</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"mobile_android"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版安卓浏览器的随机用户代理"</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"mobile_ios"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版 iPhone 浏览器的随机用户代理"。</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"平板电脑"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"随机平板电脑浏览器用户代理"</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"tablet_android"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版安卓平板电脑的随机用户代理"</span>
  <span class="p">},</span>
  <span class="p">{</span>
    <span class="s2">"user_agent_type"</span><span class="p">:</span> <span class="s2">"tablet_ios"</span><span class="p">,</span>
    <span class="s2">"描述"</span><span class="p">:</span> <span class="s2">"最新版 iPad 平板电脑的随机用户代理"。</span>
  <span class="p">}</span>
<span class="p">]</span></code></pre>
<hr />
<h2 id="account-status">账户状态</h2>
<h3 id="usage-statistics">使用统计</h3>
<p>您可以通过查询以下端点找到您的使用统计数据：</p>
<div class="endpoint">
<pre><strong>GET https://data.oxylabs.io/v2/stats</strong></pre>
</div>
<p>默认情况下，API 将返回所有时间的使用统计数据。添加 <code>group_by=month</code> 将返回月度统计数据，而 <code>group_by=day</code> 将返回每日数字。</p>
<p>此查询将返回所有时间的统计数据。您可以通过添加以下任一选项来查询每日和每月的使用量 <code>group_by=day</code> 或 <code>group_by=month</code></p>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="3" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1 <span class="s1">'https://data.oxylabs.io/v2/stats'</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>

<span class="c"># 从统计终端获取响应。</span>
<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="n">方法</span><span class="o">=</span><span class="s">GET</span><span class="p">,</span>
    <span class="n">网址</span><span class="o">=</span><span class="s">'https://data.oxylabs.io/v2/stats'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
<span class="p">)</span>

<span class="c"># 向 stdout 打印经过修饰的 JSON 响应。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://data.oxylabs.io/v2/stats"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_customrequest</span><span class="p">,</span> <span class="s2">"GET"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div></div></div>
<p>输出示例</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>
    <span class="s2">"数据"</span><span class="p">:</span> <span class="p">{</span>
        <span class="s2">"来源"</span><span class="p">:</span> <span class="p">[</span>
            <span class="p">{</span>
                <span class="s2">"实时结果计数"</span><span class="p">:</span> <span class="s2">"90"</span><span class="p">,</span>
                <span class="s2">"结果数"</span><span class="p">:</span> <span class="s2">"10"</span><span class="p">,</span>
                <span class="s2">"标题"</span><span class="p">:</span> <span class="s2">"普遍"</span>
            <span class="p">}</span>
        <span class="p">]</span>
    <span class="p">},</span>
    <span class="s2">"元"</span><span class="p">:</span> <span class="p">{</span>
        <span class="s2">"group_by"</span><span class="p">:</span> <span class="kc">无效</span>
    <span class="p">}</span>
<span class="p">}</span>
</code></pre>
<hr />
<h3 id="limits">限制</h3>
<p>以下端点将提供您的每月承诺信息以及已使用的承诺额度：</p>
<div class="endpoint">
<pre><strong>GET https://data.oxylabs.io/v2/stats/limits</strong></pre>
</div>
<div class="su-tabs su-tabs-style-default su-tabs-mobile-stack" data-active="3" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>cURL</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>Python</strong></span><span class="" data-url="" data-target="blank" tabindex="0" role="button"><strong>PHP</strong></span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;cURL&lt;/strong&gt;">
<pre class="highlight shell tab-shell"><code>curl --user user:pass1 <span class="s1">'https://data.oxylabs.io/v2/stats/limits'</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;Python&lt;/strong&gt;">
<pre class="highlight python tab-python"><code><span class="kn">舶来品</span> <span class="nn">要求</span>
<span class="kn">从</span> <span class="nn">打印</span> <span class="kn">舶来品</span> <span class="n">打印</span>

<span class="c"># 从统计终端获取响应。</span>
<span class="n">回应</span> <span class="o">=</span> <span class="n">要求</span><span class="o">.</span><span class="n">要求</span><span class="p">(</span>
    <span class="n">方法</span><span class="o">=</span><span class="s">GET</span><span class="p">,</span>
    <span class="n">网址</span><span class="o">=</span><span class="s">'https://data.oxylabs.io/v2/stats/limits'</span><span class="p">,</span>
    <span class="n">授权</span><span class="o">=</span><span class="p">(</span><span class="s">用户</span><span class="p">,</span> <span class="s">pass1</span><span class="p">),</span>
<span class="p">)</span>

<span class="c"># 向 stdout 打印经过修饰的 JSON 响应。</span>
<span class="n">打印</span><span class="p">(</span><span class="n">回应</span><span class="o">.</span><span class="n">json</span><span class="p">())</span></code></pre>
</div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="&lt;strong&gt;PHP&lt;/strong&gt;">
<pre class="highlight php tab-php"><code><span class="cp">&lt;?php</span>

<span class="nv">$ch</span> <span class="o">=</span> <span class="nb">curl_init</span><span class="p">();</span>

<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">CURLOPT_URL</span><span class="p">,</span> <span class="s2">"https://data.oxylabs.io/v2/stats/limits"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_returntransfer</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_customrequest</span><span class="p">,</span> <span class="s2">"GET"</span><span class="p">);</span>
<span class="nb">curl_setopt</span><span class="p">(</span><span class="nv">$ch</span><span class="p">,</span> <span class="nx">curlopt_userpwd</span><span class="p">,</span> <span class="s2">"用户"</span> <span class="o">.</span> <span class="s2">":"</span> <span class="o">.</span> <span class="s2">"pass1"</span><span class="p">);</span>

<span class="nv">$result</span> <span class="o">=</span> <span class="nb">curl_exec</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="k">回响</span> <span class="nv">$result</span><span class="p">;</span>

<span class="k">如果</span> <span class="p">(</span><span class="nb">curl_errno</span><span class="p">(</span><span class="nv">$ch</span><span class="p">))</span> <span class="p">{</span>
    <span class="k">回响</span> <span class="s1">错误：</span> <span class="o">.</span> <span class="nb">curl_error</span><span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="p">}</span>
<span class="nb">curl_close</span> <span class="p">(</span><span class="nv">$ch</span><span class="p">);</span>
<span class="cp">?&gt;</span></code></pre>
</div></div></div>
<p>输出示例</p>
<pre class="highlight json tab-json"><code><span class="p">{</span>
    <span class="s2">"每月要求承诺"</span><span class="p">:</span> <span class="mi">4500000</span><span class="p">,</span>
    <span class="s2">"已用请求"</span><span class="p">:</span> <span class="mi">985000</span>
<span class="p">}</span></code></pre>
<hr />
<h2 id="response-codes">响应代码</h2>
<div class="su-table su-table-responsive su-table-alternate">
<table>
<thead>
<tr>
<th>代码</th>
<th>现状</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>204</code></td>
<td>无内容</td>
<td>您正在尝试检索一项尚未完成的任务。</td>
</tr>
<tr>
<td><code>400</code></td>
<td>多种错误信息</td>
<td>请求结构错误，可能是参数拼写错误或值无效。响应体将显示更具体的错误信息。</td>
</tr>
<tr>
<td><code>401</code></td>
<td>未提供授权标头"/"授权标头无效"/"未找到客户端</td>
<td>缺少授权标头或登录凭证不正确。</td>
</tr>
<tr>
<td><code>403</code></td>
<td>禁止</td>
<td>您的帐户无法访问此资源。</td>
</tr>
<tr>
<td><code>404</code></td>
<td>未找到</td>
<td>您要查找的职位编号已不再可用。</td>
</tr>
<tr>
<td><code>429</code></td>
<td>请求太多</td>
<td>超出费率限制。请联系您的客户经理以提高限额。</td>
</tr>
<tr>
<td><code>500</code></td>
<td>未知错误</td>
<td>无法提供服务。</td>
</tr>
<tr>
<td><code>524</code></td>
<td>超时</td>
<td>无法提供服务。</td>
</tr>
<tr>
<td><code>612</code></td>
<td>未定义的内部错误</td>
<td>出了点问题，我们未能完成您提交的任务。您可以免费再试一次，因为我们不会向您收取任何费用。 <code>有问题</code> 工作。如果无效，请与我们联系。</td>
</tr>
<tr>
<td><code>613</code></td>
<td>重试次数过多后出现故障</td>
<td>我们曾尝试清除您提交的作业，但在达到重试限制后放弃了。您可以免费再试一次，因为我们不会向您收取任何费用。 <code>有问题</code> 工作。如果无效，请与我们联系。</td>
</tr>
</tbody>
</table>
</div>
<hr />
<h4>参考资料</h4>
<ul>
<li style="list-style-type: none;">
<ul>
<li><a href="https://developers.oxylabs.io/scraper-apis/web_scraper_api/source/web-scraper-api/index.html#quick-start" target="_blank" rel="nofollow noopener">https://developers.oxylabs.io/scraper-apis/web_scraper_api/source/web-scraper-api/index.html#quick-start </a></li>
<li><a href="https://developers.oxylabs.io/scraper-apis/" target="_blank" rel="nofollow noopener">https://developers.oxylabs.io/scraper-apis/ </a></li>
</ul>
</li>
</ul>
<hr />
<blockquote><p><strong>免责声明</strong> 这部分内容主要来自商家。如果商家不希望在我的网站上显示，请 <a href="https://www.proxysp.com/contact-us/">联系我们</a> 删除您的内容。</p></blockquote>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/oxylabs-web-scraper-api/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">9062</post-id>	</item>
		<item>
		<title>911 Proxy Developer API (Offline!)</title>
		<link>https://proxysp.com/zh/911-proxy-developer-api/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=911-proxy-developer-api</link>
					<comments>https://proxysp.com/zh/911-proxy-developer-api/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubdate>Tue, 03 Aug 2021 08:02:46 +0000</pubdate>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[Manuals]]></category>
		<guid ispermalink="false">https://www.proxysp.com/?p=10201</guid>

					<description><![CDATA[请注意，API 只适用于从 "ProxyList"（代理列表）中获取新代理，而不能用于重新使用 "TodayList"（今日列表）中的代理。该 API ...<p class="read-more"> <a class="ast-button" href="https://proxysp.com/zh/911-proxy-developer-api/"> <span class="screen-reader-text">911 代理开发人员应用程序接口（离线）</span> 查看全文 "</a></p>]]></description>
										<content:encoded><![CDATA[<div class="inner-wrap">
<div class="container">
<p><span style="font-size: 16px;">请注意，API 只适用于从 "ProxyList"（代理列表）中获取新代理，而不能用于重新使用 "TodayList"（今日列表）中的代理。以下是使用 API 的方法和示例</span></p>
<div class="api-wrap">
<p>登录软件后，切换到 "自动代理 "选项卡，从 "API 设置 "中选择 "使用 API"，使用 API 时需要保持软件登录状态：</p>
<p>在软件的根文件夹中有一个子文件夹："proxytool"，其中有一个文件 "Autoproxytool.exe</p>
<p>使用您的软件/脚本（希望实现 api）启动 "Autoproxytool.exe"，并设置以下参数，然后就可以自动更改代理了：</p>
<p><b>Autoproxytool.exe -changeproxy/all</b> 使用任何国家的随机代理</p>
<p><b>Autoproxytool.exe -changeproxy/US </b>使用美国的随机代理</p>
<p><b>Autoproxytool.exe -changeproxy/US/NY</b> 使用美国州的随机代理：纽约州</p>
<p><b>Autoproxytool.exe -changeproxy/US/NY/"New York"</b> 使用来自美国的随机代理，州纽约，城市纽约</p>
<p>对于国家，您需要输入国家 ISO alpha-2 代码，如果您不知道，可以谷歌搜索：国家 ISO alpha-2 代码</p>
<p><b>-上限</b> 可以这样使用参数</p>
<p><b>Autoproxytool.exe -changeproxy/US/NY/"New York"/ -citynolimit</b></p>
<p>这意味着 API 系统将首先尝试从您设置的城市（纽约）获取代理，以获得更高的优先级，如果该城市没有可用的代理，则会尝试从您设置的州（纽约）获取代理。如果该城市有代理，则不会尝试从州（纽约）获取代理。</p>
<p><b>Autoproxytool.exe -changeproxy/ -ip=123.123.123.123</b></p>
<p>通过 IP 获取代理。您可以将 * 替换为 IP 地址，以获取该 IP 地址块中的任何代理，例如 <b>Autoproxytool.exe -changeproxy/ -ip=123.123.*.*</b> 或 <b>Autoproxytool.exe -changeproxy/ -ip=123.*.*.*</b></p>
<p><b>Autoproxytool.exe -proxyport=</b></p>
<p>将代理服务器转发到一个端口，该端口必须在软件 "设置 "中的 "端口转发 "范围内，每次使用该参数都会将一个新的代理服务器替换到该端口。</p>
<p><b>Autoproxytool.exe -freeport=</b></p>
<p>释放端口并卸载代理</p>
<p><b>Autoproxytool.exe -proxyport=all</b></p>
<p>将代理服务器转发到软件 "设置 "中 "端口转发 "范围内的所有端口，每次使用该参数都会将新的代理服务器替换到所有这些端口。</p>
<p><b>Autoproxytool.exe -freeport=all</b></p>
<p>释放所有端口，卸载所有代理服务器</p>
<p><b>Autoproxytool.exe -isp=</b></p>
<p>使用 ISP 的随机代理，它还支持使用 * 进行模糊搜索，例如 Autoproxytool.exe -isp=S* 表示获取以 "S "开头的 ISP 的代理，Autoproxytool.exe -isp=*Cable 表示获取以 "Cable "结尾的 ISP 的代理。</p>
<p><b>Autoproxytool.exe -zip=</b></p>
<p>从 zip 位置随机使用一个代理，它还支持使用 * 进行模糊搜索，例如 Autoproxytool.exe -zip=800*，表示获取 ZIP 以 "800 "开头的代理。</p>
<p>上面提到的这些参数可以作为组合使用，举几个例子：</p>
<p><b>Autoproxytool.exe -changeproxy/US/NY/"New York" -proxyport=5000</b></p>
<p><b>Autoproxytool.exe -changeproxy/US/NY -proxyport=all</b></p>
<p><b>Autoproxytool.exe -changeproxy/US/NY -isp="Time Warner Cable"</b></p>
<p><b>Autoproxytool.exe -changeproxy/US -zip=92626</b></p>
<p><b>Autoproxytool.exe -changeproxy/US/NY -isp="Time Warner Cable" -proxyport=5000</b></p>
<p><b>Autoproxytool.exe -changeproxy/US -zip=92626 -proxyport=5000</b></p>
<hr />
<p><b>-hwnd=</b></p>
<p>使用 <b>-hwnd=</b> 参数、 <b>Autoproxytool.exe</b> 将向您的软件发送 WM_COPYDATA 消息，从而启动 <b>Autoproxytool.exe</b>这样，您的软件就能获得代理的后检查和更多信息，您还需要传递软件的窗口句柄，以启动代理。 <b>Autoproxytool.exe</b> 和 <b>Autoproxytool.exe</b> 将向您发送格式和信息如下的 WM_COPYDATA 信息：</p>
<p>1. 如果代理成功通过 api 获取：</p>
<p>success|ip|Ping|ProxyCountry|ProxyState|ProxyCity|911s5 账户余额</p>
<p>2. 如果代理无法通过 api 获取：</p>
<p>失败原因</p>
<p>举例说明如何使用它：</p>
<p><b>Autoproxytool.exe -changeproxy/US/NY/"New York" -hwnd=Your SOFT'S WINDOW HANDLE</b></p>
<p><b>Autoproxytool.exe -changeproxy/US/NY/"New York" -citynolimit -hwnd=Your SOFT'S WINDOW HANDLE</b></p>
<p><b>Autoproxytool.exe -changeproxy/ -ip=123.123.*.* -hwnd=Your SOFT'S WINDOW HANDLE</b></p>
<p><b>Autoproxytool.exe -changeproxy/US/NY/"New York" -proxyport=5000 -hwnd=Your SOFT'S WINDOW HANDLE</b></p>
<p><b>Autoproxytool.exe -changeproxy/US/NY -isp="Time Warner Cable" -proxyport=5000 -hwnd=Your SOFT'S WINDOW HANDLE</b></p>
<p><b>Autoproxytool.exe -changeproxy/US -zip=92626 -proxyport=5000 -hwnd=Your SOFT'S WINDOW HANDLE</b></p>
</div>
<div class="api-wrap big">
<p>通过软件自动更改代理：</p>
<p>在 "自动代理 "选项卡中，"自动代理设置 "的功能不是用于 API，而是用于根据配置自动切换代理，您可以设置自动更换代理的频率，以及设置自动启动程序的延迟时间范围等。 <b>要使用此功能，需要取消选择 "API 设置 "中的 "使用 API"。</b></p>
</div>
<div class="api-wrap big">
<p><b>更新时间2019年9月12日</b></p>
<p>自 911 S5 3.2 起，我们开发了新的端口转发 API 程序</p>
<p>新的 API 程序支持多线程，您可以同时发送多个 API 请求（旧的 API 程序 Autoproxytool.exe 只能用单线程逐个处理请求，您必须等到最后一个请求被处理完毕）。</p>
<p>如果您的工作要求高效率，需要发送大量 API 请求，我们建议您使用新的 API：</p>
<p>在软件的根文件夹中有一个子文件夹："proxytool"，其中有一个文件 "ProxyAPI.exe</p>
<p>使用软件/脚本中的参数启动 "ProxyAPI.exe"、 <b>参数和格式与使用旧 API 程序（Autoproxytool.exe）完全相同，唯一的区别是需要包含"-proxyport="参数，该参数后面的端口必须在 911 S5 "设置 "选项卡的 "端口转发 "范围内。</b> 请注意，使用 API 时需要保持 911 S5 登录状态。以下是一些使用新 API 的示例：</p>
<p><b>ProxyAPI.exe -changeproxy/US/NY/"New York" -proxyport=5000</b>, 将纽约的代理端口转发到 5000 端口</p>
<p><b>ProxyAPI.exe -changeproxy/ -ip=123.123.*.* -proxyport=5000 -hwnd=Your SOFT'S WINDOW HANDLE</b>将 IP 范围为 "123.123.*.*"的代理端口转发到 5000 端口，并将 WM_COPYDATA 消息发送到您的软盘</p>
<p><b>ProxyAPI.exe -changeproxy/US/NY/"New York" -citynolimit -proxyport=5000</b></p>
<p><b>ProxyAPI.exe -changeproxy/US/NY -isp="Time Warner Cable" -proxyport=5000</b>将来自美国纽约州的代理服务器与互联网服务提供商时代华纳有线公司的代理服务器端口转发到 5000 端口</p>
<p><b>ProxyAPI.exe -changeproxy/US -zip=92626 -proxyport=5000</b>将来自美国的代理（邮政编码为 "92626"）转发到 5000 端口</p>
<p><b>ProxyAPI.exe -changeproxy/US/NY -proxyport=all</b>将美国纽约州的代理端口转发到所有可用端口（911 S5 "设置 "选项卡 "端口转发 "范围内的所有端口）。</p>
<p><b>ProxyAPI.exe -freeport=5000</b>释放端口 5000 并卸载代理</p>
<p><b>ProxyAPI.exe -freeport=all</b>释放所有端口，卸载所有代理</p>
<hr />
<ul>
<li><a href="https://www.proxysp.com/how-to-use-911-proxies/">如何使用 911 S5 代理</a></li>
<li><a href="https://www.proxysp.com/911-s5-proxy/">911 S5 代理审查</a></li>
</ul>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentrss>https://proxysp.com/zh/911-proxy-developer-api/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">10201</post-id>	</item>
	</channel>
</rss>