# Download a JSON of your project ontology

## From the UI

1. Navigate to the project containing the ontology you wish to save.
2. Navigate to the *Settings* tab, then the *Category Schema* section.

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FMLbsSekeNZ9p1QMVZTl6%2Fimage.png?alt=media&#x26;token=16da67d2-2e41-46c1-8369-5fda78a009f7" alt=""><figcaption></figcaption></figure>

3. Click on the "code" button (1) on the right. A panel showing the project's ontology JSON will appear. Copy the JSON to your clipboard using the "copy" button (2).

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FtNt5uzO8w4PayzhHMHa0%2Fimage.png?alt=media&#x26;token=df108bb0-893e-4561-8f1d-ab45d9b22bfd" alt=""><figcaption></figcaption></figure>

4. Paste it into your text editor of choice and save.

## From the SDK

1. [Get your API key](https://docs.imerit.net/sdk/sdk-documentation#obtaining-your-api-key). Note it somewhere.
2. [Download and install the \`ango\` package from pip](https://docs.imerit.net/sdk/sdk-documentation#how-to-install-the-ango-sdk).
3. Run the following Python script, substituting the project ID and the API key with your own

```python
import json
from ango.sdk import SDK

API_KEY = "<YOUR API KEY>"
PROJECT_ID = "<YOUR PROJECT ID>"

ango_sdk = SDK(API_KEY)

res = ango_sdk.get_project(PROJECT_ID)

json_object = json.dumps(res, indent=2)
print(json_object)
```

This script will print the category schema for the project.
