import osfrom unstructured import UnstructuredClientclient = UnstructuredClient( username=os.environ.get("UNSTRUCTURED_USERNAME"), # This is the default and can be omitted password=os.environ.get("UNSTRUCTURED_PASSWORD"), # This is the default and can be omitted)response = client.metadata.list_filtered( data_connector_name="data_connector_name",)print(response.metadata)
Get paginated filtered metadata based on conditions
POST
/
metadata
/
filtered
Python
import osfrom unstructured import UnstructuredClientclient = UnstructuredClient( username=os.environ.get("UNSTRUCTURED_USERNAME"), # This is the default and can be omitted password=os.environ.get("UNSTRUCTURED_PASSWORD"), # This is the default and can be omitted)response = client.metadata.list_filtered( data_connector_name="data_connector_name",)print(response.metadata)