whatsmyname.io
by RFour · Jul 29, 2026 ·javascript
Basically checks the availability of a media names, like idk like 500+ sites I think, this is pretty cool to find out what's my friend others social media I think, ik it sounds weird, yes I use this for my api stuff
StalkOsint
| 1 | export async function whatsmyname(req) { |
| 2 | const { searchParams: sp } = new URL(req.url); |
| 3 | const username = sp.get('username'); |
| 4 | const mode = sp.get('mode') || 'all'; |
| 5 | const rescan = sp.get('rescan') || 'false'; |
| 6 | |
| 7 | if (!username) { |
| 8 | return { |
| 9 | error: "missing username", |
| 10 | usage: { |
| 11 | all: "/whatsmyname?username=archtheslut", |
| 12 | exist: "/whatsmyname?username=archtheslut&mode=exist", |
| 13 | notexist: "/whatsmyname?username=archtheslut&mode=notexist", |
| 14 | rescan: "/whatsmyname?username=archtheslut&rescan=true" |
| 15 | } |
| 16 | }; |
| 17 | } |
| 18 | |
| 19 | try { |
| 20 | const res = await fetch("https://api.whatsmyname.io/discoverprofile", { |
| 21 | method: 'POST', |
| 22 | headers: { 'Content-Type': 'application/json' }, |
| 23 | body: JSON.stringify({ source: username, type: "name", rescan: rescan === 'true' }) |
| 24 | }); |
| 25 | const data = await res.json(); |
| 26 | |
| 27 | if (data.error) return { error: data.error }; |
| 28 | |
| 29 | const results = data.result.map(r => ({ |
| 30 | url: r.url, |
| 31 | source: r.source, |
| 32 | exists: r.isExist, |
| 33 | category: r.category |
| 34 | })); |
| 35 | |
| 36 | if (mode === 'exist') { |
| 37 | const found = results.filter(r => r.exists); |
| 38 | return { username, rescan: rescan === 'true', total: found.length, found }; |
| 39 | } |
| 40 | |
| 41 | if (mode === 'notexist') { |
| 42 | const notFound = results.filter(r => !r.exists); |
| 43 | return { username, rescan: rescan === 'true', total: notFound.length, not_found: notFound }; |
| 44 | } |
| 45 | |
| 46 | const existCount = results.filter(r => r.exists).length; |
| 47 | |
| 48 | return { |
| 49 | username, |
| 50 | rescan: rescan === 'true', |
| 51 | total: results.length, |
| 52 | exists: existCount, |
| 53 | not_exists: results.length - existCount, |
| 54 | results |
| 55 | }; |
| 56 | } catch (err) { |
| 57 | return { error: err.message }; |
| 58 | } |
| 59 | } |