---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://docs.sendcorex.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://docs.sendcorex.com/llms.txt"
---

Source: https://docs.sendcorex.com/ja/api-reference/counters

カウンター

# グラフにすぐ使える送信数値

アカウント全体の配信済み、バウンス、ブロック、苦情、rate limitedを、時間・日・月・累計で。割合も計算済みです。

- JSONコマンド
- リアルタイム
- 時間、日、月、合計
- 任意のタイムゾーン
- 読み取り専用

始める コマンドを見る

POST `https://g.sendcorex.com/v1/counters` counters:read

## 仕組み

アカウント全体

API、SMTPリレー、キャンペーンをまとめて、メールが最終結果になった時点で1通1回カウントします。

粒度を選ぶ

累計、1か月、月の範囲、自分のタイムゾーンでの日別、時間別。カウンターも形式も同じです。

割合も含む

各期間に合計と、配信済み、バウンス、ブロック、苦情、rate limitedの割合が付きます。自分で計算する必要はありません。

## 始める

最初のリクエストの前に必要なのはキーだけです。

1. 1
counters:read付きのAPI keyを作成
ダッシュボードでDevelopers → API Keysを開き、scope counters:read付きのキーを作成するか、すでに使っているキーに追加します。
[API Keysを開く](https://app.sendcorex.com/dashboard/developer)
2. 2
今月の数値を取得
Get Monthは今月の数値を割合付きで返します。Get Totalsは開始以来のすべてを返します。
[月の取得](https://docs.sendcorex.com/ja/api-reference/counters/reading/get-month) [合計の取得](https://docs.sendcorex.com/ja/api-reference/counters/reading/get-totals)
3. 3
グラフを描く
Get Dailyは自分のタイムゾーンで1日1件のデータを0も含めて返すので、そのままグラフにできます。
[日別の取得](https://docs.sendcorex.com/ja/api-reference/counters/reading/get-daily)

## カウンター

どのコマンドも、指定した期間のカウンターをこの形式で返します。

```
{
  "month": "2026-10",
  "delivered": 48210,
  "bounced": 612,
  "blocked": 88,
  "complaints": 9,
  "rate_limited": 140,
  "total": 49050,
  "delivered_rate": 98.29,
  "bounce_rate": 1.25,
  "blocked_rate": 0.18,
  "complaint_rate": 0.02,
  "rate_limited_rate": 0.29
}
```

`delivered`

受信側サーバーが受け付けたもの。

`bounced`

届かなかったもの。それぞれの理由は「バウンスと苦情」にあります。

`blocked`

配信時にスパムまたはポリシーにより拒否されたもの。アドレスには問題がなく、問題は送信内容です。

`complaints`

メールを受け取ったあとにスパムとして報告した受信者。totalには含まれません。

`*_rate`

各カウンターのtotalに対する割合（小数点以下2桁）。

## 最初のリクエスト

累計と今月を1回のリクエストで。 コード内の `SENDCOREX_API_KEY` をAPI keyに置き換えてください。

```
curl -X POST 'https://g.sendcorex.com/v1/counters' \
  -H "Authorization: $SENDCOREX_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "commands": [
    { "command": "get_totals" },
    { "command": "get_month", "args": { "month": "2026-10" } }
  ]
}'
```

コマンドごとに1つの結果を受け取ります：1つ目は合計、2つ目は割合付きの今月の数値です。 同じリクエストの8言語版はこちら： [Run Commands](https://docs.sendcorex.com/ja/api-reference/counters/routes/run-commands) .

## よくある作業

アプリに配信状況のグラフを

ユーザーのタイムゾーンで直近30日のGet Dailyを取得し、配信済みとバウンスを比べるグラフにします。

[直近30日のグラフ](https://docs.sendcorex.com/ja/api-reference/counters/reading/get-daily#chart)

送信をリアルタイムで確認

今日のGet Hourlyで、キャンペーンの送信中にバウンス率を確認します。

[時間別の取得](https://docs.sendcorex.com/ja/api-reference/counters/reading/get-hourly)

月次レポート

年間のGet Months：月ごとに割合付きで1行、それに合計。

[複数月の取得](https://docs.sendcorex.com/ja/api-reference/counters/reading/get-months)

バウンスの理由を調べる

カウンターは件数を教えてくれます。どのアドレスがなぜバウンスしたかは「バウンスと苦情」でわかります。

[Bounceと苦情](https://docs.sendcorex.com/ja/api-reference/feedback)

## 完全なリファレンス

CMDと表示されたものはすべて、POST /v1/countersで送るコマンドです（1リクエストで最大20件）。

### ルート

1

- [POST Run Commands1リクエストで1〜20コマンド](https://docs.sendcorex.com/ja/api-reference/counters/routes/run-commands)

### 読み取り

5

- [CMD Get Totals開始以来のすべて](https://docs.sendcorex.com/ja/api-reference/counters/reading/get-totals)
- [CMD Get Month1か月（UTC）](https://docs.sendcorex.com/ja/api-reference/counters/reading/get-month)
- [CMD Get Months月の範囲と合計](https://docs.sendcorex.com/ja/api-reference/counters/reading/get-months)
- [CMD Get Daily自分のタイムゾーンで1日ごと](https://docs.sendcorex.com/ja/api-reference/counters/reading/get-daily)
- [CMD Get Hourly1時間ごと、最大7日](https://docs.sendcorex.com/ja/api-reference/counters/reading/get-hourly)
