Count samples
Count all raw data by category.
Project ID
Which of the three acquisition categories to retrieve data from
Only include samples with a label within the given list of labels, given as a JSON string
["idle", "snake"]
Only include samples whose filename includes the given filename
Only include samples shorter than the given length, in milliseconds
Only include samples longer than the given length, in milliseconds
Only include samples with higher frequency than given frequency, in hertz
Only include samples with lower frequency than given frequency, in hertz
Include samples with either valid or invalid signatures
Include only enabled or disabled samples (or both)
Only include samples with a label >= this value
Only include samples with a label < this value
Search query
<id> <name>
Include only samples with a particular data type
Include only samples with an ID >= this value
Include only samples with an ID < this value
Filter samples by metadata key-value pairs, provided as a JSON string. Each filter item in the list is combined using a logical OR. To include samples without any metadata, use: { "no_metadata": true }.
["[{ \"key\": \"locationId\", \"op\": \"eq\", \"values\": [\"buildingA\"] }, { \"key\": \"deviceId\", \"op\": \"neq\", \"values\": [\"val1\", \"val2\"] }]","[{ \"key\": \"distance\", \"op\": \"eq\", \"values\": [\"1.5\", \"2.9\"], \"key\": \"comments\", exclude: [\"faulty\"] }]","[{ \"key\": \"nullKeyExample\", \"op\": \"eq\" }]","[{ \"key\": \"presentKeyExample\", \"op\": \"neq\" }]","[{ \"no_metadata\": true }]"]
Only include samples that where added after the date given
2023-01-01T00:00:00.000Z
Only include samples that were added before the date given
2024-12-31T00:00:00.000Z
GET /v1/api/{projectId}/raw-data/count HTTP/1.1
Host: studio.edgeimpulse.com
x-api-key: YOUR_API_KEY
Accept: */*
OK
{
"success": true,
"error": "text",
"count": 1
}
Last updated
Was this helpful?