Skip to content

Barcodes API calls to OpenFoodFacts' API #2

@pH-7

Description

@pH-7

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions