Instagram Analytics API
Read the numbers from your OwlStat workspace in your own scripts, dashboards and agents: followers, engagement, posts, Reels and growth for the Instagram accounts in your workspace. It is the same API the OwlStat MCP server uses, over plain HTTPS and JSON, with your API key.
- Base URL
https://api.owlstat.io/api/mcp- Authentication
- Your API key in the
apikeyheader - Free plan
- 50 calls a month, 30 days of history, 2 accounts
- Paid plans
- No monthly call cap, the full history
What this API is
Access to your own OwlStat data, for your own use: the accounts you connected and the accounts you follow in your dashboard. It is not a bulk feed of Instagram data. There is data only for accounts OwlStat tracks, history starts on the day an account is added, and the limits below are sized for one workspace.
Routes
- GET/accountsYour accounts and their latest numbers
- POST/accounts/add/:usernameStart tracking a public account
- GET/findStats/:igidFollowers and engagement, day by day
- GET/accountGrowth/:igidGrowth over 7, 30 or 90 days, with a projection
- GET/findPosts/:igidPosts, sorted by date, likes, comments or views
- GET/reelsAnalytics/:igidReels with engagement and viral velocity
- GET/postInsights/:postIdReach, views, saves and shares of a connected post
- GET/tiktok/…The same for the TikTok accounts in your workspace
Before you start
- An OwlStat account. The free plan is enough to try it.
- Your API key, in Settings. It acts as you: keep it on your server, never in a browser or an app.
- The accounts you want to read, in your workspace. Add them in OwlStat or with
POST /accounts/addbelow.
Authentication
Send the key in the apikey header on every request.
curl https://api.owlstat.io/api/mcp/accounts \
-H "apikey: YOUR_API_KEY"Limits
| Calls | 50 a month on the free plan, Instagram and TikTok together, MCP included. Paid plans have no monthly cap. Only successful calls count. |
| History | The last 30 days on the free plan: an earlier startDate is moved forward and the answer carries X-OwlStat-History-Limit: 30. Paid plans get the full history. |
| Accounts | 2 on the free plan, Instagram and TikTok together, as in the dashboard. On the free plan you can add up to 5 new Instagram accounts a day. |
| Per minute | A per-minute ceiling protects the service. Over it you get 429 with Retry-After: 60. |
| Private metrics | Reach, views, saves and shares only for Instagram accounts you connected to OwlStat through Meta, and on the free plan only with Pro. |
Dates and ids
Ranges are startDate and endDate in milliseconds since 1970 (UTC). Without them you get the last 30 days. Accounts are identified by igid, the Instagram account id that /accounts and /resolve return.
Your accounts
GET/accounts
The Instagram accounts in your workspace, with their latest numbers. Accounts beyond your plan come back with inactive: true and no numbers.
[ { "igid": "1784…", "username": "yourbrand", "name": "Your Brand",
"last_stat_followers": 48210, "last_stat_following": 312,
"last_stat_posts": 640, "last_stat_engagement": 2.31,
"last_stat_date": "2026-11-30T03:00:00.000Z", "inactive": false } ]POST/accounts/add/:username
Starts tracking a public account in your workspace. Its history starts today. Free plan: 5 new accounts a day.
{ "success": true,
"account": { "igid": "1784…", "username": "competitor", "followers_count": 125400 } }POST/accounts/remove/:igid
Stops tracking it in your workspace. Answers { "success": true, "removed": "1784…" }.
GET/resolve/:username
The igid and latest numbers of a tracked account, from its username. 404 if OwlStat does not track it: add it first.
Followers and engagement
GET/findStats/:igid?startDate=…&endDate=…
One row per day, newest first: followers, following, posts, average likes and comments, engagement rate in percent.
[ { "date_only": "2026-11-30", "followers_count": 48210, "following_count": 312,
"posts_count": 640, "likes_average": 1104.5, "comments_average": 38.2,
"engagement": 2.31 } ]GET/findProfiles/:igids?startDate=…&endDate=…
Several accounts at once (ids separated by commas), each with its daily rows in igstats and the change over the range: diff_followers, diff_followers_percent, diff_engagement.
GET/accountGrowth/:igid?period=30d
period is 7d, 30d or 90d. Follower change, engagement trend, posting pace and a projection.
{ "period": "30d",
"followers": { "current": 48210, "start": 46980, "change": 1230,
"change_pct": 2.62, "avg_daily_gain": 42.4 },
"engagement": { "current_rate": 2.31, "avg_likes": 1104.5,
"avg_comments": 38.2, "change_pct": -1.2 },
"posting": { "total_posts_period": 14, "avg_posts_per_week": 3.4 },
"projections": { "followers_30d": 49482, "followers_90d": 52026 } }Posts and Reels
GET/findPosts/:igid
Query: limit (1 to 100, default 12), offset, sort (timestamp, likes, comments or views), media_product_type (e.g. REELS). Answers { posts, total, limit, offset }.
{ "posts": [ { "id": "DAbc123", "permalink": "https://www.instagram.com/p/DAbc123/",
"media_type": "VIDEO", "media_product_type": "REELS",
"like_count": 5400, "comments_count": 120, "views_count": 81000,
"timestamp": "2026-11-28T17:00:00.000Z" } ],
"total": 340, "limit": 12, "offset": 0 }On accounts you connected, posts also carry reach, views, saves and shares (see Limits).
GET/reelsAnalytics/:igid
Query: limit (1 to 50, default 20), sort (timestamp, views, engagement or viral_velocity). Each Reel with likes, comments, views, engagement rate and viral velocity, plus averages in summary.
GET/postInsights/:postId?startDate=…&endDate=…
How reach, views, saves and shares of one post (its id from /findPosts) changed day by day. Only for accounts you connected.
{ "post_id": "DAbc123",
"insights": [ { "date": "2026-11-29T00:00:00.000Z", "reach": 42000,
"views": 61000, "saves": 310, "shares": 95 } ] }TikTok
The TikTok accounts in your workspace answer under https://api.owlstat.io/api/mcp/tiktok: /accounts, /resolve/:username, /findStats/:id, /findVideos/:id, /accountGrowth/:id and /videoAnalytics/:id, with the same key, the same dates and the same monthly calls. TikTok numbers are public ones (plays, likes, comments, shares, saves): there is no TikTok login.
Errors
Errors are JSON with error (a code) and message (a sentence you can show to a person), except 401.
| 401 | The API key is missing or wrong. Plain text body. |
| 402 quota_exceeded | The month's calls are used up. With limit, used, resets_at. |
| 402 pro_required | Reach, views, saves and shares need Pro on this account. |
| 403 not_your_account | Post insights of an account you did not connect. |
| 403 daily_add_limit | The free plan's 5 new accounts today are used up. |
| 404 | OwlStat has nothing for this: the account is not tracked, or there is no data yet. Repeating the call will not change it. |
| 429 rate_limited | Too many calls in one minute. Wait for Retry-After. |
More
- From Claude, ChatGPT or Cursor instead of code: the Instagram MCP server and the TikTok MCP server.
- To schedule posts from your tools: the Instagram Scheduling API.
- Everything for developers: owlstat.io/developers.