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

Map timeseries to pivot descriptor

 
This endpoint returns pivot descriptor for the combination timeseriesKey and dataset provided.
 
Input: 
Name Type  Description 
datasetId string  Unique identifier for dataset.
timeseriesKey int Timeseries identification number
 
Output:
Name  Type  Description 
Dataset  string  Unique dataset id 
Header  object  Dimension details and members of header 
Contains array of 
  • DimensionId: Dimension id
  • Members: Distinct sorted values of dimension members
Stub  Object 

Dimension details and members of stub 
Contains array of

  • DimensionId: Dimension id
  • Members: Distinct sorted values of dimension members
Filter  Object Dimension details of members which are used as a filter. This can 
contain only one member. 
Frequencies char

Interval of time between which observation data is recorded. Values can be 'A' -Annual ,'Q' -Quarterly, 'M' -Monthly ,'W' -Weekly

FoldDimension string dimension Id which has fold applied on the members.
 
Example:
Get: http://knoema.com/api/1.0/data/timeseries/UNCTADPOP2011?tsId=1002860
 
Result:
{
  "Dataset": "UNCTADPOP2011",
  "Header": [
    {
      "DimensionId": "Time",
      "Members": [
        "1950-2100"
      ],
      "UiMode": "range"
    }
  ],
  "Stub": [
    {
      "DimensionId": "Location",
      "Members": [
        1000410
      ]
    },
    {
      "DimensionId": "Variable",
      "Members": [
        1000000
      ]
    }
  ],
  "Filter": [],
  "Frequencies": [
    "A"
  ]
}