Quality Data

Returns all product ids that have food declarations.

The result is an array of ids.

get
https://api.migros.ch/migros/products/v8/declarations/product-ids

Query Parameters

updated_sincestring

The date and time used to only get declarations updated since a certain timestamp. The format is according to ISO 8601 and can include a time zone offset, e.g. 2018-01-01T06:00:00+01:00 (careful about the plus getting properly percent-encoded when passed). Default time zone is Swiss time.

langstring

Defines the language (de/fr/it/en) for this request as query parameter. Either use the query param “lang” or header “Accept-Language”, not both.

Allowed values:defriten

Default:de

Headers

Accept-Languagestring

Defines the language (de/fr/it/en) for this request as request header. Either use the query param “lang” or header “Accept-Language”, not both.

Allowed values:defriten

Default:de

Response

application/json

Returned when successful

array[string]
get/migros/products/v8/declarations/product-ids
 
application/json

AbstractCollection

A generic collection of elements.

AbstractSearchResultCollection

object

A collection of search result instances.

idsarray[string]

Ids only.

Is filled instead of the usual property for content, with only the ids when a call is made with verbosity=id on a
route that supports it.

total_hitsinteger

The total hits may exceed the actual count of results in the collection.

It represents the total number of results of a search and not only the
potentially paginated subset.

Example

AlcoholInformation

object

Represents alcohol information.

labelstringrequired
operatorstring
valuestringrequired
Example

Allergen

object
codestringrequired
contamination_codestring

Code of the contamination.

contamination_labelstring

Label of the contamination.

labelstringrequired

Descriptive label.

Example