Skip to content
Get started

Get Result Region

beta.sheets.get_result_table(Literal["table", "extra", "cell_metadata"]region_type, SheetGetResultTableParams**kwargs) -> PresignedURL
GET/api/v1/beta/sheets/jobs/{spreadsheet_job_id}/regions/{region_id}/result/{region_type}

Generate a presigned URL to download a specific extracted region. Experimental: This endpoint is not yet ready for production use and is subject to change at any time.

ParametersExpand Collapse
spreadsheet_job_id: str
region_id: str
region_type: Literal["table", "extra", "cell_metadata"]
Accepts one of the following:
"table"
"extra"
"cell_metadata"
expires_at_seconds: Optional[int]
organization_id: Optional[str]
project_id: Optional[str]
ReturnsExpand Collapse
class PresignedURL:

Schema for a presigned URL.

expires_at: datetime

The time at which the presigned URL expires

formatdate-time
url: str

A presigned URL for IO operations against a private file

minLength1
formaturi
form_fields: Optional[Dict[str, str]]

Form fields for a presigned POST request

Get Result Region

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
)
presigned_url = client.beta.sheets.get_result_table(
    region_type="table",
    spreadsheet_job_id="spreadsheet_job_id",
    region_id="region_id",
)
print(presigned_url.expires_at)
{
  "expires_at": "2019-12-27T18:11:19.117Z",
  "url": "https://example.com",
  "form_fields": {
    "foo": "string"
  }
}
Returns Examples
{
  "expires_at": "2019-12-27T18:11:19.117Z",
  "url": "https://example.com",
  "form_fields": {
    "foo": "string"
  }
}