Check the Leboncoin session
session_statusCheck if a usable Leboncoin session exists without throwing. Returns authentication state to guide next steps, including whether you must sign in manually or if the failure is due to bot protection.
Instructions
Reports whether a usable Leboncoin session exists, without throwing. States: authenticated, not_authenticated (never signed in), session_expired (Leboncoin rejected the session), network_error (could not reach Leboncoin), leboncoin_unavailable (5xx), datadome_blocked (bot protection refused the browser - NOT an expired session, and signing in again will not fix it), rate_limited, unknown. Only tell the user to sign in again when reauthenticationRequired is true. Signing in requires a human: they run leboncoin-seller login-manual --country fr and sign in themselves. Never ask for their password.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No | Leboncoin site to use (fr). Defaults to the server's configured site. |