Skip to content

Private API ‐ Retrieve EC numbers

Pieter Verschaffelt edited this page Mar 6, 2025 · 2 revisions

Description
This endpoint retrieves descriptive information for a list of Enzyme Commission (EC) numbers. Each EC number is mapped to its corresponding enzyme name, providing insight into the enzyme's catalytic activity.

Endpoint URL
/private_api/ecnumbers

Request Method
POST

Request Parameters

Parameter Type Required Description Example Value
ecnumbers array Yes List of EC numbers ["1.1.1.1", "3.6.1.5"]

Response
The response is a JSON array where each element contains the following fields:

Field Type Description
code string The EC number identifier
name string The enzyme name

Example Response:

[
  {
    "code": "1.1.1.1",
    "name": "alcohol dehydrogenase"
  },
  {
    "code": "3.6.1.5",
    "name": "apyrase"
  }
]

Example

Request:

curl -X POST https://unipept.ugent.be/private_api/ecnumbers \
-H "Content-Type: application/json" \
-d '{
  "ecnumbers": ["1.1.1.1", "3.6.1.5"]
}'

Response:

[
  {
    "code": "1.1.1.1",
    "name": "alcohol dehydrogenase"
  },
  {
    "code": "3.6.1.5",
    "name": "apyrase"
  }
]

Notes

  • EC numbers that are not found in the database will be silently ignored and not included in the response.
  • Input EC numbers are automatically trimmed for leading and trailing whitespace.

Clone this wiki locally