Username Checker API: Check a Handle on 7 Networks (2026)

Published · 7 min read

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

What this check does not do

What it is good for

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:

A not_found answer is a successful read and costs one credit. An error costs nothing.

When to use something else instead

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.

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