<?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>APIs &#8211; ProxySP</title>
	<atom:link href="https://proxysp.com/manuals/apis/feed/" rel="self" type="application/rss+xml" />
	<link>https://proxysp.com</link>
	<description>The Best Proxy Service Provider Reviewed for 2025</description>
	<lastBuildDate>Thu, 10 Oct 2024 03:55:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.8</generator>

<image>
	<url>https://proxysp.com/wp-content/uploads/2021/01/icon-90x90.jpeg</url>
	<title>APIs &#8211; ProxySP</title>
	<link>https://proxysp.com</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/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/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 will allow you to integrate the purchase and renewal of a proxy into your service or application. The interaction of the partner with the &#8230;<p class="read-more"> <a class="ast-button" href="https://proxysp.com/how-to-use-proxy-ipv4-api/"> <span class="screen-reader-text">How to Use Proxy-IPV4 API</span> Read More &#187;</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 API</a> will allow you to integrate the purchase and renewal of a proxy into your service or application. The interaction of the partner with the system, as well as the system with the partner, occurs through “application / json” requests and responses. All communication takes place in UTF-8 encoding. The system implements protection against DOS attacks; no more than one request per second is allowed. If more than one request per second is sent, the response will be <span class="documentation-red">error_id=2</span>, in which case we recommend sending the request again.</p>
<h2>General requests</h2>
<h3></h3>
<h3>To get the balance information</h3>
<p class="descriptions"><img decoding="async" src="https://proxy-ipv4.com/img/ui/infoApi.svg" alt="icon" width="16" height="16" />The request allows to see the current balance</p>
<div class="api-item-request">
<div class="type">GET</div>
<p>/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/balance</p>
</div>
<p><span class="sub-title">Example body answer:</span></p>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":13.09,
"currency":"USD"
}
</pre>
<div class="api-item-contain mb-48">
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;success&#8221;</span><span class="descriptions"> &#8211; operation status</span> &#8211;<span class="data">&#8220;true/false&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;balance&#8221;</span><span class="descriptions"> &#8211; the current balance</span>.</li>
</ul>
</div>
<div class="api-item-contain mb-48">
<hr />
<h3><strong><span class="title">To get the full list of the bought proxies</span></strong></h3>
<div class="line"><span style="font-size: 16px;">GET</span></div>
<div class="api-item-request">
<p>/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/proxies</p>
</div>
<p><span class="sub-title">Example body answer:</span></p>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":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",
"password":"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",
"password":"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",
"password":"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",
"password":"authPassword"
}
}
]
}
],
"mobile":
[
{
"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",
"password":"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",
"password":"authPassword"
}
}
]
}
</pre>
</div>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;ipv4&#8221;</span><span class="descriptions"> &#8211; the list of active ipv4 proxies</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;ipv6&#8221;</span><span class="descriptions"> &#8211; the list of active ipv6 proxies</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;mobile&#8221;</span><span class="descriptions"> &#8211; the list of active mobile proxies</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;id&#8221;</span><span class="descriptions"> &#8211; proxy ID. This parameter is needed for extending proxy</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;orderId&#8221;</span><span class="descriptions"> &#8211; order ID. Ipv6, unlike the rest of the proxy types, allows to extend all the proxies in the order only</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;country&#8221;</span><span class="descriptions"> &#8211; alfa3 country code</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;dateStart&#8221;</span><span class="descriptions"> &#8211; the rent start date</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;dateEnd&#8221;</span><span class="descriptions"> &#8211; the rent end date</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;authInfo&#8221;</span><span class="descriptions"> &#8211; the data for authorization</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;protocol&#8221;</span><span class="descriptions"> &#8211; protocol</span> &#8211;<span class="data">&#8220;HTTPS/SOCKS5&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;rotationTime&#8221;</span><span class="descriptions"> &#8211; rotation time of IP address in minutes. 0 is rotation by link at any moment</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;rebootLink&#8221;</span><span class="descriptions"> &#8211; link for IP reboot</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;mobileOperator&#8221;</span><span class="descriptions"> &#8211; mobile operator</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><strong><span class="title">To get the available number of days for a proxy purchase/renewal</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" />An available number of days can differ depending on the proxy type</p>
<div class="api-item-request">
<div class="type">GET</div>
<p>/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/days</p>
</div>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy. Value can be of three types</span> &#8211;<span class="data">&#8220;ipv4/ipv6/mobile&#8221;</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/days?proxyType=ipv4</div>
<p><span class="sub-title">Example body answer:</span></p>
</div>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":13.09,
"currency":"USD",
"days":
[
1,
7,
14,
30,
60,
90
]
}
</pre>
<div>
<hr />
<h3><span class="title">To get the list of the countries available for purchase</span></h3>
<p class="descriptions"><img decoding="async" src="https://proxy-ipv4.com/img/ui/infoApi.svg" alt="icon" width="16" height="16" />The list of available countries can differ depending on the proxy type</p>
<div class="api-item-request">
<div class="type">GET</div>
<p>/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/countries</p>
</div>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy. Value can be of three types</span> &#8211;<span class="data">&#8220;ipv4/ipv6/mobile&#8221;</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/countries?proxyType=ipv4</div>
<p><span class="sub-title">Example body answer:</span></p>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":13.09,
"currency":"USD",
"countries":
[
{
"name":"ENGLAND",
"alpha3code":"GBR"
},
{
"name":"USA",
"alpha3code":"USA"
},
{
"name":"FRANCE",
"alpha3code":"FRA"
}
]
}</pre>
</div>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;name&#8221;</span><span class="descriptions"> &#8211; name of country</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;alpha3code&#8221;</span><span class="descriptions"> &#8211; alfa3 country code. Value of this field will be used for placing an order</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain "><span class="title">To get the list of the available goals for purchase</span></h3>
<div class="api-item-contain ">
<p><span style="font-size: 16px;">GET</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/goals</div>
<p><span class="sub-title">Example body answer:</span></p>
</div>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":13.09,
"currency":"USD",
"goals":
[
"instagram",
"facebook",
"vk",
"bookmakers",
"avito",
"amazon",
"cs go",
"tiktok"
]
}
</pre>
<div>
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;goals&#8221;</span><span class="descriptions"> &#8211; The list of available goals. This parameter is necessary for placing an order. If the list does not contain what you need, you can use the field &#8216;customGoal' when placing an order</span>.</li>
</ul>
<hr />
</div>
</div>
<h2>IPv4 requests</h2>
<h3><span class="title">To get the ipv4 list of the bought proxies</span></h3>
<p>GET<br />
/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/proxies</p>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy</span> &#8211;<span class="data">&#8220;ipv4&#8221;</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/proxies?proxyType=ipv4</div>
<p><span class="sub-title">Example body answer:</span></p>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":13.09,
"currency":"USD",
"proxyType":"ipv4",
"countOfProxy":2,
"proxies":
[
{
"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",
"password":"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",
"password":"authPassword"
}
}
]
}
</pre>
<div class="api-item-contain mb-48">
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxies&#8221;</span><span class="descriptions"> &#8211; the list of active ipv4 proxies</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;id&#8221;</span><span class="descriptions"> &#8211; proxy ID. This parameter is needed for extending proxy</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;country&#8221;</span><span class="descriptions"> &#8211; alfa3 country code</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;dateStart&#8221;</span><span class="descriptions"> &#8211; the rent start date</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;dateEnd&#8221;</span><span class="descriptions"> &#8211; the rent end date</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;authInfo&#8221;</span><span class="descriptions"> &#8211; the data for authorization</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">Calculate purchase price</span></h3>
<div></div>
<div class="api-item-contain mb-48">
<p><span style="font-size: 16px;">GET</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/order/price</div>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy</span> &#8211;<span class="data">&#8220;ipv4&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;days&#8221;</span><span class="descriptions"> &#8211; the number of rental days (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;goal&#8221;</span><span class="descriptions"> &#8211; goal of using proxy (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;customGoal&#8221;</span><span class="descriptions"> &#8211; if the goal you need is not present in the goal list, you can indicate your own goal. Length of field must be 5 characters or more (one of the parameters &#8211; goal or customGoal &#8211; must be in the request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;country&#8221;</span><span class="descriptions"> &#8211; alfa3 country code (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;count&#8221;</span><span class="descriptions"> &#8211; the number of proxies</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/order/price?proxyType=ipv4&days=7&goal=instagram&country=FRA&count=2</div>
<p><span class="sub-title">Example body answer:</span></p>
</div>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":13.09,
"currency":"USD",
"proxyType":"ipv4",
"days":7,
"count":2,
"goal":"instagram",
"amount":2.78,
"price":1.39
}
</pre>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;amount&#8221;</span><span class="descriptions"> &#8211; total amount</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;price&#8221;</span><span class="descriptions"> &#8211; price for one proxy</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">Calculate extending price</span></h3>
<div class="api-item-contain mb-48">
<p><span style="font-size: 16px;">GET</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/extend/price</div>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy</span> &#8211;<span class="data">&#8220;ipv4&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;days&#8221;</span><span class="descriptions"> &#8211; the number of renewal days (the available values are the same as for the purchase)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;IpId&#8221;</span><span class="descriptions"> &#8211; proxy IDs that require renewal (it is allowed to indicate several IDs separated by commas)</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/extend/price?proxyType=ipv4&days=7&IpId=id1,id2,id3</div>
<p><span class="sub-title">Example body answer:</span></p>
</div>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":13.09,
"currency":"USD",
"proxyType":"ipv4",
"days":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">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;amount&#8221;</span><span class="descriptions"> &#8211; total amount</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;price&#8221;</span><span class="descriptions"> &#8211; price for extending one proxy</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;ipId&#8221;</span><span class="descriptions"> &#8211; the list of proxy IDs for extending</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">Placing an order</span></h3>
<div> <span style="font-size: 16px;">POST</span></div>
<div class="api-item-contain mb-48">
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/order</div>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy</span> &#8211;<span class="data">&#8220;ipv4&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;days&#8221;</span><span class="descriptions"> &#8211; the number of rental days (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;goal&#8221;</span><span class="descriptions"> &#8211; goal of using proxy (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;customGoal&#8221;</span><span class="descriptions"> &#8211; if the goal you need is not present in the goal list, you can indicate your own goal. Length of field must be 5 characters or more (one of the parameters &#8211; goal or customGoal &#8211; must be in the request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;country&#8221;</span><span class="descriptions"> &#8211; alfa3 country code</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;count&#8221;</span><span class="descriptions"> &#8211; the number of proxies</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;authType&#8221;</span><span class="descriptions"> &#8211; authorization type</span> &#8211;<span class="data">&#8220;login/ip&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;authIp&#8221;</span><span class="descriptions"> &#8211; authorization IP address. This field is required only if authType = ip</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/order</div>
<p><span class="sub-title">Example body reqwest:</span></p>
</div>
<pre>{
"proxyType":"ipv4",
"days":90,
"goal":"instagram",
"country":"GBR",
"count":2,
"authType":"login"
}
</pre>
</div>
<div>Example body answer:</div>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":4.09,
"currency":"USD",
"proxyType":"ipv4",
"orderNumber":"DV-16620211552356-jA"
}
</pre>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;orderNumber&#8221;</span><span class="descriptions"> &#8211; order number</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;balance&#8221;</span><span class="descriptions"> &#8211; the balance after the purchase</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain "><span class="title">Extending proxy</span></h3>
<div class="api-item-contain ">
<p><span style="font-size: 16px;">POST</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/extend</div>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy</span> &#8211;<span class="data">&#8220;ipv4&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;days&#8221;</span><span class="descriptions"> &#8211; the number of renewal days (the available values are the same as for the purchase)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;IpId&#8221;</span><span class="descriptions"> &#8211; the list of proxy IDs to be extended</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/extend</div>
<p><span class="sub-title">Example body reqwest:</span></p>
</div>
<pre>{
"proxyType":"ipv4",
"days":30,
"IpId":
[
"id1",
"id2"
]
}
</pre>
<p>Example body answer:</p>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":4.09,
"currency":"USD"
}
</pre>
<div>
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;balance&#8221;</span><span class="descriptions"> &#8211; the balance after extending</span>.</li>
</ul>
<hr />
</div>
</div>
<h2>IPv6 requests</h2>
<h3>To get the ipv4 list of the bought proxies</h3>
<p><span style="font-size: 16px;">GET</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/proxies</div>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy</span> &#8211;<span class="data">&#8220;ipv6&#8221;</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/proxies?proxyType=ipv6</div>
<p><span class="sub-title">Example body answer:</span></p>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":13.09,
"currency":"USD",
"proxyType":"ipv6",
"countOfProxy":2,
"proxies":
[
{
"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",
"password":"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",
"password":"authPassword"
}
}
]
}
]
}
</pre>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxies&#8221;</span><span class="descriptions"> &#8211; the list of active ipv4 proxies</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;orderId&#8221;</span><span class="descriptions"> &#8211; //too</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;id&#8221;</span><span class="descriptions"> &#8211; proxy ID</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;country&#8221;</span><span class="descriptions"> &#8211; alfa3 country code</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;dateStart&#8221;</span><span class="descriptions"> &#8211; the rent start date</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;dateEnd&#8221;</span><span class="descriptions"> &#8211; the rent end date</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;protocol&#8221;</span><span class="descriptions"> &#8211; protocol</span> &#8211;<span class="data">&#8220;HTTPS/SOCKS5&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;authInfo&#8221;</span><span class="descriptions"> &#8211; the data for authorization</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">Calculate purchase price</span></h3>
<div class="api-item-request">
<div class="type">GET</div>
<p>/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/order/price</p>
</div>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy</span> &#8211;<span class="data">&#8220;ipv6&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;days&#8221;</span><span class="descriptions"> &#8211; the number of rental days (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;goal&#8221;</span><span class="descriptions"> &#8211; goal of using proxy (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;customGoal&#8221;</span><span class="descriptions"> &#8211; if the goal you need is not present in the goal list, you can indicate your own goal. Length of field must be 5 characters or more (one of the parameters &#8211; goal or customGoal &#8211; must be in the request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;country&#8221;</span><span class="descriptions"> &#8211; alfa3 country code (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;count&#8221;</span><span class="descriptions"> &#8211; the number of proxy. The value must be more then 10</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/order/price?proxyType=ipv6&days=30&goal=instagram&country=FRA&count=10</div>
<p><span class="sub-title">Example body answer:</span></p>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":13.09,
"currency":"USD",
"proxyType":"ipv6",
"days":30,
"count":10,
"goal":"instagram",
"amount":7.25,
"price":0.72
}
</pre>
</div>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;amount&#8221;</span><span class="descriptions"> &#8211; total amount</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;price&#8221;</span><span class="descriptions"> &#8211; price for one proxy</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">Calculate extending price</span></h3>
<div class="api-item-contain mb-48">
<p><span style="font-size: 16px;">GET</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/extend/price</div>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy</span> &#8211;<span class="data">&#8220;ipv6&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;days&#8221;</span><span class="descriptions"> &#8211; the number of renewal days (the available values are the same as for the purchase)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;orderId&#8221;</span><span class="descriptions"> &#8211; order IDs that require renewal (it is allowed to indicate several IDs separated by commas)</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/extend/price?proxyType=ipv6&days=30&orderId=orderId1,orderId2</div>
<p><span class="sub-title">Example body answer:</span></p>
</div>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":13.09,
"currency":"USD",
"proxyType":"ipv6",
"days":30,
"count":20,
"amount":123.42,
"price":6.17,
"ordersId":
[
"orderId1",
"orderId2"
],
"ipId":
[
"id1",
"id2",
"id3",
"id4",
"id5",
"id6",
"id7",
"id8",
"id9",
"id10",
"id11",
"id12",
"id13",
"id14",
"id15",
"id16",
"id17",
"id18",
"id19",
"id20"
]
}
</pre>
</div>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;amount&#8221;</span><span class="descriptions"> &#8211; total amount</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;price&#8221;</span><span class="descriptions"> &#8211; price for extending one proxy</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;ordersId&#8221;</span><span class="descriptions"> &#8211; the list of order IDs for extending</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;ipId&#8221;</span><span class="descriptions"> &#8211; the list of proxy IDs for extending</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">Placing an order</span></h3>
<div class="api-item-contain mb-48">
<p><span style="font-size: 16px;">POST</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/order</div>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy</span> &#8211;<span class="data">&#8220;ipv6&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;days&#8221;</span><span class="descriptions"> &#8211; the number of rental days (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;goal&#8221;</span><span class="descriptions"> &#8211; goal of using proxy (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;customGoal&#8221;</span><span class="descriptions"> &#8211; if the goal you need is not present in the goal list, you can indicate your own goal. Length of field must be 5 characters or more (one of the parameters &#8211; goal or customGoal &#8211; must be in the request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;country&#8221;</span><span class="descriptions"> &#8211; alfa3 country code</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;count&#8221;</span><span class="descriptions"> &#8211; the number of proxies. Value can be more then 10</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;authType&#8221;</span><span class="descriptions"> &#8211; authorization type</span> &#8211;<span class="data">&#8220;login/ip&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;authIp&#8221;</span><span class="descriptions"> &#8211; authorization IP address. This field is required only if authType = ip</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;protocol&#8221;</span><span class="descriptions"> &#8211; protocol</span> &#8211;<span class="data">&#8220;HTTPS/SOCKS5&#8221;</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/order</div>
<p><span class="sub-title">Example body reqwest:</span></p>
<pre>{
"proxyType":"ipv6",
"days":30,
"goal":"instagram",
"country":"GBR",
"count":10,
"authType":"login",
"protocol":"SOCKS5"
}</pre>
</div>
<div>Example body answer:</div>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":4.09,
"currency":"USD",
"proxyType":"ipv6",
"orderNumber":"DV-211552356-jA"
}
</pre>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;orderNumber&#8221;</span><span class="descriptions"> &#8211; order number</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;balance&#8221;</span><span class="descriptions"> &#8211; the balance after the purchase</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain "><span class="title">Extending proxy</span></h3>
<div></div>
<div class="api-item-contain ">
<p><span style="font-size: 16px;">POST</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/extend</div>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy</span> &#8211;<span class="data">&#8220;ipv6&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;days&#8221;</span><span class="descriptions"> &#8211; the number of renewal days (the available values are the same as for the purchase)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;orderId&#8221;</span><span class="descriptions"> &#8211; the list of order IDs to be extended</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/extend</div>
<p><span class="sub-title">Example body reqwest:</span></p>
</div>
<pre>{
"proxyType":"ipv6",
"days":30,
"orderId":
[
"orderId1"
]
}
</pre>
</div>
<div>Example body answer:</div>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":4.09,
"currency":"USD"
}
</pre>
<div>
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;balance&#8221;</span><span class="descriptions"> &#8211; the balance after extending</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>Mobile requests</h2>
<h3></h3>
<h3><span class="title">To get the list of available mobile tariffs</span></h3>
<div class="line"><span style="font-size: 16px;">GET</span></div>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/tariffs</div>
<p><span class="sub-title">Example body answer:</span></p>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":13.09,
"currency":"USD",
"tariffs":
[
{
"country":"GBR",
"mobileOperator":
[
{
"name":"Three",
"rotationTime":
[
0,
5,
10
]
},
{
"name":"O2",
"rotationTime":
[
5,
10
]
}
]
},
{
"country":"USA",
"mobileOperator":
[
{
"name":"AT&T Wireless",
"rotationTime":
[
0,
5,
10
]
}
]
}
]
}
</pre>
<div class="api-item-contain mb-48">
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;tariffs&#8221;</span><span class="descriptions"> &#8211; the list of tariffs</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;country&#8221;</span><span class="descriptions"> &#8211; alfa3 country code</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;mobileOperator&#8221;</span><span class="descriptions"> &#8211; the list of available operators for this country</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;rotationTime&#8221;</span><span class="descriptions"> &#8211; available rotation times of IP address in minutes. 0 is rotation by link at any moment</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">the list of active mobile proxies</span></h3>
<div></div>
<div class="api-item-contain mb-48">
<p><span style="font-size: 16px;">GET</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/proxies</div>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy</span> &#8211;<span class="data">&#8220;mobile&#8221;</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/proxies?proxyType=mobile</div>
<p><span class="sub-title">Example body answer:</span></p>
</div>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":13.09,
"currency":"USD",
"proxyType":"mobile",
"countOfProxy":2,
"proxies":
[
{
"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",
"password":"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",
"password":"authPassword"
}
}
]
}</pre>
</div>
</div>
</div>
</div>
</div>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxies&#8221;</span><span class="descriptions"> &#8211; the list of active proxies</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;id&#8221;</span><span class="descriptions"> &#8211; proxy ID. This parameter is needed for extending proxy</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;country&#8221;</span><span class="descriptions"> &#8211; alfa3 country code</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;dateStart&#8221;</span><span class="descriptions"> &#8211; the rent start date</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;dateEnd&#8221;</span><span class="descriptions"> &#8211; the rent end date</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;rotationTime&#8221;</span><span class="descriptions"> &#8211; the rotation time of IP address in minutes. 0 is rotation by link at any moment</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;rebootLink&#8221;</span><span class="descriptions"> &#8211; the link for rotation IP</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;authInfo&#8221;</span><span class="descriptions"> &#8211; the data for authorization</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">Calculate purchase price</span></h3>
<div></div>
<div class="api-item-contain mb-48">
<p><span style="font-size: 16px;">GET</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/order/price</div>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy</span> &#8211;<span class="data">&#8220;mobile&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;days&#8221;</span><span class="descriptions"> &#8211; the number of rental days (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;goal&#8221;</span><span class="descriptions"> &#8211; goal of using proxy (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;customGoal&#8221;</span><span class="descriptions"> &#8211; if the goal you need is not present in the goal list, you can indicate your own goal. Length of field must be 5 characters or more (one of the parameters &#8211; goal or customGoal &#8211; must be in the request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;country&#8221;</span><span class="descriptions"> &#8211; alfa3 country code (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;count&#8221;</span><span class="descriptions"> &#8211; the number of proxies</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;mobileOperator&#8221;</span><span class="descriptions"> &#8211; the mobile operator (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;rotationTime&#8221;</span><span class="descriptions"> &#8211; the rotation time of IP address in minutes (available values can be got by other request)</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/order/price?proxyType=mobile&days=7&goal=instagram&country=FRA&count=1&mobileOperator=freemobilesas_france&rotationTime=5</div>
<p><span class="sub-title">Example body answer:</span></p>
</div>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":13.09,
"currency":"USD",
"proxyType":"mobile",
"rotationTime":5,
"mobileOperator":"freemobilesas_france",
"days":7,
"count":1,
"goal":"instagram",
"amount":1.78,
"price":1.78
}
</pre>
</div>
</div>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;amount&#8221;</span><span class="descriptions"> &#8211; total amount</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;price&#8221;</span><span class="descriptions"> &#8211; price for one proxy</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">Calculate extending price</span></h3>
<div></div>
<div class="api-item-contain mb-48">
<p><span style="font-size: 16px;">GET</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/extend/price</div>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy</span> &#8211;<span class="data">&#8220;mobile&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;days&#8221;</span><span class="descriptions"> &#8211; the number of renewal days (the available values are the same as for the purchase)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;IpId&#8221;</span><span class="descriptions"> &#8211; proxy IDs that require renewal (it is allowed to indicate several IDs separated by commas)</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/get/extend/price?proxyType=mobile&days=7&IpId=id1,id2,id3</div>
<p><span class="sub-title">Example body answer:</span></p>
</div>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":13.09,
"currency":"USD",
"proxyType":"mobile",
"days":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">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;amount&#8221;</span><span class="descriptions"> &#8211; total amount</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;price&#8221;</span><span class="descriptions"> &#8211; price for extending one proxy</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;ipId&#8221;</span><span class="descriptions"> &#8211; the list of proxy IDs for extending</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain mb-48"><span class="title">Placing an order</span></h3>
<div></div>
<div class="api-item-contain mb-48">
<p><span style="font-size: 16px;">POST</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/order</div>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy</span> &#8211;<span class="data">&#8220;mobile&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;days&#8221;</span><span class="descriptions"> &#8211; the number of rental days (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;goal&#8221;</span><span class="descriptions"> &#8211; goal of using proxy (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;customGoal&#8221;</span><span class="descriptions"> &#8211; if the goal you need is not present in the goal list, you can indicate your own goal. Length of field must be 5 characters or more (one of the parameters &#8211; goal or customGoal &#8211; must be in the request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;country&#8221;</span><span class="descriptions"> &#8211; alfa3 country code</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;count&#8221;</span><span class="descriptions"> &#8211; the number of proxies</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;authType&#8221;</span><span class="descriptions"> &#8211; authorization type</span> &#8211;<span class="data">&#8220;login/ip&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;authIp&#8221;</span><span class="descriptions"> &#8211; authorization IP address. This field is required only if authType = ip</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;mobileOperator&#8221;</span><span class="descriptions"> &#8211; the mobile operator (available values can be got by other request)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;rotationTime&#8221;</span><span class="descriptions"> &#8211; the rotation time of IP address in minutes (available values can be got by other request)</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/order</div>
<p><span class="sub-title">Example body reqwest:</span></p>
</div>
<pre>{
"proxyType":"mobile",
"days":30,
"goal":"instagram",
"country":"FRA",
"count":1,
"authType":"login",
"mobileOperator":"freemobilesas_france",
"rotationTime":5
}
</pre>
</div>
<div>Example body answer:</div>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":4.09,
"currency":"USD",
"proxyType":"mobile",
"orderNumber":"DV-21x1552356-jA"
}
</pre>
<div>
<div class="api-item-contain mb-48">
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;orderNumber&#8221;</span><span class="descriptions"> &#8211; order number</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;balance&#8221;</span><span class="descriptions"> &#8211; the balance after the purchase</span>.</li>
</ul>
</div>
<hr />
<h3 class="api-item-contain "><span class="title">Extending proxy</span></h3>
<div></div>
<div class="api-item-contain ">
<p><span style="font-size: 16px;">POST</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/extend</div>
<p><span class="sub-title">Reqwest parameters:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;proxyType&#8221;</span><span class="descriptions"> &#8211; type of proxy</span> &#8211;<span class="data">&#8220;mobile&#8221;</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;days&#8221;</span><span class="descriptions"> &#8211; the number of renewal days (the available values are the same as for the purchase)</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;IpId&#8221;</span><span class="descriptions"> &#8211; the list of proxy IDs to be extended</span>.</li>
</ul>
<p><span class="sub-title">Example reqwest:</span></p>
<div class="api-item-request">/client-api/v1/<span class="key">&lt;apiKey&gt;</span>/extend</div>
<p><span class="sub-title">Example body reqwest:</span></p>
</div>
<pre>{
"proxyType":"mobile",
"days":30,
"IpId":
[
"id1",
"id2"
]
}
</pre>
</div>
<div>Example body answer:</div>
<pre>{
"success":true,
"user":"client@gmail.com",
"balance":4.09,
"currency":"USD"
}
</pre>
<div>
<p><span class="sub-title">Response params:</span></p>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;balance&#8221;</span><span class="descriptions"> &#8211; the balance after extending</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>Possible mistakes</h2>
<p class="descriptions"><img decoding="async" src="https://proxy-ipv4.com/img/ui/infoApi.svg" alt="icon" width="16" height="16" />In case of failed query, you will get an error message</p>
<p><span class="sub-title">Error Example:</span></p>
<pre>{
"success":false,
"error_id":2,
"error":"You are sending requests too often. No more than one per second is allowed"
}
</pre>
</div>
</div>
</div>
</div>
</div>
<div>
<ul class="api-item-list mb-24">
<li class="list-item"><span class="list-item-params params">&#8220;error_id&#8221;</span><span class="descriptions"> &#8211; error ID</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;error&#8221;</span><span class="descriptions"> &#8211; error message</span>.</li>
</ul>
<p><span class="sub-title">ID errors:</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"> &#8211; API disabled on the server</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;2&#8221;</span><span class="descriptions"> &#8211; You are sending requests too often. No more than one per second is allowed</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;3&#8221;</span><span class="descriptions"> &#8211; Error auth. Your IP doesn't have access</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;4&#8221;</span><span class="descriptions"> &#8211; Method not supported</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;5&#8221;</span><span class="descriptions"> &#8211; Incorrect proxy type</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;6&#8221;</span><span class="descriptions"> &#8211; Ipv4 proxies disabled on the server</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;7&#8221;</span><span class="descriptions"> &#8211; Ipv6 proxies disabled on the server</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;8&#8221;</span><span class="descriptions"> &#8211; Mobile proxies disabled on the server</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;9&#8221;</span><span class="descriptions"> &#8211; Incorrect field [days]</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;10&#8221;</span><span class="descriptions"> &#8211; Incorrect field [country]</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;11&#8221;</span><span class="descriptions"> &#8211; Incorrect field [goal]</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;12&#8221;</span><span class="descriptions"> &#8211; Incorrect field [authType]</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;13&#8221;</span><span class="descriptions"> &#8211; Incorrect field [protocol]. Field must be [HTTPS] or [SOCKS5]</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;14&#8221;</span><span class="descriptions"> &#8211; Incorrect field [authIp]</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;15&#8221;</span><span class="descriptions"> &#8211; Incorrect field [count]</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;16&#8221;</span><span class="descriptions"> &#8211; Incorrect field [mobileOperator]</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;17&#8221;</span><span class="descriptions"> &#8211; Incorrect field [rotationTime]</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;18&#8221;</span><span class="descriptions"> &#8211; Incorrect field [IpId]</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;19&#8221;</span><span class="descriptions"> &#8211; Incorrect field [orderId]</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;20&#8221;</span><span class="descriptions"> &#8211; OrderId {orderId} don't have active IPs!</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;21&#8221;</span><span class="descriptions"> &#8211; ID {ip} not found!</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;22&#8221;</span><span class="descriptions"> &#8211; Request must contain [goal] or [customGoal]</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;23&#8221;</span><span class="descriptions"> &#8211; Unknown error</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;24&#8221;</span><span class="descriptions"> &#8211; Insufficient balance</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;25&#8221;</span><span class="descriptions"> &#8211; Error key</span>,</li>
<li class="list-item"><span class="list-item-params params">&#8220;26&#8221;</span><span class="descriptions"> &#8211; Length of field [customGoal] must be 5 characters or more</span>.</li>
</ul>
</div>
<blockquote>
<div><strong>Click here to get <a href="https://proxy-zone.net/pz/proxy-ipv4" target="_blank" rel="nofollow noopener">Proxy-IPV4 API</a></strong></div>
</blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://proxysp.com/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>How to Use ProxyScrape Premium API</title>
		<link>https://proxysp.com/proxyscrape-premium-api/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=proxyscrape-premium-api</link>
					<comments>https://proxysp.com/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[This article will explain how to use ProxyScrape Premium API services programmatically. Let's begin now! Get proxy list https://api.proxyscrape.com/v2/account/datacenter_shared/proxy-list?auth=nhuyjukilompnbvfrtyuui&#038;type=getproxies&#038;country[]=all&#038;protocol=http&#038;format=normal &#160; Example Request var request = http.Request('GET', &#8230;<p class="read-more"> <a class="ast-button" href="https://proxysp.com/proxyscrape-premium-api/"> <span class="screen-reader-text">How to Use ProxyScrape Premium API</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>This article will explain how to use ProxyScrape Premium API services programmatically. Let's begin now!</p></blockquote>
<h2>Get proxy list</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">auth</td>
<td style="font-weight: 400;" width="335">nhuyjukilompnbvfrtyuui<br />
Provide your API auth key</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">type</td>
<td style="font-weight: 400;" width="335">getproxies<br />
Download the proxies, or display them in your browser:</p>
<ul>
<li>getproxies</li>
<li>displayproxies</li>
</ul>
</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">country[]</td>
<td style="font-weight: 400;" width="335">all<br />
Provide any Alpha 2 ISO country code of countries that are available in your account. Incase you want to download multiple countries at once, please repeat the parameter: &country[]=us&country[]=deWhen this parameter is not provided it will default to all countries.</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">protocol</td>
<td style="font-weight: 400;" width="335">http<br />
Define which proxy protocol you want to download:</p>
<ul>
<li>http</li>
<li>socks</li>
</ul>
<p>The HTTP proxies support SSL (https). The Socks proxies are both Socks4 and Socks5.</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">format</td>
<td style="font-weight: 400;" width="335">normal<br />
The format you want to receive the proxies in:</p>
<ul>
<li>normal: a simple proxy list</li>
<li>json: returns all proxies, along with their associated countries and status.</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="styles__ExampleTitle-sc-1gk0rxh-1 coCuLw">Example Request</div>
<div>
<pre class="language-javascript"><code class="language-javascript"><span class="token keyword">var</span> request <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">Request</span><span class="token punctuation">(</span><span class="token string">'GET'</span><span class="token punctuation">,</span> Uri<span class="token punctuation">.</span><span class="token function">parse</span><span class="token punctuation">(</span><span class="token string">'https://api.proxyscrape.com/v2/account/datacenter_shared/proxy-list?auth=nhuyjukilompnbvfrtyuui&type=getproxies&country[]=all&protocol=http&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 response <span class="token operator">=</span> <span class="token keyword">await</span> request<span class="token punctuation">.</span><span class="token function">send</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token keyword">if</span> <span class="token punctuation">(</span>response<span class="token punctuation">.</span>statusCode <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">print</span><span class="token punctuation">(</span><span class="token keyword">await</span> response<span class="token punctuation">.</span>stream<span class="token punctuation">.</span><span class="token function">bytesToString</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">else</span> <span class="token punctuation">{</span>
  <span class="token function">print</span><span class="token punctuation">(</span>response<span class="token punctuation">.</span>reasonPhrase<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span></code></pre>
</div>
<hr />
<h2>Get authenticated IPs</h2>
<pre>https://api.proxyscrape.com/v2/account/datacenter_shared/whitelist?auth=nhuyjukilompnbvfrtyuui&type=get</pre>
<p>Display the IPs that are already authenticated on your account.</p>
<p>PARAMS</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">auth</td>
<td style="font-weight: 400;" width="226">nhuyjukilompnbvfrtyuui<br />
Provide your API auth key</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">type</td>
<td style="font-weight: 400;" width="226">get<br />
Get authenticated IPs on your account</td>
</tr>
</tbody>
</table>
</div>
<div class="styles__ExampleTitle-sc-1gk0rxh-1 coCuLw">Example Request</div>
<div>
<pre class="language-javascript"><code class="language-javascript"><span class="token keyword">var</span> request <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">Request</span><span class="token punctuation">(</span><span class="token string">'GET'</span><span class="token punctuation">,</span> Uri<span class="token punctuation">.</span><span class="token function">parse</span><span class="token punctuation">(</span><span class="token string">'https://api.proxyscrape.com/v2/account/datacenter_shared/whitelist?auth=nhuyjukilompnbvfrtyuui&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 response <span class="token operator">=</span> <span class="token keyword">await</span> request<span class="token punctuation">.</span><span class="token function">send</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token keyword">if</span> <span class="token punctuation">(</span>response<span class="token punctuation">.</span>statusCode <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">print</span><span class="token punctuation">(</span><span class="token keyword">await</span> response<span class="token punctuation">.</span>stream<span class="token punctuation">.</span><span class="token function">bytesToString</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">else</span> <span class="token punctuation">{</span>
  <span class="token function">print</span><span class="token punctuation">(</span>response<span class="token punctuation">.</span>reasonPhrase<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span></code></pre>
</div>
<div>
<hr />
</div>
<h2>GET Authenticate one IP</h2>
<pre>https://api.proxyscrape.com/v2/account/datacenter_shared/whitelist?auth=nhuyjukilompnbvfrtyuui&type=set&ip[]=1.1.1.1</pre>
<p>Please note that every new authenticate request has to contain all IPs that need to remain authenticated. To unauthenticate IPs, you can resend the authenticate request, excluding the IPs that have to be unauthenticated.</p>
<p>PARAMS</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">Example Request</div>
<div class="styles__ExampleTitle-sc-1gk0rxh-1 coCuLw">
<pre class="language-javascript"><code class="language-javascript"><span class="token keyword">var</span> request <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">Request</span><span class="token punctuation">(</span><span class="token string">'GET'</span><span class="token punctuation">,</span> Uri<span class="token punctuation">.</span><span class="token function">parse</span><span class="token punctuation">(</span><span class="token string">'https://api.proxyscrape.com/v2/account/datacenter_shared/whitelist?auth=nhuyjukilompnbvfrtyuui&type=set&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 response <span class="token operator">=</span> <span class="token keyword">await</span> request<span class="token punctuation">.</span><span class="token function">send</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token keyword">if</span> <span class="token punctuation">(</span>response<span class="token punctuation">.</span>statusCode <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">print</span><span class="token punctuation">(</span><span class="token keyword">await</span> response<span class="token punctuation">.</span>stream<span class="token punctuation">.</span><span class="token function">bytesToString</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">else</span> <span class="token punctuation">{</span>
  <span class="token function">print</span><span class="token punctuation">(</span>response<span class="token punctuation">.</span>reasonPhrase<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span></code></pre>
</div>
<hr />
<h2>GET Authenticate multiple IPs</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>To authenticate multiple IPs just simply repeat the ip[] parameter.</p>
<p>PARAMS</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">auth</td>
<td style="font-weight: 400;" width="226">nhuyjukilompnbvfrtyuui<br />
Provide your API auth key</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">type</td>
<td style="font-weight: 400;" width="226">set<br />
Set IP request</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">ip[]</td>
<td style="font-weight: 400;" width="226">1.1.1.1<br />
Provide one of the IPs that have to be authenticated</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">ip[]</td>
<td style="font-weight: 400;" width="226">1.1.1.2<br />
Provide one of the IPs that have to be authenticated</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">ip[]</td>
<td style="font-weight: 400;" width="226">1.1.1.3<br />
Provide one of the IPs that have to be authenticated</td>
</tr>
</tbody>
</table>
</div>
<div>
<div class="styles__ExampleTitle-sc-1gk0rxh-1 coCuLw">Example Request</div>
<div>
<pre class="language-javascript"><code class="language-javascript"><span class="token keyword">var</span> request <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">Request</span><span class="token punctuation">(</span><span class="token string">'GET'</span><span class="token punctuation">,</span> Uri<span class="token punctuation">.</span><span class="token function">parse</span><span class="token punctuation">(</span><span class="token string">'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'</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>


http<span class="token punctuation">.</span>StreamedResponse response <span class="token operator">=</span> <span class="token keyword">await</span> request<span class="token punctuation">.</span><span class="token function">send</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token keyword">if</span> <span class="token punctuation">(</span>response<span class="token punctuation">.</span>statusCode <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">print</span><span class="token punctuation">(</span><span class="token keyword">await</span> response<span class="token punctuation">.</span>stream<span class="token punctuation">.</span><span class="token function">bytesToString</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">else</span> <span class="token punctuation">{</span>
  <span class="token function">print</span><span class="token punctuation">(</span>response<span class="token punctuation">.</span>reasonPhrase<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">References,</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>Disclaimer</strong>: This part of the content is mainly from the merchant. If the merchant does not want it to be displayed on my website, please <a href="https://www.proxysp.com/contact-us/">contact us</a> to delete your content.</div>
</blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://proxysp.com/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 Free ProxyScrape API</title>
		<link>https://proxysp.com/free-proxyscrape-api/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=free-proxyscrape-api</link>
					<comments>https://proxysp.com/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[Do you know how to use free ProxyScrape API? This article will give you the detailed guide. This API is for our free proxy list and &#8230;<p class="read-more"> <a class="ast-button" href="https://proxysp.com/free-proxyscrape-api/"> <span class="screen-reader-text">How to Use Free ProxyScrape API</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>Do you know how to use free ProxyScrape API? This article will give you the detailed guide.</p></blockquote>
<p>This API is for our free proxy list and the results returned by it can be used anywhere free of charge.</p>
<h2>Get proxy list</h2>
<pre>https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all</pre>
<div>
<div><strong>Sample codes,</strong></div>
<div></div>
<div>
<h3>C#</h3>
<pre>var client = new RestClient("https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&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&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all'</pre>
<h3>Dart &#8211; Http</h3>
<pre>var request = http.Request('GET', Uri.parse('https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all')); http.StreamedResponse response = await request.send(); if (response.statusCode == 200) { print(await response.stream.bytesToString()); } else { print(response.reasonPhrase); }</pre>
<h3>Go &#8211; Native</h3>
<pre>package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all" method := "GET" client := &http.Client { } req, err := http.NewRequest(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>HTTP</h3>
<pre>GET /v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&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&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all") .method("GET", null) .build(); Response response = client.newCall(request).execute();</pre>
</div>
</div>
<h3>JavaScript &#8211; Fetch</h3>
<pre>var requestOptions = { method: 'GET', redirect: 'follow' }; fetch("https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all", requestOptions) .then(response =&gt; response.text()) .then(result =&gt; console.log(result)) .catch(error =&gt; console.log('error', error));</pre>
<h3>JavaScript &#8211; jQuery</h3>
<pre>var settings = { "url": "https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all", "method": "GET", "timeout": 0, }; $.ajax(settings).done(function (response) { console.log(response); });</pre>
<h3>JavaScript &#8211; 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&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all"); xhr.send();</pre>
<h3>C &#8211; 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&protocol=http&timeout=10000&country=all&ssl=all&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 &#8211; Axios</h3>
<pre>var axios = require('axios'); var config = { method: 'get', url: 'https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&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 &#8211; Native</h3>
<pre>var https = require('follow-redirects').https; var fs = require('fs'); var options = { 'method': 'GET', 'hostname': 'api.proxyscrape.com', 'path': '/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&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 &#8211; Request</h3>
</div>
</div>
</div>
<pre>var request = require('request'); var options = { 'method': 'GET', 'url': 'https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all', 'headers': { } }; request(options, function (error, response) { if (error) throw new Error(error); console.log(response.body); });</pre>
<div></div>
<h3>PHP &#8211; cURL</h3>
<pre>&lt;?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL =&gt; 'https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&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 &#8211; http.client</h3>
<pre>import http.client conn = http.client.HTTPSConnection("api.proxyscrape.com") payload = '' headers = {} conn.request("GET", "/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))</pre>
<div></div>
<h3>Python &#8211; Requests</h3>
<pre>import requests url = "https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all" payload={} headers = {} response = requests.request("GET", url, headers=headers, data=payload) print(response.text)</pre>
<div></div>
<h3>Ruby &#8211; Net::HTTP</h3>
<pre>require "uri" require "net/http" url = URI("https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&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>Shell &#8211; Httpie</h3>
<pre>http --follow --timeout 3600 GET 'https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all'</pre>
<div></div>
<h3>Shell &#8211; get</h3>
<pre>wget --no-check-certificate --quiet \ --method GET \ --timeout=0 \ --header '' \ 'https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all'</pre>
<p>&nbsp;</p>
<h3>Swift &#8211; 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&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all")!,timeoutInterval: Double.infinity) 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>PARAMS</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">request</td>
<td style="font-weight: 400;" width="226">displayproxies<br />
Define whether the proxies should download or display in the browser. Possible values:</p>
<ul>
<li>displayproxies: display the proxies in the browser</li>
<li>getproxies: download the proxies</li>
</ul>
</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">protocol</td>
<td style="font-weight: 400;" width="226">http<br />
Protocol of the proxies that should be downloaded. Possible values:</p>
<ul>
<li>http</li>
<li>socks4</li>
<li>socks5</li>
<li>all</li>
</ul>
<p>If you want to download two protocols at once, the values can be separated by a comma, E.G., protocol=socks4,socks5<br />
When this parameter is not defined, it will default to all.</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">timeout</td>
<td style="font-weight: 400;" width="226">10000<br />
The maximum timeout of the proxies that should be downloaded in miliseconds.</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">country</td>
<td style="font-weight: 400;" width="226">all<br />
The country parameter can be any Alpha 2 ISO country code or &#8216;all'. When no country is defined the country will be automatically set to &#8216;all'. You can also use multiple countries in 1 request by separating them by a comma.</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">ssl</td>
<td style="font-weight: 400;" width="226">all<br />
Should the proxies support SSL (HTTPS)? This parameter is only for if you download HTTP proxies.</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">anonymity</td>
<td style="font-weight: 400;" width="226">all<br />
Define which anonymity level the proxies should have:</p>
<ul>
<li>elite</li>
<li>anonymous</li>
<li>transparent</li>
<li>all</li>
</ul>
<p>When no anonymity level is defined, it will default to &#8216;all'. You can also use multiple anonymity levels in 1 request by separating them by a comma.<br />
This parameter only applies to HTTP(s) proxies.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="styles__ExampleTitle-sc-1gk0rxh-1 coCuLw">Example Request:</div>
<div>
<pre class="language-javascript"><code class="language-javascript"><span class="token keyword">var</span> request <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">Request</span><span class="token punctuation">(</span><span class="token string">'GET'</span><span class="token punctuation">,</span> Uri<span class="token punctuation">.</span><span class="token function">parse</span><span class="token punctuation">(</span><span class="token string">'https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&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 response <span class="token operator">=</span> <span class="token keyword">await</span> request<span class="token punctuation">.</span><span class="token function">send</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token keyword">if</span> <span class="token punctuation">(</span>response<span class="token punctuation">.</span>statusCode <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">print</span><span class="token punctuation">(</span><span class="token keyword">await</span> response<span class="token punctuation">.</span>stream<span class="token punctuation">.</span><span class="token function">bytesToString</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">else</span> <span class="token punctuation">{</span>
  <span class="token function">print</span><span class="token punctuation">(</span>response<span class="token punctuation">.</span>reasonPhrase<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span></code></pre>
</div>
<hr />
<h2>Get proxy list details</h2>
<pre>https://api.proxyscrape.com/v2/?request=proxyinfo</pre>
<div><span style="font-size: 16px;">This API endpoint will return information of the available proxies such as:</span></div>
<div>
<ul>
<li>Amount of available proxies</li>
<li>Time since last proxy list update</li>
<li>Available countries</li>
<li>Organizations the proxies are related to</li>
<li>Ports of the proxies</li>
</ul>
<p>This API end-point also supports all parameters described in &#8220;Get proxy list.&#8221;</p>
<p>PARAMS</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">request</td>
<td style="font-weight: 400;" width="226">proxyinfo</td>
</tr>
<tr>
<td style="font-weight: 400;" width="72">simplified</td>
<td style="font-weight: 400;" width="226">true<br />
Use this parameter if you only want to receive the amount of available proxies.</td>
</tr>
</tbody>
</table>
</div>
<div class="styles__ExampleTitle-sc-1gk0rxh-1 coCuLw">Example Request</div>
<div>
<pre class="language-javascript"><code class="language-javascript"><span class="token keyword">var</span> request <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">Request</span><span class="token punctuation">(</span><span class="token string">'GET'</span><span class="token punctuation">,</span> Uri<span class="token punctuation">.</span><span class="token function">parse</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 response <span class="token operator">=</span> <span class="token keyword">await</span> request<span class="token punctuation">.</span><span class="token function">send</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token keyword">if</span> <span class="token punctuation">(</span>response<span class="token punctuation">.</span>statusCode <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">print</span><span class="token punctuation">(</span><span class="token keyword">await</span> response<span class="token punctuation">.</span>stream<span class="token punctuation">.</span><span class="token function">bytesToString</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">else</span> <span class="token punctuation">{</span>
  <span class="token function">print</span><span class="token punctuation">(</span>response<span class="token punctuation">.</span>reasonPhrase<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">References,</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>Disclaimer</strong>: This part of the content is mainly from the merchant. If the merchant does not want it to be displayed on my website, please <a href="https://www.proxysp.com/contact-us/">contact us</a> to delete your content.</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://proxysp.com/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 Bright Data API? Learn Manuals Before You Buy</title>
		<link>https://proxysp.com/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/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[Want to scraping data by Bright Data API? We make a some examples of code for popular programming languages, with it you can easily to know &#8230;<p class="read-more"> <a class="ast-button" href="https://proxysp.com/how-to-use-bright-data-api/"> <span class="screen-reader-text">How to Use Bright Data API? Learn Manuals Before You Buy</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>Want to scraping data by Bright Data API? We make a some examples of code for popular programming languages, with it you can easily to know how ot use Bright Data proxy API.</p></blockquote>
<p><a href="https://www.proxysp.com/redirect/brightdata" target="_blank" rel="nofollow noopener"><img fetchpriority="high" 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 proxy API</h2>
<h3>For Browser or Software,</h3>
<p>Use the following settings in your Bot, Crawler or other software,</p>
<ol>
<li>Proxy: <b>zproxy.lum-superproxy.io</b></li>
<li>Port: <b>22225</b></li>
<li>User: <b>lum-customer-Your_username- Your_zonesetting</b></li>
<li>Password: <b>0Yourpasswords0</b></li>
</ol>
<hr />
<h3>Shell</h3>
<pre><span class="token function">curl</span> --proxy zproxy.lum-superproxy.io:22225 --proxy-user 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

package example;

import org.apache.http.HttpHost;
import org.apache.http.client.fluent.*;

public class Example {
public static void main(String[] args) throws Exception {
System.out.println("To enable your free eval account and get "
+"CUSTOMER, YOURZONE and YOURPASS, please contact "
+"sales@brightdata.com");
HttpHost proxy = new HttpHost("zproxy.lum-superproxy.io", 22225);
String 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>using System;
using System.Net;

class Example
{
static void Main()
{
Console.WriteLine("To enable your free eval account and get CUSTOMER, "
+"YOURZONE and YOURPASS, please contact 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>Imports System.Net

Module Module1
Sub Main()
Console.WriteLine("To enable your free eval account and get " & 
"CUSTOMER, YOURZONE and YOURPASS, please contact " &
"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"))
End Sub
End Module</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 sales@brightdata.com')
import sys
if sys.version_info[0]==2:
import 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())
if sys.version_info[0]==3:
import 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>Ruby</h3>
<pre>#!/usr/bin/ruby

require 'uri'
require 'net/http'
require 'net/https'

puts 'To enable your free eval account and get CUSTOMER, YOURZONE and YOURPASS, please contact 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)
end

puts result.body</pre>
<h3>Perl</h3>
<pre>#!/usr/bin/perl
print 'To enable your free eval account and get CUSTOMER, YOURZONE and '
.'YOURPASS, please contact sales@brightdata.com';
use 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">Search Engine Crawler API</h2>
<h3>Google Search Crawler API</h3>
<h4>Search</h4>
<p>Localization</p>
<div class="parameter_header">
<div class="parameter_label">gl     <span style="font-size: 16px;">Two-letter country code used to define the country of search</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&gl=us"</pre>
</div>
</div>
<div class="parameter_header">
<div class="parameter_label">hl     <span style="font-size: 16px;">Two-letter language code used to define the page language</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&hl=us"</pre>
</div>
<hr />
</div>
<p>Type of search</p>
<div class="parameter_header">
<div class="parameter_label">tbm     <span style="font-size: 16px;">Define search type. For regular search there is no need to use the </span><span class="parameter_label" style="font-size: 16px;">tbm</span><span style="font-size: 16px;"> parameter while other types have </span></div>
<div class="parameter_label"><span style="font-size: 16px;">            a unique </span><span class="parameter_label" style="font-size: 16px;">tbm</span><span style="font-size: 16px;"> value.</span></div>
</div>
<div class="parameter_input">            Example:<br />
<span class="parameter_label">            tbm=isch</span> &#8211; images<br />
<span class="parameter_label">            tbm=shop</span> &#8211; shopping<br />
[%nws] &#8211; news</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&tbm=shop"</pre>
</div>
<div class="parameter_header">
<div class="parameter_label">ibp     <span style="font-size: 16px;">Use the </span><span class="parameter_label" style="font-size: 16px;">ibp</span><span style="font-size: 16px;"> parameter for Jobs search type.</span></div>
</div>
<div class="parameter_input">           Example:<br />
<span class="parameter_label">           ibp=htl;jobs</span> &#8211; Jobs</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>Pagination</p>
<div class="parameter_header">
<div class="parameter_label">start     <span style="font-size: 16px;">Define the result offset &#8211; results to start from the selected value. Used for managing pagination.</span></div>
</div>
<div class="parameter_input">             Examples:<br />
<span class="parameter_label">             start=0</span> (default) &#8211; first page of results<br />
<span class="parameter_label">             start=10</span> &#8211; second page of results<br />
<span class="parameter_label">             start=20</span> &#8211; third page of results, etc.</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&start=10"</pre>
</div>
<div class="parameter_header">
<div class="parameter_label">num     <span style="font-size: 16px;">Defines the number of results to return.</span></div>
</div>
<div class="parameter_input">             Examples:<br />
<span class="parameter_label">             num=10</span> (default) returns 10 results<br />
<span class="parameter_label">             num=30</span> returns 30 results, etc.</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&num=100"</pre>
</div>
<hr />
<p>Geographic Location</p>
<div class="parameter_header">
<div class="parameter_label">uule     <span style="font-size: 16px;">Stands for the encoded location you want to use for your search and will be used to change geo-location. A CSV with all available </span><span class="parameter_label" style="font-size: 16px;">uule</span><span style="font-size: 16px;"> values can be </span><a style="font-size: 16px; background-color: #ffffff;" href="https://developers.google.com/adwords/api/docs/appendix/geotargeting" target="_blank" rel="nofollow noopener">downloaded here</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&uule=w+CAIQICINVW5pdGVkK1N0YXRlcw"</pre>
</div>
</div>
<hr />
<p>Device and output format</p>
<div class="parameter_header">
<div class="parameter_label">lum_mobile     <span style="font-size: 16px;">Define what device type to be represented in user-agent</span></div>
</div>
<div class="parameter_input">
<p>                           Default or <span class="parameter_label">lum_mobile=0</span> will provide random desktop user-agent while <span class="parameter_label">lum_mobile=1</span> will provide random mobile user-agent</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">curl</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;">Bright Data parameter allowing to return parsed JSON instead of raw HTML</span></div>
</div>
<div class="parameter_input">                      Examples:<br />
<span class="parameter_label">                      lum_json=1</span> &#8211; return results in JSON<br />
<span class="parameter_label">                      lum_json=html</span> &#8211; return JSON with &#8220;html&#8221; field containing raw HTML<br />
<span class="parameter_label">                      lum_json=hotel</span> &#8211; make additional request to retrieve hotel prices<br />
<span class="parameter_label">                      lum_json=hotel,html</span> &#8211; two values can be combined while separated by comma</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&lum_json=1"</pre>
</div>
<hr />
<p>Search by image</p>
<div class="parameter_header">
<div class="parameter_label">download     <span style="font-size: 16px;">Download image on the proxy side and post it to google using POST request</span></div>
</div>
<div class="parameter_input">                       Examples:<br />
default &#8211; download-and-post if google isn't able to download the image<br />
<span class="parameter_label">                       download=1</span> &#8211; force download-and-post image<br />
<span class="parameter_label">                       download=0</span> &#8211; regular GET request with image URL</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>Multiple requests</p>
<div class="parameter_header">
<div class="parameter_label">multi     <span style="font-size: 16px;">Make parallel requests through our API server using POST request.</span></div>
</div>
<div class="parameter_input">               Parallel requests will be using the same peer and session and can be used for comparison tests, I.e. making an identical pair of requests with 2 different values for a selected parameter<br />
<span class="parameter_label">               multi=[{&#8220;keyword&#8221;:&#8221;pizza&#8221;,&#8221;num&#8221;:20},{&#8220;keyword&#8221;:&#8221;pizza&#8221;,&#8221;num&#8221;:100}]</span> &#8211; the same keyword with different num param<br />
<span class="parameter_label">               multi=[{&#8220;keyword&#8221;:&#8221;pizza&#8221;},{&#8220;keyword&#8221;:&#8221;burger&#8221;}]</span> &#8211; different keywords</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>Asynchronous requests</p>
<div class="cp_serp_api_async_desc">Send requests without waiting for the response. Collect results via a designated endpoint or a webhook.</div>
<div class="cp_serp_api_results_code">
<p class="faq_unit_item_p">To initiate a request, perform:</p>
<pre class="p-0">RESPONSE_ID=`curl -i --silent --compressed "https://brightdata.com/api/serp/req?customer=username&zone=ZONE" -H "Content-Type: application/json" -H "Authorization: Bearer &lt;API_TOKEN&gt;" -d "{\"query\":{\"q\":\"pizza\"},\"country\":\"us\"}" | sed -En 's/^x-response-id: (.*)/\1/p' | tr -d '\r'`</pre>
</div>
<p>`x-response-id` header will contain the id of the request so you can use it in the next request to fetch the result</p>
<pre class="p-0">curl -v --compressed "https://brightdata.com/api/serp/get_result?customer=username&zone=ZONE&response_id=${RESPONSE_ID}" -H "Authorization: Bearer &lt;API_TOKEN&gt;"</pre>
<p>You can adjust your zone async settings on <a href="https://brightdata.com/cp/zones?id=username" target="_blank" rel="nofollow noopener">zones page</a>.<br />
Optional settings:<br />
<b>Result lifetime (days)</b> &#8211; number of days to keep results<br />
<b>Web Hook URL</b> &#8211; address to deliver results<br />
<b>Web Hook Request Method</b> &#8211; HTTP method to use to deliver response, GET or POST are optional</p>
<hr />
<p>Parsing schema</p>
<div class="cp_serp_api_schema_desc">The parsing scheme can be obtained by the following endpoint: <code>GET /api/serp/google/parsing_schema</code></div>
<div class="cp_serp_api_results_code">
<p class="faq_unit_item_p">To get schema, perform:</p>
<pre class="p-0">curl --compressed "https://brightdata.com/api/serp/google/parsing_schema" -H "Authorization: Bearer API_TOKEN"</pre>
</div>
<hr />
<h4>Maps</h4>
<p>Localization</p>
<div class="parameter_header">
<div class="parameter_label">gl     <span style="font-size: 16px;">Two-letter country code used to define the country of search</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/?gl=us"</pre>
</div>
</div>
<div class="parameter_header">
<div class="parameter_label">hl <span style="font-size: 16px;">Two-letter language code used to define the page language</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/?hl=en"</pre>
</div>
</div>
<hr />
<p>Pagination</p>
<div class="parameter_header">
<div class="parameter_label">start     <span style="font-size: 16px;">Define the result offset &#8211; results to start from the selected value. Used for managing pagination.</span></div>
</div>
<div class="parameter_input">             Examples:<br />
<span class="parameter_label">             start=0</span> (default) &#8211; first page of results<br />
<span class="parameter_label">             start=20</span> &#8211; second page of results<br />
<span class="parameter_label">             start=40</span> &#8211; third page of results, etc.</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">num     <span style="font-size: 16px;">Defines the number of results to return.</span></div>
</div>
<div class="parameter_input">             Examples:<br />
<span class="parameter_label">             num=40</span> (default) returns 40 results<br />
<span class="parameter_label">             num=50</span> returns 50 results, etc.</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>Output format</p>
<div class="parameter_header">
<div class="parameter_label">lum_json     <span style="font-size: 16px;">Bright Data parameter allowing to return parsed JSON instead of raw HTML</span></div>
</div>
<div class="parameter_input">                       Examples:<br />
<span class="parameter_label">                       lum_json=1</span> &#8211; return results in 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>Trends</h4>
<p>Geo</p>
<p><span style="font-size: 16px;">geo </span><span style="font-size: 16px;">Location of interest, two-letter country code</span></p>
<pre class="p-0">curl -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD "http://trends.google.com/trends/explore?q=pizza&geo=us"</pre>
<hr />
<p>Localization</p>
<div class="parameter_header">
<div class="parameter_label">hl     <span style="font-size: 16px;">Preferred language, two-letter language code</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://trends.google.com/trends/explore?q=pizza&hl=de"</pre>
</div>
</div>
<hr />
<p>Time range</p>
<div class="parameter_header">
<div class="parameter_label">date     <span style="font-size: 16px;">Time range to search. Available values are:</span></div>
</div>
<div class="parameter_input">             default: Past 12 month<br />
<span class="parameter_label">             now 1-H</span> &#8211; Past hour<br />
<span class="parameter_label">             now 4-H</span> &#8211; Past 4 hours<br />
<span class="parameter_label">             now 1-d</span> &#8211; Past day<br />
<span class="parameter_label">             now 7-d</span> &#8211; Past 7 days<br />
<span class="parameter_label">             today 1-m</span> &#8211; Past 30 days<br />
<span class="parameter_label">             today 3-m</span> &#8211; Past 90 days<br />
<span class="parameter_label">             today 12-m</span> &#8211; Past 12 months<br />
<span class="parameter_label">             today 5-y</span> &#8211; Past 5 years<br />
<span class="parameter_label">             2020-07-01 2020-12-31</span> &#8211; custom date range</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">curl</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">Category</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_cat">
<div class="parameter_header">
<div class="parameter_label">cat     <span style="font-size: 16px;">Category to search within. By default search within all categories.</span></div>
</div>
<div class="parameter_input">
<p>           You can find list of all categories <a href="https://trends.google.com/trends/api/explore/pickers/category?hl=en-US&tz=240" target="_blank" rel="noopener">here</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">curl</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">Type of search</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 property to filter on. Defaults to web search.</span></div>
</div>
<div class="parameter_input">
<p>                 Possible values are: <span class="parameter_label">images</span>, <span class="parameter_label">news</span>, <span class="parameter_label">groogle</span>, <span class="parameter_label">youtube</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">curl</span> -v --compressed --proxy zproxy.lum-superproxy.io:22225 --proxy-user lum-customer-username-zone-ZONE:PASSWORD <span class="token string">"htt</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
<hr />
<div class="title_header">
<div class="cp_title cp_title_small">Asynchronous requests</div>
</div>
<div class="cp_serp_api_async_desc">Send requests without waiting for the response. Collect results via a designated endpoint or a webhook.</div>
<div class="cp_serp_api_results_code">
<p class="faq_unit_item_p">To initiate a request, perform:</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">RESPONSE_ID</span><span class="token operator">=</span><span class="token variable">`<span class="token function">curl</span> -i --silent --compressed <span class="token string">"https://brightdata.com/api/serp/trends?customer=username&zone=ZONE"</span> -H <span class="token string">"Content-Type: application/json"</span> -H <span class="token string">"Authorization: Bearer &lt;API_TOKEN&gt;"</span> -d <span class="token string">"{<span class="token entity" title="\&quot;">\"</span>query<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>pizza<span class="token entity" title="\&quot;">\"</span>},<span class="token entity" title="\&quot;">\"</span>country<span class="token entity" title="\&quot;">\"</span>:<span class="token entity" title="\&quot;">\"</span>us<span class="token entity" title="\&quot;">\"</span>}"</span> <span class="token operator">|</span> <span class="token function">sed</span> -En <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">tr</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` header will contain the id of the request so you can use it in the next request to fetch the result</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">curl</span> -v --compressed <span class="token string">"https://brightdata.com/api/serp/get_result?customer=username&zone=ZONE&output=json&response_id=<span class="token variable">${RESPONSE_ID}</span>"</span> -H <span class="token string">"Authorization: Bearer &lt;API_TOKEN&gt;"</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>You can adjust your zone async settings on <a href="https://brightdata.com/cp/zones?id=username" target="_blank" rel="nofollow noopener">zones page</a>.<br />
Optional settings:<br />
<b>Result lifetime (days)</b> &#8211; number of days to keep results<br />
<b>Web Hook URL</b> &#8211; address to deliver results<br />
<b>Web Hook Request Method</b> &#8211; HTTP method to use to deliver response, GET or POST are optional</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>Reviews</h4>
</div>
<div class="cp_title cp_title_small">Feature id</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_fid">
<div class="parameter_header">
<div class="parameter_label">fid    Feature id what you want to fetch reviews to.<br />
fid parameter can be found in knowledge.fid field of google search response.<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">curl</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;">Localization</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;">Preferred language, two-letter language code</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">curl</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>Sorting and filtering</p>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_sort">
<div class="parameter_header">
<div class="parameter_label">sort      <span style="font-size: 16px;">The way reviews are sorted. Possible values are:</span></div>
</div>
<div class="parameter_input"><span class="parameter_label">             sort=qualityScore</span> (default) &#8211; most relevant first<br />
<span class="parameter_label">             sort=newestFirst</span> &#8211; newest first<br />
<span class="parameter_label">             sort=ratingHigh</span> &#8211; highest rating first<br />
<span class="parameter_label">             sort=ratingLow</span> &#8211; lowest rating first</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">curl</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">filter     <span style="font-size: 16px;">Filter keyword. Will respond with reviews that contain specified keyword only. Example:</span></div>
</div>
<div class="parameter_input">
<p><span class="parameter_label">              filter=awesome</span> &#8211; search for reviews containing &#8216;awesome' word</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">curl</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>Pagination</p>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_start">
<div class="parameter_header">
<div class="parameter_label">start     <span style="font-size: 16px;">Define the result offset &#8211; results to start from the selected value. Used for managing pagination.</span></div>
</div>
<div class="parameter_input">             Examples:<br />
<span class="parameter_label">             start=0</span> (default) &#8211; first page of results<br />
<span class="parameter_label">             start=10</span> &#8211; second page of results<br />
<span class="parameter_label">             start=20</span> &#8211; third page of results, etc.</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">curl</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>Asynchronous requests</p>
</div>
</div>
<div class="cp_serp_api_async_desc">Send requests without waiting for the response. Collect results via a designated endpoint or a webhook.</div>
<div class="cp_serp_api_results_code">
<p class="faq_unit_item_p">To initiate a request, perform:</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">RESPONSE_ID</span><span class="token operator">=</span><span class="token variable">`<span class="token function">curl</span> -i --silent --compressed <span class="token string">"https://brightdata.com/api/serp/reviews?customer=username&zone=ZONE"</span> -H <span class="token string">"Content-Type: application/json"</span> -H <span class="token string">"Authorization: Bearer &lt;API_TOKEN&gt;"</span> -d <span class="token string">"{<span class="token entity" title="\&quot;">\"</span>query<span class="token entity" title="\&quot;">\"</span>:{<span class="token entity" title="\&quot;">\"</span>fid<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>country<span class="token entity" title="\&quot;">\"</span>:<span class="token entity" title="\&quot;">\"</span>us<span class="token entity" title="\&quot;">\"</span>}"</span> <span class="token operator">|</span> <span class="token function">sed</span> -En <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">tr</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` header will contain the id of the request so you can use it in the next request to fetch the result</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">curl</span> -v --compressed <span class="token string">"https://brightdata.com/api/serp/get_result?customer=username&zone=ZONE&response_id=<span class="token variable">${RESPONSE_ID}</span>"</span> -H <span class="token string">"Authorization: Bearer &lt;API_TOKEN&gt;"</span></code></pre>
</div>
</div>
</div>
</div>
<p>You can adjust your zone async settings on <a href="https://brightdata.com/cp/zones?id=username" target="_blank" rel="nofollow noopener">zones page</a>.<br />
Optional settings:<br />
<b>Result lifetime (days)</b> &#8211; number of days to keep results<br />
<b>Web Hook URL</b> &#8211; address to deliver results<br />
<b>Web Hook Request Method</b> &#8211; HTTP method to use to deliver response, GET or POST are optional</p>
</div>
</div>
</div>
</div>
<hr />
<h3>Bing Search Crawler 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">Localization</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;">Two-letter country code used to define the country of search</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">curl</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&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;">Geographic Location</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">location     <span style="font-size: 16px;">A location for the search origin.</span></div>
</div>
<div class="parameter_input">
<p><span class="parameter_label">                    lat</span> and <span class="parameter_label">lon</span> parameters must be specified as well</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">curl</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;">lat     </span><span style="font-size: 16px;">A GPS latitude for the search origin</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">curl</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&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;">lon     </span><span style="font-size: 16px;">A GPS longitude for the search origin</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">curl</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&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;">mkt     </span><span style="font-size: 16px;">The market where the search results come from. Use </span><a style="font-size: 16px; background-color: #ffffff;" href="https://brightdata.com/api/serp/bing/mkt_values" target="_blank" rel="noopener">this link</a><span style="font-size: 16px;"> to view all optional values.</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">curl</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&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>Pagination</p>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_first">
<div class="parameter_header">
<div class="parameter_label">first     <span style="font-size: 16px;">Define the result offset &#8211; results to start from the selected value. Used for managing pagination.</span></div>
</div>
<div class="parameter_input">             Examples:<br />
<span class="parameter_label">             first=1</span> (default) &#8211; first page of results<br />
<span class="parameter_label">             first=11</span> &#8211; second page of results<br />
<span class="parameter_label">             first=21</span> &#8211; third page of results, etc.</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">curl</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&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;">count     </span><span style="font-size: 16px;">Defines the number of results to return.</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">                Examples:<br />
<span class="parameter_label">                count=10</span> (default) returns 10 results<br />
<span class="parameter_label">                count=30</span> returns 30 results, etc.</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">curl</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&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;">Device and output format</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;">Define what device type to be represented in user-agent</span></div>
</div>
<div class="parameter_input">
<p>                           Default or <span class="parameter_label">lum_mobile=0</span> will provide random desktop user-agent while <span class="parameter_label">lum_mobile=1</span> will provide random mobile user-agent</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">curl</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&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;">Bright Data parameter allowing to return parsed JSON instead of raw 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">                       Examples:<br />
<span class="parameter_label">                       lum_json=1</span> &#8211; return results in JSON<br />
<span class="parameter_label">                       lum_json=html</span> &#8211; return JSON with &#8220;html&#8221; field containing raw HTML<br />
<span class="parameter_label">                       lum_json=hotel</span> &#8211; make additional request to retrieve hotel prices<br />
<span class="parameter_label">                       lum_json=hotel,html</span> &#8211; two values can be combined while separated by comma</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">curl</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&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>Asynchronous requests</p>
</div>
</div>
<div class="cp_serp_api_async_desc">Send requests without waiting for the response. Collect results via a designated endpoint or a webhook.</div>
<div class="cp_serp_api_results_code">
<p class="faq_unit_item_p">To initiate a request, perform:</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">RESPONSE_ID</span><span class="token operator">=</span><span class="token variable">`<span class="token function">curl</span> -i --silent --compressed <span class="token string">"https://brightdata.com/api/serp/bing/search?customer=username&zone=ZONE"</span> -H <span class="token string">"Content-Type: application/json"</span> -H <span class="token string">"Authorization: Bearer &lt;API_TOKEN&gt;"</span> -d <span class="token string">"{<span class="token entity" title="\&quot;">\"</span>query<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>pizza<span class="token entity" title="\&quot;">\"</span>},<span class="token entity" title="\&quot;">\"</span>country<span class="token entity" title="\&quot;">\"</span>:<span class="token entity" title="\&quot;">\"</span>us<span class="token entity" title="\&quot;">\"</span>}"</span> <span class="token operator">|</span> <span class="token function">sed</span> -En <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">tr</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` header will contain the id of the request so you can use it in the next request to fetch the result</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">curl</span> -v --compressed <span class="token string">"https://brightdata.com/api/serp/get_result?customer=username&zone=ZONE&response_id=<span class="token variable">${RESPONSE_ID}</span>"</span> -H <span class="token string">"Authorization: Bearer &lt;API_TOKEN&gt;"</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;">You can adjust your zone async settings on </span><a style="font-size: 16px; background-color: #ffffff;" href="https://brightdata.com/cp/zones?id=username" target="_blank" rel="nofollow noopener">zones page</a><span style="font-size: 16px;">.</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p>Optional settings:<br />
<b>Result lifetime (days)</b> &#8211; number of days to keep results<br />
<b>Web Hook URL</b> &#8211; address to deliver results<br />
<b>Web Hook Request Method</b> &#8211; HTTP method to use to deliver response, GET or POST are optional</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>Parsing schema</p>
</div>
</div>
<div class="cp_serp_api_schema_desc">The parsing scheme can be obtained by the following endpoint: <code>GET /api/serp/bing/parsing_schema</code></div>
<div class="cp_serp_api_results_code">
<p class="faq_unit_item_p">To get schema, perform:</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">curl</span> --compressed <span class="token string">"https://brightdata.com/api/serp/bing/parsing_schema"</span> -H <span class="token string">"Authorization: Bearer API_TOKEN"</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<hr />
<h3 class="cp_tab_label">Yandex Search Crawler 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">Localization</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;">Region or country to search. Examples:</span></div>
</div>
<div class="parameter_input"><span class="parameter_label">        1</span> &#8211; Moscow<br />
<span class="parameter_label">        2</span> &#8211; Saint-Petersburg<br />
<span class="parameter_label">        84</span> &#8211; USA<br />
<span class="parameter_label">        95</span> &#8211; Canada<br />
<span class="parameter_label">       134</span> &#8211; China</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">curl</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&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;">lang     </span><span style="font-size: 16px;">Two-letter language code used to define the page language</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">curl</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&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>Pagination</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;">Define the result page &#8211; results to start from the selected value. Used for managing pagination.</span></div>
</div>
<div class="parameter_input">       Examples:<br />
<span class="parameter_label">       p=1</span> (default) &#8211; first page of results<br />
<span class="parameter_label">       p=2</span> &#8211; second page of results<br />
<span class="parameter_label">       p=4</span> &#8211; fourth page of results, etc.</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">curl</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&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;">Defines the number of results to return.</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>                     Takes the values <span class="parameter_label">10</span>, <span class="parameter_label">20</span>, <span class="parameter_label">30</span>, and <span class="parameter_label">10</span>. When using numbers other than these values which less than <span class="parameter_label">50</span>, rounding up to the nearest of them occurs. When using numbers over <span class="parameter_label">50</span>,                                 rounding up to <span class="parameter_label">50</span> occurs.</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">curl</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&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>Time range</p>
</div>
</div>
<div class="parameter_item parameter_item_api parameter_item_within">
<div class="parameter_header">
<div class="parameter_label">within     <span style="font-size: 16px;">Time range to search. Available values are:</span></div>
</div>
<div class="parameter_input"><span class="parameter_label">                 1</span> &#8211; Past 2 weeks<br />
<span class="parameter_label">                 2</span> &#8211; Past month<br />
<span class="parameter_label">                 3</span> &#8211; Past 3 months<br />
<span class="parameter_label">                 4</span> &#8211; Past 6 months<br />
<span class="parameter_label">                 5</span> &#8211; Past year<br />
<span class="parameter_label">                 6</span> &#8211; Past 2 years<br />
<span class="parameter_label">                 7</span> &#8211; Past day<br />
<span class="parameter_label">                 77</span> &#8211; Past 24 hours<br />
<span class="parameter_label">                 8</span> &#8211; Past 3 days<br />
<span class="parameter_label">                 9</span> &#8211; Past week</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">curl</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&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;">from_date_full     </span><span style="font-size: 16px;">Define the result start date. Used for managing time range (format 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">                                 Examples:<br />
<span class="parameter_label">                                 from_date_full=12.12.2020</span> &#8211; date to start from</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">curl</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&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;">to_date_full      </span><span style="font-size: 16px;">Define the result end date. Used for managing time range (format 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">                             Examples:<br />
<span class="parameter_label">                             to_date_full=01.01.2021</span> &#8211; date to end search</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">curl</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&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;">Device and output format</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;">Define what device type to be represented in user-agent</span></div>
</div>
<div class="parameter_input">
<p>                            Default or <span class="parameter_label">lum_mobile=0</span> will provide random desktop user-agent while <span class="parameter_label">lum_mobile=1</span> will provide random mobile user-agent</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">curl</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&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>Asynchronous requests</p>
</div>
</div>
<div class="cp_serp_api_async_desc">Send requests without waiting for the response. Collect results via a designated endpoint or a webhook.</div>
<div class="cp_serp_api_results_code">
<p class="faq_unit_item_p">To initiate a request, perform:</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">RESPONSE_ID</span><span class="token operator">=</span><span class="token variable">`<span class="token function">curl</span> -i --silent --compressed <span class="token string">"https://brightdata.com/api/serp/yandex/search?customer=username&zone=ZONE"</span> -H <span class="token string">"Content-Type: application/json"</span> -H <span class="token string">"Authorization: Bearer &lt;API_TOKEN&gt;"</span> -d <span class="token string">"{<span class="token entity" title="\&quot;">\"</span>query<span class="token entity" title="\&quot;">\"</span>:{<span class="token entity" title="\&quot;">\"</span>text<span class="token entity" title="\&quot;">\"</span>:<span class="token entity" title="\&quot;">\"</span>pizza<span class="token entity" title="\&quot;">\"</span>},<span class="token entity" title="\&quot;">\"</span>country<span class="token entity" title="\&quot;">\"</span>:<span class="token entity" title="\&quot;">\"</span>us<span class="token entity" title="\&quot;">\"</span>}"</span> <span class="token operator">|</span> <span class="token function">sed</span> -En <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">tr</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` header will contain the id of the request so you can use it in the next request to fetch the result</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">curl</span> -v --compressed <span class="token string">"https://brightdata.com/api/serp/get_result?customer=username&zone=ZONE&response_id=<span class="token variable">${RESPONSE_ID}</span>"</span> -H <span class="token string">"Authorization: Bearer &lt;API_TOKEN&gt;"</span></code></pre>
</div>
</div>
</div>
</div>
<p>You can adjust your zone async settings on <a href="https://brightdata.com/cp/zones?id=username" target="_blank" rel="nofollow noopener">zones page</a>.<br />
Optional settings:<br />
<b>Result lifetime (days)</b> &#8211; number of days to keep results<br />
<b>Web Hook URL</b> &#8211; address to deliver results<br />
<b>Web Hook Request Method</b> &#8211; HTTP method to use to deliver response, GET or POST are optional</p>
</div>
</div>
</div>
</div>
</div>
<div class="cp_tab ">
<hr />
<h3 class="cp_tab_label">DuckDuckGo Search Crawler 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">Localization</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;">Country and language code used to define the country and language of search</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">curl</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&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;">Safe search</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;">Removes adult content from search results.</span></div>
</div>
<div class="parameter_input">         Available values are:<br />
<span class="parameter_label">         1</span> &#8211; Turn on safe search</div>
<div class="parameter_input"><span class="parameter_label">         3</span> &#8211; Moderate search content<br />
<span class="parameter_label">         3</span> &#8211; Turn off safe search</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">curl</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&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;">Time range</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;">Time range to search. Available values are:</span></div>
</div>
<div class="parameter_input"><span class="parameter_label">         d</span> &#8211; Past 2 weeks<br />
<span class="parameter_label">         w</span> &#8211; Past month<br />
<span class="parameter_label">         m</span> &#8211; Past 3 months<br />
<span class="parameter_label">         w</span> &#8211; Past 6 months</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">curl</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&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>Device and output format</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;">Define what device type to be represented in user-agent</span></div>
</div>
<div class="parameter_input">
<p>                           Default or <span class="parameter_label">lum_mobile=0</span> will provide random desktop user-agent while <span class="parameter_label">lum_mobile=1</span> will provide random mobile user-agent</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">curl</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&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>Asynchronous requests</p>
</div>
</div>
<div class="cp_serp_api_async_desc">Send requests without waiting for the response. Collect results via a designated endpoint or a webhook.</div>
<div class="cp_serp_api_results_code">
<p class="faq_unit_item_p">To initiate a request, perform:</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">RESPONSE_ID</span><span class="token operator">=</span><span class="token variable">`<span class="token function">curl</span> -i --silent --compressed <span class="token string">"https://brightdata.com/api/serp/duckduckgo/search?customer=username&zone=ZONE"</span> -H <span class="token string">"Content-Type: application/json"</span> -H <span class="token string">"Authorization: Bearer &lt;API_TOKEN&gt;"</span> -d <span class="token string">"{<span class="token entity" title="\&quot;">\"</span>query<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>pizza<span class="token entity" title="\&quot;">\"</span>},<span class="token entity" title="\&quot;">\"</span>country<span class="token entity" title="\&quot;">\"</span>:<span class="token entity" title="\&quot;">\"</span>us<span class="token entity" title="\&quot;">\"</span>}"</span> <span class="token operator">|</span> <span class="token function">sed</span> -En <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">tr</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` header will contain the id of the request so you can use it in the next request to fetch the result</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">curl</span> -v --compressed <span class="token string">"https://brightdata.com/api/serp/get_result?customer=username&zone=ZONE&response_id=<span class="token variable">${RESPONSE_ID}</span>"</span> -H <span class="token string">"Authorization: Bearer &lt;API_TOKEN&gt;"</span></code></pre>
</div>
</div>
</div>
</div>
<p>You can adjust your zone async settings on <a href="https://brightdata.com/cp/zones?id=username" target="_blank" rel="nofollow noopener">zones page</a>.<br />
Optional settings:<br />
<b>Result lifetime (days)</b> &#8211; number of days to keep results<br />
<b>Web Hook URL</b> &#8211; address to deliver results<br />
<b>Web Hook Request Method</b> &#8211; HTTP method to use to deliver response, GET or POST are optional</p>
</div>
</div>
</div>
</div>
</div>
<hr />
<h4>Resource,</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>Disclaimer</strong>: This part of the content is mainly from the merchant. If the merchant does not want it to be displayed on my website, please <a href="https://www.proxysp.com/contact-us/">contact us</a> to delete your content.</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://proxysp.com/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 Zenscrape API</title>
		<link>https://proxysp.com/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/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[Want to use Zenscrape API for web scraping? So you have to know how to use Zenscrape API. This article will give you a detailed guide. &#8230;<p class="read-more"> <a class="ast-button" href="https://proxysp.com/how-to-use-zenscrape-api/"> <span class="screen-reader-text">How to Use Zenscrape API</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>Want to use Zenscrape API for web scraping? So you have to know how to use Zenscrape API. This article will give you a detailed guide. Let's go!</p></blockquote>
<h2>Documentation</h2>
<p><b>Pro Tip</b>: <a href="https://app.zenscrape.com/register" target="_blank" rel="nofollow noopener">Register</a> your free apikey here and all code snippets below will contain your private apikey. If you have already registered, <a href="https://app.zenscrape.com/login" target="_blank" rel="nofollow noopener">login</a> before viewing the documentation.</p>
<h3 id="postman">Postman Collection</h3>
<p>To provide you with the best developer experience possible, we also created a Postman collection covering all of our endpoints, including plenty of examples. <a href="https://app.getpostman.com/run-collection/85f8b936e3e1870c3fa9" target="_blank" rel="nofollow noopener">Run in Postman</a>.</p>
<hr />
<h3 id="failed">Credit Costs & Failed Requests</h3>
<p>The number of credits that is counted towards your quota depends on the type request configuration that and the status code that the API endpoint returns. Hence, a request can cost between 1 and 25 credits. You can configure your request with our request builder inside your <a href="https://app.zenscrape.com/" target="_blank" rel="nofollow noopener">dashboard</a>. It generates code snippets for the most common programming languages. You can find the list of our error codes <a href="https://app.zenscrape.com/documentation#errorCodes" target="_blank" rel="nofollow noopener">here</a>.</p>
<table class="table">
<thead>
<tr>
<th class="pl-0" scope="col"><code>premium</code></th>
<th scope="col"><code>render</code></th>
<th scope="col">Cost in credits</th>
</tr>
</thead>
<tbody>
<tr>
<td>false</td>
<td>false</td>
<td>1</td>
</tr>
<tr>
<td>false</td>
<td>true</td>
<td>5</td>
</tr>
<tr>
<td>true</td>
<td>false</td>
<td>10</td>
</tr>
<tr>
<td>true</td>
<td>true</td>
<td>25</td>
</tr>
</tbody>
</table>
<hr />
<h3>Basic Usage</h3>
<p>This endpoint allows you to fetch the content of a website. For basic usage, only one parameter is required in addition to your apikey.</p>
<div class="card-header"><code>GET POST /get</code></div>
<div class="card-body">
<p>Zenscrape adding the <code>url</code> parameter to your request will fetch the HTML content from the target website. This request configuration will use standard proxies and will count as 1 credit towards your monthly limit.</p>
<pre class="p-0"><code class="bash p-3 hljs">curl <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>will generate the following response:</p>
<pre class="p-0"><code class="html p-3 hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">head</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">pre</span> <span class="hljs-attr">style</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">pre</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span></code></pre>
</div>
<hr />
<h3>Web Scraping API</h3>
<p><code>GET POST /get</code></p>
<p>See Demo Response:</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">            "origin"</span>: <span class="hljs-string">"223.233.44.142"</span> 
          } 
      &lt;/pre&gt; 
    &lt;/body&gt; 
&lt;/html&gt;</pre>
</div>
<p>This endpoint accepts the following parameters:</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">Parameter</th>
<th scope="col">Type</th>
<th scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td><b>required</b></td>
<td>target site you want to scrape</td>
</tr>
<tr>
<td>premium</td>
<td><b>optional</b>, boolean, counts as 20 credits towards your quota</td>
<td>Uses residential proxies, unlocks sites that are hard to scrape</td>
</tr>
<tr>
<td>location</td>
<td><b>optional</b>, default: worldwide</td>
<td>if <code>premium=false</code> possible locations are &#8216;na' (North America) and &#8216;eu' (Europe)<br />
if <code>premium=true</code> you can choose a location from our <a href="https://app.zenscrape.com/documentation#proxyLocationList" target="_blank" rel="nofollow noopener">list of 230+ countries</a></td>
</tr>
<tr>
<td>keep_headers</td>
<td><b>optional</b>, boolean</td>
<td>Allows to pass through forward headers (e.g. user agents, cookies)</td>
</tr>
<tr>
<td>device_type</td>
<td><b>optional</b>, boolean</td>
<td>By default, a desktop user agent is set. When set to &#8216;mobile', it will be set to an iPhone or Android user agent</td>
</tr>
<tr>
<td>render</td>
<td><b>optional</b>, boolean, counts as 5 credits towards your quota</td>
<td>Use a headless browser to fetch content that relies on javascript</td>
</tr>
<tr>
<td>wait_for</td>
<td><b>optional</b>, integer</td>
<td>Max value: 15, only works together with <code>render=true</code> amount of seconds that a browser waits for content to render before it scrapes the HTML markup</td>
</tr>
<tr>
<td>wait_for_css</td>
<td><b>optional</b>, integer</td>
<td>Only works together with <code>render=true</code>, waits until the css-selector becomes visible</td>
</tr>
<tr>
<td>session</td>
<td><b>optional</b>, string</td>
<td>a random string if you want to reuse an IP, for example <code>session=kdQ1VeQE</code></td>
</tr>
<tr>
<td>scroll_to_bottom</td>
<td><b>optional</b>, boolean</td>
<td>Only works together with <code>render=true</code>, scrolls to bottom of page before returning the page content</td>
</tr>
</tbody>
</table>
</div>
<p>Zenscrape is a REST-API and accepts HTTP requests through any programming language. The following example connects to the url https://httpbin.org/ip through a proxy and renders the content inside a browser, before it returns the markup to you.</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>Browser</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">curl <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">import</span> requests headers = { <span class="hljs-string">"apikey"</span>: <span class="hljs-string">"YOUR-APIKEY"</span>} params = ( (<span class="hljs-string">"url"</span>,<span class="hljs-string">"https://httpbin.org/ip"</span>), (<span class="hljs-string">"premium"</span>,<span class="hljs-string">"true"</span>), (<span class="hljs-string">"country"</span>,<span class="hljs-string">"de"</span>), (<span class="hljs-string">"render"</span>,<span class="hljs-string">"true"</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">var</span> request = <span class="hljs-built_in">require</span>(<span class="hljs-string">'request'</span>); <span class="hljs-keyword">var</span> options = { <span class="hljs-attr">url</span>: <span class="hljs-string">'https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https://httpbin.org/ip&premium=true&country=de&render=true'</span> }; <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">callback</span>(<span class="hljs-params">error, response, body</span>) </span>{ <span class="hljs-keyword">if</span> (!error && response.statusCode == <span class="hljs-number">200</span>) { <span class="hljs-built_in">console</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">true</span>); curl_setopt($ch, CURLOPT_HEADER, <span class="hljs-literal">false</span>); $data = [ <span class="hljs-string">"url"</span> =&gt; <span class="hljs-string">"https://httpbin.org/ip"</span>, <span class="hljs-string">"premium"</span> =&gt; <span class="hljs-string">"true"</span>, <span class="hljs-string">"country"</span> =&gt; <span class="hljs-string">"de"</span>, <span class="hljs-string">"render"</span> =&gt; <span class="hljs-string">"true"</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">array</span>( <span class="hljs-string">"Content-Type: application/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>Proxy Mode</h3>
<p><code>GET POST </code></p>
<p>See Demo Response:</p>
<div class="card-body">
<p>will generate the following response:</p>
<pre class="p-0">&lt;html&gt; 
   &lt;head&gt;&lt;/head&gt; 
     &lt;body&gt; 
       &lt;pre&gt; 
          { 
<span class="hljs-attr">            "origin": <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">In addition to the REST API Zenscrape also provides an HTTP proxy interface. You can integrate any application that already relies on proxies. Simply use your API key as the username and use any parameters you usually supply as the password.</p>
<p class="mb-4">The HTTP proxy will return <code>HTTP/1.1 407 Proxy Authentication Required</code> in case your credentials are invalid.</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&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">import</span> requests proxy = { <span class="hljs-string">"http"</span>: <span class="hljs-string">"http://YOUR-APIKEY:render=true&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&wait_for_css=.author@proxy-server.zenscrape.com:8282"</span> } response = requests.get(<span class="hljs-string">'https://quotes.toscrape.com/js'</span>, proxies=proxy, verify=<span class="hljs-literal">False</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">true</span>); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, <span class="hljs-literal">false</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&wait_for_css=.author"</span>); $response = curl_exec($ch); curl_close($ch); var_dump($response);</pre>
</div>
</div></div></div>
<hr />
<h3>Premium Proxy Location List</h3>
<p>The following list of locations can be used for the <code>location</code> parameter, if <code>premium</code> is set to <code>true</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>North America</div><div class="su-spoiler-content su-u-clearfix su-u-trim">
<div class="col-md-4">
<ul>
<li>ai &#8211; Anguilla</li>
<li>ag &#8211; Antigua and Barbuda</li>
<li>aw &#8211; Aruba</li>
<li>bs &#8211; Bahamas</li>
<li>bb &#8211; Barbados</li>
<li>bz &#8211; Belize</li>
<li>bm &#8211; Bermuda</li>
<li>bq &#8211; Bonaire Saint Eustatius and Saba</li>
<li>vg &#8211; BritishVirginIslands</li>
<li>ca &#8211; Canada</li>
<li>ky &#8211; Cayman Islands</li>
<li>cr &#8211; Costa Rica</li>
<li>cu &#8211; Cuba</li>
<li>cw &#8211; Curacao</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>dm &#8211; Dominica</li>
<li>do &#8211; Dominican Republic</li>
<li>sv &#8211; El Salvador</li>
<li>gd &#8211; Grenada</li>
<li>gp &#8211; Guadeloupe</li>
<li>gt &#8211; Guatemala</li>
<li>ht &#8211; Haiti</li>
<li>hn &#8211; Honduras</li>
<li>jm &#8211; Jamaica</li>
<li>mq &#8211; Martinique</li>
<li>mx &#8211; Mexico</li>
<li>ni &#8211; Nicaragua</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>pa &#8211; Panama</li>
<li>pr &#8211; Puerto Rico</li>
<li>bl &#8211; Saint Barthelemy</li>
<li>kn &#8211; Saint Kitts and Nevis</li>
<li>lc &#8211; Saint Lucia</li>
<li>mf &#8211; Saint Martin</li>
<li>pm &#8211; Saint Pierre and Miquelon</li>
<li>vc &#8211; Saint Vincent and the Grenadines</li>
<li>sx &#8211; Sint Maarten</li>
<li>tt &#8211; Trinidad and Tobago</li>
<li>tc &#8211; TurksandCaicosIslands</li>
<li>us &#8211; United States</li>
<li>vi &#8211; United States Virgin Islands</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>Europe</div><div class="su-spoiler-content su-u-clearfix su-u-trim">
<div class="col-md-4">
<ul>
<li>ax &#8211; Aland Islands</li>
<li>al &#8211; Albania</li>
<li>ad &#8211; Andorra</li>
<li>at &#8211; Austria</li>
<li>by &#8211; Belarus</li>
<li>be &#8211; Belgium</li>
<li>ba &#8211; Bosnia and Herzegovina</li>
<li>bg &#8211; Bulgaria</li>
<li>hr &#8211; Croatia</li>
<li>cy &#8211; Cyprus</li>
<li>cz &#8211; Czech Republic</li>
<li>dk &#8211; Denmark</li>
<li>ee &#8211; Estonia</li>
<li>fo &#8211; Faroe Islands</li>
<li>fi &#8211; Finland</li>
<li>fr &#8211; France</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>de &#8211; Germany</li>
<li>gi &#8211; Gibraltar</li>
<li>gr &#8211; Greece</li>
<li>gl &#8211; Greenland</li>
<li>gg &#8211; Guernsey</li>
<li>hu &#8211; Hungary</li>
<li>is &#8211; Iceland</li>
<li>ie &#8211; Ireland</li>
<li>im &#8211; Isle of Man</li>
<li>it &#8211; Italy</li>
<li>je &#8211; Jersey</li>
<li>xk &#8211; Kosovo</li>
<li>lv &#8211; Latvia</li>
<li>li &#8211; Liechtenstein</li>
<li>lt &#8211; Lithuania</li>
<li>lu &#8211; Luxembourg</li>
<li>mk &#8211; Macedonia</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>mt &#8211; Malta</li>
<li>md &#8211; Moldova</li>
<li>mc &#8211; Monaco</li>
<li>me &#8211; Montenegro</li>
<li>nl &#8211; Netherlands</li>
<li>no &#8211; Norway</li>
<li>pl &#8211; Poland</li>
<li>pt &#8211; Portugal</li>
<li>ro &#8211; Romania</li>
<li>sm &#8211; San Marino</li>
<li>rs &#8211; Serbia</li>
<li>sk &#8211; Slovakia</li>
<li>si &#8211; Slovenia</li>
<li>es &#8211; Spain</li>
<li>se &#8211; Sweden</li>
<li>ch &#8211; Switzerland</li>
<li>tr &#8211; Turkey</li>
<li>ua &#8211; Ukraine</li>
<li>uk &#8211; United Kingdom</li>
<li>va &#8211; Vatican</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>Asia</div><div class="su-spoiler-content su-u-clearfix su-u-trim">
<div class="col-md-4">
<ul>
<li>af &#8211; Afghanistan</li>
<li>am &#8211; Armenia</li>
<li>az &#8211; Azerbaijan</li>
<li>bh &#8211; Bahrain</li>
<li>bd &#8211; Bangladesh</li>
<li>bt &#8211; Bhutan</li>
<li>bn &#8211; Brunei</li>
<li>kh &#8211; Cambodia</li>
<li>cn &#8211; China</li>
<li>ge &#8211; Georgia</li>
<li>hk &#8211; Hong Kong</li>
<li>in &#8211; India</li>
<li>mm &#8211; Myanmar</li>
<li>np &#8211; Nepal</li>
<li>om &#8211; Oman</li>
<li>pk &#8211; Pakistan</li>
<li>ph &#8211; Philippines</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>id &#8211; Indonesia</li>
<li>ir &#8211; Iran</li>
<li>iq &#8211; Iraq</li>
<li>il &#8211; Israel</li>
<li>jp &#8211; Japan</li>
<li>jo &#8211; Jordan</li>
<li>kz &#8211; Kazakhstan</li>
<li>kw &#8211; Kuwait</li>
<li>kg &#8211; Kyrgyzstan</li>
<li>la &#8211; Laos</li>
<li>lb &#8211; Lebanon</li>
<li>mo &#8211; Macao</li>
<li>my &#8211; Malaysia</li>
<li>mv &#8211; Maldives</li>
<li>mn &#8211; Mongolia</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>qa &#8211; Qatar</li>
<li>ru &#8211; Russia</li>
<li>sa &#8211; Saudi Arabia</li>
<li>sg &#8211; Singapore</li>
<li>kr &#8211; South Korea</li>
<li>lk &#8211; Sri Lanka</li>
<li>sy &#8211; Syria</li>
<li>tw &#8211; Taiwan</li>
<li>tj &#8211; Tajikistan</li>
<li>th &#8211; Thailand</li>
<li>tm &#8211; Turkmenistan</li>
<li>ae &#8211; United Arab Emirates</li>
<li>uz &#8211; Uzbekistan</li>
<li>vn &#8211; Vietnam</li>
<li>ye &#8211; Yemen</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>South America</div><div class="su-spoiler-content su-u-clearfix su-u-trim">
<div class="col-md-4">
<ul>
<li>ar &#8211; Argentina</li>
<li>bo &#8211; Bolivia</li>
<li>br &#8211; Brazil</li>
<li>cl &#8211; Chile</li>
<li>co &#8211; Colombia</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>ms &#8211; Montserrat</li>
<li>ec &#8211; Ecuador</li>
<li>fk &#8211; Falkland Islands</li>
<li>gf &#8211; French Guiana</li>
<li>gy &#8211; Guyana</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>py &#8211; Paraguay</li>
<li>pe &#8211; Peru</li>
<li>sr &#8211; Surinam</li>
<li>uy &#8211; Uruguay</li>
<li>ve &#8211; Venezuela</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>Australia & Oceanica</div><div class="su-spoiler-content su-u-clearfix su-u-trim">
<div class="col-md-4">
<ul class="country-list">
<li>au &#8211; Australia</li>
<li>cx &#8211; Christmas Island</li>
<li>cc &#8211; Cocos Islands</li>
<li>ck &#8211; Cook Islands</li>
<li>tl &#8211; East Timor</li>
<li>fj &#8211; Fiji</li>
<li>pf &#8211; FrenchPolynesia</li>
<li>gu &#8211; Guam</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>ki &#8211; Kiribati</li>
<li>mh &#8211; Marshall Islands</li>
<li>fm &#8211; Micronesia</li>
<li>nr &#8211; Nauru</li>
<li>nc &#8211; New Caledonia</li>
<li>nz &#8211; New Zealand</li>
<li>mp &#8211; Northern Mariana Islands</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>pw &#8211; Palau</li>
<li>pg &#8211; Papua New Guinea</li>
<li>ws &#8211; Samoa</li>
<li>sb &#8211; SolomonIslands</li>
<li>to &#8211; Tonga</li>
<li>tv &#8211; Tuvalu</li>
<li>vu &#8211; Vanuatu</li>
<li>vf &#8211; Wallis and Futuna</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>Africa</div><div class="su-spoiler-content su-u-clearfix su-u-trim">
<div class="col-md-4">
<ul class="country-list">
<li>dz &#8211; Algeria</li>
<li>ao &#8211; Angola</li>
<li>bj &#8211; Benin</li>
<li>bw &#8211; Botswana</li>
<li>bf &#8211; Burkina Faso</li>
<li>bi &#8211; Burundi</li>
<li>cm &#8211; Cameroon</li>
<li>cv &#8211; CapeV erde</li>
<li>cf &#8211; Central African Republic</li>
<li>td &#8211; Chad</li>
<li>km &#8211; Comoros</li>
<li>dj &#8211; Djibouti</li>
<li>eg &#8211; Egypt</li>
<li>gq &#8211; Equatorial Guinea</li>
<li>er &#8211; Eritrea</li>
<li>et &#8211; Ethiopia</li>
<li>ga &#8211; Gabon</li>
<li>gm &#8211; Gambia</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>gh &#8211; Ghana</li>
<li>gn &#8211; Guinea</li>
<li>gw &#8211; Guinea</li>
<li>ci &#8211; Ivory Coast</li>
<li>ke &#8211; Kenya</li>
<li>ls &#8211; Lesotho</li>
<li>lr &#8211; Liberia</li>
<li>ly &#8211; Libya</li>
<li>mg &#8211; Madagascar</li>
<li>mw &#8211; Malawi</li>
<li>ml &#8211; Mali</li>
<li>mr &#8211; Mauritania</li>
<li>mu &#8211; Mauritius</li>
<li>yt &#8211; Mayotte</li>
<li>ma &#8211; Morocco</li>
<li>mz &#8211; Mozambique</li>
<li>na &#8211; Namibia</li>
<li>ne &#8211; Niger</li>
<li>ng &#8211; Nigeria</li>
<li>cg &#8211; Republic of the Congo</li>
<li>re &#8211; Reunion</li>
</ul>
</div>
<div class="col-md-4">
<ul>
<li>rw &#8211; Rwanda</li>
<li>st &#8211; Sao Tomeand Principe</li>
<li>sn &#8211; Senegal</li>
<li>sc &#8211; Seychelles</li>
<li>sl &#8211; Sierra Leone</li>
<li>so &#8211; Somalia</li>
<li>za &#8211; South Africa</li>
<li>ss &#8211; South Sudan</li>
<li>sd &#8211; Sudan</li>
<li>sz &#8211; Swaziland</li>
<li>tz &#8211; Tanzania</li>
<li>tg &#8211; Togo</li>
<li>tn &#8211; Tunisia</li>
<li>ug &#8211; Uganda</li>
<li>eh &#8211; Western Sahara</li>
<li>zm &#8211; Zambia</li>
<li>zw &#8211; Zimbabwe</li>
</ul>
</div>
</div></div>
<hr />
<h3 id="authentification">Authentification & Apikey Information</h3>
<p>Zenscrape uses API keys to allow access to the API. You can register a new API key at our developer portal. You can register a new API key at our <a href="https://app.zenscrape.com/register" target="_blank" rel="nofollow noopener">developer portal</a>. The <code>/status</code> route returns the number of left credits.</p>
<p>To authorize, you can use the following ways:</p>
<p class="hs-docs-heading h5 d-inline mr-2">GET POST /status</p>
<p>Zenscrape looks for the API key in a header that looks like the following (recommended, works with all requests):</p>
<div class="card-body">
<pre class="p-0">curl <span class="hljs-string">"https://app.zenscrape.com/api/v1/status"</span> \ -H <span class="hljs-string">"apikey: YOUR-APIKEY"</span></pre>
</div>
<p>or</p>
<div class="card-body">
<pre class="p-0">curl <span class="hljs-string">"https://app.zenscrape.com/api/v1/status?apikey=YOUR-APIKEY"</span></pre>
</div>
<p>or</p>
<div class="card-body">
<pre class="p-0">curl <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>Error Codes</h3>
<p>The Zenscrape API uses the following error codes:</p>
<div class="su-table su-table-responsive su-table-alternate">
<table class="table">
<thead>
<tr>
<th class="pl-0" scope="col">HTTP Error Code</th>
<th scope="col">Meaning</th>
</tr>
</thead>
<tbody>
<tr>
<td>403</td>
<td>Forbidden &#8212; API key is wrong, you don't have enough credits or you don't have enough rights to access it.</td>
</tr>
<tr>
<td>404</td>
<td>Not Found &#8212; There were no results found.</td>
</tr>
<tr>
<td>429</td>
<td>Too many requests &#8212; You have reached the limit for concurrency. Please wait or upgrade</td>
</tr>
<tr>
<td>500</td>
<td>Internal Server Error</td>
</tr>
</tbody>
</table>
</div>
<p class="mb-4">The API returns errors in this template:</p>
<div class="card-body">
<pre class="p-0">{ 
<span class="hljs-attr">   "errors"</span>: [{ 
<span class="hljs-attr">      "url"</span>: <span class="hljs-string">"missing"</span> 
   }] 
}</pre>
</div>
<hr />
<h2>Common Use Cases</h2>
<h3 id="premiumProxies">Using Premium Proxies</h3>
<p>Zenscrape offers a large pool of premium proxies are the preferred choice when scraping sites that are difficult to scrape. In order to utilize the pool simply set <code>premium=true</code>. In addition, you may specify a location, using the location parameter. We have chosen &#8216;se' (Sweden) for this example. You can see a list of all supported locations <a href="https://app.zenscrape.com/documentation#proxyLocationList" target="_blank" rel="nofollow noopener">here</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>Browser</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">curl <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">import</span> requests headers = { <span class="hljs-string">"apikey"</span>: <span class="hljs-string">"YOUR-APIKEY"</span>} params = ( (<span class="hljs-string">"url"</span>,<span class="hljs-string">"https://httpbin.org/ip"</span>), (<span class="hljs-string">"premium"</span>,<span class="hljs-string">"true"</span>), (<span class="hljs-string">"country"</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">var</span> request = <span class="hljs-built_in">require</span>(<span class="hljs-string">'request'</span>); <span class="hljs-keyword">var</span> options = { <span class="hljs-attr">url</span>: <span class="hljs-string">'https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https://httpbin.org/ip&premium=true&country=se'</span> }; <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">callback</span>(<span class="hljs-params">error, response, body</span>) </span>{ <span class="hljs-keyword">if</span> (!error && response.statusCode == <span class="hljs-number">200</span>) { <span class="hljs-built_in">console</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">true</span>); curl_setopt($ch, CURLOPT_HEADER, <span class="hljs-literal">false</span>); $data = [ <span class="hljs-string">"url"</span> =&gt; <span class="hljs-string">"https://httpbin.org/ip"</span>, <span class="hljs-string">"premium"</span> =&gt; <span class="hljs-string">"true"</span>, <span class="hljs-string">"country"</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">array</span>( <span class="hljs-string">"Content-Type: application/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>Setting a Custom Header</h3>
<p>Setting a custom header to avoid being blocked is not necessary, since we manage headers on our end. If you still want to set a custom header, you can do so by setting <code>keep_headers=true</code>. In this example we set a custom user-agent.</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>Browser</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">import</span> requests headers = { <span class="hljs-string">"apikey"</span>: <span class="hljs-string">"YOUR-APIKEY"</span>, <span class="hljs-string">"User-Agent"</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">"true"</span>), (<span class="hljs-string">"country"</span>,<span class="hljs-string">"us"</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">var</span> request = <span class="hljs-built_in">require</span>(<span class="hljs-string">'request'</span>); <span class="hljs-keyword">var</span> headers = { <span class="hljs-string">'User-Agent'</span>: <span class="hljs-string">'123'</span> }; <span class="hljs-keyword">var</span> options = { <span class="hljs-attr">url</span>: <span class="hljs-string">'https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https://httpbin.org/headers&keep_headers=true&country=us'</span>, <span class="hljs-attr">headers</span>: headers }; <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">callback</span>(<span class="hljs-params">error, response, body</span>) </span>{ <span class="hljs-keyword">if</span> (!error && response.statusCode == <span class="hljs-number">200</span>) { <span class="hljs-built_in">console</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">true</span>); curl_setopt($ch, CURLOPT_HEADER, <span class="hljs-literal">false</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">"true"</span>, <span class="hljs-string">"country"</span> =&gt; <span class="hljs-string">"us"</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">array</span>( <span class="hljs-string">"Content-Type: application/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>Enable JS Rendering</h3>
<p>A lot of websites use front-end frameworks like vue, react etc. In order to extract components that require javascript, please set <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>Browser</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">import</span> requests headers = { <span class="hljs-string">"apikey"</span>: <span class="hljs-string">"YOUR-APIKEY"</span>, <span class="hljs-string">"User-Agent"</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">"true"</span>), (<span class="hljs-string">"country"</span>,<span class="hljs-string">"us"</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">var</span> request = <span class="hljs-built_in">require</span>(<span class="hljs-string">'request'</span>); <span class="hljs-keyword">var</span> headers = { <span class="hljs-string">'User-Agent'</span>: <span class="hljs-string">'123'</span> }; <span class="hljs-keyword">var</span> options = { <span class="hljs-attr">url</span>: <span class="hljs-string">'https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https://httpbin.org/headers&keep_headers=true&country=us'</span>, <span class="hljs-attr">headers</span>: headers }; <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">callback</span>(<span class="hljs-params">error, response, body</span>) </span>{ <span class="hljs-keyword">if</span> (!error && response.statusCode == <span class="hljs-number">200</span>) { <span class="hljs-built_in">console</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">true</span>); curl_setopt($ch, CURLOPT_HEADER, <span class="hljs-literal">false</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">"true"</span>, <span class="hljs-string">"country"</span> =&gt; <span class="hljs-string">"us"</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">array</span>( <span class="hljs-string">"Content-Type: application/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>Getting around Cloudflare DDoS Protection</h3>
<div id="cloudFlare" class="hs-docs-content-divider">
<div class="row justify-content-center mb-3">
<div class="col-md-12">
<p>Quite a few websites that are offering interesting content have imposed cloudflare DDoS protection. Zenscrape automatically detects when cloudlare DDoS protection appears and returns the page content once the protection layer has disappeared. Hence, cloudflare DDoS protection is handled automatically and does not require any action from your end.</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>Blocking Particular Resources</h3>
<p>In order to increase speed or to supress a certain page behaviour, it can be useful to block certain resources from loading. In the following example we have decided to block <code>stylesheets</code>, <code>image</code> and other <code>media</code> from loading. Keep in mind that <code>block_resources</code> only works in combination with <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>Browser</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">curl <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">import</span> requests headers = { <span class="hljs-string">"apikey"</span>: <span class="hljs-string">"YOUR-APIKEY"</span>} params = ( (<span class="hljs-string">"url"</span>,<span class="hljs-string">"https://quotes.toscrape.com/js"</span>), (<span class="hljs-string">"render"</span>,<span class="hljs-string">"true"</span>), (<span class="hljs-string">"block_resources"</span>,<span class="hljs-string">"stylesheet,image,media"</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">var</span> request = <span class="hljs-built_in">require</span>(<span class="hljs-string">'request'</span>); <span class="hljs-keyword">var</span> options = { <span class="hljs-attr">url</span>: <span class="hljs-string">'https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https://quotes.toscrape.com/js&render=true&block_resources=stylesheet,image,media'</span> }; <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">callback</span>(<span class="hljs-params">error, response, body</span>) </span>{ <span class="hljs-keyword">if</span> (!error && response.statusCode == <span class="hljs-number">200</span>) { <span class="hljs-built_in">console</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">true</span>); curl_setopt($ch, CURLOPT_HEADER, <span class="hljs-literal">false</span>); $data = [ <span class="hljs-string">"url"</span> =&gt; <span class="hljs-string">"https://quotes.toscrape.com/js"</span>, <span class="hljs-string">"render"</span> =&gt; <span class="hljs-string">"true"</span>, <span class="hljs-string">"block_resources"</span> =&gt; <span class="hljs-string">"stylesheet,image,media"</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">array</span>( <span class="hljs-string">"Content-Type: application/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>Setting a Cookie</h3>
<p>Cookies can also be passed to the request using <code>keep_headers=true</code>. The header then simply needs to contain the cookie name and value.</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>Browser</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">import</span> requests headers = { <span class="hljs-string">"apikey"</span>: <span class="hljs-string">"YOUR-APIKEY"</span>, <span class="hljs-string">"Cookie"</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">"true"</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">var</span> request = <span class="hljs-built_in">require</span>(<span class="hljs-string">'request'</span>);, <span class="hljs-keyword">var</span> headers = { <span class="hljs-string">'User-Agent'</span>: <span class="hljs-string">'123'</span>, <span class="hljs-string">'Cookie'</span>: <span class="hljs-string">'SESSIONID=27382738'</span> }; <span class="hljs-keyword">var</span> options = { <span class="hljs-attr">url</span>: <span class="hljs-string">'https://app.zenscrape.com/api/v1/get?apikey=YOUR-APIKEY&url=https://quotes.toscrape.com/cookies&keep_headers=true'</span> }; <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">callback</span>(<span class="hljs-params">error, response, body</span>) </span>{ <span class="hljs-keyword">if</span> (!error && response.statusCode == <span class="hljs-number">200</span>) { <span class="hljs-built_in">console</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">true</span>); curl_setopt($ch, CURLOPT_HEADER, <span class="hljs-literal">false</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">"true"</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">array</span>( <span class="hljs-string">"Content-Type: application/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">References,</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>Disclaimer</strong>: This part of the content is mainly from the merchant. If the merchant does not want it to be displayed on my website, please <a href="https://www.proxysp.com/contact-us/">contact us</a> to delete your content.</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://proxysp.com/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 Scraping Robot API? Learn Manuals Before You Buy</title>
		<link>https://proxysp.com/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/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[Want to buy Scraping Robot API for web scraping? Before that, you have to know how to use it. This article will give you a detailed &#8230;<p class="read-more"> <a class="ast-button" href="https://proxysp.com/how-to-use-scraping-robot-api/"> <span class="screen-reader-text">How to Use Scraping Robot API? Learn Manuals Before You Buy</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>Want to buy Scraping Robot API for web scraping? Before that, you have to know how to use it. This article will give you a detailed guide.</p></blockquote>
<h2>Scraping Robot API</h2>
<h3>Basic Usage</h3>
<header class="headline-container21aRBSn8Bqg6 headline-container_basic1DFntTggitfX">
<div class="markdown-body undefined excerptT2m-MzSJGRK7" role="doc-subtitle" data-testid="RDMD">
<p>This page will tell you about Scraping Robot's basic functionality</p>
</div>
</header>
<div class="markdown-body" data-testid="RDMD">
<p>The Scraping Robot API exposes a single API endpoint. Simply send an http-request to <a href="https://api.scrapingrobot.com/" target="_blank" rel="nofollow noopener">https://api.scrapingrobot.com</a> with your API key, passed as a query-parameter, and get the needed data.</p>
<p>All task-parameters are passed in a POST-body as a JSON-object.</p>
<div id="post-sample-code" class="heading-anchor anchor waypoint"><strong style="font-size: 16px;">POST Sample Code</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>Sample Code</p>
<pre class="p-0">{  
<span class="cm-property">  "url"</span>: <span class="cm-string">"https://www.scrapingrobot.com/"</span>,  
<span class="cm-property">  "module"</span>: <span class="cm-string">"HtmlChromeScraper"</span> 
}</pre>
<hr />
</div>
<h3>Authentication</h3>
<p>Every request to the Scraping Robot API should contain an access token. If a user does not pass the token or it is invalid &#8211; Scraping Robot will respond with status 401 (Unauthorized).</p>
<p>The token can be passed in two ways:</p>
<ul>
<li>As a query-parameter:
<ul>
<li>?token=</li>
</ul>
</li>
<li>In the Authorization header (bearer authentication):
<ul>
<li>Authorization: Bearer</li>
</ul>
</li>
</ul>
<p><strong>Note: </strong>To receive your Scraping Robot API access token you must register an account at <a href="https://dashboard.scrapingrobot.com/sign-up" target="_blank" rel="nofollow noopener">https://dashboard.scrapingrobot.com/sign-up</a>.</p>
<hr />
<h2>Error Handling</h2>
<h3>Authorization Parameter Missing</h3>
<p>If you forget to include your API key from your Scraping Robot dashboard as the &#8220;token&#8221; path parameter in your API call, we'll show you the error message on the right side of the screen.</p>
<p>Authorization Parameter Missing</p>
<pre>{
<span class="cm-property">   "status"</span>: <span class="cm-string">"FAIL"</span>,
<span class="cm-property">   "date"</span>: <span class="cm-string">"Thu, 01 Mar 2020 10:00:00 GMT"</span>,
<span class="cm-property">   "error"</span>: <span class="cm-string">"Token query parameter not found"</span>
}</pre>
<p>To rectify this error, please include your API key from your Scraping Robot dashboard as the &#8220;token&#8221; path parameter in your API call, so that you can be authorized to make the request to our system.</p>
<hr />
<h3>Invalid Authorization Parameter</h3>
<p>If you put an invalid API key as the &#8220;token&#8221; path parameter in your API call, we will show you the error message on the right side of the screen.</p>
<p>Invalid Authorization Parameter</p>
<pre>{
<span class="cm-property">   "status"</span>: <span class="cm-string">"FAIL"</span>,
<span class="cm-property">   "date"</span>: <span class="cm-string">"Thu, 01 Mar 2020 10:00:00 GMT"</span>,
<span class="cm-property">   "error"</span>: <span class="cm-string">"Invalid client token"</span>
}</pre>
<p>To rectify this error, please include your API key from your Scraping Robot dashboard as the &#8220;token&#8221; path parameter in your API call, so that you can be authorized to make the request to our system.</p>
<hr />
<h3>Not Enough Credits</h3>
<p>If you do not have enough credits in your account to perform the scraping task you're requesting, we will show you the error message on the right side of the screen.</p>
<p>Not Enough Credits</p>
<pre>{
  "status": "FAIL",
  "date": "Thu, 01 Mar 2020 10:00:00 GMT",
  "error": "You do not have enough credits"
}</pre>
<p>To rectify this error, please add scraping credits to your account through your Scraping Robot dashboard or <a href="https://scrapingrobot.com/contact-us/" target="_blank" rel="nofollow noopener">contact our support team</a> to get credits added to your account.</p>
<hr />
<h3>Request Body is not Valid JSON</h3>
<p>If you send in a request that does not have valid JSON, we will show you the error message on the right side of the screen.</p>
<p>Invalid JSON includes anything that is not in JSON format and does not have the structure of JSON. This is different than the &#8220;Invalid Request Body&#8221; error explained next.</p>
<p>Request Body is not Valid JSON</p>
<pre>{
  "status": "FAIL",
  "date":"Thu, 01 Mar 2020 10:00:00 GMT",
  "error": "Request-body is not a valid JSON"
}</pre>
<p>To rectify this error, please fix the JSON in the request body and try your request again. You can find JSON validators online to help you with getting your JSON correctly formatted.</p>
<hr />
<h3>Invalid Request Body</h3>
<p>If you send in a JSON body, but the body parameters are incorrect or out of order, we will show you the error message on the right side of the screen.</p>
<p>Invalid Request Body</p>
<pre>{ 
  "status": "FAIL", 
  "date":"Thu, 01 Mar 2020 10:00:00 GMT", 
  "error": "Invalid json format: ..." 
}</pre>
<p>To rectify this error, please review the API documentation for the request you're sending in to ensure all parameters are correct. If you cannot resolve the issue on your own, please <a href="https://scrapingrobot.com/contact-us/" target="_blank" rel="nofollow noopener">contact our support team</a> for assistance and we'll gladly help out!</p>
<hr />
<h3>Service Overloaded</h3>
<p>If our service is overloaded at the time of your request, we will show you the error message on the right side of the screen.</p>
<p>Service Overloaded</p>
<pre>{ 
  "status": "FAIL", 
  "date":"Thu, 01 Mar 2020 10:00:00 GMT", 
  "error": "The service is overloaded. Try again later" 
}</pre>
<p>To rectify this error, please <a href="https://scrapingrobot.com/contact-us/" target="_blank" rel="nofollow noopener">contact our support team</a> for updates on the situation.</p>
<hr />
<h3>Page Load Failure</h3>
<p>If Scraping Robot is unable to load the page you're trying to scrape, we will show you the error message on the right side of the screen.</p>
<p>Page Load Failure</p>
<pre>{ 
  "status": "FAIL", 
  "date":"Thu, 01 Mar 2020 10:00:00 GMT", 
  "error": "Please retry this task again later" 
}</pre>
<p>To rectify this error, please <a href="https://scrapingrobot.com/contact-us/" target="_blank" rel="nofollow noopener">contact our support team</a> for assistance.</p>
<hr />
<h3>Internal Error</h3>
<p>If there is an issue with our system, we will show you the error message on the right side of the screen.</p>
<p>Internal Error</p>
<pre>{ 
  "error": "Internal server error", 
  "date": "Thu, 01 Mar 2020 10:00:00 GMT", 
  "status": "FAIL" 
}</pre>
<p>To rectify this error, please <a href="https://scrapingrobot.com/contact-us/" target="_blank" rel="nofollow noopener">contact our support team</a> for assistance.</p>
<hr />
<h2>Credits</h2>
<h3>Get Credit Balance</h3>
<p><span class="APIMethod APIMethod_fixedWidth APIMethod_get headline-container-api-method1Hc-Fm7uaccR" data-testid="http-method">GET </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>Get Credit Usage Statistics</h3>
</div>
<div class="headline-container-article-info2GaOf2jMpV0r"><span class="APIMethod APIMethod_fixedWidth APIMethod_get headline-container-api-method1Hc-Fm7uaccR" data-testid="http-method">get</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>This endpoint will show you your credit usage over the specified time period.</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>Node</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">Tab title</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">Request</span></p>
<div class="card-body">
<pre class="p-0"><span class="hljs-string">curl --request GET \
--url 'https://api.scrapingrobot.com/balance?token=&lt;YOUR_SR_TOKEN&gt;' \
--header 'Accept: application/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">Request</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">Request</span></p>
<div class="card-body">
<pre class="p-0">&lt;?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client-&gt;request('GET', 'https://api.scrapingrobot.com/balance?token=&lt;YOUR_SR_TOKEN&gt;', [
'headers' =&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">Request</span></p>
<div class="card-body">
<pre class="p-0">import requests

url = "https://api.scrapingrobot.com/balance?token=&lt;YOUR_SR_TOKEN&gt;"

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">Request</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=&lt;YOUR_SR_TOKEN&gt;', 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">Request</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=&lt;YOUR_SR_TOKEN&gt;");

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>Create a task using POST-request</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">post</span> <span class="headline-container-article-info-url2nV_XrjpFuVQ" title="https://api.scrapingrobot.com/" data-testid="serverurl">https://api.scrapingrobot.com/</span></div>
<div>Create scraping task</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>Node</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>Request</p>
<pre class="p-0">curl --request GET \
--url 'https://api.scrapingrobot.com/stats?token=&lt;YOUR_SR_TOKEN&gt;&type=daily' \
--header 'Accept: 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>Request</p>
<pre class="p-0">const fetch = require('node-fetch');

const url = 'https://api.scrapingrobot.com/stats?token=&lt;YOUR_SR_TOKEN&gt;&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>Request</p>
<pre class="p-0">&lt;?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client-&gt;request('GET', 'https://api.scrapingrobot.com/stats?token=&lt;YOUR_SR_TOKEN&gt;&type=daily', [
'headers' =&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>Request</p>
<pre class="p-0">import requests

url = "https://api.scrapingrobot.com/stats?token=&lt;YOUR_SR_TOKEN&gt;&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>Request</p>
<pre class="p-0">const options = {method: 'GET', headers: {Accept: 'application/json'}};

fetch('https://api.scrapingrobot.com/stats?token=&lt;YOUR_SR_TOKEN&gt;&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>Request</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=&lt;YOUR_SR_TOKEN&gt;&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>Create a task using 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">get</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>Create scraping task</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>Node</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">Request</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">Request</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">Request</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">Request</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">Request</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">Request</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>Get current credits balance</h3>
<div class="headline-container-grid-itemGdPV-VbhShYs button-containerobFfV0vf6giV">
<p><strong>/balance</strong></p>
<p><span class="APIMethod APIMethod_fixedWidth APIMethod_get headline-container-api-method1Hc-Fm7uaccR" data-testid="http-method">get</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>Get current credits balance</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>Node</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">Request</span></p>
<pre class="p-0">curl --request GET \
--url https://api.scrapingrobot.com/ \
--header 'Accept: 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">Request</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">Request</span></p>
<pre class="p-0">&lt;?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client-&gt;request('GET', 'https://api.scrapingrobot.com/?responseType=json&waitUntil=load&noScripts=false&noImages=true&noFonts=true&noCss=true', [
'headers' =&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">Request</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"

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">Request</span></p>
<pre class="p-0">const options = {method: 'GET', headers: {Accept: 'application/json'}};

fetch('https://api.scrapingrobot.com/?responseType=json&waitUntil=load&noScripts=false&noImages=true&noFonts=true&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">Request</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&waitUntil=load&noScripts=false&noImages=true&noFonts=true&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">References,</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>Disclaimer</strong>: This part of the content is mainly from the merchant. If the merchant does not want it to be displayed on my website, please <a href="https://www.proxysp.com/contact-us/">contact us</a> to delete your content.</p></blockquote>
<pre class="p-0"></pre>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://proxysp.com/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>911 Proxy Developer API (Offline!)</title>
		<link>https://proxysp.com/911-proxy-developer-api/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=911-proxy-developer-api</link>
					<comments>https://proxysp.com/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[Please note that the API only works for getting a new proxy from &#8220;ProxyList&#8221;, and can not be used to reuse the proxy from &#8220;TodayList&#8221;. The &#8230;<p class="read-more"> <a class="ast-button" href="https://proxysp.com/911-proxy-developer-api/"> <span class="screen-reader-text">911 Proxy Developer API (Offline!)</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<div class="inner-wrap">
<div class="container">
<p><span style="font-size: 16px;">Please note that the API only works for getting a new proxy from &#8220;ProxyList&#8221;, and can not be used to reuse the proxy from &#8220;TodayList&#8221;. The following are how to use the API and examples</span></p>
<div class="api-wrap">
<p>After login to the software, switch to the AutoProxy tab, select &#8220;Use API&#8221; from &#8220;API settings,&#8221; and you need to keep the software staying logged in when you use the API:</p>
<p>In the software's root folder, there's a subfolder: &#8220;proxytool&#8221; and there's a file &#8220;Autoproxytool.exe&#8221; in it</p>
<p>Using your soft/script which want to implement the api to launch &#8220;Autoproxytool.exe&#8221; with the following parameters, then you are able to change proxy automatically：</p>
<p><b>Autoproxytool.exe -changeproxy/all</b> use a random proxy from any countries</p>
<p><b>Autoproxytool.exe -changeproxy/US </b>use a random proxy from US</p>
<p><b>Autoproxytool.exe -changeproxy/US/NY</b> use a random proxy from US, state: NewYork</p>
<p><b>Autoproxytool.exe -changeproxy/US/NY/&#8221;New York&#8221;</b> use a random proxy from US, state: NewYork, city: New York</p>
<p>For country you need to enter the country ISO alpha-2 code, if you have no idea, you can google: country ISO alpha-2 code</p>
<p><b>-citynolimit</b> you can use the parameter like this:</p>
<p><b>Autoproxytool.exe -changeproxy/US/NY/&#8221;New York&#8221;/ -citynolimit</b></p>
<p>Which means the API system will firstly try to get a proxy from the City you set(New York) for higher priority, Only if there's no proxy available from that City, then it will try to get a proxy from the State you set(NY). If proxy is available from that City, it wont try from the State(NY)</p>
<p><b>Autoproxytool.exe -changeproxy/ -ip=123.123.123.123</b></p>
<p>Get a proxy by ip. You can replace * in the ip address to get any proxy from that ip block, e.g: <b>Autoproxytool.exe -changeproxy/ -ip=123.123.*.*</b> or <b>Autoproxytool.exe -changeproxy/ -ip=123.*.*.*</b></p>
<p><b>Autoproxytool.exe -proxyport=</b></p>
<p>Forward a proxy to a port, the port need to be in the &#8220;port forward&#8221; range in software &#8220;Settings&#8221;, Each time using the parameter will result in replacing a new proxy to this port</p>
<p><b>Autoproxytool.exe -freeport=</b></p>
<p>Free the port and unload the proxy</p>
<p><b>Autoproxytool.exe -proxyport=all</b></p>
<p>Forward proxies to all the ports in the &#8220;port forward&#8221; range in software &#8220;Settings&#8221;, Each time using the parameter will result in replacing new proxies to all these ports</p>
<p><b>Autoproxytool.exe -freeport=all</b></p>
<p>Free all the ports and unload all the proxies</p>
<p><b>Autoproxytool.exe -isp=</b></p>
<p>Use a random proxy from the isp, it also supports fuzzy search by using *, e.g Autoproxytool.exe -isp=S*, means to get a proxy with ISP starting with &#8220;S&#8221;, Autoproxytool.exe -isp=*Cable, means to get a proxy with ISP ending with &#8220;Cable&#8221;</p>
<p><b>Autoproxytool.exe -zip=</b></p>
<p>Use a random proxy from the zip location, it also supports fuzzy search by using *, e.g Autoproxytool.exe -zip=800*, means to get a proxy with ZIP starting with &#8220;800&#8221;</p>
<p>And these parameters mentioned above can be used as a combo, some examples:</p>
<p><b>Autoproxytool.exe -changeproxy/US/NY/&#8221;New York&#8221; -proxyport=5000</b></p>
<p><b>Autoproxytool.exe -changeproxy/US/NY -proxyport=all</b></p>
<p><b>Autoproxytool.exe -changeproxy/US/NY -isp=&#8221;Time Warner Cable&#8221;</b></p>
<p><b>Autoproxytool.exe -changeproxy/US -zip=92626</b></p>
<p><b>Autoproxytool.exe -changeproxy/US/NY -isp=&#8221;Time Warner Cable&#8221; -proxyport=5000</b></p>
<p><b>Autoproxytool.exe -changeproxy/US -zip=92626 -proxyport=5000</b></p>
<hr />
<p><b>-hwnd=</b></p>
<p>With using <b>-hwnd=</b> parameter, <b>Autoproxytool.exe</b> will send WM_COPYDATA message to your soft which launches <b>Autoproxytool.exe</b>, so that your soft is able to get postcheck and more info of the proxy, you also need to pass the Window Handle of your soft which launches <b>Autoproxytool.exe</b> and <b>Autoproxytool.exe</b> will send you WM_COPYDATA message with the following format and info:</p>
<p>1. if the proxy successful get by api:</p>
<p>success|ip|Ping|ProxyCountry|ProxyState|ProxyCity|911s5 account balance</p>
<p>2. if the proxy failed to get by api:</p>
<p>failed|reason for failure</p>
<p>Some examples of how to use it:</p>
<p><b>Autoproxytool.exe -changeproxy/US/NY/&#8221;New York&#8221; -hwnd=YOUR SOFT'S WINDOW HANDLE</b></p>
<p><b>Autoproxytool.exe -changeproxy/US/NY/&#8221;New York&#8221; -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/&#8221;New York&#8221; -proxyport=5000 -hwnd=YOUR SOFT'S WINDOW HANDLE</b></p>
<p><b>Autoproxytool.exe -changeproxy/US/NY -isp=&#8221;Time Warner Cable&#8221; -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>Auto change proxy from the software:</p>
<p>In &#8220;AutoProxy&#8221; tab, the features of &#8220;AutoProxy Settings&#8221; its not for API, its designed for auto swiching proxy according to the configs, you can set the frequency to auto change proxy and set delay of time range to auto launch your program, etc. <b>For using this feature, you need to unselect &#8220;Use API&#8221; from &#8220;API Settings&#8221;</b></p>
</div>
<div class="api-wrap big">
<p><b>Updated time: Sep 12th 2019</b></p>
<p>Since 911 S5 3.2, We developed a new API program for port forwarding</p>
<p>The new API program works with multi-thread, you can send multiple API requests at the same time(The old API program Autoproxytool.exe only can handle your request one by one with single thread, you have to wait until the last request get processed)</p>
<p>If your work requires high efficiency which need to send a lot of API requests, we suggest you to use the new API:</p>
<p>In the software's root folder, there's a sub folder: &#8220;proxytool&#8221; and there's a file &#8220;ProxyAPI.exe&#8221; in it</p>
<p>Launching &#8220;ProxyAPI.exe&#8221; with parameters from your soft/script, <b>the parameters and format its exactly the same like using the old API program(Autoproxytool.exe), the only difference is you need to include this parameter &#8220;-proxyport=&#8221;, the port behind this parameter must be in the &#8220;Port Forward&#8221; range of 911 S5's &#8220;Settings&#8221; tab.</b> Please note, you need to keep 911 S5 staying logged in when you use the API. Here are some examples of using the new API:</p>
<p><b>ProxyAPI.exe -changeproxy/US/NY/&#8221;New York&#8221; -proxyport=5000</b>, Port forwarding a proxy from New York to port 5000</p>
<p><b>ProxyAPI.exe -changeproxy/ -ip=123.123.*.* -proxyport=5000 -hwnd=YOUR SOFT'S WINDOW HANDLE</b>, Port forwarding a proxy from IP range &#8220;123.123.*.*&#8221; to port 5000, and send WM_COPYDATA message to your soft</p>
<p><b>ProxyAPI.exe -changeproxy/US/NY/&#8221;New York&#8221; -citynolimit -proxyport=5000</b></p>
<p><b>ProxyAPI.exe -changeproxy/US/NY -isp=&#8221;Time Warner Cable&#8221; -proxyport=5000</b>, Port forwarding a proxy from the US, NY, with ISP Time Warner Cable to port 5000</p>
<p><b>ProxyAPI.exe -changeproxy/US -zip=92626 -proxyport=5000</b>, Port forwarding a proxy from the US with ZIP code &#8220;92626&#8221; to port 5000</p>
<p><b>ProxyAPI.exe -changeproxy/US/NY -proxyport=all</b>, Port forwarding proxies from the US, NY to all the available ports(all the ports in &#8220;Port Forward&#8221; range of 911 S5's &#8220;Settings&#8221; tab)</p>
<p><b>ProxyAPI.exe -freeport=5000</b>, Free port 5000 and unload the proxy</p>
<p><b>ProxyAPI.exe -freeport=all</b>, Free all the ports and unload all the proxies</p>
<hr />
<ul>
<li><a href="https://www.proxysp.com/how-to-use-911-proxies/">How to Use 911 S5 Proxy</a></li>
<li><a href="https://www.proxysp.com/911-s5-proxy/">911 S5 Proxy Review</a></li>
</ul>
</div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://proxysp.com/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>
