Get Parse Job
client.parsing.get(stringjobID, ParsingGetParams { expand, image_filenames, organization_id, project_id } query?, RequestOptionsoptions?): ParsingGetResponse { job, images_content_metadata, items, 5 more }
GET/api/v2/parse/{job_id}
Retrieve parse job with optional content or metadata.
Parameters
jobID: string
Returns
Get Parse Job
import LlamaCloud from '@llamaindex/llama-cloud';
const client = new LlamaCloud({
apiKey: process.env['LLAMA_CLOUD_API_KEY'], // This is the default and can be omitted
});
const parsing = await client.parsing.get('job_id');
console.log(parsing.job);{
"job": {
"id": "id",
"project_id": "project_id",
"status": "PENDING",
"created_at": "2019-12-27T18:11:19.117Z",
"error_message": "error_message",
"name": "name",
"updated_at": "2019-12-27T18:11:19.117Z"
},
"images_content_metadata": {
"images": [
{
"filename": "filename",
"index": 0,
"content_type": "content_type",
"presigned_url": "presigned_url",
"size_bytes": 0
}
],
"total_count": 0
},
"items": {
"pages": [
{
"items": [
{
"md": "md",
"value": "value",
"bbox": [
{
"h": 0,
"w": 0,
"x": 0,
"y": 0,
"confidence": 0,
"end_index": 0,
"label": "label",
"start_index": 0
}
],
"type": "text"
}
],
"page_height": 0,
"page_number": 0,
"page_width": 0,
"success": true
}
]
},
"markdown": {
"pages": [
{
"markdown": "markdown",
"page_number": 0,
"success": true
}
]
},
"markdown_full": "markdown_full",
"metadata": {
"pages": [
{
"page_number": 0,
"confidence": 0,
"cost_optimized": true,
"original_orientation_angle": 0,
"printed_page_number": "printed_page_number",
"slide_section_name": "slide_section_name",
"speaker_notes": "speaker_notes",
"triggered_auto_mode": true
}
]
},
"result_content_metadata": {
"foo": {
"size_bytes": 0,
"exists": true,
"presigned_url": "presigned_url"
}
},
"text": {
"pages": [
{
"page_number": 0,
"text": "text"
}
]
}
}Returns Examples
{
"job": {
"id": "id",
"project_id": "project_id",
"status": "PENDING",
"created_at": "2019-12-27T18:11:19.117Z",
"error_message": "error_message",
"name": "name",
"updated_at": "2019-12-27T18:11:19.117Z"
},
"images_content_metadata": {
"images": [
{
"filename": "filename",
"index": 0,
"content_type": "content_type",
"presigned_url": "presigned_url",
"size_bytes": 0
}
],
"total_count": 0
},
"items": {
"pages": [
{
"items": [
{
"md": "md",
"value": "value",
"bbox": [
{
"h": 0,
"w": 0,
"x": 0,
"y": 0,
"confidence": 0,
"end_index": 0,
"label": "label",
"start_index": 0
}
],
"type": "text"
}
],
"page_height": 0,
"page_number": 0,
"page_width": 0,
"success": true
}
]
},
"markdown": {
"pages": [
{
"markdown": "markdown",
"page_number": 0,
"success": true
}
]
},
"markdown_full": "markdown_full",
"metadata": {
"pages": [
{
"page_number": 0,
"confidence": 0,
"cost_optimized": true,
"original_orientation_angle": 0,
"printed_page_number": "printed_page_number",
"slide_section_name": "slide_section_name",
"speaker_notes": "speaker_notes",
"triggered_auto_mode": true
}
]
},
"result_content_metadata": {
"foo": {
"size_bytes": 0,
"exists": true,
"presigned_url": "presigned_url"
}
},
"text": {
"pages": [
{
"page_number": 0,
"text": "text"
}
]
}
}