This document provides the information you need to interact with the TROPIC Database programmatically. You can use the REST API directly or our convenient Python client.
The API returns data structured according to the following models. The primary model is Reaction
, which contains several nested data objects.
You can interact with the database by making HTTP requests to the REST API endpoints. The base URL for the API is https://api.polytropic.org
.
The main endpoint for retrieving data is /reactions
. You can filter the results by appending query parameters to the URL. Nested fields are accessed using a double underscore (__
).
Parameter | Description |
---|---|
reaction_id | Filter by a specific reaction ID. |
type | Filter by reaction type (e.g., ROP, ROR). |
monomer__ring_size__gte | Filter by monomer ring size (greater than or equal to). |
monomer__molecular_weight__lte | Filter by monomer molecular weight (less than or equal to). |
parameters__is_experimental | Filter by experimental (true) or computational (false) data. |
parameters__method__in | Filter by one or more methods (e.g., dft, dsc). |
thermo__delta_h__gte | Filter by enthalpy of polymerization. |
metadata__year__gte | Filter by publication year. |
For Python users, we provide a simple client library that handles API requests and data parsing for you.