Get Spreadsheet Job
beta.sheets.get(strspreadsheet_job_id, SheetGetParams**kwargs) -> SheetsJob
GET/api/v1/beta/sheets/jobs/{spreadsheet_job_id}
Get a spreadsheet parsing job.
When include_results=True (default), the response will include extracted regions and results if the job is complete, eliminating the need for a separate /results call.
Experimental: This endpoint is not yet ready for production use and is subject to change at any time.
Parameters
spreadsheet_job_id: str
organization_id: Optional[str]
project_id: Optional[str]
Returns
Get Spreadsheet Job
import os
from llama_cloud import LlamaCloud
client = LlamaCloud(
api_key=os.environ.get("LLAMA_CLOUD_API_KEY"), # This is the default and can be omitted
)
sheets_job = client.beta.sheets.get(
spreadsheet_job_id="spreadsheet_job_id",
)
print(sheets_job.id){
"id": "id",
"config": {
"extraction_range": "extraction_range",
"flatten_hierarchical_tables": true,
"generate_additional_metadata": true,
"include_hidden_cells": true,
"sheet_names": [
"string"
],
"table_merge_sensitivity": "strong",
"use_experimental_processing": true
},
"created_at": "created_at",
"file_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"status": "PENDING",
"updated_at": "updated_at",
"user_id": "user_id",
"errors": [
"string"
],
"file": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "x",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"data_source_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"expires_at": "2019-12-27T18:11:19.117Z",
"external_file_id": "external_file_id",
"file_size": 0,
"file_type": "x",
"last_modified_at": "2019-12-27T18:11:19.117Z",
"permission_info": {
"foo": {
"foo": "bar"
}
},
"purpose": "purpose",
"resource_info": {
"foo": {
"foo": "bar"
}
},
"updated_at": "2019-12-27T18:11:19.117Z"
},
"regions": [
{
"location": "location",
"region_type": "region_type",
"sheet_name": "sheet_name",
"description": "description",
"region_id": "region_id",
"title": "title"
}
],
"success": true,
"worksheet_metadata": [
{
"sheet_name": "sheet_name",
"description": "description",
"title": "title"
}
]
}Returns Examples
{
"id": "id",
"config": {
"extraction_range": "extraction_range",
"flatten_hierarchical_tables": true,
"generate_additional_metadata": true,
"include_hidden_cells": true,
"sheet_names": [
"string"
],
"table_merge_sensitivity": "strong",
"use_experimental_processing": true
},
"created_at": "created_at",
"file_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"status": "PENDING",
"updated_at": "updated_at",
"user_id": "user_id",
"errors": [
"string"
],
"file": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "x",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"data_source_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"expires_at": "2019-12-27T18:11:19.117Z",
"external_file_id": "external_file_id",
"file_size": 0,
"file_type": "x",
"last_modified_at": "2019-12-27T18:11:19.117Z",
"permission_info": {
"foo": {
"foo": "bar"
}
},
"purpose": "purpose",
"resource_info": {
"foo": {
"foo": "bar"
}
},
"updated_at": "2019-12-27T18:11:19.117Z"
},
"regions": [
{
"location": "location",
"region_type": "region_type",
"sheet_name": "sheet_name",
"description": "description",
"region_id": "region_id",
"title": "title"
}
],
"success": true,
"worksheet_metadata": [
{
"sheet_name": "sheet_name",
"description": "description",
"title": "title"
}
]
}