> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/sdks/database/taxonomies/find-merged-term-tree.md).

# Find Merged Term Tree

API — one term tree across a taxonomy and its child taxonomies, for apps.

The data-plane version of [Get Database Merged Term Tree](/codemash/sdks/database/taxonomies/get-database-merged-term-tree.md), for your app: the requested taxonomy's terms are the roots and the terms of its child taxonomies nest under them — e.g. `Regions` → `Countries` → `Cities` in one answer, ready for a menu or a filter. `GET /{version}/database/taxonomies/{taxonomyName}/merged-tree`

This method is on the runtime **API** surface (`norbix.api.database`) — call it from your app.

{% hint style="info" %}
These examples assume the SDK is installed and your credentials are set as environment variables — each client reads them automatically, so the constructors below take no arguments. See [Install a Norbix SDK](/codemash/sdks/install.md).
{% endhint %}

{% tabs %}
{% tab title="JavaScript / TypeScript" %}

```ts
import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.api.database.findMergedTermTree({
  taxonomyName: 'orders',
  databaseIntegrationId: 'int_4kX9mQvR2tYw7ZbC1dFgHj',
});
```

{% endtab %}

{% tab title=".NET" %}

```csharp
using Norbix.Sdk;
using Norbix.Sdk.Types.Api;

using var client = new NorbixClient();

var result = await client.Database.FindMergedTermTreeAsync(new FindMergedTermTreeRequest
{
    TaxonomyName = "orders",
    DatabaseIntegrationId = "int_4kX9mQvR2tYw7ZbC1dFgHj",
});
```

{% endtab %}

{% tab title="Python" %}

```python
from norbix_python import NorbixApi

norbix = NorbixApi()

result = norbix.database.find_merged_term_tree(
    taxonomyName="orders",
    databaseIntegrationId="int_4kX9mQvR2tYw7ZbC1dFgHj",
)
```

{% endtab %}

{% tab title="Go" %}

```go
c, _ := norbix.New(norbix.Options{})
ctx := context.Background()

var result map[string]any
err := c.API.Database.FindMergedTermTree(ctx, "orders", map[string]any{
	"databaseIntegrationId": "int_4kX9mQvR2tYw7ZbC1dFgHj",
}, &result)
```

{% endtab %}

{% tab title="Dart / Flutter" %}

```dart
import 'package:norbix/norbix_api.dart';

final api = NorbixApi();

final result = await api.database.findMergedTermTree(taxonomyName: 'orders', body: {
  'databaseIntegrationId': 'int_4kX9mQvR2tYw7ZbC1dFgHj',
});
```

{% endtab %}

{% tab title="Swift" %}

```swift
import NorbixApi

let client = try NorbixApiClient()

let result = try await client.database.findMergedTermTree([
    "taxonomyName": "orders",
    "databaseIntegrationId": "int_4kX9mQvR2tYw7ZbC1dFgHj",
])
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
import ai.norbix.sdk.api.NorbixApi

val api = NorbixApi()

val result = api.database.findMergedTermTree(mapOf(
    "taxonomyName" to "orders",
    "databaseIntegrationId" to "int_4kX9mQvR2tYw7ZbC1dFgHj",
))
```

{% endtab %}

{% tab title="CLI" %}

```sh
norbix api db merged term tree find --taxonomyName orders --databaseIntegrationId int_4kX9mQvR2tYw7ZbC1dFgHj
```

{% endtab %}
{% endtabs %}

## In Cloud

Manage this visually in Cloud — see [Database → Taxonomies](/codemash/cloud/database/taxonomies.md).

## API reference

Full request and response for this endpoint: [Find Merged Term Tree](/codemash/api-reference/database/taxonomies/find-merged-term-tree.md).
