跳到内容
Esc
↑↓导航↵打开⌘J预览

Get opens by mail client

GET/emails/metrics/clients
授权
AuthorizationBearer 令牌 · header必填

A BillionSend API key (bs_…).

查询参数
start_datestring
end_datestring
domain_idstring<uuid>[]
最多 100 项
broadcast_idstring<uuid>[]
最多 100 项
响应
200

Opens in the range by the mail client that fetched the message's images, most opened first (BillionSend extension). client is one of gmail, apple_mail, outlook, yahoo, thunderbird, other (a web browser, which webmail and clients without markers look like) or unknown (no user agent). Clicks are not counted by client: a click arrives from the browser the client hands the link to. Only the client is kept, never the user agent. Counts cover whole UTC hours like GET /emails/metrics, and opens are counted by client from 2026-11-16 on. A key held to one domain always reads that domain only.

objectstring必填
允许值:list
start_datestring必填
end_datestring必填
has_moreboolean必填
dataobject[]必填
显示属性
object 数组
clientstring必填

The mail client that fetched the open

允许值:gmailapple_mailoutlookyahoothunderbirdotherunknown
openedinteger必填

Opens by people

unique_openedinteger必填

Emails whose first open came from here

bot_openedinteger必填

Pixel fetches by machines (scanners, prefetches)

401

Missing, malformed, unknown or revoked API key

statusCodenumber必填
namestring必填
messagestring必填
403

Restricted API key: a sending_access key, or a key held to one domain that named another domain in domain_id

statusCodenumber必填
namestring必填
messagestring必填
422

Validation error

statusCodenumber必填
namestring必填
messagestring必填
429

Over the rate limit (rate_limit_exceeded, with Retry-After)

statusCodenumber必填
namestring必填
messagestring必填
503

The statistics store is not answering; sending is unaffected. Retry shortly.

statusCodenumber必填
namestring必填
messagestring必填
试一试
服务器
授权
参数
请求
curl -X GET 'https://api.billionsend.com/emails/metrics/clients' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
响应
{
  "object": "list",
  "start_date": "string",
  "end_date": "string",
  "has_more": true,
  "data": [
    {
      "client": "gmail",
      "opened": 0,
      "unique_opened": 0,
      "bot_opened": 0
    }
  ]
}

这个页面有帮助吗?