Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Barcodes API calls to OpenFoodFacts' API #2

Open
pH-7 opened this issue Jul 10, 2019 · 0 comments
Open

Barcodes API calls to OpenFoodFacts' API #2

pH-7 opened this issue Jul 10, 2019 · 0 comments

Comments

@pH-7
Copy link
Member

pH-7 commented Jul 10, 2019

The OpenFoodFacts' API URL for the barcodes differs with the URL for product names.
Because, here, with barcodes, you don't search with some keywords that could match with a product name.., but you need to search with a full barcode which refers to only one product (which isn't the case with product names).
So, apparently, the OpenFoodFacts URL for Barcodes will be like https://ssl-api.openfoodfacts.org/code/5400141054651.json and not like
So, should be: https://ssl-api.openfoodfacts.org/code/.json

You also even have this URL (which looks similar to the ones above...) https://world.openfoodfacts.org/api/v0/product/[barcode].json

Further documentation information:

@pH-7 pH-7 changed the title OpenFoodFacts' API; Barcode calls Barcodes API calls to OpenFoodFacts' API Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant