Get primary entity and round specific granularity

Returns data granularity for given primary entity and round within a particular dataset of specified data collection. The returned granularity is a subset of the dataset granularity with filter values relevant to the selected primary entity.

Note that it is still possible that there is no modeled data for some combinations of filters. To check for what genders, age groups, locations, and measure the data wasn't modeled, have a look at the Condition Detail Notes API below.

GET /my-organization/data-collection-resources/:data_collection_id/datasets/:data_type/granularity

Where:

Parameter
Description

:data_collection_id

The queried data collection

:data_type

The queried data type

Parameters

Parameter
Description
Optional

round_id

Unique round identifier

No

primary_entity_id

Primary entity id. Multiple primary entity ids can be passed as a comma-separated list

No

Response

The endpoint returns a granularity object, which contains the id-values available for each of the relevant filters:

{
    "data": {
        <filter_1>: [<int>],
        <filter_2>: [<int>],
        ...,
        <filter_n>: [<int>],
    }
}

Example

Note, that returned cause_id and round_id match the request query parameters.

Last updated