Skip to main content
GET
/
api
/
integrations
/
{integration_id}
/
stats
Get integration account stats
curl --request GET \
  --url https://api.mymarky.ai/api/integrations/{integration_id}/stats \
  --header 'Authorization: Bearer <token>'
{
  "fetched_at": "2023-11-07T05:31:56Z",
  "platform": "<string>",
  "account_id": "<string>",
  "page_id": "<string>",
  "followers": 123,
  "following": 123,
  "posts_count": 123,
  "impressions": 123,
  "reach": 123,
  "profile_views": 123,
  "website_clicks": 123,
  "audience_age_pct": {},
  "audience_gender_pct": {},
  "audience_country_pct": {},
  "audience_city_pct": {},
  "audience_industry_pct": {},
  "audience_seniority_pct": {},
  "audience_function_pct": {},
  "metrics": [],
  "raw_metrics": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.mymarky.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Path Parameters

integration_id
string
required

Query Parameters

since
string | null

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

until
string | null

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

period
string
default:day

Aggregation period: day, week, days_28, lifetime

metrics
string | null

Comma-separated metric names (platform-specific). Omit for defaults.

Response

Successful Response

Account/page-level statistics.

Data-source agnostic: works for API fetches and local DB reads.

fetched_at
string<date-time>
platform
string | null
account_id
string | null
page_id
string | null
followers
integer | null
following
integer | null
posts_count
integer | null
impressions
integer | null
reach
integer | null
profile_views
integer | null
website_clicks
integer | null
audience_age_pct
Audience Age Pct · object

Age bucket -> share of audience (0.0-1.0). IG, YT, LinkedIn, Pinterest.

audience_gender_pct
Audience Gender Pct · object

Gender ('FEMALE'/'MALE'/'UNKNOWN') -> share. IG, YT, LinkedIn, Pinterest.

audience_country_pct
Audience Country Pct · object

ISO country code -> share. IG, YT, LinkedIn.

audience_city_pct
Audience City Pct · object

City name -> share. IG only.

audience_industry_pct
Audience Industry Pct · object

LinkedIn-only: industry name -> share.

audience_seniority_pct
Audience Seniority Pct · object

LinkedIn-only: seniority bucket -> share.

audience_function_pct
Audience Function Pct · object

LinkedIn-only: job function -> share.

metrics
MetricTimeseries · object[]
raw_metrics
Raw Metrics · object