API Integration

With just a few lines of code, you can integrate our API with your application and start receiving data as a JSON response.

几行代码得到验证码json返回

                                
#注册账号获取key
#Register to get the key
#captcha_type 三种 amazon 默认原生amazon url,amazon_mix,amazon_gif
import requests

url = "http://www.886it.cn/api/captcha/code"

payload={'key': 'xxxxxxxxx',
'captcha_type': 'amazon',
'captcha_url': 'https://images-na.ssl-images-amazon.com/captcha/ahkfsmoa/Captcha_lvghpcxkgh.jpg'}
files=[

]
headers = {}

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)



                            
                                
#注册账号获取key
#Register to get the key
#captcha_type 三种 amazon 默认原生amazon url,amazon_mix,amazon_gif
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'http://www.886it.cn/api/captcha/code',
  'headers': {
  },
  formData: {
    'key': 'xxxxxxxxx',
    'captcha_type': 'amazon',
    'captcha_url': 'https://images-na.ssl-images-amazon.com/captcha/ahkfsmoa/Captcha_lvghpcxkgh.jpg'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});



                            
                                
#注册账号获取key
#Register to get the key

$curl = curl_init();
#captcha_type 三种 amazon 默认原生amazon url,amazon_mix,amazon_gif
curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://www.886it.cn/api/captcha/code',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS => array('key' => 'xxxxxxxxx','captcha_type' => 'amazon','captcha_url' => 'https://images-na.ssl-images-amazon.com/captcha/ahkfsmoa/Captcha_lvghpcxkgh.jpg'),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

                            
                                
#注册账号获取key
#Register to get the key
#captcha_type 三种 amazon 默认原生amazon url,amazon_mix,amazon_gif
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
  .addFormDataPart("key","xxxxxxxxx")
  .addFormDataPart("captcha_type","amazon")
  .addFormDataPart("captcha_url","https://images-na.ssl-images-amazon.com/captcha/ahkfsmoa/Captcha_lvghpcxkgh.jpg")
  .build();
Request request = new Request.Builder()
  .url("https://www.886it.cn/api/captcha/code")
  .method("POST", body)
  .build();
Response response = client.newCall(request).execute();

                            
                                
#注册账号获取key
#Register to get the key
#captcha_type 三种 amazon 默认原生amazon url,amazon_mix,amazon_gif
require "uri"
require "net/http"

url = URI("http://www.886it.cn/api/captcha/code")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
form_data = [['key', 'xxxxxxxxx'],['captcha_type', 'amazon'],['captcha_url', 'https://images-na.ssl-images-amazon.com/captcha/ahkfsmoa/Captcha_lvghpcxkgh.jpg']]
request.set_form form_data, 'multipart/form-data'
response = http.request(request)
puts response.read_body