Look up a UniProt protein
Exactbiotech_protein_lookupDeterministic and authoritative — the canonical answer for this input.
Look up a UniProt protein by accession or gene name in the bundled human Swiss-Prot reviewed set. Returns accession, entry name, protein name, gene name, organism, length, and reviewed flag. Fully local. confidence 1.0 = exact accession; 0.8 = gene name with a single reviewed protein; 0.5 = gene name with multiple (first returned, match_count flags how many); 0.0 = not found. Not-found means 'not in the human reviewed set' (a non-human/unreviewed accession won't be found). Batch via biotech_protein_lookup_batch. Charges 1 cost_unit.
Parameters
querystringrequiredThe UniProt accession or gene name (e.g. 'P04637').
query_typestringoptionalHow to interpret the query: 'accession' (default; a UniProt accession like 'P04637', isoform suffixes accepted) or 'gene_name' (e.g. 'TP53').
Call it
curl -X POST https://api.snipget.ai/v1/biotech/protein/lookup \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{"query":"P04637"}'The Batch tab sends up to 1000 inputs in one call via /v1/biotech/protein/lookup/batch.
FAQ
Why use this?
Models often invent UniProt accessions that look real but don't exist. This resolves an accession or gene name to its canonical reviewed record (entry name, protein name, gene, organism, and length) or says plainly it isn't in the reviewed human set.
Can I look up by gene name?
Yes, set query_type to 'gene_name'. If a gene maps to more than one reviewed protein you get the first one plus a match_count telling you how many exist, so you can disambiguate by accession. Confidence is 0.5 in that case.
What does it not do?
Scope is the human Swiss-Prot reviewed set only. A non-human or unreviewed (TrEMBL) accession comes back not-found even if it's a real accession elsewhere. matchType is exact, so it returns the authoritative bundled record.
What if it's not found?
You get confidence 0 with empty fields, not an error.