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
Filters
A filter selects records by the value of a field. It is written as a query parameter with the name of the field.
Applies to: latest, timeseries, batchrun, stream for an entity
Value: comma-separated values of the field.
https://api-qa.ihsmarkit.com/namespace/Entity/latest?id=ID1,ID2&country=NL
Not every field can be used as a filter. The fields that can are shown by the meta service (the property lookupField) and in the HTML view. A field that cannot be used as a filter on the entity is refused with the error INVALID_PARAMETER.
Combining filters
- When several filters are used, a record must match all of them (a logical AND). Several values for one field match any of them (a logical OR).
- A filter on a field of a referenced entity is written with a dot, as
reference.field. Both fields must be usable as filters. - Combine filters with limit to keep responses manageable.
Ranges
On the latest service, field>=value and field<=value select an inclusive range of values. Not all fields that can be used as filters support ranges; the meta service shows which do. See latest. The older notation with rangeField, from and to is deprecated on the latest service.
Text filters
On the latest service, text fields that are enabled for it can be filtered by part of the value. field~=text selects the records whose field contains the text. field^=text selects the records whose field starts with the text. These filters take a single value.
Filters per service
- timeseries: there are latest filters and time series filters. See timeseries. In API version 2 a latest filter is written as
latest.field. - stream of a namespace: a filter on a field of an entity is written as
Entity.field=value. See stream.
Filters and entitlements
Your entitlements can restrict the records you receive. Such a restriction works like a filter that is always applied, in addition to your own filters. The HTML view of the latest service shows it as an entitlement filter.