Simple get dataset endpoint
This endpoint returns dataset's data in pivot table format.
Input
DatasetId is unique identifier for dataset, dimensionId - unique identifier for dataset dimension and key1,key2,key3 - array of dimension members.
Time is the optional parameter, if it's missing, the result will contain the rows between 2000 year till current date.
Name | Type | Description |
---|---|---|
DatasetId | String | Unique identifier for dataset. |
DimensionId | String | Unique Identifier for dimension. |
Result
The output of this endpoint is array of tuples. For each header/stub dimension there will be corresponding tuple field and also value field. Stub fields will be included in the order of their definition in request followed by header fields in the order of their definition in request. Tuples will follow the value order defined in request, i.e. tuples for values listed first will be followed by tuples for values listed later.
Name | Type | Description |
---|---|---|
Dataset | string | Unique dataset id |
Header | object | Dimension details and members of header Contains array of
|
Stub | Object | Dimension details and members of stub Contains array of
|
Filter | Object | Dimension details of members which are used as a filter. This can contain only one member. |
Data | object | Tuples describing each data point. consists
|
Example
GET http://data.gov.om/api/1.0/data/OMINF2016?region=1000000&indicator=1000010,1000020&periodic-release=1000000&program-quality=1000000
|