Get data

This endpoint returns observation data for the given filter.

Input

Simple Request

Input is a list of datasetId and timeseries key.

Name TypeDescription  
DatasetIdString Unique dataset identifier
TimerseriesKey Int Timeseries key.

 Full Request

Name Type Description
TimeSeriesTimeseriesDescriptor The TimeseriesDescriptor contains
  1. datasetIds : Unique datasetId
  2. TimeseriesKeys : Timeseies key
StartDateDate Timeseries start date
EnddateDate Timeseries end date
FrequencyChar Frequency of Data required( A= Annual ;S=SemiAnnually; Q=Quarterly; W=Weekly; D=Daily)
CustomFieldsBool Includes additional dimensional metadata associated with each dimension as part of output

 Result 

Array of Observation Data

Name Type Description
datasetString Unique identifier for a dataset
idInt Timeseries key
metadataArray[DimensionalDetails] List of Dimension details.
Consist of
  • dim:Dimension id
  • key: Dimension member key(The dimension member key associated with this timeseries)
  • name: Dimension member name.
  • RegionId: Region code for the member of geographical dimension
startDateDate First Observation value's date.
endDateDate Most recent observation value's date.
scaleValueInt The default scale value. "data" needs to be multiplied by this value to obtain absolute observation data value.
unitString Unit of output data
frequencyChar Denotes the frequency of data available.
Frequency of data can be of the following types
  1. annual
  2. semiannual
  3. quarterly
  4. monthly 
  5. weekly   
  6. daily
dataArray[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
      ]
   }
]