Overview
Instagram data synced to V4MOS.AI, through the integration's own endpoints
The V4MOS.AI Instagram API gives you the raw records synced from the Instagram accounts connected to your organization: daily account insights, insights per media product type, published media, follower count and follower demographics. Rows come as they were synced, with the warehouse column names (snake_case), so you can load them straight into your BI. All endpoints use the /v1/instagram-insights prefix and the same authentication, pagination and response format.
Getting started
Base URL: https://data.v4mos.ai. Every call requires your API credentials and the organizationId — see Authentication.
- Connect Instagram in app.v4mos.ai (Connected accounts) and wait for the first sync.
- Call any endpoint below with your
organizationId, for exampleGET /v1/instagram-insights/daily?organizationId=…. - Every row carries
integration_idandintegration_name: the connection it came from. To read a single connection, pass that value asintegrationId.integration_idis a 17-digit identifier: always treat it as text.
Available endpoints
- getDaily insights
/v1/instagram-insights/dailyDaily account insights. - getInsights by media product type
/v1/instagram-insights/by-product-typeDaily insights per media product type (POST, REEL, STORY, CAROUSELCONTAINER, AD). - getMedia
/v1/instagram-insights/mediaOne row per published media of the account: type, permalink, caption, like and comment counts. - getFollower count
/v1/instagram-insights/follower-countFollowers of the account at the end of each day. - getFollower demographics
/v1/instagram-insights/demographicsLifetime follower demographics snapshot by breakdown (age, gender, country, city).
Resources
| Endpoint | What one row is | dateFrom / dateTo filter |
|---|---|---|
GET /v1/instagram-insights/daily | One row per account and day: views, reach, accounts engaged, interactions, profile visits, link taps, website clicks, follows and unfollows. | date |
GET /v1/instagram-insights/by-product-type | One row per account, day and media product type (POST, REEL, STORY, CAROUSEL_CONTAINER, AD): views, reach, interactions, likes, comments, shares and saves. | date |
GET /v1/instagram-insights/media | One row per published media of the account: type, permalink, caption, like and comment counts. | media_timestamp |
GET /v1/instagram-insights/follower-count | One row per account and day with the follower count. | date |
GET /v1/instagram-insights/demographics | Lifetime follower demographics snapshot by breakdown (age, gender, country, city). Each load replaces the rows of a breakdown as a whole, including clearing it when the source confirms it is empty; if an extraction fails the previous snapshot is kept, so check inserted_at for freshness. Requires 100+ followers. | — |
Scope
views and reach in daily include ads. For organic numbers use by-product-type and leave out the rows where media_product_type is AD (a row with no product type counts as organic). reach and accounts_engaged are deduplicated by Meta: never sum them across days or across product types.
Pagination and filters
page(default 1) andlimit(default 500, max 5000).meta.hasNextPagesays whether another page exists; rows come in a stable order, so walk the pages until it isfalse.dateFrom/dateTo(YYYY-MM-DD, inclusive) filter by the date column shown in the table above. Resources without one reject them.integrationIdkeeps the rows of one connection.- A
404saying the resource is not available in this environment yet means its warehouse table is not deployed there yet; retry after the release. - Answers are cached for 30 minutes and the data is synced once a day — see Data sync.
Response format
{
"data": [{ "...": "one object per row, with the columns listed on each endpoint" }],
"meta": {
"page": 1,
"limit": 500,
"hasNextPage": true,
"hasPreviousPage": false
}
}Large counters (format: int64 fields in each endpoint's schema) arrive as text, for example "1250", so no precision is lost. Convert them to a numeric type on your side.