Filter and transform series
- Download a table with one or many series
- Filtering by dates
- Changing temporal aggregation
- Changing temporal aggregation function
- Apply transformations
- Apply transformations and changing the temporal aggregation function in individual series, at the same time
Download a table with one or many series
ids
parameter allows querying up to 40 series simultaneously, separated by commas.
Filtering by dates
start_date
and end_date
parameters allow limiting a query to a particular range in time.
Exchange rate up to December 2016
https://apis.datos.gob.ar/series/api/series?ids=168.1_T_CAMBIOR_D_0_0_26&end_date=2016-12&format=csv
Changing temporal aggregation
By default, all series are shown in the highest possible frequency (this is, the lowest frequency between all the series in the query). collapse
parameter allows to choose a lower frequency than this one.
Changing temporal aggregation function
By default, when the API calculates temporal aggregations (ie. converting a monthly series into a quarterly one) it does an average of series values in each period.
This function of aggregation can be changed for all the series in the query using collapse_aggregation
parameter, or to any individual series without affecting the others (sum, max, min, etc.).
Apply transformations
Series can be transformed into different units (percentage variation, year-to-year variation, etc.) individually or for all the query, using representation_mode
parameter.
Note: series with different scale units, can be hard to visualize in a single graphic.
Apply transformations and changing the temporal aggregation function in individual series, at the same time
It is possible to apply both a transformation and a temporal aggregation function to any particular series.
In any case, the API will always apply first the temporal aggregation function and then the transformation.