> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/other/ja/reference-documentation/reptonoapiwosuru.md).

# レポートのAPI利用可否を確認する

impact.comのすべてのレポートをAPI経由で取得できるわけではありません。APIアクセスはレポートごとに個別に設定され、時間の経過とともに変更される場合があるため、最も確実な方法はレポートの現在のステータスを確認することです。以下の手順は、ブランドとパートナーのどちらにも適用されます。

{% hint style="success" %}
**前提条件：** これらの手順を完了するには、APIアクセストークンが必要です。 [APIアクセストークンの作成方法](https://help.impact.com/other/ja/reference-documentation/api-access-tokens/create-an-api-access-token.md)をご確認のうえ、 [アクセストークンを安全に管理する](https://help.impact.com/other/ja/reference-documentation/api-access-tokens/keep-your-access-tokens-secure.md).
{% endhint %}

## API認証情報を取得する

1. [ログイン](https://help.impact.com/other/ja/reference-documentation/log-in-to-your-impactcom-account.md) して、impact.comアカウントにアクセスします。
2. 上部のナビゲーションバーから、 ![](https://2895872601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRN1rcrim887TwHLBjac%2Fuploads%2Fpmc2UIFakEHRS3pas1a0%2Fprofile.svg?alt=media\&token=87284fd9-5037-4062-ad5d-234b845664f5) **\[ユーザープロフィール] → 設定**.
3. ［ *技術*］で、アカウントの種類に応じたAPIページを選択します。
   * ブランドページ： [**API**](https://app.impact.com/secure/advertiser/api/fr/api-access-tokens-ui.ihtml)
   * パートナーページ： [**API**](https://app.impact.com/secure/mediapartner/api/fr/api-access-tokens-ui.ihtml)
4. 使用するアクセストークンのカードを選択します。
5. ［ *認証情報* ］タブで、 *アカウントSID* と *認証トークン* の値をコピーします。次の手順で使用します。

## アカウントで利用可能なすべてのレポートを一覧表示する

1. APIクライアントを開きます。たとえば、 [Postman](https://www.postman.com/).
   * または、macOSのターミナルやWindowsのPowerShellなどのコマンドラインツールを使用します。
2. 「 *レポート一覧* 」エンドポイントを使用して、すべてのレポートの一覧を取得します。
   * ブランドのエンドポイント： [利用可能なすべてのレポートを一覧表示](https://integrations.impact.com/brand-api-reference/reference/report-export/reports-legacy)
   * パートナーのエンドポイント： [利用可能なすべてのレポートを一覧表示](https://integrations.impact.com/partner-api-reference/reference/reports/reports)
3. コピーした値で、 `<AccountSID>` と `<AuthToken>` のプレースホルダーを置き換えます。
   * レスポンスには、API経由では取得できないものも含め、アカウントで利用可能なすべてのレポートが表示されます。

## 特定のレポートでAPIが利用可能か確認する

1. レスポンス内で、 *名前またはID*.
2. を探して、確認したいレポートを見つけます。レポートの `ApiAccessible` フィールドの値を確認します。
   * `true`：このレポートは API 経由で取得できます。
   * `false`：現在、このレポートは API 経由では取得できません。代わりに、プラットフォームでレポートをダウンロードまたはスケジュールする方法をご確認ください。
3. パートナー API で利用できるレポートのレスポンス例を以下に示します。

   ```json
   {
     "Reports": [
       {
         "Name": "Action Listing",
         "Id": "ps_a_action_listing",
         "Category": "Performance",
         "Description": "Lists all actions for a date range.",
         "ApiAccessible": true,
         "ApiRunUri": "/Mediapartners/<AccountSID>/Reports/ps_a_action_listing",
         "DeferredApiRunUri": "/Mediapartners/<AccountSID>/ReportExport/ps_a_action_listing",
         "MetaDataUri": "/Mediapartners/<AccountSID>/ReportsMetadata/ps_a_action_listing"
       }
     ]
   }
   ```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.impact.com/other/ja/reference-documentation/reptonoapiwosuru.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
