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_unique_tags( data_connector_name="data_connector_name",)print(response.tags)
{ "tags": [ "<string>" ]}
Metadata
Get Unique Tags
Get a list of unique tags that have been extracted - supports shared connections
POST
/
metadata
/
get_unique_tags
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_unique_tags( data_connector_name="data_connector_name",)print(response.tags)