Programmatic access
API
A free REST API at /api/v2.0 that needs no login or
key: filter domains, the claims behind them (papers and screens, with ED determinants
and PRRs), variants inside domains, PTMs, sequence motifs, structures and per-residue
tracks, returned as JSON, TSV or NDJSON. Interactive reference at
/api/v2.0/docs
(machine-readable openapi.json).
For whole-dataset files, see Downloads.
Stable · Endpoints and JSON shapes stay stable within v1 of the API; changes that would break a client get a new version path. The machine-readable spec is at /api/v2.0/openapi.json.
Endpoints /api/v2.0
Per-endpoint reference · machine-readable openapi.json · interactive /docs
Filtering happens on the server. Every list endpoint also takes
format=json|tsv|ndjson, page, page_size,
fields= and sort= (prefix - for descending);
responses carry ETag + Cache-Control. Click any resource for
its full parameter reference.
Domains
Curated effector (ED) and DNA-binding (DBD) domains across the catalog.
| Resource | Description |
|---|---|
GET /domains | Filter all curated domains |
GET /domains/{id} | One domain by id |
Claims
The evidence behind every domain, one row per paper or screen result, including ED determinants and PRRs.
| Resource | Description |
|---|---|
GET /claims | Every claim: effector reports, ED determinants, PRRs, DBDs |
GET /claims/{id} | One claim by id |
Variants
Clinical (ClinVar) and population (gnomAD) variants that land inside a curated domain.
| Resource | Description |
|---|---|
GET /variants | Variants inside curated domains |
Post-translational modifications
PTM sites from dbPTM, optionally limited to those inside a domain.
| Resource | Description |
|---|---|
GET /ptms | PTM sites |
Transcription factors
The TF directory and full per-protein profiles.
| Resource | Description |
|---|---|
GET /tfs | Search the TF directory |
GET /tfs/{symbol} | Full TF profile by gene symbol |
GET /proteins/{uniprot} | Full TF profile by UniProt accession |
Sequence motifs
Find TFs by a protein sequence pattern, and see which domains each hit falls in.
| Resource | Description |
|---|---|
GET /motif | Search every TF sequence for a motif |
Structures and biophysics
AlphaFold model metadata and per-residue protein tracks.
| Resource | Description |
|---|---|
GET /structures | AlphaFold model metadata + URLs |
GET /biophysics | Per-residue tracks |
Cross-references and metadata
ID resolution, family counts and summary statistics.
| Resource | Description |
|---|---|
GET /xref/{id} | Resolve any identifier |
GET /families | DBD families, or TF family labels, with counts |
GET /stats | ED-vs-DBD constraint aggregate |
Quick start
Common queries, then the same pattern in four languages.
curl 'https://tfregdb.com/api/v2.0/domains?subtype=activation&year_min=2020&year_max=2024'curl 'https://tfregdb.com/api/v2.0/variants?tf_family=Nuclear%20receptor&domain.type=ED&source=gnomAD'curl 'https://tfregdb.com/api/v2.0/domains?type=ED&evidence=literature&min_confidence=High'curl 'https://tfregdb.com/api/v2.0/claims?tf_family=C2H2%20ZF&category=Determinant,PRR'curl 'https://tfregdb.com/api/v2.0/motif?pattern=C-x(2,4)-C-x(12)-H-x(3,5)-H&per=tf'curl 'https://tfregdb.com/api/v2.0/variants?gene=ZNF10&avi_phred_min=20&sort=-avi_phred'import requests
B = "https://tfregdb.com/api/v2.0"
# 1: all activation domains reported between 2020 and 2024
ads = requests.get(f"{B}/domains", params={
"subtype": "activation", "year_min": 2020, "year_max": 2024,
}).json()
print(ads["total"], "activation domains") # "count" is the rows on this page
# 2: variants in nuclear-receptor effector domains (by TF family and domain type)
v = requests.get(f"{B}/variants", params={
"tf_family": "Nuclear receptor", "domain.type": "ED", "source": "gnomAD",
"page_size": 1000,
}).json()
print(v["total"], "variants; this page holds", v["count"])// Browser or Node >= 18
const B = "https://tfregdb.com/api/v2.0";
// 1: activation domains in a publication-year range, a few fields only
const ads = await fetch(`${B}/domains?subtype=activation&year_min=2020&year_max=2024&fields=symbol,start,end`)
.then((r) => r.json());
console.log(ads.total, "activation domains");
// 2: variants by TF family and domain type
const { total, results } = await fetch(`${B}/variants?tf_family=Nuclear%20receptor&domain.type=ED`)
.then((r) => r.json());
console.log(total, "variants; first page:", results.slice(0, 5));library(jsonlite)
B <- "https://tfregdb.com/api/v2.0"
# Activation domains reported 2020-2024
ads <- fromJSON(paste0(B, "/domains?subtype=activation&year_min=2020&year_max=2024"))$results
# Variant table (TSV) for nuclear-receptor effector domains, first 1,000 rows
# (the X-Total-Count header says how many there are; use page= for the rest)
v <- read.delim(paste0(B, "/variants?tf_family=Nuclear%20receptor&domain.type=ED&format=tsv&page_size=1000"))
nrow(v)# Activation domains in a year range, as TSV (up to 1,000 rows per page)
wget "https://tfregdb.com/api/v2.0/domains?subtype=activation&year_min=2020&year_max=2024&format=tsv&page_size=1000" -O activation_2020_2024.tsv
# Variants for a TF family + domain type, page by page (X-Total-Count gives the total)
for p in 1 2 3 4 5 6; do
wget "https://tfregdb.com/api/v2.0/variants?tf_family=Nuclear%20receptor&domain.type=ED&format=tsv&page_size=1000&page=$p" -O nr_ed_variants_$p.tsv
done
# The machine-readable spec
wget "https://tfregdb.com/api/v2.0/openapi.json" Per-TF response shape
the keys on /tfs/{SYMBOL}
symbol string: HGNC symbol, e.g. "TP53" uniprot string: canonical UniProt accession ensemblGene / ensemblProtein string: Ensembl IDs of the canonical isoform name string: HGNC-approved protein name family string: TF family label length number: canonical sequence length (aa) sequence string: single-letter aa sequence domains Domain[]: merged canonical AD, RD, bifunctional and DNA-binding domains ptms PTM[]: per-residue {pos, type, residue}, from dbPTM mutations Mutation[]: clinical variants (when available) isoforms Isoform[]: every translated Ensembl protein, with CIS-BP DNA-binding domains and effector domains placed on each isoform genomicStructures GenomicStructure[]: exon and CDS map of each mapped isoform domainReports DomainReport[]: every low- and high-throughput report, with its source and PMID papers Paper[]: PMID and title of each cited paper hasConservation / hasPDB / hasPAE boolean: whether conservation, structure and PAE data exist for this TF Scope and caveats
- No auth, no API key. Responses carry
ETag(a repeat request withIf-None-Matchgets 304) andCache-Control; list responses givetotal(all matches) andcount(rows on this page); invalid parameters get a 400 with a message; every list endpoint supportspage/page_size(≤1000),fields=,sort=, andformat=json|tsv|ndjson. - Gene and UniProt filters take comma-separated lists, and the JSON reply names any ids it did not find under
unmatched. Family filters accept only values in the data: /families?by=tf_family lists the TF family labels. - A domain's
confidenceis the highest level among the claims behind it. Each claim's own level, evidence and method are in/claims. - No write API yet. Curation submissions go through the submission form.
- PAE matrices are downsampled to 200 × 200 cells for proteins longer than ~1,000 aa to keep the JSON payload under 500 KB. The native length is reported in the file.
- For bulk downloads (every TF as one bundle, the domain, PTM and variant tables), see Downloads. Structures and PAE matrices are fetched per protein through /structures.