Monitor a Competitor's Social Media by API
Monitor a Competitor's Social Media by API
To monitor a competitor's social media by API, call a profile endpoint on a schedule (for example once a day), save each response with its timestamp, and treat the difference between two reads as growth. With SocialLens (sociallens.dev), the request is GET https://api.sociallens.dev/v1/profile?platform=instagram&username=nasa, and every read costs 1 credit.
One honest point up front: the API returns the current snapshot, not history. There is no historical backfill. Your time series starts the day you start storing reads, so the earlier you begin, the longer your chart gets.
The pattern: poll, store, subtract
The whole approach is three steps:
- Poll
/profilefor each competitor on a schedule. Daily is a sensible default for follower counts. - Store the fields you care about (followers, videos, following) together with the
fetched_attimestamp from the response. A spreadsheet, a SQLite file or a database table all work. - Subtract. Today's followers minus yesterday's followers is the daily growth. Divide by yesterday's value and you have a growth rate.
The same works for posting activity: the videos field is the profile's post count, so the difference between two reads tells you how many posts were published in between.
The request
SocialLens uses one request shape on all 9 supported networks: you change platform and username, and the rest stays the same. Authentication is a bearer key in the Authorization header.
curl "https://api.sociallens.dev/v1/profile?platform=instagram&username=nasa" \
-H "Authorization: Bearer sk_live_YOUR_KEY"
Real response for the public Instagram profile @nasa, read on November 30, 2026 (avatar URL shortened):
{
"exists": true,
"username": "nasa",
"platform": "instagram",
"nickname": "NASA",
"verified": true,
"private": false,
"followers": 104245108,
"is_exact": true,
"following": 91,
"videos": 5032,
"avatar": "...",
"id": "528817151",
"fetched_at": "2026-11-30T14:36:14Z"
}
For your series, the useful columns are fetched_at, followers and videos. At the time of this read, that row is 2026-11-30T14:36:14Z, 104245108, 5032. Tomorrow's read minus this row is one day of growth.
If a username does not exist, the API still answers with HTTP 200 and "exists": false. Check that field in your poller so a deleted or renamed account is logged as an event instead of crashing your job or being stored as zero followers.
A minimal poller
Here is a small shell example that appends one row per competitor to a CSV. Run it once a day from cron or any scheduler you already have. It needs curl and jq.
#!/usr/bin/env bash
KEY="sk_live_YOUR_KEY"
for entry in "instagram:nasa" "instagram:natgeo"; do
platform="${entry%%:*}"
username="${entry##*:}"
curl -s "https://api.sociallens.dev/v1/profile?platform=$platform&username=$username" \
-H "Authorization: Bearer $KEY" \
| jq -r 'select(.exists == true) | [.fetched_at, .platform, .username, .followers, .videos] | @csv' \
>> competitors.csv
done
Each line of competitors.csv is one point in a time series. After a few weeks you can chart it in any spreadsheet tool.
Tracking a competitor's recent posts
Follower counts tell you how big an account is getting. To see what it is publishing, SocialLens also has /profile-posts, which returns a profile's recent posts. Poll it on the same schedule, store the post identifiers you have already seen, and anything new is a post your competitor published since the last run.
No backfill: what that means in practice
This is the limit that matters most for this use case, so here it is plainly:
- The API gives you what a public profile shows right now.
- It does not give you last month's or last year's follower counts.
- Your series begins on the first day you store a read. If you start today, you have one data point today and two tomorrow.
- If you need a chart of what happened before you started, you need a source that already collected that history (see the section on other routes below).
The practical advice is to start early. Even a competitor you only might care about later is cheap to track (see the cost section), and an unbroken daily record is something you cannot create after the fact.
What it does not do
SocialLens reads public profiles, posts and comments. It is intentionally narrow, so you should know what is outside it:
- No historical backfill. Covered above.
- No keyword or hashtag search. You track accounts you name, you cannot ask "find accounts posting about X".
- No audience demographics. You get public counts, not who the followers are, where they live or how old they are.
- No fake-follower or fraud detection. A follower number is reported as the profile shows it, with no quality score.
- No identity verification (KYC). The
verifiedfield reflects the badge on the public profile, nothing more. - Public data only. If an account is private (
"private": true), you cannot read beyond what is public.
Also remember that followers_rounded and is_exact exist because some networks only show rounded numbers on some profiles. When is_exact is false, small day-to-day differences may not be visible, so compare over longer windows.
When another route is the better fit
Polling your own series is a good fit for small teams, indie products and anyone who wants raw numbers in their own database. It is not the best fit in every case:
- You need history from before today. A tool that has been recording follower counts for years, such as a dedicated analytics service, can show a past you cannot rebuild. See Social Blade API alternative: follower history for how to think about that trade-off.
- You need influencer analytics. Audience demographics, authenticity scores and campaign reporting are the territory of influencer platforms such as Modash.
- You need enterprise coverage and contracts. Large volumes, SLAs, dedicated support and procurement paperwork are better served by providers built for that, for example Data365 or EnsembleData. SocialLens is a pay-as-you-go, self-serve API, and it does not try to be an enterprise data vendor.
- You need users to connect their own accounts. That is a different problem (consented access to private data), handled by products like Phyllo.
If your goal is "I want a daily number for a handful of public accounts and I want to own the data", the polling pattern is simple, cheap and easy to explain to the rest of your team.
What it costs
Pricing is on the pricing page: 1 credit per read, 250 free reads with no card, credits never expire, and packs start from about US$19.
The math is simple. One profile read per competitor per day:
| Competitors tracked | Reads per day | Reads per 30 days |
|---|---|---|
| 1 | 1 | 30 |
| 5 | 5 | 150 |
| 10 | 10 | 300 |
So N competitors polled daily is N credits per day. The 250 free reads cover a single competitor for about 8 months of daily polling, or 10 competitors for 25 days. If you also poll /profile-posts daily, count its reads on top of the profile reads.
Because credits do not expire, a quiet month costs nothing extra: you only spend the reads you actually make.
FAQ
Can I get my competitor's follower history from before I started?
No. The API returns the current snapshot only, with no historical backfill. Your history begins the day you start storing reads, which is why starting early is the best thing you can do.
How often should I poll?
For follower and post counts, once a day is usually enough and keeps cost at 1 credit per competitor per day. Polling more often mostly adds noise and spends credits faster. Pick a fixed time of day so your reads are comparable.
What happens if the account is deleted or renamed?
The API returns HTTP 200 with "exists": false. Your poller should check that field and record the event rather than storing a zero. A renamed account will need its new username added to your list.
Does it work for networks other than Instagram?
Yes. SocialLens reads public profiles on 9 networks with the same request shape, so you change the platform value and the username. See the unified social media data API guide for the list and details.
Is this allowed, and does it need the competitor's permission?
SocialLens reads public profile data, the same counts anyone can see by visiting the page. It does not access private accounts or private data. For your own legal and compliance questions about how you use competitor data, consult your own counsel.
Related guides
- Unified social media data API
- Follower count API
- Social media API comparison
- Social Blade API alternative: follower history
Last updated and data verified on November 30, 2026.