Skip to main content
GET
Get TikTok account-level insights

Request contract

  • Method and path: GET /apis/v1/social/analytics/tiktok/account-insights
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/social/analytics/tiktok/account-insights
  • accountId: query; required
  • metrics: query; optional
  • fromDate: query; optional
  • toDate: query; optional
  • since: query; optional
  • until: query; optional
  • metricType: query; optional
  • Runtime facts: 99acb5bddbedc8d3352e7c4fef86c3e6d8852c14772bcd18dbcf415237a642bd
Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

A request reference price is not currently available; use a request quote where supported. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.

Authorizations

Authorization
string
header
required

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

Query Parameters

accountId
string
required

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

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

Comma-separated list. Defaults to "follower_count,likes_count,video_count,followers_gained,followers_lost".

Live from /v2/user/info/ (requires user.info.stats scope):

  • follower_count (cumulative; time series joined from AccountStats)
  • following_count (cumulative; time series joined from AccountStats.metadata)
  • likes_count (cumulative; time series joined from AccountStats.metadata)
  • video_count (cumulative; time series joined from AccountStats.metadata)

AIsa-synthesized:

  • followers_gained (sum of positive daily follower deltas)
  • followers_lost (sum of absolute negative daily deltas)
fromDate
string<date>

Start date (YYYY-MM-DD). Defaults to 30 days ago.

toDate
string<date>

End date (YYYY-MM-DD). Defaults to today.

since
string<date>

Alias of fromDate, kept for existing callers

until
string<date>

Alias of toDate, kept for existing callers

metricType
enum<string>
default:total_value

"total_value" returns the latest cumulative counter value. "time_series" returns daily values joined from AccountStats snapshots.

Available options:
time_series,
total_value

Response

Account insights data

Shared account-insights response envelope used by every platform-level analytics endpoint (/apis/v1/social/analytics/{facebook|instagram|youtube|linkedin|tiktok}/*). The name is historical - the shape was first shipped for Instagram and every new platform endpoint reuses it for response-shape consistency. The platform field echoes back which platform served the response.

accountId
string

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

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

Breakdown dimension used (only present when breakdown was requested)

dataDelay
string
dateRange
object
metricType
enum<string>
Available options:
time_series,
total_value
metrics
object

Object keyed by metric name.

  • For time_series: each metric has "total" (number) and "values" (array of {date, value}).
  • For total_value: each metric has "total" (number) and optionally "breakdowns" (array of {dimension, value}).

Monetary metrics also carry "unit" and "currency". AIsa never rescales money: "total" and every "values[].value" are the platform's raw numbers in the stated unit.

Monetary metrics keep "values" even on metricType=total_value, because their "total" is the sum of the daily buckets the platform returned over the range. Keep the series to reconcile that sum against the platform's own reporting before invoicing on it.

A metric that could not be served is absent from this object and listed in "unavailableMetrics" instead, so an unavailable metric is never reported as a zero.

platform
enum<string>

Platform that served this response.

Available options:
facebook,
instagram,
youtube,
linkedin,
tiktok
success
boolean
unavailableMetrics
object[]

Requested metrics that could not be served. Present only when at least one metric is unavailable, absent otherwise.

Each listed metric is OMITTED from "metrics" rather than reported as 0, which is how an unavailable metric is distinguished from a genuine zero. The request itself still succeeds with HTTP 200.