import requests
response = requests.get(
"https://api.atomscale.ai/physical_samples/a1b2c3d4-5678-90ab-cdef-1234567890ab/timeseries/",
headers={"X-API-KEY": "YOUR_API_KEY"}
)
timeseries = response.json()
curl "https://api.atomscale.ai/physical_samples/a1b2c3d4-5678-90ab-cdef-1234567890ab/timeseries/" \
-H "X-API-KEY: YOUR_API_KEY"
{
"physical_sample_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"properties": [
{
"property_name": "thickness",
"property_values": [0, 5.2, 10.1, null, 20.0],
"real_time_seconds": [0, 10, 20, 30, 40],
"result_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"last_updated": "2024-01-15T10:00:00Z",
"constituent_data_ids": ["d290f1ee-6c54-4b01-90e6-d701748f0851"],
"generating_dbos_workflow_id": null
}
]
}
Physical Samples
Get Physical Sample Timeseries
Retrieve aggregated timeseries data for a physical sample
GET
/
physical_samples
/
{physical_sample_id}
/
timeseries
/
import requests
response = requests.get(
"https://api.atomscale.ai/physical_samples/a1b2c3d4-5678-90ab-cdef-1234567890ab/timeseries/",
headers={"X-API-KEY": "YOUR_API_KEY"}
)
timeseries = response.json()
curl "https://api.atomscale.ai/physical_samples/a1b2c3d4-5678-90ab-cdef-1234567890ab/timeseries/" \
-H "X-API-KEY: YOUR_API_KEY"
{
"physical_sample_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"properties": [
{
"property_name": "thickness",
"property_values": [0, 5.2, 10.1, null, 20.0],
"real_time_seconds": [0, 10, 20, 30, 40],
"result_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"last_updated": "2024-01-15T10:00:00Z",
"constituent_data_ids": ["d290f1ee-6c54-4b01-90e6-d701748f0851"],
"generating_dbos_workflow_id": null
}
]
}
Returns timeseries data aggregated across the data items associated with a physical sample. Results are organized by property, where each property carries its own arrays of values and times.
string
required
UUID of the physical sample
Response
string
UUID of the physical sample the timeseries belong to
array
Array of property timeseries objects, one per property.
Show properties
Show properties
string
Name of the property (e.g.,
thickness, temperature)array
Array of measurement values. Individual entries can be
null where no value was recorded.array
Array of time values in seconds, aligned with
property_valuesstring
UUID of the result that produced this property series
string
ISO 8601 timestamp of the last update to this series
array
UUIDs of the data items that contributed to this series
string
ID of the workflow that generated this series, or
null if not applicableimport requests
response = requests.get(
"https://api.atomscale.ai/physical_samples/a1b2c3d4-5678-90ab-cdef-1234567890ab/timeseries/",
headers={"X-API-KEY": "YOUR_API_KEY"}
)
timeseries = response.json()
curl "https://api.atomscale.ai/physical_samples/a1b2c3d4-5678-90ab-cdef-1234567890ab/timeseries/" \
-H "X-API-KEY: YOUR_API_KEY"
{
"physical_sample_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"properties": [
{
"property_name": "thickness",
"property_values": [0, 5.2, 10.1, null, 20.0],
"real_time_seconds": [0, 10, 20, 30, 40],
"result_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"last_updated": "2024-01-15T10:00:00Z",
"constituent_data_ids": ["d290f1ee-6c54-4b01-90e6-d701748f0851"],
"generating_dbos_workflow_id": null
}
]
}
⌘I