groupByIdAndTime

Returns one record for each id and time, selecting the record with the first or the latest value of the time series key extension.

Applies to: timeseries

Value: first or latest. The value is not case sensitive. There is no default: without the parameter all records are returned.

Some entities store several records for the same id and time, distinguished by one or more additional key fields, the time series key extension. The meta service shows these fields as timeSeriesKeys of the entity. groupByIdAndTime reduces these records to one per id and time:

  • first: the record with the lowest key extension values.
  • latest: the record with the highest key extension values.
https://api-qa.ihsmarkit.com/namespace/Entity/timeseries?id=ID1,ID2&from=2024-01-01&to=2024-01-31&groupByIdAndTime=latest

Use groupByTo to limit the key extension values that are considered. The response has the same structure as a normal timeseries response.

Restrictions

  • The entity must have a time series key extension.
  • A list of ids is required, given with id or selected with a latest filter.
  • It cannot be combined with groupById, with range filters on fields, or with an explicit sortBy.

groupByTo, groupById