curl --request POST \
--url https://api.aisa.one/apis/v1/uniprot-org/proteins/map-ids \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"TP53",
"P53",
"CD52",
"HLA-A",
"NOTAGENE1"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/uniprot-org/proteins/map-ids"
payload = { "ids": ["TP53", "P53", "CD52", "HLA-A", "NOTAGENE1"] }
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({ids: ['TP53', 'P53', 'CD52', 'HLA-A', 'NOTAGENE1']})
};
fetch('https://api.aisa.one/apis/v1/uniprot-org/proteins/map-ids', 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/map-ids",
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([
'ids' => [
'TP53',
'P53',
'CD52',
'HLA-A',
'NOTAGENE1'
]
]),
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/map-ids"
payload := strings.NewReader("{\n \"ids\": [\n \"TP53\",\n \"P53\",\n \"CD52\",\n \"HLA-A\",\n \"NOTAGENE1\"\n ]\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/map-ids")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"TP53\",\n \"P53\",\n \"CD52\",\n \"HLA-A\",\n \"NOTAGENE1\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/uniprot-org/proteins/map-ids")
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 \"ids\": [\n \"TP53\",\n \"P53\",\n \"CD52\",\n \"HLA-A\",\n \"NOTAGENE1\"\n ]\n}"
response = http.request(request)
puts response.read_bodyMap ids
Resolve gene symbols from a paper or an expression table (pass organism, e.g. 9606, since symbols repeat across species), or IDs from Ensembl, NCBI Gene, PDB or ChEMBL, to accessions before calling get.
curl --request POST \
--url https://api.aisa.one/apis/v1/uniprot-org/proteins/map-ids \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"TP53",
"P53",
"CD52",
"HLA-A",
"NOTAGENE1"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/uniprot-org/proteins/map-ids"
payload = { "ids": ["TP53", "P53", "CD52", "HLA-A", "NOTAGENE1"] }
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({ids: ['TP53', 'P53', 'CD52', 'HLA-A', 'NOTAGENE1']})
};
fetch('https://api.aisa.one/apis/v1/uniprot-org/proteins/map-ids', 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/map-ids",
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([
'ids' => [
'TP53',
'P53',
'CD52',
'HLA-A',
'NOTAGENE1'
]
]),
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/map-ids"
payload := strings.NewReader("{\n \"ids\": [\n \"TP53\",\n \"P53\",\n \"CD52\",\n \"HLA-A\",\n \"NOTAGENE1\"\n ]\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/map-ids")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"TP53\",\n \"P53\",\n \"CD52\",\n \"HLA-A\",\n \"NOTAGENE1\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/uniprot-org/proteins/map-ids")
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 \"ids\": [\n \"TP53\",\n \"P53\",\n \"CD52\",\n \"HLA-A\",\n \"NOTAGENE1\"\n ]\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/uniprot-org/proteins/map-ids
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/uniprot-org/proteins/map-ids
{
"operationId": "uniprot-org.proteins.map-ids",
"method": "POST",
"path": "/apis/v1/uniprot-org/proteins/map-ids",
"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": {
"ids": [
"TP53",
"P53",
"CD52",
"HLA-A",
"NOTAGENE1"
],
"organism": "9606"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"from": {
"default": "gene",
"description": "Kind of the identifiers: `gene` (gene symbols and synonyms), `ensembl` (ENSG/ENST/ENSP IDs), `ncbi_gene` (Entrez Gene IDs such as `7157`), `pdb` (4-character PDB IDs), `chembl` (ChEMBL target IDs).\n\nProvider reference: allowed values [\"gene\", \"ensembl\", \"ncbi_gene\", \"pdb\", \"chembl\"]; default \"gene\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"gene",
"ensembl",
"ncbi_gene",
"pdb",
"chembl"
]
}
},
"ids": {
"description": "Identifiers of one kind, e.g. `[\"TP53\", \"CD52\"]` or `[\"ENSG00000141510\"]`.",
"items": {
"type": "string"
},
"type": "array"
},
"organism": {
"description": "Restrict to an organism: NCBI taxonomy ID (`9606` human, `10090` mouse) or name. Strongly recommended for gene symbols.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"reviewed_only": {
"description": "Only reviewed Swiss-Prot entries (default). false also returns unreviewed TrEMBL entries, which can be many per gene.",
"type": "boolean",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"required": [
"ids"
],
"type": "object"
}
}
},
"required": true
},
"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
Kind of the identifiers: gene (gene symbols and synonyms), ensembl (ENSG/ENST/ENSP IDs), ncbi_gene (Entrez Gene IDs such as 7157), pdb (4-character PDB IDs), chembl (ChEMBL target IDs).
Provider reference: allowed values ["gene", "ensembl", "ncbi_gene", "pdb", "chembl"]; default "gene".
Response
Map up to 50 gene symbols, or Ensembl, NCBI Gene, PDB or ChEMBL identifiers, to UniProtKB accessions in one call. Gene symbols match primary gene names, gene synonyms (P53 finds TP53), ordered locus and ORF names, and matched_on says which; identifier sources match the entry's cross-references (Ensembl gene, transcript or protein IDs, with or without version). Reviewed Swiss-Prot entries only by default and listed first. Inputs without a match are listed in unmatched; when nothing matches the result is not_found.
The response contains the tool result directly.
The provider identifies mappings as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
input | string | The identifier as normalized (Ensembl without version, PDB and ChEMBL upper-case). |
matches | object[] | Matching entries, Swiss-Prot first. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.