Verify Social Media Account Ownership Without OAuth: The Bio Code Check with a Public Profile API (2026)

Published · 9 min read

Last updated and prices verified: .

To verify that a user owns a social media account without OAuth, give them a short one time code, ask them to paste it in their public bio, then read the profile through a public data API and check that the code is there. With SocialLens (sociallens.dev) the read is GET https://api.sociallens.dev/v1/profile, the bio comes back in the bio field, and the same request works on Instagram, TikTok, X, Threads and YouTube. There is no developer app per network and no app review, and one check is one read, about $0.002.

This page covers when a bio code is enough and when it is not, the flow step by step, a real response, which networks return a bio you can check, working code in Python and Node, the edge cases, the cost per 1,000 checks next to the alternatives, and when OAuth is the better choice.

What a bio code proves, and what it does not

Only the person who controls an account can change its bio. If a code that you generated a minute ago appears there, the person in front of you controls that account right now. That is the whole proof.

It is enough for many products: a creator marketplace that lists profiles, a media kit builder, an affiliate or ambassador signup, a community badge, a leaderboard. In all of them the question is "is this really your account?", and nothing more.

It is not enough when you need more than control of a profile:

The flow in four steps

  1. Generate a code. Short, random, tied to the user and the handle they typed, and valid for a few minutes. Something like sl-7f3a9c.
  2. Ask the user to paste it in their bio and save. Tell them they can remove it right after.
  3. Read the public profile and look for the code in bio. Compare without case sensitivity.
  4. Store the result: verified, the time of the read, and the account id from the response, so you still recognize the account if the handle changes.

Rules that keep it honest:

The read: where the bio comes back

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

These are the main fields of a real response, from a read made on November 29, 2026. Timestamps are UTC. The full response also carries the avatar URL, the account id and a credits object with what the call cost.

{
  "exists": true,
  "username": "shopify",
  "platform": "instagram",
  "nickname": "Shopify",
  "verified": true,
  "private": false,
  "followers": 2855764,
  "is_exact": true,
  "bio": "The entrepreneurship company",
  "external_link": "http://bfcm.shop",
  "fetched_at": "2026-11-29T02:26:47Z"
}

bio is the text you search. external_link is the link in bio, which gives you a second place for the proof: instead of a code, ask the user to set that link to a unique URL on your domain. The read also returns followers, so the same call that proves ownership tells you the size of the account.

Which networks return a bio you can check

We read one profile per network on November 29, 2026 and looked at what came back in bio.

Network platform What bio returned in our read Usable for a code
Instagram instagram The profile bio, "The entrepreneurship company" for shopify Yes
TikTok tiktok The profile bio, "The entrepreneurship company" for shopify Yes
X x The profile bio, "Making the seemingly impossible, possible." for nasa Yes
Threads threads The profile bio, "Mostly superintelligence and MMA takes" for zuck, read on November 28 Yes
YouTube youtube The channel description, "The entrepreneurship company." for shopify Yes
Facebook facebook "Software" for the shopify page, which is the page category and not its intro Not reliable
Pinterest pinterest null on the two profiles we read, nike and shopify Not confirmed
LinkedIn linkedin Company pages return a description field Not tested for this

Reddit is not in the table because the profile read on Reddit is for subreddits, not for users. The fields of each network are on its reference page, for example Instagram API, TikTok API, X API, Threads API and YouTube API, and the network by endpoint table is in the API documentation.

The check in Python

import os
import secrets

import requests

API = "https://api.sociallens.dev/v1/profile"
KEY = os.environ["SOCIALLENS_KEY"]


def new_code():
    """A short code the user pastes into their bio, for example sl-7f3a9c."""
    return "sl-" + secrets.token_hex(3)


def bio_contains(platform, username, code):
    """True when the public bio of the profile contains the code."""
    r = requests.get(
        API,
        params={"platform": platform, "username": username},
        headers={"Authorization": f"Bearer {KEY}"},
        timeout=60,
    )
    r.raise_for_status()
    data = r.json()
    if not data.get("exists"):
        return False
    return code.lower() in (data.get("bio") or "").lower()


print(new_code())
print(bio_contains("instagram", "shopify", "entrepreneurship company"))

We cannot edit Shopify's bio, so the test looks for words that are already in it. Run as shown on November 29, 2026, it printed a fresh code and the result of the check:

sl-b9850a
True

In your product, bio_contains(platform, handle, code) is called with the code you stored for that user.

The same check in Node

Node 18 or newer has fetch built in. Save this as verify.mjs and run it with node verify.mjs.

const API = "https://api.sociallens.dev/v1/profile";
const KEY = process.env.SOCIALLENS_KEY;

async function bioContains(platform, username, code) {
  const url = `${API}?platform=${platform}&username=${encodeURIComponent(username)}`;
  const res = await fetch(url, { headers: { Authorization: `Bearer ${KEY}` } });
  const data = await res.json();
  if (!res.ok) throw new Error(`${res.status} ${data.error}: ${data.message}`);
  if (!data.exists) return false;
  return (data.bio ?? "").toLowerCase().includes(code.toLowerCase());
}

console.log(await bioContains("tiktok", "shopify", "entrepreneurship company"));
console.log(await bioContains("tiktok", "shopify", "sl-7f3a9c"));

Output of the run on November 29, 2026: the words that are in the bio are found, and a code that is not there is not.

true
false

Edge cases to handle

Cost per 1,000 ownership checks

The prices below were read on each vendor's own page on November 29, 2026. One check is one profile read. Budget two reads per user if you retry once.

Route What it proves What you set up Cost per 1,000 checks
Bio code with SocialLens (sociallens.dev) Control of the profile, on 5 networks with one request One API key $2.38 (Starter, $19 for 8,000), $1.98 (Pro, $79 for 40,000), $1.66 (Scale, $299 for 180,000). 250 free reads
Official OAuth login of each network Control of the account, plus the private data the user consents to One developer app per network, with its review $0 in API fees
Account connection through Phyllo A connected account through its SDK, with consented data An SDK integration and a contract No public prices on its pricing page. Contact sales
Bio code with Apify's Instagram Profile Scraper Control of the profile, Instagram only An Apify token and a run per check From $1.60 per 1,000 profiles
Bio code with SociaVault Control of the profile One API key $4.83, down to $2.00 on the $399 pack of 200,000
Bio code with EnsembleData Control of the profile A monthly subscription $100 a month for 1,500 units a day

How to read this table:

On SocialLens (sociallens.dev) a 200 response costs 1 credit, including "this profile does not exist". Every error status costs nothing. Rates change: confirm them on each pricing page before you budget.

When to use OAuth or an account connection SDK instead

Frequently asked questions

How do I verify that a user owns an Instagram account without the Instagram API?

Give the user a one time code, ask them to put it in their Instagram bio, then read the public profile through a public data API and look for the code in the bio. With SocialLens (sociallens.dev) that is one GET request to /v1/profile with platform=instagram.

Is a bio code check secure?

It proves that the person controls the account at the moment of the read, as long as the code is random, short lived and accepted only in the bio. It does not prove identity, and it does not protect you if the account changes hands later.

Which networks does it work on?

In our reads the bio came back on Instagram, TikTok, X, Threads and YouTube, where it is the channel description. Facebook returned the page category in that field, and Pinterest returned nothing on the profiles we read, so we do not recommend it there.

Does the user need a business or creator account?

No. The check reads the public profile, so any public account works. That is a difference from some connection based verifications, which need a professional account.

What does one verification cost?

One read: $0.0024 at the Starter rate and $0.0017 at the Scale rate. A new SocialLens (sociallens.dev) account starts with 250 free reads and no card.

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