Toggle Menu
Prev Up Next

# `langchain_community.document_loaders.unstructured`.get_elements_from_api

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

  Retrieve a list of elements from the Unstructured API.

  Parameters

    - file_path (Optional[Union[str, List[str], Path, List[Path]]]) –

    - file (Optional[Union[IO, Sequence[IO]]]) –

    - api_url (str) –

    - api_key (str) –

    - unstructured_kwargs (Any) –

  Return type

    List