Username Checker API: Check a Handle on 7 Networks (2026)
Last updated and prices verified: .
To check through an API whether a username exists on a social network, send a GET request with the handle and read the exists field of the JSON. SocialLens (sociallens.dev) answers for Instagram, TikTok, X, YouTube, Facebook, Threads and Pinterest with the same request and the same fields, and when the profile exists, the same response already has its follower count, verification badge and bio. A new account starts with 250 free reads and no card.
One thing to know before you build on it: "not found" is not the same as "free to register". Networks hold back banned, deactivated and reserved names, and no public read can see those. This page shows what the check really tells you, with real responses, code in Python and Node, the behavior network by network, the cost and the cases where a free tool is the better choice.
What the check tells you
| State | What the API returned | What it means |
|---|---|---|
taken |
Status 200 and "exists": true |
A public profile answers under that handle. The response has its follower count, badge and bio |
not_found |
Status 200 and "exists": false |
No public profile answered at the moment of the read. The name may be free, or the network may be holding it back |
unknown |
Any other status | The read failed and was not billed. Try again later |
The request and two real responses
curl -G "https://api.sociallens.dev/v1/profile" \
--data-urlencode "platform=instagram" \
--data-urlencode "username=nasa" \
-H "Authorization: Bearer sk_live_YOUR_KEY"
A handle that exists, read on November 29, 2026 and trimmed to the fields a checker uses:
{
"exists": true,
"username": "nasa",
"platform": "instagram",
"nickname": "NASA",
"verified": true,
"private": false,
"followers": 104247602,
"is_exact": true,
"bio": "Making the seemingly impossible, possible. ✨",
"external_link": "https://www.nasa.gov",
"fetched_at": "2026-11-29T03:04:25Z"
}
A handle that does not exist, with only the credits block left out:
{
"exists": false,
"username": "zq7kx_no_such_handle_2026",
"platform": "instagram",
"fetched_at": "2026-11-29T03:04:53Z"
}
Both answers come with status 200, so your code branches on exists, not on the HTTP status. Both are billed as one read.
Python: one handle on seven networks
import os
import sys
import requests
NETWORKS = ["instagram", "tiktok", "x", "youtube", "facebook", "threads", "pinterest"]
HEADERS = {"Authorization": f"Bearer {os.environ['SOCIALLENS_KEY']}"}
def check(handle, platform):
r = requests.get("https://api.sociallens.dev/v1/profile",
params={"platform": platform, "username": handle},
headers=HEADERS, timeout=90)
if r.status_code != 200:
return {"platform": platform, "state": "unknown", "status": r.status_code}
p = r.json()
if not p["exists"]:
return {"platform": platform, "state": "not_found"}
return {"platform": platform, "state": "taken", "username": p["username"],
"followers": p["followers"], "verified": p["verified"]}
if __name__ == "__main__":
handle = sys.argv[1].lstrip("@")
for platform in NETWORKS:
print(check(handle, platform))
The real output for nasa, a few minutes after the read above:
{'platform': 'instagram', 'state': 'taken', 'username': 'nasa', 'followers': 104247616, 'verified': True}
{'platform': 'tiktok', 'state': 'taken', 'username': 'nasa', 'followers': 2255246, 'verified': True}
{'platform': 'x', 'state': 'taken', 'username': 'NASA', 'followers': 92062396, 'verified': True}
{'platform': 'youtube', 'state': 'taken', 'username': 'NASA', 'followers': 15100000, 'verified': True}
{'platform': 'facebook', 'state': 'taken', 'username': 'NASA', 'followers': 28711440, 'verified': False}
{'platform': 'threads', 'state': 'taken', 'username': 'nasa', 'followers': 12807722, 'verified': True}
{'platform': 'pinterest', 'state': 'taken', 'username': 'nasa', 'followers': 556863, 'verified': True}
And for a handle that nobody uses:
{'platform': 'instagram', 'state': 'not_found'}
{'platform': 'tiktok', 'state': 'not_found'}
{'platform': 'x', 'state': 'not_found'}
{'platform': 'youtube', 'state': 'not_found'}
{'platform': 'facebook', 'state': 'not_found'}
{'platform': 'threads', 'state': 'not_found'}
{'platform': 'pinterest', 'state': 'unknown', 'status': 503}
Two details in these outputs matter. The username comes back the way the network displays it, NASA on X, YouTube and Facebook, so you can store the canonical form. And Pinterest did not say "not found": it answered with an error. The next section explains why that changes what you can conclude.
Node: the same check
const NETWORKS = ["instagram", "tiktok", "x", "youtube", "facebook", "threads", "pinterest"];
async function check(handle, platform) {
const url = new URL("https://api.sociallens.dev/v1/profile");
url.search = new URLSearchParams({ platform, username: handle });
const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.SOCIALLENS_KEY}` } });
if (res.status !== 200) return { platform, state: "unknown", status: res.status };
const p = await res.json();
if (!p.exists) return { platform, state: "not_found" };
return { platform, state: "taken", username: p.username, followers: p.followers, verified: p.verified };
}
const handle = process.argv[2].replace(/^@/, "");
const results = [];
for (const platform of NETWORKS) results.push(await check(handle, platform));
console.table(results);
Seven reads in a row finish in well under a minute. Parallel requests on the same key are supported too, up to the limit of 60 requests per minute.
Network by network: what "not found" means
- Instagram, TikTok, X, YouTube and Facebook. A missing handle answers
"exists": false. That covers handles nobody registered and handles the network removed. It does not tell you which of the two. - Threads. A private profile can also come back as not found, because its page is not readable without a login.
- Pinterest. A profile that exists is read normally. A missing one answered status 503
source_unavailable, which is not billed. So on Pinterest you can confirm that a handle is taken, and you cannot conclude that it is not. - Facebook.
verifiedcame backfalsein this read of a well known page. Do not treat the badge field as reliable on Facebook. - YouTube. The handle is the channel handle, and
followersis the rounded subscriber count YouTube publishes. - LinkedIn and Reddit. The same endpoint reads them, but the unit is a company page on LinkedIn and a subreddit on Reddit, not a personal username. See LinkedIn Company Data API and Reddit Subreddit Stats API.
What this check does not do
- It does not tell you a name is available. Only the network's own signup form can say that. Use
not_foundas "probably free, confirm at signup". - It does not search or suggest. You send an exact handle. There is no search by name and no list of similar handles.
- It does not judge the account. You see who answers under a handle and how large the account is. Whether that account is an impersonator is your decision, with your own rules. There is no fraud detection.
- It does not register or reserve anything. It is a read.
What it is good for
- Signup and application forms. Reject a typo before a human reviews it: if the handle a person typed does not exist, ask again. The full flow is in Verify an Affiliate Applicant's Social Media Followers.
- Brand monitoring. Check your brand name on each network on a schedule. When a handle that was
not_foundturnstaken, you get the size of the account in the same response. - Cleaning a list. Run a column of handles from a CRM or a spreadsheet and keep only the ones that answer.
- Naming a product. A first pass over candidate names before you check each signup page by hand.
Cost to check 1,000 handles on seven networks
That is 7,000 reads. Prices were read on each vendor's own page on November 29, 2026.
| Route | What one check returns | Smallest purchase | Cost of 7,000 checks | Free allowance |
|---|---|---|---|---|
| SocialLens (sociallens.dev) | Exists or not, plus followers, badge and bio | $19 for 8,000 reads, prepaid, never expires | $16.63 at the Starter rate | 250 reads, one time, no card |
| SociaVault | Profile data per network | $29 for 6,000 credits | $33.83 at the Starter rate, at 1 credit per request on most endpoints | 50 credits |
| EnsembleData | Profile data on 8 platforms | $100 a month for 1,500 units a day | $100, the smallest paid plan | A free plan with 50 units a day |
| Sherlock | Exists or not, no profile data | Free and open source. You run it yourself | $0 plus your own machine and upkeep | Not applicable |
How to read this table:
- If you only need "does a page exist" on hundreds of sites, Sherlock wins and it is free. Its README describes it as a tool to hunt down accounts by username across 400+ social networks. That is the right tool for a one time investigation on your own machine.
- If the check runs inside your product, a paid API with a stable JSON is less work. You get a documented response, an error you can branch on, and the size of the account in the same call. Among the paid routes here, the prepaid pack is the smallest way in, and it costs nothing in a month with no checks.
- For steady high volume, a subscription costs less per read when the plan is used in full. That is a different workload from a checker that runs when someone submits a form.
A not_found answer is a successful read and costs one credit. An error costs nothing.
When to use something else instead
- You only want availability across many sites. Use Sherlock or a free web checker.
- You must be sure the name can be registered. Go to the signup form of the network. No public data API can see reserved names.
- You need to know if a person controls a handle. Existence does not prove that. See Verify Social Media Account Ownership Without OAuth.
- You check millions of handles a month. Talk to a provider with subscription plans, such as EnsembleData or Data365.
Frequently asked questions
Is there an API to check if a username exists on Instagram or TikTok?
Yes. Send the handle to GET /v1/profile on SocialLens (sociallens.dev) with platform=instagram or platform=tiktok. The response has "exists": true with the profile data, or "exists": false.
Does "not found" mean the username is available?
Not always. It means no public profile answered. The name can be free, or it can be banned, deactivated or reserved by the network. Confirm on the signup form before you promise a name to anyone.
Which networks does the check cover?
Seven: Instagram, TikTok, X, YouTube, Facebook, Threads and Pinterest. On the first six, a missing handle answers "exists": false. On Pinterest a profile that exists is read normally, and a missing one returns an error instead.
Is a "not found" answer billed?
Yes. A 200 response is one read, whether the profile exists or not. Error statuses are not billed.
Can I send the checks in parallel?
Yes. Parallel requests on the same key are supported, up to 60 requests per minute. The examples on this page use a simple loop because seven reads finish in well under a minute.
Are usernames case sensitive?
Not on these networks. NASA and nasa reach the same profile, and the response returns the handle the way the network displays it, which is the form to store. Subreddit names on Reddit are the exception: they are case sensitive in this API.
What does it cost?
One read is one credit: $0.0024 at the Starter rate. Checking one handle on seven networks costs about 1.7 cents. A new account includes 250 free reads.
Related guides
- Verify social media account ownership without OAuth
- Verify an affiliate applicant's social media followers
- Follower Count API
- Unified Social Media Data API
- Threads API: exact follower count of any account
- Pinterest API: follower count of any profile and saves of a pin
- HubSpot follower count enrichment via API
- Auto updating media kit with live follower counts