Skip to main content
POST
/
progress_tracker
/
task_status
Python
import os
from unstructured import UnstructuredClient

client = UnstructuredClient(
    username=os.environ.get("UNSTRUCTURED_USERNAME"),  # This is the default and can be omitted
    password=os.environ.get("UNSTRUCTURED_PASSWORD"),  # This is the default and can be omitted
)
response = client.task_status.get_status(
    job_id="job_id",
)
print(response.percent_complete)
{
  "percent_complete": 123,
  "status": "in_progress"
}

Body

application/json
job_id
string
required

Response

Successful Response

percent_complete
number
required
status
enum<string>
required
Available options:
in_progress,
completed,
aborted,
failed