Optional
init: RequestInitOptional
init: RequestInitUpdate a product tag (or add it if it does not exist)
Tag to add or update with the following fields:
k
: keyv
: valueproduct
: barcodeversion
: version of the tag (must be equal to previous version + 1)owner
: user_id of the owner of the tag (empty for public tags)if the tag was added or updated
Get the list of keys with statistics
The keys list can be restricted to private tags from some owner.
Get a list of existing tags for a product
Get the list of products that have a key
or key=value
if value
is provided
Optional
value: stringAuthentication: provide user/password and get a bearer token in return
Open Food Facts user_id (not email)
user password
the bearer token, to be used in later requests with usual "Authorization: bearer token" headers
Delete a product tag
if the tag was deleted
MDN Reference