Verify Social Media Account Ownership Without OAuth: The Bio Code Check with a Public Profile API (2026)
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:
- It is not identity verification or KYC. It proves control of a profile, not who the person is. Do not use it for payouts, age checks or anything regulated.
- It gives you no private data. Reach, audience demographics and earnings are behind the platform's own login.
- It is a moment in time. Accounts get sold and handles change. If ownership matters later, check again.
The flow in four steps
- Generate a code. Short, random, tied to the user and the handle they typed, and valid for a few minutes. Something like
sl-7f3a9c. - Ask the user to paste it in their bio and save. Tell them they can remove it right after.
- Read the public profile and look for the code in
bio. Compare without case sensitivity. - Store the result: verified, the time of the read, and the account
idfrom the response, so you still recognize the account if the handle changes.
Rules that keep it honest:
- Accept the code in the bio only. A comment or a post can be written by anyone.
- One code per attempt, with an expiry. An old screenshot of a bio proves nothing.
- Limit attempts per user. Each attempt is a paid read.
- A failed read is not a failed verification. If the API answers
429,409or503, try again: those are not charged.
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 |
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 |
"Software" for the shopify page, which is the page category and not its intro |
Not reliable | |
pinterest |
null on the two profiles we read, nike and shopify |
Not confirmed | |
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
- The user saved the bio a second ago. If the first read misses the code, wait a little and read again before you tell the user it failed. Every read in our tests came back with
cached: false, so a second request is a new look at the profile. - The handle does not exist. The response is a 200 with
exists: false. Ask the user to correct the handle. This answer costs one read. - Private profiles. We did not test private profiles for this check. Treat
private: trueas a case for manual review. - Typed handles. People paste
@nameor a full URL. Strip the@and keep only the handle. Outside LinkedIn and Facebook the API answers400 bad_requestto a profile URL, which is not charged. - One request at a time. SocialLens (sociallens.dev) processes the requests of one account in sequence, and a read takes a few seconds, more on Instagram. Queue the checks. Parallel calls do not finish sooner and can answer
409 account_busy.
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:
- For a product with a few signups a day on several networks, the prepaid pack wins. One request format covers Instagram, TikTok, X, Threads and YouTube, the entry is $19, and credits do not expire while signups are slow. A thousand verified users cost about $2.38.
- OAuth is free and proves more. If you need private metrics or a lasting permission, build the OAuth flow. The price is engineering time: one app, one review and one flow per network.
- For Instagram only at high volume, the Apify Actor is cheaper per profile. That is a different setup: runs on Apify, one network.
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
- You need data that is not public. Reach, impressions, audience demographics and earnings come only from the platform's own login. A public read has none of them.
- You need to act for the user. Posting or reading messages requires a token. A bio code gives you no token.
- You need to know who the person is. Use an identity verification provider. A bio code is not KYC.
- Your users already connect accounts in your product. If an OAuth flow exists, use it for ownership too. One trade off worth knowing: connection based checks can exclude people. Influencer Hero's help center notes that when account verification is mandatory, creators without a business or creator account cannot apply.
- You onboard creators at enterprise scale with many data points. An account connection SDK such as Phyllo is built for that.
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.
Related guides
- Verify an affiliate applicant's social media followers
- Enrich a Clay table with follower counts
- Track follower counts in Google Sheets with Apps Script
- n8n workflow: follower count tracker for 9 networks
- Engagement rate API for indie influencer apps
- Threads API: exact follower count of any account
- Followers count API for SMM panels
- Username checker API: check a handle on 7 networks
- Auto updating media kit with live follower counts
- Verify TikTok views for payouts via API
- NIL follower count API: prove an athlete's audience
- Instagram Graph API vs a public data read: which to use