curl --request POST \
--url https://api.aisa.one/apis/v1/uniprot-org/proteins/get \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accession": "P31358"
}
'import requests
url = "https://api.aisa.one/apis/v1/uniprot-org/proteins/get"
payload = { "accession": "P31358" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({accession: 'P31358'})
};
fetch('https://api.aisa.one/apis/v1/uniprot-org/proteins/get', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/uniprot-org/proteins/get",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'accession' => 'P31358'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/uniprot-org/proteins/get"
payload := strings.NewReader("{\n \"accession\": \"P31358\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/uniprot-org/proteins/get")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accession\": \"P31358\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/uniprot-org/proteins/get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accession\": \"P31358\"\n}"
response = http.request(request)
puts response.read_body{
"accession": "P31358",
"annotation_score": 5,
"cross_references": {
"alphafold": [
"P31358"
],
"chembl": [
"CHEMBL1912"
],
"ensembl": [
{
"gene": "ENSG00000169442.9",
"isoform": null,
"protein": "ENSP00000363330.2",
"transcript": "ENST00000374213.3"
}
],
"hgnc": [
"HGNC:1804"
],
"ncbi_gene": [
"1043"
],
"pdb": [
{
"chains": "E/F=27-36",
"id": "6OBD",
"method": "X-ray",
"resolution": "2.20 A"
}
]
},
"diseases": [],
"ec_numbers": [],
"entry_name": "CD52_HUMAN",
"entry_version": 189,
"function": [
{
"evidence": [],
"text": "May play a role in carrying and orienting carbohydrate, as well as having a more specific role"
}
],
"gene_name": "CD52",
"gene_synonyms": [
"CDW52",
"HE5"
],
"genes": [
{
"name": "CD52",
"ordered_locus_names": [],
"orf_names": [],
"synonyms": [
"CDW52",
"HE5"
]
}
],
"go_terms": [
{
"aspect": "cellular_component",
"assigned_by": "Reactome",
"evidence": [],
"evidence_code": "TAS",
"id": "GO:0005576",
"term": "extracellular region"
},
{
"aspect": "cellular_component",
"assigned_by": "ProtInc",
"evidence": [
{
"assertion": "manual",
"code": "ECO:0000304",
"id": "1711975",
"label": "Traceable author statement evidence",
"source": "PubMed"
}
],
"evidence_code": "TAS",
"id": "GO:0016020",
"term": "membrane"
},
{
"aspect": "cellular_component",
"assigned_by": "UniProtKB",
"evidence": [
{
"assertion": "manual",
"code": "ECO:0000304",
"id": "1711975",
"label": "Traceable author statement evidence",
"source": "PubMed"
}
],
"evidence_code": "TAS",
"id": "GO:0005886",
"term": "plasma membrane"
},
{
"aspect": "cellular_component",
"assigned_by": "GO_Central",
"evidence": [],
"evidence_code": "IBA",
"id": "GO:0097225",
"term": "sperm midpiece"
},
{
"aspect": "biological_process",
"assigned_by": "UniProtKB",
"evidence": [
{
"assertion": "manual",
"code": "ECO:0000314",
"id": "8223854",
"label": "Direct assay evidence",
"source": "PubMed"
}
],
"evidence_code": "IDA",
"id": "GO:0007204",
"term": "positive regulation of cytosolic calcium ion concentration"
},
{
"aspect": "biological_process",
"assigned_by": "UniProtKB",
"evidence": [
{
"assertion": "manual",
"code": "ECO:0000303",
"id": "8223854",
"label": "Non-traceable author statement evidence",
"source": "PubMed"
}
],
"evidence_code": "NAS",
"id": "GO:0045730",
"term": "respiratory burst"
}
],
"last_annotation_update": "2026-09-02",
"license": {
"attribution": "UniProt Consortium, UniProtKB release 2026_03 (https://www.uniprot.org), licensed under CC BY 4.0",
"name": "CC BY 4.0",
"url": "https://creativecommons.org/licenses/by/4.0/"
},
"observed_at_ms": 1792447176156,
"organism": {
"common_name": "Human",
"lineage": [
"Eukaryota",
"Metazoa",
"Chordata",
"Craniata",
"Vertebrata",
"Euteleostomi",
"Mammalia",
"Eutheria",
"Euarchontoglires",
"Primates",
"Haplorrhini",
"Catarrhini",
"Hominidae",
"Homo"
],
"scientific_name": "Homo sapiens",
"taxon_id": 9606
},
"protein_existence": "1: Evidence at protein level",
"protein_name": "CAMPATH-1 antigen",
"protein_name_source": "recommended",
"protein_synonyms": [
"CDw52",
"Cambridge pathology 1 antigen",
"Epididymal secretory protein E5",
"Human epididymis-specific protein 5",
"He5",
"CD52"
],
"release": "2026_03",
"release_date": "02-September-2026",
"requested_id": "P31358",
"reviewed": true,
"sequence": {
"length": 61,
"mass_da": 6614
},
"source_url": "https://www.uniprot.org/uniprotkb/P31358/entry",
"subcellular_location": [
{
"locations": [
{
"evidence": [],
"location": "Cell membrane",
"location_id": "SL-0039",
"orientation": null,
"topology": "Lipid-anchor, GPI-anchor"
}
],
"molecule": null,
"note": null,
"note_evidence": []
}
],
"subcellular_locations": [
"Cell membrane"
]
}Get
After search or map_ids gives an accession, or when you have one: where a protein is located in the cell and on what evidence, what it does, which diseases it is linked to, and its IDs in PDB, ChEMBL and Ensembl.
curl --request POST \
--url https://api.aisa.one/apis/v1/uniprot-org/proteins/get \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accession": "P31358"
}
'import requests
url = "https://api.aisa.one/apis/v1/uniprot-org/proteins/get"
payload = { "accession": "P31358" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({accession: 'P31358'})
};
fetch('https://api.aisa.one/apis/v1/uniprot-org/proteins/get', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/uniprot-org/proteins/get",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'accession' => 'P31358'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/uniprot-org/proteins/get"
payload := strings.NewReader("{\n \"accession\": \"P31358\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/uniprot-org/proteins/get")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accession\": \"P31358\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/uniprot-org/proteins/get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accession\": \"P31358\"\n}"
response = http.request(request)
puts response.read_body{
"accession": "P31358",
"annotation_score": 5,
"cross_references": {
"alphafold": [
"P31358"
],
"chembl": [
"CHEMBL1912"
],
"ensembl": [
{
"gene": "ENSG00000169442.9",
"isoform": null,
"protein": "ENSP00000363330.2",
"transcript": "ENST00000374213.3"
}
],
"hgnc": [
"HGNC:1804"
],
"ncbi_gene": [
"1043"
],
"pdb": [
{
"chains": "E/F=27-36",
"id": "6OBD",
"method": "X-ray",
"resolution": "2.20 A"
}
]
},
"diseases": [],
"ec_numbers": [],
"entry_name": "CD52_HUMAN",
"entry_version": 189,
"function": [
{
"evidence": [],
"text": "May play a role in carrying and orienting carbohydrate, as well as having a more specific role"
}
],
"gene_name": "CD52",
"gene_synonyms": [
"CDW52",
"HE5"
],
"genes": [
{
"name": "CD52",
"ordered_locus_names": [],
"orf_names": [],
"synonyms": [
"CDW52",
"HE5"
]
}
],
"go_terms": [
{
"aspect": "cellular_component",
"assigned_by": "Reactome",
"evidence": [],
"evidence_code": "TAS",
"id": "GO:0005576",
"term": "extracellular region"
},
{
"aspect": "cellular_component",
"assigned_by": "ProtInc",
"evidence": [
{
"assertion": "manual",
"code": "ECO:0000304",
"id": "1711975",
"label": "Traceable author statement evidence",
"source": "PubMed"
}
],
"evidence_code": "TAS",
"id": "GO:0016020",
"term": "membrane"
},
{
"aspect": "cellular_component",
"assigned_by": "UniProtKB",
"evidence": [
{
"assertion": "manual",
"code": "ECO:0000304",
"id": "1711975",
"label": "Traceable author statement evidence",
"source": "PubMed"
}
],
"evidence_code": "TAS",
"id": "GO:0005886",
"term": "plasma membrane"
},
{
"aspect": "cellular_component",
"assigned_by": "GO_Central",
"evidence": [],
"evidence_code": "IBA",
"id": "GO:0097225",
"term": "sperm midpiece"
},
{
"aspect": "biological_process",
"assigned_by": "UniProtKB",
"evidence": [
{
"assertion": "manual",
"code": "ECO:0000314",
"id": "8223854",
"label": "Direct assay evidence",
"source": "PubMed"
}
],
"evidence_code": "IDA",
"id": "GO:0007204",
"term": "positive regulation of cytosolic calcium ion concentration"
},
{
"aspect": "biological_process",
"assigned_by": "UniProtKB",
"evidence": [
{
"assertion": "manual",
"code": "ECO:0000303",
"id": "8223854",
"label": "Non-traceable author statement evidence",
"source": "PubMed"
}
],
"evidence_code": "NAS",
"id": "GO:0045730",
"term": "respiratory burst"
}
],
"last_annotation_update": "2026-09-02",
"license": {
"attribution": "UniProt Consortium, UniProtKB release 2026_03 (https://www.uniprot.org), licensed under CC BY 4.0",
"name": "CC BY 4.0",
"url": "https://creativecommons.org/licenses/by/4.0/"
},
"observed_at_ms": 1792447176156,
"organism": {
"common_name": "Human",
"lineage": [
"Eukaryota",
"Metazoa",
"Chordata",
"Craniata",
"Vertebrata",
"Euteleostomi",
"Mammalia",
"Eutheria",
"Euarchontoglires",
"Primates",
"Haplorrhini",
"Catarrhini",
"Hominidae",
"Homo"
],
"scientific_name": "Homo sapiens",
"taxon_id": 9606
},
"protein_existence": "1: Evidence at protein level",
"protein_name": "CAMPATH-1 antigen",
"protein_name_source": "recommended",
"protein_synonyms": [
"CDw52",
"Cambridge pathology 1 antigen",
"Epididymal secretory protein E5",
"Human epididymis-specific protein 5",
"He5",
"CD52"
],
"release": "2026_03",
"release_date": "02-September-2026",
"requested_id": "P31358",
"reviewed": true,
"sequence": {
"length": 61,
"mass_da": 6614
},
"source_url": "https://www.uniprot.org/uniprotkb/P31358/entry",
"subcellular_location": [
{
"locations": [
{
"evidence": [],
"location": "Cell membrane",
"location_id": "SL-0039",
"orientation": null,
"topology": "Lipid-anchor, GPI-anchor"
}
],
"molecule": null,
"note": null,
"note_evidence": []
}
],
"subcellular_locations": [
"Cell membrane"
]
}Request contract
- Method and path: POST /apis/v1/uniprot-org/proteins/get
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/uniprot-org/proteins/get
{
"operationId": "uniprot-org.proteins.get",
"method": "POST",
"path": "/apis/v1/uniprot-org/proteins/get",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"accession": "P31358"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"accession": {
"description": "UniProtKB accession (`P04637`, `A0A000`), isoform accession (`P04637-2`) or entry name (`P53_HUMAN`); case-insensitive.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"include_sequence": {
"description": "Also return the amino-acid sequence in `sequence.value`.",
"type": "boolean",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"url": {
"description": "UniProtKB entry URL, e.g. `https://www.uniprot.org/uniprotkb/P04637/entry`. Exactly one of `accession` and `url`.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
Response
One UniProtKB entry by accession (P04637), isoform accession (P04637-2), entry name (P53_HUMAN) or uniprot.org entry URL: recommended protein name with every synonym, gene names with synonyms, organism and lineage, curated function, subcellular location (per isoform, with topology and ECO evidence codes marking experimental, by-similarity or automatic assertions), GO terms with evidence, disease associations with OMIM numbers, sequence length and mass, and PDB, AlphaFold, ChEMBL, Ensembl, NCBI Gene and HGNC cross-references. Secondary (merged) accessions and entry names resolve to the current entry. Unknown and deleted accessions are not_found.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
accession | string | Primary accession of the entry returned. |
annotation_score | number | Annotation score, 1 (least) to 5 (best annotated); null when UniProt omits it. |
cross_references | object | |
diseases | object[] | Curated disease associations (DISEASE comments). |
ec_numbers | string[] | Enzyme Commission numbers. |
entry_name | string | UniProtKB entry name (mnemonic), e.g. P53_HUMAN. |
entry_version | number | |
function | object[] | Curated FUNCTION annotation, one item per statement. |
gene_name | string | Primary name of the first gene. |
gene_synonyms | string[] | Synonyms of every gene, de-duplicated. |
genes | object[] | Genes encoding the protein, in UniProt order (e.g. HBA1 and HBA2). |
go_terms | object[] | Gene Ontology annotation in UniProt: cellular component, molecular function and biological process. |
last_annotation_update | string | Date the annotation last changed, YYYY-MM-DD. |
license | object | UniProt data is licensed CC BY 4.0 (uniprot.org/help/license); show the attribution and the record's source_url when you reuse it. |
observed_at_ms | number | |
organism | object | |
protein_existence | string | Protein existence level, e.g. 1: Evidence at protein level; null when UniProt omits it. |
protein_name | string | Recommended protein name, or the first submitted name. |
protein_name_source | string | submitted when the entry (TrEMBL) has only a name from the sequence submitter. |
protein_synonyms | string[] | Every other protein name: recommended short names, alternative full and short names, further submitted names, CD antigen, INN, allergen and biotech names, de-duplicated. |
release | string | UniProt data release that answered (x-uniprot-release, e.g. 2026_03). |
release_date | string | Release date as UniProt writes it, e.g. 02-September-2026. |
requested_id | string | The accession or entry name asked for, upper-cased. Differs from accession when an entry name or a merged (secondary) accession was redirected. |
reviewed | boolean | true for Swiss-Prot (manually reviewed), false for TrEMBL. |
sequence | object | |
source_url | string | The entry page on uniprot.org, for attribution and follow-up. |
subcellular_location | object[] | SUBCELLULAR LOCATION annotation as curated: one block for the protein and one per isoform UniProt annotates separately, each location with its topology, orientation and evidence codes. |
subcellular_locations | string[] | Distinct location terms across all blocks below. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.