> ## 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.

# カテゴリ ID を見つける

> すべてのレポート呼び出しには category_id が必要です。プログラムで調べる方法を紹介します

すべてのレポートエンドポイント(`/v1/reports/visibility`、`/v1/reports/citations`、
`/v1/reports/sentiment`)には `category_id` が必要です。キーで参照できるカテゴリを
一覧表示し、適切なものを選択してください。

## この例の仕組み

1. **1 回の呼び出しですべてを一覧表示します。** フィルターもページネーションも不要です。
2. 探しているものがわかっている場合は**名前で照合**し、わからない場合は
   すべてを出力します。

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

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

  categories = client.organizations.categories.list()

  # Print every category your key can see.
  for c in categories:
      print(f"{c.id}  {c.name}")

  # Or: find one by name.
  TARGET = "<your-category-name>"
  match = next((c for c in categories if c.name == TARGET), None)
  if match:
      print(f"\nFound Category '{TARGET}': {match.id}")
  ```

  ```bash curl theme={null}
  export PROFOUND_API_KEY=your_api_key_here

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