> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tryprofound.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 自社アセットとドメインを一覧表示する

> カテゴリ内のすべてのアセットを、is_owned フラグと関連ドメインとともに取得します

「自社 vs 他社」を比較するレシピの多くでは、カテゴリ内のどのアセットが自社のものかを
把握する必要があります。この呼び出しは、すべてのアセットを `is_owned` フラグ、
Web サイト、代替ドメインとともに返します。フィルタリングとドメイン照合に必要な情報が
すべて揃います。

## この例の仕組み

1. **カテゴリごとに 1 回の呼び出し。** 多数のレポート呼び出しを行う場合は結果をキャッシュしてください
   (アセットが変更されることはまれです)。
2. **`is_owned` でフィルタリング**して、自社のアセットだけを取得します。
3. **`website` と `alternate_domains` を組み合わせて**、自社が所有するドメインの
   完全なセットを作成します([Citation Share
   レシピ](/ja-jp/cookbook/citations/citation-share)で使用します)。

<RequestExample>
  ```python Python theme={null}
  import os
  from profound import Profound

  client = Profound(api_key=os.environ["PROFOUND_API_KEY"])

  # What to fetch — replace with your own values.
  CATEGORY_NAME = "<your-category-name>"


  def list_owned(category_id):
      """Return (owned_asset_names, owned_domains) for the category."""
      names, domains = [], []
      for a in client.organizations.categories.assets(category_id):
          if not a.is_owned:
              continue
          names.append(a.name)
          if a.website:
              domains.append(a.website)
          domains.extend(a.alternate_domains or [])
      return names, domains


  # Helper — translate the category name to the UUID the report API expects.

  def find_category_id(name):
      """Return the UUID of the category whose name matches (case-insensitive)."""
      for c in client.organizations.categories.list():
          if c.name.lower() == name.lower():
              return c.id
      raise ValueError(f"No category named {name!r}")


  # Resolve name → ID, then list owned assets and domains.
  category_id = find_category_id(CATEGORY_NAME)
  owned_names, owned_domains = list_owned(category_id)

  print("Owned assets:")
  for n in owned_names:
      print(f"  - {n}")

  print("\nOwned domains:")
  for d in owned_domains:
      print(f"  - {d}")
  ```

  ```bash curl theme={null}
  export PROFOUND_API_KEY=your_api_key_here
  export CATEGORY_ID=your-category-uuid

  curl "https://api.tryprofound.com/v1/org/categories/$CATEGORY_ID/assets" \
    -H "X-API-Key: $PROFOUND_API_KEY"
  ```
</RequestExample>

## 関連するルックアップ

同じ `/v1/org/categories/{id}/...` パターンは、他のカテゴリリソースにも使用できます。

| パス | 返される内容 |
| - | - |
| `/v1/org/categories/{id}/assets` | カテゴリ内のアセット(上記で使用) |
| `/v1/org/categories/{id}/topics` | カテゴリが対象とする Topics |
| `/v1/org/categories/{id}/tags` | カテゴリに設定された Tags |
| `/v1/org/categories/{id}/personas` | カテゴリに設定された Personas |
| `/v1/org/categories/{id}/prompts` | カテゴリで実行される Prompts |
