Authentication

Login Session

Retrieve session cookie for writing operations.

post/cgi/session.pl

Request

  • Base URL
    https://world.openfoodfacts.net
  • Auth
    API key in header User-Agent

Request body application/x-www-form-urlencoded

user_idstring required

Username for login

Note: you must always use the username (and not the email) as it is far less brittle.

passwordstring password required

Password for login

Response

Successful login

Changes

No recorded changes to this operation across all 19 revisions of this API.