openfoodfacts-nodejs icon indicating copy to clipboard operation
openfoodfacts-nodejs copied to clipboard

Add support to list products for an individual label in the JavaScript SDK

Open kozlown opened this issue 7 years ago • 1 comments

Create method getProductsByLabel(label).

It must work for the following endpoint:

  • https://en.wiki.openfoodfacts.org/API#Individual_label

kozlown avatar Feb 26 '18 11:02 kozlown

i would love too work on it.

akashshetty1997 avatar Mar 31 '25 15:03 akashshetty1997

The endpoint documentation URL seems to be outdated. Is this the one we need to use? I read we can use the "labels_tags" to filter by tags. Image

Sounds logical?

TheMineWay avatar Jul 14 '25 07:07 TheMineWay

@TheMineWay yes it's definitely a good idea to use the api v2 for this job !

alexgarel avatar Jul 29 '25 09:07 alexgarel

I have just released a PR for this. Finally I used API v3 :)

TheMineWay avatar Jul 29 '25 13:07 TheMineWay