diff --git a/openfoodfacts/api.py b/openfoodfacts/api.py index 22a593f..4631aac 100644 --- a/openfoodfacts/api.py +++ b/openfoodfacts/api.py @@ -85,7 +85,7 @@ def get_products( """ facet = Facet.from_str_or_enum(facet_name) facet_singular = facet.name.replace("_", "-") - params = {"page": page, page_size: page_size} + params = {"page": page, "page_size": page_size} if fields is not None: params["fields"] = ",".join(fields)