基础 API 端点: https://api.hardcaptcha.com
curl -X 'POST' \
'{BASE_API_ENDPOINT}/api/app/task' \
-H 'accept: application/json' \
-H 'x-api-key: J7vZMU044xxxxxxxxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"type": "RECAPTCHA_V2_TOKEN",
"data": {
"websiteUrl": "https://democaptcha.com/demo-form-eng/recaptcha-2.html",
"websiteKey": "6LfGqN0UAAAAAFdGo4OSj5Awi8hM_9kmR7VfXUP2"
}
}'
const url = '{BASE_API_ENDPOINT}/api/app/task';
const apiKey = 'J7vZMU044xxxxxxxxxxxxxx';
const payload = {
type: 'RECAPTCHA_V2_TOKEN',
data: {
websiteUrl: 'https://democaptcha.com/demo-form-eng/recaptcha-2.html',
websiteKey: '6LfGqN0UAAAAAFdGo4OSj5Awi8hM_9kmR7VfXUP2'
}
};
fetch(url, {
method: 'POST',
headers: {
'accept': 'application/json',
'x-api-key': apiKey,
'Content-Type': 'application/json',
},
body: JSON.stringify(payload),
})
.then(response => response.json())
.then(data => {
console.log(data);
})
.catch(error => {
console.error('Error:', error);
});
import requests
import json
url = 'https://khoivc.proxy.h2-best.com/api/app/task'
api_key = 'J7vZMU044xxxxxxxxxxxxxx'
payload = {
'type': 'RECAPTCHA_V2_TOKEN',
'data': {
'websiteUrl': 'https://democaptcha.com/demo-form-eng/recaptcha-2.html',
'websiteKey': '6LfGqN0UAAAAAFdGo4OSj5Awi8hM_9kmR7VfXUP2'
}
}
headers = {
'accept': 'application/json',
'x-api-key': api_key,
'Content-Type': 'application/json',
}
response = requests.post(url, headers=headers, data=json.dumps(payload))