DEV Community

coreclaw
coreclaw

Posted on

Instagram Influencer Vetting: How to Screen Creators with Public Data Using Python

Instagram influencer vetting is the process of screening a creator's public profile and recent posts before you commit budget to a partnership — and the fastest reliable way to do it is to pull structured public data for each candidate, compute engagement quality metrics in Python, and flag the profiles whose numbers don't hold up. If you sign creators based on follower counts alone, you will overpay for audiences that never see the post. This article walks through a repeatable vetting workflow you can run for a list of 10 or 10,000 candidate creators.

TL;DR

  • Follower count is a vanity number; engagement rate, posting consistency, and audience-response patterns are the metrics that predict partnership performance.
  • Manual vetting (opening each profile, eyeballing posts) does not scale past a handful of creators and is inconsistent between reviewers.
  • The workflow below: collect candidate handles → fetch public profile and recent-post data → normalize records → compute engagement metrics and red flags → export a ranked shortlist.
  • The example uses the CoreClaw Instagram Post Scraper for the public data step and plain Python for the analysis, with all credentials and endpoints supplied via environment variables.
  • Verify every account against platform terms and your local data-protection rules before production use.

Why influencer vetting breaks down at scale

Most teams vet creators the same way: someone opens Instagram, scrolls the profile, screenshots a few posts, and pastes numbers into a spreadsheet. That process has three structural problems.

It doesn't scale. A single campaign shortlist might contain 50 creators. At three to five minutes of manual review each, that's most of a workday — and it repeats for every campaign, every market, every product line. Agencies running ongoing programs do this weekly.

It's inconsistent. Two reviewers looking at the same profile will weight different signals. One notices the comment section is full of generic emoji; the other is impressed by the follower count. Without a fixed metric set, your "vetted" list is really a list of reviewer opinions.

The easy numbers are gameable. Follower counts can be bought. Like counts can be inflated by engagement pods. The signals that are hard to fake — comment depth, the ratio of saves-and-shares-style engagement to likes, consistency of posting, whether engagement is stable across recent posts instead of spiking on one viral reel — require actually looking at the post data, not just the profile header.

None of this means you need to abandon human judgment. It means the judgment should happen after a machine does the arithmetic. The workflow in this article automates the arithmetic.

What "public data" covers in a vetting workflow

Everything this workflow uses is publicly visible on Instagram: the profile's follower and post counts, the bio, and the recent public posts with their like and comment counts. Nothing here involves logged-in-only data, private accounts, followers lists, DMs, or any private information.

A practical vetting dataset per creator looks like this:

Field group Typical fields Used for
Profile handle, followers, following, post count, bio, is_verified, is_business Baseline size and positioning
Recent posts post URL, timestamp, type (image/reel/carousel), likes, comments, caption Engagement quality metrics
Captions text, hashtags, mentions Content fit and disclosure practices
Timing post timestamps Posting cadence and consistency

Field names and coverage vary by data provider, so before you write any code, pull one real response from your provider and check the exact field list. The code below is written defensively for exactly that reason.

The vetting pipeline, end to end

The workflow has five steps:

  1. Collect candidate handles. These come from wherever your discovery happens — hashtag scanning, competitor follower research, an agency roster, or inbound DMs.
  2. Fetch public profile and post data. One request per handle against a structured data source. Doing this from your own machine against Instagram directly is fragile (login walls, rate limiting, layout changes), which is why most teams route this step through a managed data source. For this article, the fetch step uses the CoreClaw Instagram Post Scraper, which returns structured public post and profile records for a given handle.
  3. Normalize the records. Providers change field names; your analysis shouldn't care. Map each raw record into a small internal schema once.
  4. Compute metrics. Engagement rate per post, median engagement, comment-to-like ratio, posting cadence, engagement stability, and simple red-flag heuristics.
  5. Rank and export. Score each creator, sort, and write a CSV your team can review and annotate.

Step 2 is the only step that talks to the network. Steps 3–5 are pure local Python, which makes them cheap to test, re-run, and extend.

Setup

You need Python 3.10+ and two environment variables:

# macOS / Linux
export CORECLAW_API_KEY="your-key-here"
export CORECLAW_INSTAGRAM_ENDPOINT="https://.../endpoint-from-console"

# Windows PowerShell
$env:CORECLAW_API_KEY = "your-key-here"
$env:CORECLAW_INSTAGRAM_ENDPOINT = "https://.../endpoint-from-console"
Enter fullscreen mode Exit fullscreen mode

Copy the current API key and the exact endpoint URL for the Instagram worker from the CoreClaw console into these variables — don't hardcode them, and don't paste them into the script. The endpoint path differs per deployment, so always take it from the console rather than from a tutorial.

The code

This script reads a list of handles, fetches public data, computes vetting metrics, and writes a ranked CSV. It uses defensive field access throughout, because real provider payloads drift over time.

import csv
import os
import statistics
import sys
from datetime import datetime, timezone

import requests

API_KEY = os.environ["CORECLAW_API_KEY"]
ENDPOINT = os.environ["CORECLAW_INSTAGRAM_ENDPOINT"]

# Adjust these keys after inspecting one real response from your provider.
FIELD_MAP = {
    "handle": ["handle", "username"],
    "followers": ["followers_count", "followers"],
    "posts": ["posts", "posts"],
}

POST_FIELD_MAP = {
    "timestamp": ["timestamp", "taken_at", "posted_at"],
    "likes": ["likes_count", "likes"],
    "comments": ["comments_count", "comments"],
}


def pick(record, candidates, default=None):
    """Return the first matching key's value, or a default."""
    for key in candidates:
        if key in record and record[key] is not None:
            return record[key]
    return default


def fetch_creator(handle: str) -> dict:
    """Fetch public profile + recent posts for one handle."""
    resp = requests.post(
        ENDPOINT,
        headers={"Authorization": f"Bearer {API_KEY}"},
        json={"handle": handle},
        timeout=120,
    )
    resp.raise_for_status()
    return resp.json()


def parse_post(raw: dict) -> dict | None:
    ts = pick(raw, POST_FIELD_MAP["timestamp"])
    likes = pick(raw, POST_FIELD_MAP["likes"])
    comments = pick(raw, POST_FIELD_MAP["comments"])
    if ts is None or likes is None:
        return None
    return {"timestamp": ts, "likes": float(likes), "comments": float(comments or 0)}


def vet_creator(raw: dict) -> dict | None:
    handle = pick(raw, FIELD_MAP["handle"])
    followers = pick(raw, FIELD_MAP["followers"])
    raw_posts = raw.get("posts") or raw.get("recent_posts") or []
    posts = [p for p in (parse_post(x) for x in raw_posts) if p]

    if not handle or not followers or len(posts) < 3:
        return None  # not enough public data to judge fairly

    engagements = [p["likes"] + p["comments"] for p in posts]
    median_eng = statistics.median(engagements)
    eng_rate = median_eng / float(followers) if followers else 0.0

    # Comment-to-like ratio: real audiences comment; pods mostly like.
    total_likes = sum(p["likes"] for p in posts)
    total_comments = sum(p["comments"] for p in posts)
    cl_ratio = total_comments / total_likes if total_likes else 0.0

    # Stability: how much recent engagement swings between posts.
    spread = (max(engagements) - min(engagements)) / median_eng if median_eng else 0.0

    # Posting cadence from timestamps.
    def to_ts(p):
        try:
            return datetime.fromisoformat(str(p["timestamp"]).replace("Z", "+00:00"))
        except ValueError:
            return None

    times = sorted(t for t in (to_ts(p) for p in posts) if t)
    days_between = None
    if len(times) >= 2:
        span_days = (times[-1] - times[0]).total_seconds() / 86400
        days_between = span_days / (len(times) - 1)

    red_flags = []
    if eng_rate < 0.01:
        red_flags.append("engagement_rate_below_1pct")
    if cl_ratio < 0.005 and total_likes > 0:
        red_flags.append("very_low_comment_ratio")
    if spread > 8:
        red_flags.append("high_engagement_volatility")

    return {
        "handle": handle,
        "followers": int(followers),
        "median_engagement": round(median_eng, 1),
        "engagement_rate": round(eng_rate, 4),
        "comment_like_ratio": round(cl_ratio, 4),
        "engagement_spread": round(spread, 2),
        "days_between_posts": round(days_between, 1) if days_between else None,
        "posts_analyzed": len(posts),
        "red_flags": ";".join(red_flags) or "none",
    }


def main() -> None:
    handles = [h.strip() for h in sys.argv[1:]] or ["creator_one", "creator_two"]
    rows, skipped = [], []
    for handle in handles:
        try:
            raw = fetch_creator(handle)
        except requests.RequestException as exc:
            skipped.append((handle, f"fetch failed: {exc}"))
            continue
        vetted = vet_creator(raw)
        if vetted:
            rows.append(vetted)
        else:
            skipped.append((handle, "insufficient public data"))

    rows.sort(key=lambda r: r["engagement_rate"], reverse=True)

    out_path = "influencer_vetting.csv"
    with open(out_path, "w", newline="", encoding="utf-8") as f:
        writer = csv.DictWriter(f, fieldnames=list(rows[0].keys()) if rows else ["handle"])
        writer.writeheader()
        writer.writerows(rows)

    print(f"vetted {len(rows)}, skipped {len(skipped)} -> {out_path}")
    for handle, reason in skipped:
        print(f"  skipped {handle}: {reason}")


if __name__ == "__main__":
    main()
Enter fullscreen mode Exit fullscreen mode

Run it with the handles you want to screen:

python vet_influencers.py @creator_a @creator_b @creator_c
Enter fullscreen mode Exit fullscreen mode

What the output looks like

The following is an illustrative example with invented numbers — your actual values depend on the creators you screen and your provider's current field coverage:

handle,followers,median_engagement,engagement_rate,comment_like_ratio,engagement_spread,days_between_posts,posts_analyzed,red_flags
@creator_b,48200,1960,0.0407,0.0214,1.32,2.1,12,none
@creator_a,312000,2740,0.0088,0.0041,6.85,1.4,12,engagement_rate_below_1pct
@creator_c,120500,430,0.0036,0.0012,11.4,0.8,12,engagement_rate_below_1pct;very_low_comment_ratio;high_engagement_volatility
Enter fullscreen mode Exit fullscreen mode

Reading it as a buyer would: @creator_b has the smallest audience but the healthiest engagement rate, a comment ratio that suggests real people are responding, and stable numbers post to post. @creator_c is the classic profile to walk away from — a six-figure follower count with sub-1% engagement, almost no comments, and wild swings between posts.

The thresholds (1% engagement floor, 0.005 comment ratio, spread of 8) are starting points, not laws. Calibrate them against creators you've already worked with and whose actual performance you know.

A vetting checklist for human review

Automated metrics narrow the list; a human still signs off. For each shortlisted creator:

  • [ ] Bio and recent captions match your brand category and are free of conflicting sponsorships.
  • [ ] Comment quality check: specific comments and questions, not walls of emoji or "nice pic" from repeat accounts.
  • [ ] Audience geography and language plausibly match your target market (inferable from comments and captions, not from private data).
  • [ ] Disclosure hygiene: past sponsored posts use proper disclosures — a sign of a professional partner.
  • [ ] Cadence fits your campaign window (a creator who posts twice a month won't hit your launch date).
  • [ ] Rates verified directly with the creator; never assume a rate card from public metrics.

Where teams use this workflow

Agency campaign ops. Agencies screen dozens of candidates per client per month. A ranked CSV with red flags turns a day of manual scrolling into an afternoon of review, and produces a consistent artifact you can show the client.

In-house brand marketing. Brands running always-on ambassador programs re-vet their roster quarterly. The same script re-run each quarter shows whether a creator's engagement is holding up or decaying before renewal negotiations.

Affiliate and creator-marketplace teams. Marketplaces screening inbound creator applications can run this workflow on every applicant and route only qualified profiles to human review.

Competitive intelligence. Watching which creators your competitors sponsor — and how those partnerships actually perform in public engagement — informs your own outreach list.

Build vs buy for the data layer

The analysis code is yours either way. The real decision is where the public data comes from:

Option Setup Maintenance Fits when
Direct scraping from your own machines High: proxies, parsing, login-wall handling Continuous: layout and rate-limit changes break it You have a platform team and compliance sign-off
Managed structured data source (e.g. CoreClaw) Low: API key + endpoint from console Provider absorbs parsing changes Small teams that want the metrics, not the infrastructure
Manual review only None None One-off campaigns with fewer than ~10 creators

If you're evaluating managed options, the CoreClaw product store lists the ready-made scrapers alongside the other platform workers, so you can see coverage before committing to an integration.

Limitations and compliance

Be honest about what this workflow can't tell you, and stay inside the lines:

  • Public data only. Everything here comes from publicly visible profile and post data. Don't attempt to pull follower lists, contact details behind login walls, or anything from private accounts. Private information about identifiable people carries GDPR and similar obligations — consult counsel before storing or enriching personal data at scale.
  • Metrics are proxies. Engagement rate predicts attention, not conversion. A creator with mediocre engagement but a hyper-relevant niche audience can outperform a generic high-engagement account. Use the scores to order your outreach, not to auto-reject.
  • Sample size. Twelve recent posts is a snapshot. A single viral reel or a quiet holiday month skews the numbers; re-run before final decisions.
  • Provider coverage changes. Field names, depth of history, and regional availability vary by provider and over time — verify the current field list in your provider's console before relying on any specific column.
  • Platform terms. Respect Instagram's terms of service and your data provider's policies, and ensure your use case complies with applicable law in your jurisdiction. This workflow is for evaluating public marketing performance, not for profiling individuals beyond what their public creator presence shows.

FAQ

Is there an official Instagram API for this?
Instagram's official Graph API serves account owners and approved partners for their own accounts and, in limited cases, business discovery — it is not a general-purpose way to pull arbitrary public creators' post metrics. That gap is exactly why vetting workflows use structured public data sources instead.

What data fields do I actually need?
The minimum viable set is followers plus per-post likes, comments, and timestamps for the most recent 10–20 posts. Captions help with content-fit review but aren't required for the core metrics.

How far back should I look?
The last 10–15 posts covers roughly one to three months for an active creator — enough to see stability without drowning in stale data. For slow posters, extend the window.

What engagement rate is "good"?
There's no universal number; it declines steeply with follower count. A 3% rate can be strong at 500K followers and mediocre at 5K. Compare creators within similar size bands, and calibrate thresholds against your own past partnerships.

Can this run inside n8n or an AI agent workflow?
Yes — the fetch step is a plain HTTP call, so it slots into n8n, Zapier, or an agent tool loop the same way it slots into Python. Keep the metric computation deterministic (in code, not in a prompt) so your vetting standard doesn't drift.

How often should I re-vet a creator?
Before every new engagement, and quarterly for ongoing ambassadors. Public metrics move; a roster vetted a year ago is a roster you don't actually know.

What happens when the provider's response format changes?
Your FIELD_MAP breaks loudly (None values, skipped rows) rather than silently wrong numbers — that's the point of the defensive pick() helper. Check one raw response, update the map, re-run.

Get started

Take ten creators you're currently considering, run the script against their public profiles, and compare the ranked output with your team's gut ranking. Where they disagree, look at the red flags — that's usually where the manual process was missing something. If you want to spin up the data side without building scraping infrastructure, you can deploy a ready-made Instagram worker on CoreClaw and have structured public data flowing in minutes; the Instagram Post Scraper product page documents the current setup and field coverage.

Related reading: if your program also covers YouTube partnerships, the same metrics-first vetting approach applies to public video and channel data — see the YouTube workflows earlier in this series, and swap the fetch step for the appropriate worker.

Top comments (0)