List File Pages Figures
pipelines.images.list_page_figures(strid, ImageListPageFiguresParams**kwargs) -> ImageListPageFiguresResponse
GET/api/v1/files/{id}/page-figures
List metadata for all figures from all pages of a file.
Parameters
id: str
organization_id: Optional[str]
project_id: Optional[str]
Returns
List File Pages Figures
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
)
response = client.pipelines.images.list_page_figures(
id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(response)[
{
"confidence": 0,
"figure_name": "figure_name",
"figure_size": 0,
"file_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"page_index": 0,
"is_likely_noise": true,
"metadata": {
"foo": "bar"
}
}
]Returns Examples
[
{
"confidence": 0,
"figure_name": "figure_name",
"figure_size": 0,
"file_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"page_index": 0,
"is_likely_noise": true,
"metadata": {
"foo": "bar"
}
}
]