> For the complete documentation index, see [llms.txt](https://docs.nexthink.com/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nexthink.com/platform/ja/user-guide/administration/content-management/nql-api-queries.md).

# NQL APIクエリ

NQL API を使用すると、Nexthink cloudプラットフォームからデータを抽出し、サードパーティアプリケーションを使用してメトリクスを柔軟に作成および視覚化できます。 Nexthink は、すべての NQL API クエリ実行をプラットフォームログとして記録するため、NQL を使用して消費量を監視し、失敗をトラブルシューティングできます。

詳細については、[Nexthink Developer Portal](https://developer.nexthink.com/docs/api/nql-api-overview) のドキュメントを参照してください。

## NQL API アクティビティの監視

`platform.nql_api_logs` テーブルには、両方の API エンドポイントにわたるすべての NQL API クエリ実行が記録されます。

* `execute` - 即時に応答する小規模なクエリ向けに最適化されており、通常は個々の従業員やデバイスを対象とするインテグレーションから呼び出されます
* `export` - 一括結果セットを返す大規模なクエリ向けに最適化されており、通常はレポート作成のために呼び出されます

このテーブルは、他のプラットフォームログと同じ方法でクエリできます。調査の [NQL エディター](/platform/ja/user-guide/investigations/creating-investigations/nql-editor.md)、[ライブダッシュボード](/platform/ja/user-guide/live-dashboards/managing-live-dashboards.md)のウィジェット、または[カスタムモニター](/platform/ja/user-guide/alerts-and-diagnostics/managing-alerts/creating-custom-monitors.md)を使用します。

{% hint style="info" %}
`platform.nql_api_logs` テーブルをクエリするには、**データモデルの可視性**で **プラットフォームログ**権限が有効になっており、View ドメインへのフルアクセス権を持つロールが必要です。詳細については、[ロール](/platform/ja/user-guide/administration/account-management/roles.md)ドキュメントを参照してください。
{% endhint %}

テーブルのフィールドとその説明については、[NQL データモデル](/platform/ja/understanding-key-data-platform-concepts/nql-data-model.md#platform)ドキュメントを参照してください。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.nexthink.com/platform/ja/user-guide/administration/content-management/nql-api-queries.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
