Turn any public profile page into a structured account record — usernames, display names, bios, avatars, locations, joined-at dates, follower counts, external links, and the stable internal identifiers that uniquely pin an account across renames, redesigns, and deletions.
socid_extractor parses HTML pages and API responses from 250+ schemes and returns a flat, machine-readable dictionary of account fields. No API keys required, no headless browser — just a single function call on response text.
Why it's useful
Stable cross-service IDs. Get GAIA ID (Google), Facebook UID, Yandex Public ID, Instagram pk, and dozens more — values that survive username changes and let you correlate accounts across leaks, archives, and search-engine indices.
One uniform interface. Same extract() call for Instagram, GitHub, VK, Reddit, Substack, Bluesky, TikTok — no per-platform glue code on your side.
Field ontology.Normalized field names across platforms (, , , , …) so downstream pipelines don't need 130 mappings.
username
fullname
created_at
is_verified
Battle-tested. Powers Maigret and a number of other OSINT tools.
Tip — batch runs: pass --skip-fetch-if-no-url-hint to skip the HTTP request when the URL doesn't match any known site hint (faster, but may skip generic engines such as forum templates):
Pivot from a profile to everything you can see. One call returns the visible info plus the hidden internal IDs the platform uses behind the scenes. Background reading: Week in OSINT — Getting a grasp on Google IDs.
Track accounts across renames, redesigns, and deletions. Stable IDs (GAIA, FB UID, Yandex Public ID, Instagram pk, …) let you re-identify the same person even when every visible field has changed. Background: Aware Online — User IDs in social-media investigations.
Search by cross-service UID. Once you have a stable identifier you can pivot into:
SQL / leaked databases (forum dumps, breach data) where the UID is the join key,
Google / Yandex / archive.org indices that captured URLs containing the UID.
Feed downstream OSINT tooling. A normalized record is much easier to ingest than per-site scrapers — used by Maigret and similar tools for enrichment.
Commercial Use
The open-source socid_extractor is MIT-licensed and free for commercial use without restriction — but page parsers break over time as platforms change their HTML and APIs, and they need active maintenance.
For serious commercial use — a hosted extraction API, or maintenance of the parsers your product depends on — reach out: 📧 socid@soxoj.com
Extraction API — integrate socid_extractor into your product
Maigret — powerful namechecker that generates a report with all available info from accounts found across 3000+ sites.
TheScrapper — scrape emails, phone numbers, and social-media accounts from a website.
InfoHunter — open-source OSINT tool to search, collect, and analyze information online.
YaSeeker — gather all available information about a Yandex account by login/email.
Marple — scrape search-engine results for a given username.
See also
ShareTrace — the mirror image of this project: socid_extractor reads a profile page, ShareTrace takes a share link (TikTok, Instagram, ChatGPT, Discord, Telegram and more) and recovers who created or forwarded it, decoding some share tokens offline. Nothing to install if you just want to try it: the community-run Telegram bot or web UI.
Testing
Install the test extras from pyproject.toml, then run pytest:
Use pip install '.[dev]' instead if you also want flake8 / mypy / black (the full set used by CI).
Every new scheme must have an e2e test in tests/test_e2e.py hitting a real URL/API. Unit tests with inline fixtures (tests/test_socid_improvements.py) are also required but do not replace e2e coverage. See docs/testing-and-ci.md for details.
Developer documentation (architecture, modules, CI) lives in docs/.
Contributing
See the contributing guide if you want to add a new scheme or fix anything.
Works well with
Use together with socid-extractor: extensions, drivers, servers and companion tools.
maigretPythie’s Index: 93🕵️♂️ Collect a dossier on a person by username from thousands of sites.82.3K downloads/mo