Read a captcha task
curl --request GET \
--url https://api.safeconduct.ai/v1/tasks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.safeconduct.ai/v1/tasks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.safeconduct.ai/v1/tasks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.safeconduct.ai/v1/tasks/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"type": "<string>",
"status": "<string>",
"reserved": "0.0006",
"createdAt": "2023-11-07T05:31:56Z",
"site": "ticketmaster.com",
"policy": "<string>",
"solution": {
"token": "<string>",
"userAgent": "<string>",
"cookies": {}
},
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
},
"provider": "<string>",
"cost": "0.0006",
"attempts": [
{
"n": 123,
"provider": "<string>",
"durationMs": 123,
"code": "<string>"
}
],
"finishedAt": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}Native API
Read a captcha task
The task’s current state. Results are kept for 10 minutes after the task finishes. With ?wait=N the call returns as soon as the task finishes, or after N seconds with its current state.
GET
/
v1
/
tasks
/
{id}
Read a captcha task
curl --request GET \
--url https://api.safeconduct.ai/v1/tasks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.safeconduct.ai/v1/tasks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.safeconduct.ai/v1/tasks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.safeconduct.ai/v1/tasks/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"type": "<string>",
"status": "<string>",
"reserved": "0.0006",
"createdAt": "2023-11-07T05:31:56Z",
"site": "ticketmaster.com",
"policy": "<string>",
"solution": {
"token": "<string>",
"userAgent": "<string>",
"cookies": {}
},
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
},
"provider": "<string>",
"cost": "0.0006",
"attempts": [
{
"n": 123,
"provider": "<string>",
"durationMs": 123,
"code": "<string>"
}
],
"finishedAt": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}Authorizations
bearerapiKey
Query Parameters
Response
The task