{"id":8485,"date":"2022-05-16T07:11:18","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"https:\/\/www.proxysp.com\/?p=8485"},"modified":"2023-12-12T02:58:14","modified_gmt":"2023-12-12T02:58:14","slug":"free-proxyscrape-api","status":"publish","type":"post","link":"https:\/\/proxysp.com\/zh\/free-proxyscrape-api\/","title":{"rendered":"\u5982\u4f55\u4f7f\u7528\u514d\u8d39\u7684 ProxyScrape API"},"content":{"rendered":"<blockquote><p>\u4f60\u77e5\u9053\u5982\u4f55\u4f7f\u7528\u514d\u8d39\u7684 ProxyScrape API \u5417\uff1f\u672c\u6587\u5c06\u4e3a\u60a8\u63d0\u4f9b\u8be6\u7ec6\u6307\u5bfc\u3002<\/p><\/blockquote>\n<p>\u8be5 API \u7528\u4e8e\u6211\u4eec\u7684\u514d\u8d39\u4ee3\u7406\u5217\u8868\uff0c\u5176\u8fd4\u56de\u7684\u7ed3\u679c\u53ef\u5728\u4efb\u4f55\u5730\u65b9\u514d\u8d39\u4f7f\u7528\u3002<\/p>\n<h2>\u83b7\u53d6\u4ee3\u7406\u5217\u8868<\/h2>\n<pre>https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all<\/pre>\n<div>\n<div><strong>\u4ee3\u7801\u6837\u672c\u3001<\/strong><\/div>\n<div><\/div>\n<div>\n<h3>C#<\/h3>\n<pre>var client = new RestClient(\"https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all\"); client.Timeout = -1; var request = new RestRequest(Method.GET); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content)\uff1b<\/pre>\n<h3>CURL<\/h3>\n<pre>curl --location --request GET 'https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all'<\/pre>\n<h3>\u98de\u9556 - Http<\/h3>\n<pre>var request = http.Request('GET', Uri.parse('https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all')); http.StreamedResponse response = await request.send(); if (response.statusCode == 200) { print(await response.stream.bytesToString()); } else { print(response.reasonPhrase); } }<\/pre>\n<h3>\u56f4\u68cb - \u672c\u5730<\/h3>\n<pre>package main import ( \"fmt\" \"net\/http\" \"io\/ioutil\" ) func main() { url := \"https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all\" method := \"GET\" client := &amp;http.Client { } req, err := http.NewRequest(method, url, nil) if err != nil { fmt.Println(err return } res, err := client.Do(req) if err != nilNewRequest(method, url, nil) if err != nil { fmt.Println(err) return } res, err := client.Do(req) if err != nil { fmt.Println(err) return } defer res.Body.Close() body, err := ioutil.ReadAll(res.Body) if err != nil { fmt.Println(err) return } fmt.Println(string(body)) }<\/pre>\n<h3>\u8d85\u6587\u672c\u4f20\u8f93\u534f\u5b9a<\/h3>\n<pre>GET \/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all HTTP\/1.1 Host: api.proxyscrape.com<\/pre>\n<h3>java okhttp<\/h3>\n<pre>OkHttpClient client = new OkHttpClient().newBuilder() .build(); Request request = new Request.Builder() .url(\"https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all\") .method(\"GET\", null) .build(); Response response = client.newCall(request).execute()\uff1b<\/pre>\n<\/div>\n<\/div>\n<h3>JavaScript - \u6293\u53d6<\/h3>\n<pre>var requestOptions = { method: 'GET', redirect: 'follow' }; fetch(\"https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all\", requestOptions) .then(response =&gt; response.text()) .then(result =&gt; console.log(result)) .catch(error =&gt; console.log('error', error))\uff1b<\/pre>\n<h3>JavaScript - jQuery<\/h3>\n<pre>var settings = { \"url\"\uff1a\"https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all\", \"method\"\uff1a\"GET\", \"timeout\"\uff1a0, }; $.ajax(settings).done(function (response) { console.log(response); })\uff1b<\/pre>\n<h3>JavaScript - XHR<\/h3>\n<pre> var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener(\"readystatechange\", function() { if(this.readyState === 4) { console.log(this.responseText); }.}); xhr.open(\"GET\", \"https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all\"); xhr.send()\uff1b<\/pre>\n<h3>C - libcurl<\/h3>\n<pre>CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, \"GET\"); curl_easy_setopt(curl, CURLOPT_URL, \"https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all\"); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, \"https\")\uff1bstruct curl_slist *headers = NULL; curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); res = curl_easy_perform(curl); } curl_easy_cleanup(curl)\uff1b<\/pre>\n<h3>NodeJs - Axios<\/h3>\n<pre>var axios = require('axios'); var config = { method: 'get', url\uff1ahttps:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all', headers\uff1a{ }}; axios(config) .then(function (response) { console.log(JSON.stringify(response.data)); }) .catch(function (error) { console.log(error); })\uff1b<\/pre>\n<div class=\"styles__LanguageDropdownContainer-a58kfo-12 jvdkTJ\">\n<div class=\"styles__DropDownContainer-a58kfo-0 htYUoE\" tabindex=\"-1\">\n<div class=\"styles__DropdownSelectorContainer-a58kfo-11 cvEhHU\">\n<div class=\"styles__DropDownHeader-a58kfo-1 fpZSxZ\">\n<h3 class=\"styles__DropDownValue-a58kfo-3 dUOehM\">NodeJs - \u672c\u5730<\/h3>\n<pre>var https = require('follow-redirects').https; var fs = require('fs'); var options = { 'method': 'GET', 'hostname': 'api.proxyscrape.com', 'path': '\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all', 'headers': { }, 'maxRedirects': 20 }; var req = https.request(options, function (res) { var chunks = []; res.on(\"data\", function (chunk) { chunks.push(chunk); }); res.on(\"end\", function (chunk) { var body = Buffer.concat(chunks); console.log(body.toString()); }); res.on(\"error\", function (error) { console.error(error); }); }); req.end()\uff1b<\/pre>\n<div><\/div>\n<\/div>\n<h3>DNodeJs - \u8bf7\u6c42<\/h3>\n<\/div>\n<\/div>\n<\/div>\n<pre>var request = require('request'); var options = { 'method': 'GET', 'url': 'https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all', 'headers': { }.}; request(options, function (error, response) { if (error) throw new Error(error); console.log(response.body); })\uff1b<\/pre>\n<div><\/div>\n<h3>PHP - cURL<\/h3>\n<pre>'https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all', CURLOPT_RETURNTRANSFER =&gt; true, CURLOPT_ENCODING =&gt; ''\u3001CURLOPT_MAXREDIRS =&gt; 10, CURLOPT_TIMEOUT =&gt; 0, CURLOPT_FOLLOWLOCATION =&gt; true, CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST =&gt; 'GET', ))\uff1b$response = curl_exec($curl); curl_close($curl); echo $response\uff1b<\/pre>\n<div><\/div>\n<h3>Python - http.client<\/h3>\n<pre>import http.client conn = http.client.HTTPSConnection(\"api.proxyscrape.com\") payload = '' headers = {} conn.request(\"GET\", \"\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all\", payload, headers) res = conn.getresponse() data = res.read() print(data.decode(\"utf-8\"))<\/pre>\n<div><\/div>\n<h3>Python - \u8bf7\u6c42<\/h3>\n<pre>import requests url = \"https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all\" payload={} headers = {} response = requests.request(\"GET\", url, headers=headers, data=payload) print(response.text)<\/pre>\n<div><\/div>\n<h3>Ruby - Net::HTTP<\/h3>\n<pre>require \"uri\" require \"net\/http\" url = URI(\"https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all\") https = Net::HTTP.new(url.host, url.port) https.use_ssl = true request = Net::HTTP::Get.new(url) response = https.request(request) puts response.read_body<\/pre>\n<div><\/div>\n<h3>\u5916\u58f3 - Httpie<\/h3>\n<pre>http --follow --timeout 3600 GET 'https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all'<\/pre>\n<div><\/div>\n<h3>\u5916\u58f3 - \u83b7\u53d6<\/h3>\n<pre>wget --no-check-certificate --quiet \\ --method GET \\ --timeout=0 \\ --header '' \\ 'https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all'<\/pre>\n<p>&nbsp;<\/p>\n<h3>Swift - URLSession<\/h3>\n<pre>import Foundation #if canImport(FoundationNetworking) import FoundationNetworking #endif var semaphore = DispatchSemaphore (value: 0) var request = URLRequest(url\uff1aURL(string\uff1a\"https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all\")!,timeoutInterval\uff1arequest.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>\n<div><\/div>\n<div>\n<div>\u53c2\u6570<\/div>\n<div><div class=\"su-table su-table-responsive su-table-alternate su-table-fixed\"><\/div>\n<div>\n<table width=\"298\">\n<tbody>\n<tr>\n<td style=\"font-weight: 400;\" width=\"72\">\u8981\u6c42<\/td>\n<td style=\"font-weight: 400;\" width=\"226\">\u663e\u793a\u4ee3\u7406<br \/>\n\u5b9a\u4e49\u4ee3\u7406\u662f\u5728\u6d4f\u89c8\u5668\u4e2d\u4e0b\u8f7d\u8fd8\u662f\u663e\u793a\u3002\u53ef\u80fd\u7684\u503c<\/p>\n<ul>\n<li>displayproxies\uff1a\u5728\u6d4f\u89c8\u5668\u4e2d\u663e\u793a\u4ee3\u7406\u670d\u52a1\u5668<\/li>\n<li>getproxies\uff1a\u4e0b\u8f7d\u4ee3\u7406\u670d\u52a1\u5668<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"font-weight: 400;\" width=\"72\">\u89c4\u7a0b<\/td>\n<td style=\"font-weight: 400;\" width=\"226\">http<br \/>\n\u5e94\u4e0b\u8f7d\u7684\u4ee3\u7406\u534f\u8bae\u3002\u53ef\u80fd\u7684\u503c<\/p>\n<ul>\n<li>http<\/li>\n<li>\u889c\u5b504<\/li>\n<li>\u889c\u5b505<\/li>\n<li>\u4e00\u5e94\u4ff1\u5168<\/li>\n<\/ul>\n<p>\u5982\u679c\u8981\u540c\u65f6\u4e0b\u8f7d\u4e24\u4e2a\u534f\u8bae\uff0c\u53ef\u4ee5\u7528\u9017\u53f7\u5206\u9694\u8fd9\u4e9b\u503c\uff0c\u4f8b\u5982\uff1aprotocol=socks4,socks5<br \/>\n\u5982\u679c\u672a\u5b9a\u4e49\u6b64\u53c2\u6570\uff0c\u5219\u9ed8\u8ba4\u4e3a\u5168\u90e8\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"font-weight: 400;\" width=\"72\">\u8d85\u65f6<\/td>\n<td style=\"font-weight: 400;\" width=\"226\">10000<br \/>\n\u5e94\u4e0b\u8f7d\u4ee3\u7406\u7684\u6700\u5927\u8d85\u65f6\uff08\u6beb\u79d2\uff09\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"font-weight: 400;\" width=\"72\">\u56fd\u5bb6<\/td>\n<td style=\"font-weight: 400;\" width=\"226\">\u4e00\u5e94\u4ff1\u5168<br \/>\n\u56fd\u5bb6\u53c2\u6570\u53ef\u4ee5\u662f\u4efb\u4f55 Alpha 2 ISO \u56fd\u5bb6\u4ee3\u7801\u6216 \"\u5168\u90e8\"\u3002\u672a\u5b9a\u4e49\u56fd\u5bb6\u65f6\uff0c\u56fd\u5bb6\u5c06\u81ea\u52a8\u8bbe\u7f6e\u4e3a \"\u5168\u90e8\"\u3002\u60a8\u4e5f\u53ef\u4ee5\u5728\u4e00\u4e2a\u8bf7\u6c42\u4e2d\u4f7f\u7528\u591a\u4e2a\u56fd\u5bb6\uff0c\u65b9\u6cd5\u662f\u7528\u9017\u53f7\u5206\u9694\u5b83\u4eec\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"font-weight: 400;\" width=\"72\">ssl<\/td>\n<td style=\"font-weight: 400;\" width=\"226\">\u4e00\u5e94\u4ff1\u5168<br \/>\n\u4ee3\u7406\u670d\u52a1\u5668\u662f\u5426\u652f\u6301 SSL\uff08HTTPS\uff09\uff1f\u6b64\u53c2\u6570\u4ec5\u7528\u4e8e\u4e0b\u8f7d HTTP \u4ee3\u7406\u670d\u52a1\u5668\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"font-weight: 400;\" width=\"72\">\u533f\u540d\u6027<\/td>\n<td style=\"font-weight: 400;\" width=\"226\">\u4e00\u5e94\u4ff1\u5168<br \/>\n\u5b9a\u4e49\u4ee3\u7406\u5e94\u5177\u6709\u7684\u533f\u540d\u7ea7\u522b\uff1a<\/p>\n<ul>\n<li>\u4fca\u6770<\/li>\n<li>\u533f\u540d<\/li>\n<li>\u900f\u660e<\/li>\n<li>\u4e00\u5e94\u4ff1\u5168<\/li>\n<\/ul>\n<p>\u5982\u679c\u672a\u5b9a\u4e49\u533f\u540d\u7ea7\u522b\uff0c\u5219\u9ed8\u8ba4\u4e3a \"\u5168\u90e8\"\u3002\u60a8\u4e5f\u53ef\u4ee5\u5728\u4e00\u4e2a\u8bf7\u6c42\u4e2d\u4f7f\u7528\u591a\u4e2a\u533f\u540d\u7ea7\u522b\uff0c\u65b9\u6cd5\u662f\u7528\u9017\u53f7\u5206\u9694\u5b83\u4eec\u3002<br \/>\n\u8be5\u53c2\u6570\u4ec5\u9002\u7528\u4e8e HTTP(s) \u4ee3\u7406\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"styles__ExampleTitle-sc-1gk0rxh-1 coCuLw\">\u8bf7\u6c42\u793a\u4f8b\uff1a<\/div>\n<div>\n<pre class=\"language-javascript\"><code class=\"language-javascript\"><span class=\"token keyword\">\u53d8\u5f02<\/span> \u8981\u6c42 <span class=\"token operator\">=<\/span> http<span class=\"token punctuation\">.<\/span><span class=\"token function\">\u8981\u6c42<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">GET<\/span><span class=\"token punctuation\">,<\/span> \u4e4c\u91cc<span class=\"token punctuation\">.<\/span><span class=\"token function\">\u89e3\u6790<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">'https:\/\/api.proxyscrape.com\/v2\/?request=displayproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all'<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n\r\n\r\nhttp<span class=\"token punctuation\">.<\/span>StreamedResponse \u54cd\u5e94 <span class=\"token operator\">=<\/span> <span class=\"token keyword\">\u7b49<\/span> \u8981\u6c42<span class=\"token punctuation\">.<\/span><span class=\"token function\">\u53d1\u9001<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n\r\n<span class=\"token keyword\">\u5982\u679c<\/span> <span class=\"token punctuation\">(<\/span>\u56de\u5e94<span class=\"token punctuation\">.<\/span>\u72b6\u6001\u4ee3\u7801 <span class=\"token operator\">==<\/span> <span class=\"token number\">200<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span>\r\n  <span class=\"token function\">\u6253\u5370<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">\u7b49<\/span> \u56de\u5e94<span class=\"token punctuation\">.<\/span>\u6eaa\u6d41<span class=\"token punctuation\">.<\/span><span class=\"token function\">\u5b57\u8282\u5230\u5b57\u7b26\u4e32<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n<span class=\"token punctuation\">}<\/span>\r\n<span class=\"token keyword\">\u4e0d\u7136<\/span> <span class=\"token punctuation\">{<\/span>\r\n  <span class=\"token function\">\u6253\u5370<\/span><span class=\"token punctuation\">(<\/span>\u56de\u5e94<span class=\"token punctuation\">.<\/span>\u539f\u56e0<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n<span class=\"token punctuation\">}<\/span><\/code><\/pre>\n<\/div>\n<hr \/>\n<h2>\u83b7\u53d6\u4ee3\u7406\u5217\u8868\u8be6\u60c5<\/h2>\n<pre>https:\/\/api.proxyscrape.com\/v2\/?request=proxyinfo<\/pre>\n<div><span style=\"font-size: 16px;\">\u6b64 API \u7aef\u70b9\u5c06\u8fd4\u56de\u53ef\u7528\u4ee3\u7406\u7684\u4fe1\u606f\uff0c\u4f8b\u5982<\/span><\/div>\n<div>\n<ul>\n<li>\u53ef\u7528\u4ee3\u7406\u6743\u6570\u91cf<\/li>\n<li>\u4ee3\u7406\u5217\u8868\u4e0a\u6b21\u66f4\u65b0\u540e\u7684\u65f6\u95f4<\/li>\n<li>\u53ef\u7528\u56fd\u5bb6<\/li>\n<li>\u4ee3\u7406\u673a\u6784\u7684\u76f8\u5173\u7ec4\u7ec7<\/li>\n<li>\u4ee3\u7406\u7aef\u53e3<\/li>\n<\/ul>\n<p>\u6b64 API \u7aef\u70b9\u8fd8\u652f\u6301 \"\u83b7\u53d6\u4ee3\u7406\u5217\u8868 \"\u4e2d\u63cf\u8ff0\u7684\u6240\u6709\u53c2\u6570\u3002<\/p>\n<p>\u53c2\u6570<\/p>\n<div class=\"su-table su-table-responsive su-table-alternate su-table-fixed\">\n<table width=\"298\">\n<tbody>\n<tr>\n<td style=\"font-weight: 400;\" width=\"72\">\u8981\u6c42<\/td>\n<td style=\"font-weight: 400;\" width=\"226\">\u4ee3\u7406\u4fe1\u606f<\/td>\n<\/tr>\n<tr>\n<td style=\"font-weight: 400;\" width=\"72\">\u7b80\u5316<\/td>\n<td style=\"font-weight: 400;\" width=\"226\">\u771f<br \/>\n\u5982\u679c\u53ea\u60f3\u63a5\u6536\u53ef\u7528\u4ee3\u7406\u7684\u6570\u91cf\uff0c\u8bf7\u4f7f\u7528\u6b64\u53c2\u6570\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"styles__ExampleTitle-sc-1gk0rxh-1 coCuLw\">\u7533\u8bf7\u793a\u4f8b<\/div>\n<div>\n<pre class=\"language-javascript\"><code class=\"language-javascript\"><span class=\"token keyword\">\u53d8\u5f02<\/span> \u8981\u6c42 <span class=\"token operator\">=<\/span> http<span class=\"token punctuation\">.<\/span><span class=\"token function\">\u8981\u6c42<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">GET<\/span><span class=\"token punctuation\">,<\/span> \u4e4c\u91cc<span class=\"token punctuation\">.<\/span><span class=\"token function\">\u89e3\u6790<\/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>\r\n\r\n\r\nhttp<span class=\"token punctuation\">.<\/span>StreamedResponse \u54cd\u5e94 <span class=\"token operator\">=<\/span> <span class=\"token keyword\">\u7b49<\/span> \u8981\u6c42<span class=\"token punctuation\">.<\/span><span class=\"token function\">\u53d1\u9001<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n\r\n<span class=\"token keyword\">\u5982\u679c<\/span> <span class=\"token punctuation\">(<\/span>\u56de\u5e94<span class=\"token punctuation\">.<\/span>\u72b6\u6001\u4ee3\u7801 <span class=\"token operator\">==<\/span> <span class=\"token number\">200<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span>\r\n  <span class=\"token function\">\u6253\u5370<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">\u7b49<\/span> \u56de\u5e94<span class=\"token punctuation\">.<\/span>\u6eaa\u6d41<span class=\"token punctuation\">.<\/span><span class=\"token function\">\u5b57\u8282\u5230\u5b57\u7b26\u4e32<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n<span class=\"token punctuation\">}<\/span>\r\n<span class=\"token keyword\">\u4e0d\u7136<\/span> <span class=\"token punctuation\">{<\/span>\r\n  <span class=\"token function\">\u6253\u5370<\/span><span class=\"token punctuation\">(<\/span>\u56de\u5e94<span class=\"token punctuation\">.<\/span>\u539f\u56e0<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n<span class=\"token punctuation\">}<\/span><\/code><\/pre>\n<\/div>\n<\/div>\n<hr \/>\n<h4 id=\"references\" class=\"ftwp-heading\">\u53c2\u8003\u8d44\u6599<\/h4>\n<ul>\n<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>\n<\/ul>\n<hr \/>\n<blockquote><p><strong>\u514d\u8d23\u58f0\u660e<\/strong>:\u8fd9\u90e8\u5206\u5185\u5bb9\u4e3b\u8981\u6765\u81ea\u5546\u5bb6\u3002\u5982\u679c\u5546\u5bb6\u4e0d\u5e0c\u671b\u5728\u6211\u7684\u7f51\u7ad9\u4e0a\u663e\u793a\uff0c\u8bf7\u00a0<a href=\"https:\/\/www.proxysp.com\/contact-us\/\">\u8054\u7cfb\u6211\u4eec<\/a>\u00a0\u5220\u9664\u60a8\u7684\u5185\u5bb9\u3002<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>\u4f60\u77e5\u9053\u5982\u4f55\u4f7f\u7528\u514d\u8d39\u7684 ProxyScrape API \u5417\uff1f\u672c\u6587\u5c06\u4e3a\u60a8\u63d0\u4f9b\u8be6\u7ec6\u6307\u5bfc\u3002\u6b64 API \u7528\u4e8e\u6211\u4eec\u7684\u514d\u8d39\u4ee3\u7406\u5217\u8868\u548c...<\/p>\n<p class=\"read-more\"> <a class=\"ast-button\" href=\"https:\/\/proxysp.com\/zh\/free-proxyscrape-api\/\"> <span class=\"screen-reader-text\">\u5982\u4f55\u4f7f\u7528\u514d\u8d39\u7684 ProxyScrape API<\/span> \u67e5\u770b\u5168\u6587 \"<\/a><\/p>","protected":false},"author":3,"featured_media":8580,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[126,120],"tags":[],"modified_by":"proxysp","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/proxysp.com\/wp-content\/uploads\/2021\/09\/how-to-use-free-ProxyScrape-API.png","_links":{"self":[{"href":"https:\/\/proxysp.com\/zh\/wp-json\/wp\/v2\/posts\/8485"}],"collection":[{"href":"https:\/\/proxysp.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/proxysp.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/proxysp.com\/zh\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/proxysp.com\/zh\/wp-json\/wp\/v2\/comments?post=8485"}],"version-history":[{"count":11,"href":"https:\/\/proxysp.com\/zh\/wp-json\/wp\/v2\/posts\/8485\/revisions"}],"predecessor-version":[{"id":11673,"href":"https:\/\/proxysp.com\/zh\/wp-json\/wp\/v2\/posts\/8485\/revisions\/11673"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/proxysp.com\/zh\/wp-json\/wp\/v2\/media\/8580"}],"wp:attachment":[{"href":"https:\/\/proxysp.com\/zh\/wp-json\/wp\/v2\/media?parent=8485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/proxysp.com\/zh\/wp-json\/wp\/v2\/categories?post=8485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/proxysp.com\/zh\/wp-json\/wp\/v2\/tags?post=8485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}