Graphor icon

Graphor

Interact with Graphor API for document processing, RAG, and AI-powered document chat

Source → Get Elements

AI-generated

Summary

Retrieve structured elements from a processed document source using its unique File ID, with options to filter and paginate results.

Inputs

  • File ID (required) — The unique file ID returned by build status or list sources, identifying the processed document source to query.
  • Additional Fields — Optional parameters to customize the retrieval, including Element Type to filter by specific types of elements (e.g., Title, NarrativeText, Table), Elements To Remove as a comma-separated list of element types to exclude, Page number for pagination, Page Numbers as comma-separated specific pages to include, Page Size to limit the number of elements per response (max 100), and Suppress Image Base64 to omit base64-encoded images from the elements.

Output shape

a JSON object containing the requested structured elements from the document source, potentially paginated and filtered according to input parameters.

The response includes document elements filtered and paginated based on the provided query parameters. The img_base64 field within elements can be omitted if Suppress Image Base64 is set. Pagination supports 1-based page indexing and page size up to 100 elements. Element type filters accept element types as string identifiers, and multiple page numbers can be specified as comma-separated values.

Examples

Example 1: Retrieve all Title elements on page 2 without base64 images from a document source with ID '123abc'

Set File ID to '123abc', Element Type to 'Title', Page to 2, and Suppress Image Base64 to true.

Links

Discussion