Get data
Endpoint: http://data.gov.om/api/1.0/data/get
This endpoint returns observation data for the given filter.
Input
Simple Request
Input is a list of datasetId and timeseries key.
| Name | TypeDescription | |
|---|---|---|
| DatasetId | String | Unique dataset identifier |
| TimerseriesKey | Int | Timeseries key. |
Full Request
| Name | Type | Description |
|---|---|---|
| TimeSeries | TimeseriesDescriptor | The TimeseriesDescriptor contains
|
| StartDate | Date | Timeseries start date |
| Enddate | Date | Timeseries end date |
| Frequency | Char | Frequency of Data required( A= Annual ;S=SemiAnnually; Q=Quarterly; W=Weekly; D=Daily) |
| CustomFields | Bool | Includes additional dimensional metadata associated with each dimension as part of output |
Result
Array of Observation Data
| Name | Type | Description |
|---|---|---|
| dataset | String | Unique identifier for a dataset |
| id | Int | Timeseries key |
| metadata | Array[DimensionalDetails] | List of Dimension details. Consist of
|
| startDate | Date | First Observation value's date. |
| endDate | Date | Most recent observation value's date. |
| scaleValue | Int | The default scale value. "data" needs to be multiplied by this value to obtain absolute observation data value. |
| unit | String | Unit of output data |
| frequency | Char | Denotes the frequency of data available. Frequency of data can be of the following types
|
| data | Array[double] | Observation values with the first value corresponding to the startdate and the last value corresponding to endDate. null values can be present and correspond to missing data. |
Request
[ { "TimeseriesKey": 1000000, "DatasetId": "OMINF2016" }, { "TimeseriesKey": 1000010, "DatasetId": "OMINF2016" }] |
Result:
[ { "dataset":"OMINF2016", "id":1000000, "metadata":[ { "dim":"region", "key":1000000, "name":"Oman", "id":"1", "regionid":"OM", "iso":"OM", "description":"", "u1575u1587u1605":"عمان" }, { "dim":"indicator", "key":1000010, "name":"Grand Total - Transmission & Broadcasting Hours :Daily - No", "id":"1", "full-name":"Television & Radio (Governmental)\Grand Total - Transmission & Broadcasting Hours :Daily - No.", "description":"", "short-name":"", "unit":"Number", "short-description":"", "frequencies":"", "methodology":"", "source-name":"", "source-link":"", "u1575u1587u1605":"عمان", "u1575u1604u1575u1587u1605-u1575u1604u1603u1575u1605u1604":"التلفزيون و الاذاعة ( حكومي )\اجمالي ساعات الارسال التلفزيوني والاذاعي اليومي- عدد", "u1575u1604u1608u1581u1583u1577":"عدد" }, { "dim":"periodic-release", "key":1000000, "name":"Total", "id":"1", "u1575u1587u1605":"عمان", "اسم":null }, { "dim":"program-quality", "key":1000000, "name":"Total", "id":"1", "u1575u1587u1605":"عمان", "اسم":null } ], "startDate":"Tue, 01 Jan 2002 00:00:00 GMT", "endDate":"Fri, 01 Jan 2016 00:00:00 GMT", "scaleValue":1, "unit":"Number", "frequency":"annual", "data":[ 65, 80, 85, 102, 101, 117, 111, 111, 111, 129, 140, 143, 158, 187, 0 ] }, { "dataset":"OMINF2016", "id":1000010, "metadata":[ { "dim":"region", "key":1000000, "name":"Oman", "id":"1", "regionid":"OM", "iso":"OM", "description":"", "u1575u1587u1605":"عمان" }, { "dim":"indicator", "key":1000020, "name":"No. Total Television Broadcasting Hours- Daily", "id":"1", "full-name":"Grand Total - Transmission & Broadcasting Hours :Daily - No.\ No. Total Television Broadcasting Hours- Daily", "description":"", "short-name":"", "unit":"Number", "short-description":"", "frequencies":"", "methodology":"", "source-name":"", "source-link":"", "u1575u1587u1605":"عمان", "u1575u1604u1575u1587u1605-u1575u1604u1603u1575u1605u1604":"اجمالي ساعات الارسال التلفزيوني والاذاعي اليومي- عدد\اجمالي ساعات الارسال التلفزيوني اليومي - عدد", "u1575u1604u1608u1581u1583u1577":"عدد" }, { "dim":"periodic-release", "key":1000000, "name":"Total", "id":"1", "u1575u1587u1605":"عمان", "اسم":null }, { "dim":"program-quality", "key":1000000, "name":"Total", "id":"1", "u1575u1587u1605":"عمان", "اسم":null } ], "startDate":"Tue, 01 Jan 2002 00:00:00 GMT", "endDate":"Fri, 01 Jan 2016 00:00:00 GMT", "scaleValue":1, "unit":"Number", "frequency":"annual", "data":[ 24, 31, 31, 48, 48, 57, 33, 33, 33, 34, 40, 43, 48, 72, 0 ] }] |
Full request
{ Timeseries: [ { "TimeseriesKey": 1000000, "DatasetId": "OMINF2016" }, { "TimeseriesKey": 1000010, "DatasetId": "OMINF2016" }], StartDate: "01/01/2010", EndDate: "01/01/2016", Frequency: "A", CustomFields: true} |
Response
[ { "dataset":"OMINF2016", "id":1000000, "metadata":[ { "dim":"region", "key":1000000, "name":"Oman", "id":"1", "regionid":"OM", "iso":"OM", "description":"", "u1575u1587u1605":"عمان" }, { "dim":"indicator", "key":1000010, "name":"Grand Total - Transmission & Broadcasting Hours :Daily - No", "id":"1", "full-name":"Television & Radio (Governmental)\Grand Total - Transmission & Broadcasting Hours :Daily - No.", "description":"", "short-name":"", "unit":"Number", "short-description":"", "frequencies":"", "methodology":"", "source-name":"", "source-link":"", "u1575u1587u1605":"عمان", "u1575u1604u1575u1587u1605-u1575u1604u1603u1575u1605u1604":"التلفزيون و الاذاعة ( حكومي )\اجمالي ساعات الارسال التلفزيوني والاذاعي اليومي- عدد", "u1575u1604u1608u1581u1583u1577":"عدد" }, { "dim":"periodic-release", "key":1000000, "name":"Total", "id":"1", "u1575u1587u1605":"عمان", "اسم":null }, { "dim":"program-quality", "key":1000000, "name":"Total", "id":"1", "u1575u1587u1605":"عمان", "اسم":null } ], "startDate":"Fri, 01 Jan 2010 00:00:00 GMT", "endDate":"Fri, 01 Jan 2016 00:00:00 GMT", "scaleValue":1, "unit":"Number", "frequency":"annual", "data":[ 111, 129, 140, 143, 158, 187, 0 ] }, { "dataset":"OMINF2016", "id":1000010, "metadata":[ { "dim":"region", "key":1000000, "name":"Oman", "id":"1", "regionid":"OM", "iso":"OM", "description":"", "u1575u1587u1605":"عمان" }, { "dim":"indicator", "key":1000020, "name":"No. Total Television Broadcasting Hours- Daily", "id":"1", "full-name":"Grand Total - Transmission & Broadcasting Hours :Daily - No.\ No. Total Television Broadcasting Hours- Daily", "description":"", "short-name":"", "unit":"Number", "short-description":"", "frequencies":"", "methodology":"", "source-name":"", "source-link":"", "u1575u1587u1605":"عمان", "u1575u1604u1575u1587u1605-u1575u1604u1603u1575u1605u1604":"اجمالي ساعات الارسال التلفزيوني والاذاعي اليومي- عدد\اجمالي ساعات الارسال التلفزيوني اليومي - عدد", "u1575u1604u1608u1581u1583u1577":"عدد" }, { "dim":"periodic-release", "key":1000000, "name":"Total", "id":"1", "u1575u1587u1605":"عمان", "اسم":null }, { "dim":"program-quality", "key":1000000, "name":"Total", "id":"1", "u1575u1587u1605":"عمان", "اسم":null } ], "startDate":"Fri, 01 Jan 2010 00:00:00 GMT", "endDate":"Fri, 01 Jan 2016 00:00:00 GMT", "scaleValue":1, "unit":"Number", "frequency":"annual", "data":[ 33, 34, 40, 43, 48, 72, 0 ] }] |