Jump to content

Open Food Facts API Version 2: Difference between revisions

Line 34: Line 34:
* The main product language;
* The main product language;
* Other languages mentioned on the product;
* Other languages mentioned on the product;
As it is undesirable (to large) to present all possible languages, there must be a way to filter the output, by setting parameters.
As it is undesirable (to large) to present all possible languages, there must be a way to filter the output, by setting parameters:
* '''lc=''' could specify the language desired by the user. This could match his interface, the language he speaks, the language he wants to show to friends, etc. This should be independent of the actual product. The default is english. Any field that is translatable by OFF, will be translated. Otherwise the main language of the product is used. The output provided by OFF should make clear what language is provided.


= Product read API =
= Product read API =
3,543

edits