Getting started
Concepts
- Model concepts
- API concepts
- API versions
- Entitlements
- Filters
- Request parameters
- Usage quota
- Error codes
Services
Parameters
- after
- aggregate
- aggregateIncrementFrom
- cursor
- dateFormat
- descending
- entity
- envelope
- fields
- format
- from
- groupBy
- groupById
- groupByIdAndTime
- groupByTo
- includeMetaData
- inline
- inlineLatest
- inlineTimeseries
- limit
- modulus
- nextUrl
- part
- pivot
- rankBy
- requestTimeout
- returnPreSignedUrl
- showMessage
- showStreamCursor
- to
- trace
- verifyLinks
- wait
Deprecated parameters
Datasets
- ECR: timeseries and observations
- ECR: usage patterns
- fiindices: retrieving index data
- Parsing: asset classes
- Parsing: best practices
Samples
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
idor selected with a latest filter. - It cannot be combined with groupById, with range filters on fields, or with an explicit sortBy.