Automatically Verify an Affiliate Applicant's Social Media Followers: API Check for Signup Forms (2026)

Published · 11 min read

Last updated and prices verified: .

To automatically verify an affiliate or ambassador applicant's social media followers, have your signup form send the handle to a webhook, read the public profile with one API call, and apply a rule: approve, reject or send to manual review. GET https://api.sociallens.dev/v1/profile returns the current followers count as JSON for Instagram, TikTok, YouTube, X, Facebook, Threads, Pinterest and LinkedIn with the same request. The applicant does not connect or authorize anything, and one check is one read, about $0.002.

This page covers what the check proves and what it does not, the flow from form to decision, real responses, a multi network rule in Python and Node, a version for Google Forms, the cost per 1,000 applicants next to the alternatives, and when a platform with account connection is the better choice.

What an automatic follower check proves, and what it does not

An application form asks "how many followers do you have?" and people round up, paste an old number or type a handle that does not exist. A public read replaces the claim with the number anyone can see on the profile today.

What one read tells you:

What it does not tell you, and no public count can:

If your program pays on performance, a threshold check is usually enough: it filters empty and misleading applications, and the commission structure does the rest. If you pay flat fees up front, read the section on when to use a vetting platform instead.

The flow: form, webhook, one read, one rule

  1. The form collects a handle per network, not a follower number. Typeform, Tally and most form builders can post each submission to a webhook URL. Google Forms does it with a short Apps Script, shown below.
  2. Your webhook reads each handle with GET /v1/profile, one at a time.
  3. A rule turns the reads into a decision.
  4. You store the decision with the timestamp and tag the applicant in your affiliate tool, or email the result to whoever reviews.

A rule that works for most programs:

Result of the read Decision
At least one network at or above your threshold Approve
No network reaches the threshold, and every profile was read Reject, or reply asking for another channel
A profile is private Manual review
The read failed (409, 429, 503) after retries Manual review, or check again later. Never reject on a failed read
exists: false on every handle Reject, or ask the applicant to correct the handle

For the threshold itself, public program rules are a useful reference. TikTok Shop's Creator Eligibility Policy for the United States, published in its Seller University and last updated in September 2026, asks affiliate creators for at least 1,000 followers, and places creators under 5,000 in a pilot program for a minimum of 30 days. "1,000 followers on any network" is a common starting line for brand programs for the same reason: it is low enough to include small creators and high enough to remove empty accounts.

Real responses: what the webhook receives

The request for one handle, written as curl:

curl "https://api.sociallens.dev/v1/profile?platform=tiktok&username=nasa" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

These are the fields a screening rule needs, from a read made on November 24, 2026:

{
  "exists": true,
  "username": "nasa",
  "platform": "tiktok",
  "private": false,
  "followers": 2223716,
  "followers_rounded": 2200000,
  "is_exact": true,
  "likes": 11908201,
  "fetched_at": "2026-11-24T19:36:00Z"
}

Compare followers, the exact integer. followers_rounded is the figure the TikTok page displays. The full response also carries the display name, verified, the bio, the avatar and a credits object with what the call cost.

A B2B partner program often asks for a company page instead. LinkedIn answers the same request with a company object, and the count is in the same field:

{
  "exists": true,
  "platform": "linkedin",
  "type": "company",
  "name": "Shopify",
  "handle": "shopify",
  "followers": 1123386,
  "employee_count": 30452,
  "location": { "city": "Ottawa", "state": "ON", "country": "CA" },
  "website": "https://www.shopify.com",
  "fetched_at": "2026-11-26T00:36:16Z"
}

A handle that does not exist (real response):

{
  "exists": false,
  "username": "sl_no_such_brand_7q2k9x",
  "platform": "tiktok",
  "fetched_at": "2026-11-26T00:37:57Z"
}

The networks you can put on the form, with the precision of the count:

Network platform value Follower count
Instagram instagram Exact
TikTok tiktok Exact. The page shows a rounded figure
YouTube youtube Subscribers, rounded by YouTube to three significant figures, is_exact: false
X (Twitter) x Exact
Facebook facebook Exact
Threads threads Exact
Pinterest pinterest Exact
LinkedIn linkedin Full number, company page or person

Reddit is the ninth network of the API, but a subreddit has weekly active users and no follower count, so it does not fit a follower threshold.

The fields each network returns are on its reference page: Instagram API, TikTok API, YouTube API, X API, Facebook API, Threads API, Pinterest API and LinkedIn API. The full network by endpoint table is in the API documentation.

A multi network rule in Python: 1,000 followers on any network

This is a complete webhook receiver. It accepts a JSON body such as {"email": "[email protected]", "profiles": {"instagram": "@ana.makes", "pinterest": "https://www.pinterest.com/anamakes/"}}, reads each profile and returns the decision. Map the fields of your form to that shape, or adapt the first lines of application().

import os
import re
import time

import requests
from flask import Flask, jsonify, request

API = "https://api.sociallens.dev/v1/profile"
KEY = os.environ["SOCIALLENS_KEY"]
MIN_FOLLOWERS = 1000
URL_OK = {"linkedin", "facebook"}  # these two accept a full profile URL

app = Flask(__name__)


def clean_handle(platform, value):
    """Applicants paste anything: @handle, handle or a full URL."""
    value = value.strip()
    if platform in URL_OK and value.startswith("http"):
        return value
    parts = [p for p in re.sub(r"^https?://", "", value).split("?")[0].split("/") if p]
    if len(parts) > 1 and "." in parts[0]:
        parts = parts[1:]  # drop the domain
    return parts[0].lstrip("@") if parts else ""


def read_profile(platform, username):
    """One profile read. Retries the three statuses that mean 'try again'."""
    for attempt in range(3):
        r = requests.get(
            API,
            params={"platform": platform, "username": username},
            headers={"Authorization": f"Bearer {KEY}"},
            timeout=60,
        )
        if r.status_code not in (409, 429, 503) or attempt == 2:
            break
        time.sleep(int(r.headers.get("Retry-After", 5)))
    try:
        return r.status_code, r.json()
    except ValueError:
        return r.status_code, {}


def screen(profiles):
    """profiles: {"instagram": "handle", "pinterest": "handle", ...} -> decision."""
    checks = []
    for platform, raw in profiles.items():  # one at a time, on purpose
        username = clean_handle(platform, raw or "")
        if not username:
            continue
        status, d = read_profile(platform, username)
        if status != 200:
            checks.append({"platform": platform, "result": "unavailable"})
        elif not d.get("exists"):
            checks.append({"platform": platform, "result": "not_found"})
        elif d.get("private"):
            checks.append({"platform": platform, "result": "private"})
        else:
            checks.append({
                "platform": platform,
                "result": "ok",
                "followers": d.get("followers"),
                "is_exact": d.get("is_exact"),
                "verified": d.get("verified"),
                "checked_at": d.get("fetched_at"),
            })
    best = max((c.get("followers") or 0 for c in checks), default=0)
    unclear = any(c["result"] in ("unavailable", "private") for c in checks)
    if best >= MIN_FOLLOWERS:
        decision = "approve"
    elif unclear:
        decision = "review"  # something could not be seen: a person decides
    else:
        decision = "reject"
    return {"decision": decision, "best_followers": best, "checks": checks}


@app.post("/webhooks/affiliate-application")
def application():
    body = request.get_json(force=True)
    result = screen(body.get("profiles", {}))
    # Save result next to the application, then tag or email from here.
    return jsonify(result)

Notes for production:

Optional: confirm the applicant controls the account

A public read cannot prove ownership, but a second read can. Ask the applicant to add a short code to their bio, then read the profile again and look for it. This works on networks whose response carries a bio field, such as Instagram and TikTok, and costs one more read.

def owns_account(platform, username, code):
    status, d = read_profile(platform, username)
    return status == 200 and code.lower() in (d.get("bio") or "").lower()

The same rule in Node

Node 18 or newer, no dependencies. Save as screen.mjs and run with node screen.mjs.

import { createServer } from "node:http";

const API = "https://api.sociallens.dev/v1/profile";
const KEY = process.env.SOCIALLENS_KEY;
const MIN_FOLLOWERS = 1000;
const URL_OK = new Set(["linkedin", "facebook"]);

function cleanHandle(platform, value) {
  value = value.trim();
  if (URL_OK.has(platform) && value.startsWith("http")) return value;
  let parts = value.replace(/^https?:\/\//, "").split("?")[0].split("/").filter(Boolean);
  if (parts.length > 1 && parts[0].includes(".")) parts = parts.slice(1); // drop the domain
  return parts.length ? parts[0].replace(/^@/, "") : "";
}

async function readProfile(platform, username) {
  const url = `${API}?platform=${platform}&username=${encodeURIComponent(username)}`;
  for (let attempt = 1; ; attempt++) {
    const res = await fetch(url, { headers: { Authorization: `Bearer ${KEY}` } });
    if (![409, 429, 503].includes(res.status) || attempt === 3) {
      return { status: res.status, data: await res.json().catch(() => ({})) };
    }
    await new Promise((resolve) => setTimeout(resolve, 5000));
  }
}

async function screen(profiles) {
  const checks = [];
  for (const [platform, raw] of Object.entries(profiles)) { // one at a time, on purpose
    const username = cleanHandle(platform, raw ?? "");
    if (!username) continue;
    const { status, data } = await readProfile(platform, username);
    if (status !== 200) checks.push({ platform, result: "unavailable" });
    else if (!data.exists) checks.push({ platform, result: "not_found" });
    else if (data.private) checks.push({ platform, result: "private" });
    else checks.push({ platform, result: "ok", followers: data.followers, checked_at: data.fetched_at });
  }
  const best = Math.max(0, ...checks.map((c) => c.followers ?? 0));
  const unclear = checks.some((c) => c.result === "unavailable" || c.result === "private");
  const decision = best >= MIN_FOLLOWERS ? "approve" : unclear ? "review" : "reject";
  return { decision, best_followers: best, checks };
}

createServer(async (req, res) => {
  if (req.method !== "POST" || req.url !== "/webhooks/affiliate-application") {
    res.writeHead(404).end();
    return;
  }
  let body = "";
  for await (const chunk of req) body += chunk;
  const result = await screen(JSON.parse(body).profiles ?? {});
  res.writeHead(200, { "Content-Type": "application/json" }).end(JSON.stringify(result));
}).listen(3000);

Google Forms: the check inside the response sheet

Google Forms has no webhook setting, but its response spreadsheet can run a script on every submission. Open the response sheet, go to Extensions > Apps Script, save your key as a script property named SOCIALLENS_KEY, paste this function and add an installable trigger of type On form submit for it. It writes the follower count and the time of the read next to each new response.

function onFormSubmit(e) {
  const key = PropertiesService.getScriptProperties().getProperty('SOCIALLENS_KEY');
  const handle = String(e.namedValues['Instagram handle'][0]).trim().replace(/^@/, '');
  const res = UrlFetchApp.fetch(
    'https://api.sociallens.dev/v1/profile?platform=instagram&username=' + encodeURIComponent(handle),
    { headers: { Authorization: 'Bearer ' + key }, muteHttpExceptions: true }
  );
  const d = JSON.parse(res.getContentText());
  const count = res.getResponseCode() !== 200 ? 'check again' : (d.exists ? d.followers : 'not found');
  const row = e.range.getRow();
  const col = e.range.getLastColumn() + 1;
  e.range.getSheet().getRange(row, col, 1, 2).setValues([[count, d.fetched_at || '']]);
}

'Instagram handle' is the title of the question in your form. The full spreadsheet version, with a list of accounts and a daily history, is in Track follower counts in Google Sheets with Apps Script.

The prices below were read on each vendor's own page on November 28, 2026, except where a different date is given. One applicant checked on one network is one read.

Route What it verifies Networks Cost per 1,000 checks Commitment
SocialLens The public count behind a handle 8 with a follower count, same request $2.38 (Starter, $19 for 8,000), $1.98 (Pro, $79 for 40,000), $1.66 (Scale, $299 for 180,000) Prepaid packs that never expire. 250 free reads, no card
Scrape Creators The same kind of public read Many, one endpoint and one response shape per network $1.88, or $0.99 on the $497 pack of 500,000 $47 smallest pack. 100 free credits
RapidAPI Instagram120, as used by n8n template 8963 Instagram follower count and engagement Instagram. YouTube needs a second subscription $1.00 if you use all 10,000 requests of the $10 a month plan, and 1,000 free requests a month, as listed on the template page Monthly subscription per API
X API, official X profile X only $10.00, at $0.010 per user read Pay per usage credits
YouTube Data API, official YouTube channel YouTube only $0 inside the default quota of 10,000 units a day API key
Influencer Hero application pages Stats pulled when the applicant verifies their own social account The networks the platform connects Not sold per check: part of the platform subscription Platform plan
Modash API Creator analytics, including audience data Instagram, TikTok, YouTube Not sold per check. Raw API from $10,000 a year, Discovery API from $16,200 a year Annual. No monthly or pay as you go plan

How to read this table:

Example: 500 applications a month, two networks each. That is 1,000 reads: $2.38 at the Starter rate, and one $19 pack covers eight months of it. The 250 free reads cover the first 125 applicants. A 200 response costs 1 credit, including "this profile does not exist" and "this profile is private". Every error status costs nothing. Rates change: confirm them on each pricing page before you budget.

When to use Influencer Hero, HypeAuditor or Modash instead

Frequently asked questions

Can an API detect fake or purchased followers?

Not from a public count. SocialLens returns the number the network shows and has no fake follower score. A rough signal you can compute yourself is engagement on recent posts, covered in Engagement Rate API for Indie Influencer Apps. For a real audience audit, use a vetting tool such as HypeAuditor or Modash.

Does the applicant have to connect or log in to their social account?

No. The check needs the public handle and your own API key. That keeps the form short, and it also means the check does not prove ownership. Use the bio code step, or a platform with account connection, when ownership matters.

Which networks can I verify on a signup form?

Follower counts on Instagram, TikTok, YouTube, X, Facebook, Threads, Pinterest and LinkedIn, with the same request. YouTube subscriber counts are rounded by YouTube. Reddit has no follower count.

How much does it cost to check each applicant?

One read per network checked. At the Starter rate that is $0.0024, and $0.0017 at the Scale rate. A new account starts with 250 free reads and no card.

What should the rule do when a profile is private or the read fails?

Send it to manual review. A private profile is a real answer and a person should decide. A failed read means "not now": retry later, and never turn it into a rejection.

Run these requests yourself

Every example on this page is a real call to the SocialLens API. A new account starts with 250 free reads, no card needed, and a read that fails is never charged.

Keep reading