scientific-skills/database-lookup/references/gene-ontology.md
https://www.ebi.ac.uk/QuickGO/services — most reliable endpointhttps://api.geneontology.org/api — may return 403; use QuickGO as fallbackhttp://golr-aux.geneontology.org/solrNone required. All endpoints are public.
No published hard limits. QuickGO recommends reasonable usage.
GET https://api.geneontology.org/api/ontology/term/{go_id}
Example:
GET https://api.geneontology.org/api/ontology/term/GO%3A0008150
Returns JSON with term name, definition, namespace (biological_process / molecular_function / cellular_component), synonyms.
GET https://api.geneontology.org/api/bioentity/gene/{gene_id}/function
Example — GO annotations for a UniProt protein:
GET https://api.geneontology.org/api/bioentity/gene/UniProtKB%3AP04637/function
Returns GO annotations with evidence codes, qualifiers, references.
GET https://api.geneontology.org/api/bioentity/function/{go_id}/genes
Example:
GET https://api.geneontology.org/api/bioentity/function/GO%3A0006915/genes?rows=20
Returns genes/proteins annotated with that GO term.
GET https://api.geneontology.org/api/search/entity/{query}
Example:
GET https://api.geneontology.org/api/search/entity/apoptosis?rows=10
GET https://api.geneontology.org/api/ontology/term/{go_id}/graph
GET https://www.ebi.ac.uk/QuickGO/services/ontology/go/terms/{go_ids}
Example:
GET https://www.ebi.ac.uk/QuickGO/services/ontology/go/terms/GO:0008150
Accepts comma-separated IDs (up to 25).
GET https://www.ebi.ac.uk/QuickGO/services/annotation/search?geneProductId={uniprot_id}
Example — annotations for TP53:
GET https://www.ebi.ac.uk/QuickGO/services/annotation/search?geneProductId=P04637&limit=25
GET https://www.ebi.ac.uk/QuickGO/services/annotation/search?goId=GO:0006915&taxonId=9606&limit=25
GET https://www.ebi.ac.uk/QuickGO/services/annotation/search?geneProductId=P04637&goUsage=descendants&evidenceCode=ECO:0000269&limit=25
GET https://www.ebi.ac.uk/QuickGO/services/ontology/go/terms/GO:0008150/children
GET https://www.ebi.ac.uk/QuickGO/services/ontology/go/terms/GO:0006915/ancestors?relations=is_a,part_of
GET https://www.ebi.ac.uk/QuickGO/services/ontology/go/search?query=apoptosis&limit=10
| Parameter | Description |
|---|---|
geneProductId | UniProt accession (e.g., P04637) |
goId | GO term (e.g., GO:0006915) |
goUsage | exact or descendants (include child terms) |
taxonId | NCBI taxonomy ID (9606 = human) |
evidenceCode | ECO code (e.g., ECO:0000269 = experimental) |
aspect | biological_process, molecular_function, cellular_component |
limit | Results per page (max 100) |
page | Page number (1-based) |
{
"numberOfHits": 1234,
"results": [
{
"geneProductId": "P04637",
"symbol": "TP53",
"goId": "GO:0006915",
"goName": "apoptotic process",
"evidenceCode": "ECO:0000269",
"goAspect": "biological_process",
"taxonId": 9606,
"reference": "PMID:12345678",
"assignedBy": "UniProt"
}
]
}
GO%3A0008150 for GO:0008150).