An error occured. Details Hide
You have unsaved pages. Restore Cancel

Get timeseries count

This endpoint returns timeseries data filtered by datasetId and a combination of dimension values.

Input: POST

The StartDate and EndDate act as filters between which if data is found the corresponding timeseries is included in calculating Timeseries count. Both of them are optional.
If no frequeny is provided, all frequencies will be considered for calculating the count. Similarly if StartDate and EndDate is not specified, all time ranges will be considered to calculate timeseries count.

 

NameTypeDescription
DimensionRequest Array[DimenensionRequest] The DimensionRequest item consists of
  1. DimensionId : DimensionId to filter
  2. Members : Members of the respective dimension Id which are required.
Frequency Array[Char] Array of required Frequencies.
Values can be 'A' -Annual ,'Q' -Quarterly, 'M' -Monthly ,'W' -Weekly
StartDate Date StartDate from which data is required.
EndDate Date EndDate before which data is required.

Result

Int value of number of Timeseries found after filtering.

Example

POST: http://knoema.com/api/data/dataset/CDIACTACHIINDUSAA/count
 
{
   "DimensionRequest": [
      {
         "DimensionId": "Location",
         "Members": [
            1000010,
            1000020
         ]
      },
      {
         "DimensionId": "Variable",
         "Members": [
            1000020,
            1000030
         ]
      }
   ],
   "Frequency": [
      "A",
      "Q",
      "M",
      "W"
   ],
   "StartDate": "1901-11-23",
   "EndDate": "2020-11-23"
}