cURL
curl 'https://api.ade.landing.ai/v2/extract/jobs/JOB_ID' \
-H 'Authorization: Bearer YOUR_API_KEY'import requests
url = 'https://api.ade.landing.ai/v2/extract/jobs/JOB_ID'
headers = {'Authorization': 'Bearer YOUR_API_KEY'}
response = requests.get(url, headers=headers)
print(response.json())const axios = require('axios');
axios.get('https://api.ade.landing.ai/v2/extract/jobs/JOB_ID', {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
})
.then(response => console.log(response.data))
.catch(error => console.error(error));{
"job_id": "<string>",
"created_at": "<string>",
"completed_at": "<string>",
"progress": "<unknown>",
"result": {
"extraction": {},
"extraction_metadata": {},
"markdown": "<string>",
"metadata": {
"job_id": "<string>",
"version": "<string>",
"duration_ms": 123,
"doc_id": "<string>",
"credit_usage": 0,
"billing": {
"total_credits": 123
}
}
},
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Extract
ADE Get Extract Jobs
Get the status of an async Extract job, including its result once the job has completed.
GET
/
v2
/
extract
/
jobs
/
{job_id}
cURL
curl 'https://api.ade.landing.ai/v2/extract/jobs/JOB_ID' \
-H 'Authorization: Bearer YOUR_API_KEY'import requests
url = 'https://api.ade.landing.ai/v2/extract/jobs/JOB_ID'
headers = {'Authorization': 'Bearer YOUR_API_KEY'}
response = requests.get(url, headers=headers)
print(response.json())const axios = require('axios');
axios.get('https://api.ade.landing.ai/v2/extract/jobs/JOB_ID', {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
})
.then(response => console.log(response.data))
.catch(error => console.error(error));{
"job_id": "<string>",
"created_at": "<string>",
"completed_at": "<string>",
"progress": "<unknown>",
"result": {
"extraction": {},
"extraction_metadata": {},
"markdown": "<string>",
"metadata": {
"job_id": "<string>",
"version": "<string>",
"duration_ms": 123,
"doc_id": "<string>",
"credit_usage": 0,
"billing": {
"total_credits": 123
}
}
},
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Path Parameters
The identifier of the job to retrieve, as returned by the create-job request.
Response
Job status / result
Available options:
pending, processing, completed, failed Present once the job is terminal.
Best-effort progress, present while processing only for jobs that report it.
Present once status is completed.
Show child attributes
Show child attributes
Present once status is failed.
Show child attributes
Show child attributes
Was this page helpful?
⌘I