跳转到主要内容
GET
Get daily aggregated metrics

请求规范

  • 方法与路径: GET /apis/v1/social/analytics/daily-metrics
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/social/analytics/daily-metrics
  • platform: query; 可选
  • profileId: query; 可选
  • accountId: query; 可选
  • fromDate: query; 可选
  • toDate: query; 可选
  • source: query; 可选
  • attribution: query; 可选
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

公开参考价格:每次成功请求 $0.001 USD。 失败或结果未知时不收费。 15 分钟内的相同请求命中缓存时免费。 强制刷新按次收费。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

platform
string

Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.

profileId
string

One of your profiles (prf_...). Defaults to your default profile when neither profileId nor accountId is sent.

Pattern: ^prf_[0-9A-Za-z]{22}$
accountId
string

One of your social accounts (acc_...).

Pattern: ^acc_[0-9A-Za-z]{22}$
fromDate
string<date-time>

Inclusive start date (ISO 8601). Defaults to 180 days ago.

toDate
string<date-time>

Inclusive end date (ISO 8601). Defaults to now.

source
enum<string>
默认值:all

Filter by post origin. "late" for posts published via AIsa, "external" for posts imported from platforms.

可用选项:
all,
late,
external
attribution
enum<string>
默认值:publish

How each post's engagement is attributed to a day.

  • "publish" (default): sums each post's lifetime total on its publish date.
  • "received": buckets the per-day increase in engagement by the day it actually arrived (engagement-over-time), so engagement on older posts appears on the day it was gained rather than the post's publish date.
可用选项:
publish,
received

响应

Daily metrics and platform breakdown

dailyData
object[]
platformBreakdown
object[]