https://cd-code.org/api/
Headers
Authorization: {{bearer_token}}
** Please write to mail@cd-code.org explaining your need for the data and request a valid Authorization token
Pagination
page: {{page_no}}
size: {{size_of_page}}
Example:
- Records no. 61-70: page=6, size=10
- Records no. 120-150: page=4, size=30
Sorting
{{attribute_name}} preceded by - (minus) for descending sort
Example:
- Sort list based on no. of proteins in a condensate: sort=protein_count
- Sort list based on reverse alphabetical order: sort=-species_tax_id
Text Search
query: “<search-term>”
Attribute projection
fields: <comma-separated-list-of-attributes-to-be-projected>
[GET] /proteins
- species_tax_id
- ensembl_id
- ensembl_gene_id
- functional_type
[GET] /condensates
- species_tax_id
- is_experimental
- proteins
- confidence_score
- 200: Data fetch query was successful, however, 0 records may have been found
- 404: Route/Resource not found
- 400: Query Parameters have disallowed params
Successful query (200 Status Code)
- count: <no_of_matching_records>
- data: <list_of_matching_records_in_current_page>
- next_page: <link_to_next_page_of_matching_records>
- prev_page: <link_to_previous_page_of_matching_records>
Erroneous query (non 200 Status Code)
- code: <error_code>
- message: <descriptive_message>
[GET] /proteins/{{uniprot_id}}
[GET] /condensates/{{uid}}
- 200: Data fetch query was successful; exactly 1 record present
- 404: Route/Resource/Record not found
¶ Body
Successful query (200 Status Code)
** Data structure of proteins and condensates can be found in the Schema table