Skip to content
HiQLCDSupport

Data query API

Request conventions

The gateway path prefix is /api/relic. All POST endpoints below perform read operations.

FieldDefinition
Accept-VersionRequest header. The current contract version is 1.
datasetRefOpaque dataset handle generated by the service
page.cursorContinuation cursor from page.cursor in the previous response
page.limitNumber of entries per page

Endpoints

Method and pathContent
POST /api/relic/searchSearch results grouped by activity, with dataset summaries
POST /api/relic/lookupBatch dataset details
GET /api/relic/sourcesCatalog of sources, versions and system models
POST /api/relic/lciCumulative elementary flow inventory for a dataset
POST /api/relic/lciaLCIA results for a dataset
POST /api/relic/lcia-methodsLCIA method catalog for a source and version

Search fields

/search request fieldDefinition
queryOptional keywords for reference products, names or descriptions
filters.sourcesSource and version scope
filters.modelsSystem model scope
filters.locationsGeographic code scope
filters.activityTypesActivity type scope
filters.classificationsClassification scope
sortname or relevance; relevance requires a nonempty query
pageCursor and page size; at most 100 entries per page

Fields are combined with AND. Multiple values within one field are combined with OR. data is an activity array, datasets contains the corresponding dataset summaries, and page.total counts matching activities.

Lookup fields

/lookup request fieldDefinition
datasetRefsArray of dataset handles; mutually exclusive with coordinates
coordinatesArray of coordinates, each containing id, version and systemModel
includedocumentation and provenance; both are included by default

A request may contain at most 200 items. Missing records return found: false.

The following fields describe geography and reference products in dataset details. See Geographies and model catalog columns for the corresponding XLSX representation.

/lookup response fieldDefinition
location.idDataset geography identifier
location.nameGeographic name
location.pathRecorded geographic path; may be empty
referenceProduct.amountReference product quantity
referenceProduct.unitReference product unit

Result fields

EndpointMain request fieldsMain response fields
/lcidatasetRef; optional type, name, flowCategory, pageflow, amount, unit, direction
/lciadatasetRef; optional methodId, categories, indicators, pagemethod, value, unit
/lcia-methodssource; optional version, query, pagemethodId, name, category, indicator, unit, version in data.methods
QueryMaximum page sizeResult scope
/lci200Cumulative elementary flows, excluding the reference product; missing units are null
/lcia200Results for the impact assessment method, impact category and category indicator
/lcia-methods500Impact assessment method catalog for the source and version

In cumulative LCI, amount / unit represents an elementary flow quantity and its unit. In LCIA, value / unit represents an impact assessment result and its category indicator unit.

For /lcia, methodId, categories and indicators come from the corresponding source's method catalog. methodId is the complete Method ID, not a standalone Method UUID.

Response

FieldContent
dataQuery data; structure depends on the endpoint
pagecursor, limit, total; an empty cursor means there is no next page
metaContract version, language and release collection metadata
restrictedResult restriction flag for /lci and /lcia
data.restrictedCatalog restriction flag for /lcia-methods
errorcode, message, field, details, requestId

Without authorization for commercial data, /lci and /lcia return empty data and restricted: true. /lcia-methods returns empty methods and data.restricted: true. The query API does not return unit process direct exchanges, supplier shares or characterization factor value tables.