Skip to main content
POST
/
taxonomy
/
list
Python
import os
from unstructured import UnstructuredClient

client = 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
)
taxonomies = client.taxonomy.list()
print(taxonomies.taxonomies)
{
  "taxonomies": [
    {
      "taxonomy_id": "<string>",
      "taxonomy_name": "<string>",
      "taxonomy_description": "<string>",
      "taxonomy_data": {
        "nodes": [
          {
            "name": "<string>",
            "node_id": "<string>",
            "node_type": "tag",
            "description": "<string>",
            "active_values": [
              "<string>"
            ]
          }
        ],
        "edges": [
          {
            "target_node_ids": [
              "<string>"
            ],
            "conditions": [
              {
                "node_id": "<string>",
                "tag_value_name": "<string>"
              }
            ],
            "edge_id": "<string>"
          }
        ],
        "root_node_id": "root"
      },
      "user_id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "refreshed_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
taxonomy_ids
string[] | null

Response

Successful Response

taxonomies
DeasyTaxonomy · object[]
required