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

# App 統計

> 1 App の発行者統計: 実行数、成功率、最近の活動。

**`GET`** `https://api-datahub.octoparse.com/v1/data-apps/{app_id}/stats`

認証：APIキー必須（`Authorization: Bearer <API Key>`）。 App 作者のみ。

終端実行の日次バケットからの作者専用集計。Release 0 件 App も可（デバッグトラフィック）。テスト実行は既定除外。

## リクエスト

**app\_id** `string` *required*

フィールド

**include\_test** `boolean` (default: False)

フィールド

### リクエスト例

```bash theme={null}
curl \
  -H "Authorization: Bearer $OCTOPARSE_API_KEY" \
  "https://api-datahub.octoparse.com/v1/data-apps/carol/reviews-query/stats"
```

## レスポンス

### 200 成功

```json theme={null}
{
  "data": {
    "namespace": "carol",
    "app_name": "probe-b",
    "total_runs": 2,
    "last_run_at": "2026-09-15T07:45:42.326823+00:00",
    "runs_30d": 2,
    "success_rate_30d": 1.0,
    "runs_7d": 2,
    "success_rate_7d": 1.0,
    "calls_7d": [
      0,
      0,
      "…"
    ],
    "avg_duration_ms_30d": 422,
    "credits_30d": 0.04
  }
}
```

### エラー

| HTTP | `code` | `category` | 説明 |
| - | - | - | - |
| 401 | `unauthorized` | `forbidden` | API キー欠落または無効。 |
| 404 | `*-not-found` | `not_found` | 対象が存在しないか、現資格から不可視。 |

エラー応答は `{"error": {code, category, message, retryable}}` です。[エラー](https://www.octoparse.com/docs/jp/datahub/api/reference/introduction.md#errors) を参照。

## クライアントライブラリ

Python / JavaScript SDK はまだこのエンドポイントをラップしていません。REST を直接呼び出してください。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.