string
所有调用都需要这个参数
这是您的身份验证。您的所有请求都必须使用您的身份进行授权。
私人代币
_USER_TOKEN_
您将需要一个域来获取电子邮件地址作为潜在客户。
curl "https://api.proxycrawl.com/leads?token=_USER_TOKEN_&domain=twitter.com"
require 'net/http' uri = URI('https://api.proxycrawl.com/leads') uri.query = URI.encode_www_form({ token: '_USER_TOKEN_', domain: 'dropbox.com'}) res = Net::HTTP.get_response(uri) puts "Response HTTP Status Code: \#{res.code}" puts "Response HTTP Response Body: \#{res.body}"
const https = require('https'); const domain = 'dropbox.com'; const options = { hostname: 'api.proxycrawl.com', path: '/leads?token=_USER_TOKEN_&domain=' + domain }; https.request(options, (response) => { let body = ''; response.on('data', chunk => body += chunk).on('end', () => console.log(body)); }).end();
$domain = 'instagram.com'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://api.proxycrawl.com/leads?token=_USER_TOKEN_&domain=' . $domain); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); var_dump($response);
from urllib2 import urlopen domain = 'paddle.com' handler = urlopen('https://api.proxycrawl.com/leads?token=_USER_TOKEN_&domain=' + domain) print handler.read()
package main import ( "net/http" "fmt" "io/ioutil" ) func main() { domain := "stackoverflow.com" resp, _ := http.Get("https://api.proxycrawl.com/leads?token=_USER_TOKEN_&domain=" + domain) defer resp.Body.Close() body, _ := ioutil.ReadAll(resp.Body) fmt.Println("response Body: ", string(body)) }
← 线索API介绍 回应 →