get_elements_from_api#

langchain_community.document_loaders.unstructured.get_elements_from_api(
file_path: str | List[str] | Path | List[Path] | None = None,
file: IO[bytes] | Sequence[IO[bytes]] | None = None,
api_url: str = 'https://api.unstructuredapp.io/general/v0/general',
api_key: str = '',
**unstructured_kwargs: Any,
) List[Any][source]#

Retrieve a list of elements from the Unstructured API.

Parameters:
  • file_path (str | List[str] | Path | List[Path] | None)

  • file (IO[bytes] | Sequence[IO[bytes]] | None)

  • api_url (str)

  • api_key (str)

  • unstructured_kwargs (Any)

Return type:

List[Any]