structurefinder is a best-effort Python tool that takes a company name and/or root domain and answers two questions:
- Is the company a subsidiary of another company? If so, which one(s).
- Is the company a parent of subsidiaries? If so, which ones, and a web domain for each subsidiary where one can be found. If no domain is found, the subsidiary is still listed with the notice "Domain could not be obtained."
It also lists brand/product domains operated by the company itself rather than by a subsidiary, for example facebook.com and threads.net for Meta Platforms, Inc. Each one is confirmed independently, through a shared Microsoft Entra tenant, the domain's registration record (RDAP) or the site itself.
It uses only free, publicly available sources: GLEIF, SEC EDGAR, Wikidata, UK Companies House (free API key), the FDIC BankFind API and (optionally, from downloaded files) the Federal Reserve's National Information Center for US banks, the company's own website, Microsoft Entra tenant discovery and RDAP domain registration data.
The tool is conservative by design. It is better to omit a real relationship than to report one that does not exist. Every reported relationship carries the evidence behind it. "No parent found" means only that no parent was found with enough evidence, not that the company has none.
Version: 0.4.4. See the changelog.
Requires Python 3.10+.
git clone https://github.com/prisoner881/structurefinder.git
cd structurefinder && pip install .
For development (adds pytest):
pip install -e ".[dev]"| Setting | CLI flag | Environment variable | Needed for |
|---|---|---|---|
| Contact e-mail | --contact |
STRUCTUREFINDER_CONTACT |
SEC EDGAR (its fair-access policy requires a User-Agent with contact details). Also sent to Wikidata. Without it, SEC sources are skipped. |
| Companies House API key | --companies-house-key |
COMPANIES_HOUSE_API_KEY |
UK parent detection via the PSC register. Free key: https://developer.company-information.service.gov.uk/ |
| Federal Reserve NIC data | --nic-dir |
STRUCTUREFINDER_NIC_DIR |
Optional, for US banking organisations: a directory holding NIC's bulk files CSV_ATTRIBUTES_ACTIVE and CSV_RELATIONSHIPS (.csv or .zip), downloaded in a browser from the NIC Data Download page (https://www.ffiec.gov/npw/FinancialReport/DataDownload). The NIC site blocks automated downloads, so the tool cannot fetch these itself. Refresh them occasionally. |
Responses are cached on disk for 24 hours (~/.cache/structurefinder; change with --cache-dir, --cache-ttl or --no-cache). Re-running the same company is fast.
export STRUCTUREFINDER_CONTACT="[email protected]"
structurefinder --domain meta.com --format text
structurefinder --name "Meta Platforms, Inc." --domain meta.com --output meta.jsonstructurefinder --name "Alphabet Inc." --format csv --output alphabet.csvSupplying both name and domain gives the most reliable entity resolution. Use the full legal name if you know it (e.g. --domain siemens.com --name "Siemens Aktiengesellschaft"): it lets the tool link registry records that the domain alone cannot. A name on its own is accepted only if a second source corroborates it, or if it exactly matches a full legal name, including the legal form (e.g. "Inc."), that appears once in GLEIF.
Example text output (abridged):
Entity: Meta Platforms, Inc. [US-DE]
identifiers: lei=BQ4BKCS1HXDV9HN80Z93, cik=0001326801, wikidata=Q380
domains: meta.com
1. Is it a subsidiary? NO EVIDENCE (no_parent_reported)
GLEIF direct-parent reporting exception: NO_KNOWN_PERSON
2. Is it a parent? YES (14 subsidiaries)
- Instagram, LLC [US-DE] (unspecified; confidence high)
domain: instagram.com
evidence: sec[A]; wikidata[B]
- Facebook Holdings, LLC [US-DE] (unspecified; confidence high)
domain: Domain could not be obtained.
evidence: sec[A]
...
3. Brand/product domains operated by the entity itself: 17
- facebook.com (Facebook, Facebook Inc; confidence high)
verified by: domain registered to Meta Platforms, Inc. (RDAP)
- oculus.com (Reality Labs; confidence high)
verified by: same Microsoft Entra tenant as the analysed entity's domain
...
If you have already mapped the company's domains, pass them in. structurefinder doesn't re-check ownership. It works out which legal entity runs each domain, and uses domains registered to unfamiliar organisations as leads for subsidiaries. The intended pipeline:
- domainfinder on the root domain (plus any attested domains);
- Hypermass on domainfinder's results; its "other domains" go back through domainfinder as candidates;
- structurefinder with both domainfinder result files:
structurefinder --domain truist.com --domainfinder df_run1.json --domainfinder df_run2.json -f text
Only domainfinder's owned domains with a score of at least 70 are used (--domainfinder-min-score changes the threshold; needs_review is always ignored). Plain lists work too (--related-domains FILE, --related-domain a.com,b.com), with registrants looked up via RDAP. A domain registered to an organisation that no other source confirms as a subsidiary stays in the unconfirmed list: domain ownership counts as one weaker (tier-B) source, never as proof on its own.
| Option | Meaning |
|---|---|
-n, --name |
Company name (ideally the full legal name) |
-d, --domain |
Company root domain (URLs and subdomains are reduced to the registrable domain) |
-f, --format |
json (default), text or csv |
-o, --output |
Write to a file instead of stdout |
--show-unconfirmed |
Also list claims that did not meet the evidence threshold, clearly marked as unconfirmed |
--no-domain-guessing |
Use only stated websites for subsidiary domains |
--max-domain-lookups N |
Limit domain guessing to N organisations (default 250). Any beyond the limit are reported with a "not attempted" notice. |
--no-brand-domains |
Skip the search for brand/product domains operated by the company itself |
--max-brand-lookups N |
Verify at most N candidate brand domains (default 100) |
--domainfinder FILE |
domainfinder JSON output (-o results.json); repeatable |
--domainfinder-min-score N |
Only use domainfinder owned domains scoring at least N (default 70) |
--related-domains FILE / --related-domain LIST |
Plain lists of the group's domains; repeatable |
--max-related-lookups N / --max-related-orgs N |
Limits for RDAP lookups on plain-list domains (300) and GLEIF checks of organisations named on them (40) |
--nic-dir DIR |
Read Federal Reserve NIC bulk files from DIR (see Configuration) |
--no-reverse-sec |
Skip the SEC full-text search for registrants that list the company as a subsidiary |
--workers N |
Parallel workers for domain verification (default 12) |
-v / -vv |
Progress / debug logging (including every HTTP request) to stderr |
Exit codes: 0 when the entity was resolved, 2 for a usage error, and 3 when the entity was unresolved or ambiguous. Output is still written in the last case.
- Resolve the entity. The name/domain is tied to one legal entity using identifiers: LEI, SEC CIK, Wikidata QID and UK company number. If two or more candidates remain, the run stops and reports them.
- Collect claims about parents and subsidiaries from every source. Each claim is graded by evidence tier:
- A: authoritative. GLEIF corroborated relationships, SEC Exhibit 21, the Companies House PSC register.
- B: credible but noisy. Wikidata, the company website, GLEIF entity-supplied data, name-based SEC matches.
- C: hints only.
- Accept a relationship only with at least one tier-A source (high confidence) or at least two independent tier-B sources (medium confidence).
- Find domains for accepted relationships. Stated websites come first. Otherwise a few candidate domains are guessed from the name and kept only if verified, for example by sharing the parent's Microsoft Entra tenant, being registered to the parent, or the site naming the parent.
- Find brand/product domains the company operates itself, including those of merged predecessors. Candidates come from Wikidata, from FDIC merger history for banks, and from the company's current and former names. Each is confirmed independently before it is reported.
More detail:
- METHODOLOGY.md: resolution anchors, evidence tiers, acceptance rules, domain verification.
- SOURCES.md: each data source, what it is used for, rate limits and terms.
- OUTPUT.md: JSON/CSV output reference.
- Coverage is best for US public companies, companies with an LEI and UK companies. US state registries do not publish ownership, so small private US companies will usually come back as "none found". That is the intended conservative result.
- SEC Exhibit 21 lists only significant subsidiaries, and GLEIF only covers entities that have an LEI. Neither is a complete list.
- Many subsidiaries (holding companies, finance vehicles) have no website of their own. These are listed with "Domain could not be obtained."
- Brand domains depend on Wikidata listing the brand or on the company's own names. A brand domain whose registrant is hidden by a privacy service, and that isn't in the company's Microsoft Entra tenant, can usually not be confirmed. It is then reported only with
--show-unconfirmed. - Domain guessing only tries simple forms (
acmewidgets.com,acmewidgets.<country TLD>,acme-widgets.com). Brand domains that differ from the legal name are found only when a source states them. - Relationships change. Results reflect the sources' latest data, which may lag recent acquisitions and divestitures.
python -m pytest
The unit tests run offline.