Skip to main content

lidlplus-api

A Python wrapper for the Lidl Plus app API.

This project is a fork of: https://github.com/Andre0512/lidl-plus


Requirements

  • Python 3.12+
  • Playwright (plus its required system dependencies)

Installation

  1. a) Install the package:

    pip install lidlplus-api[auth]
    

    b)

    If you use an OS/Distro that doesn't support playwright, and you want to use this with the refresh token, install:

    pip install lidlplus-api
    
  2. Install Playwright browsers:

    playwright install chromium
    
  3. Install system dependencies required by Playwright (varies by OS).


Quick start

from lidlplus_api import LidlPlusApi

lidl = LidlPlusApi(
    language="YOUR_LANGUAGE_CODE",
    country="YOUR_COUNTRY_CODE",
    # optional:
    refresh_token="YOUR_REFRESH_TOKEN",
)

lidl.login(email="YOUR_EMAIL", password="YOUR_PASSWORD")

Usage

  1. Import lidlplus_api in your project
  2. Use the LidlPlusApi methods below

API reference

Create client

  • Constructor

    lidl = LidlPlusApi(
        language="YOUR_LANGUAGE_CODE",
        country="YOUR_COUNTRY_CODE",
        refresh_token="YOUR_REFRESH_TOKEN",  # optional
    )
    

    Initializes the LidlPlusApi client.


Authentication

  • Login (Playwright)

    lidl.login(email="YOUR_EMAIL", password="YOUR_PASSWORD")
    

    Logs in to your Lidl Plus account using Playwright.


Receipts

  • List receipts (paged, 25 per page)

    lidl.receipts(only_favourite=False, pageNumber=1)
    
  • Get a specific receipt

    lidl.receipt(ticket_id)
    

    ticket_id comes from lidl.receipts() (id field).


Coupons

  • List coupons for a store

    lidl.coupons(store_id)
    

    store_id comes from lidl.get_stores().

  • Activate a coupon

    lidl.activate_coupon(coupon_id)
    
  • Deactivate a coupon

    lidl.deactivate_coupon(coupon_id)
    

    coupon_id comes from lidl.coupons().


Coupon Plus (experimental)

  • Start Coupon Plus

    lidl.start_couponplus()
    

    EXPERIMENTAL — probably doesn’t work.

  • Coupon Plus status/info

    lidl.couponplus(store_id)
    

    DOESN’T WORK — fetches info for the current month’s Coupon Plus (store from lidl.get_stores()).


Scratch card / Fortune wheel (purchaseLottery)

  • Promotion details

    lidl.purchaseLottery_details(coupon_id)
    
  • Redeem promotion

    lidl.redeem_purchaseLottery(coupon_id)
    
  • Promotion status

    lidl.purchaseLottery_status(coupon_id)
    

    coupon_id comes from: lidl.home(store_id)["purchaseLottery"][0]["id"]


Loyalty

  • Get loyalty id

    lidl.loyalty_id
    
  • Generate loyalty QR code

    lidl.generate_loyalty_id()
    

Stores / Offers / Brochures

  • List stores

    lidl.get_stores()
    
  • Offers for a store

    lidl.offers(store_id)
    
  • Brochures for a store

    lidl.brochures(store_id)
    

Translations

  • Get translation keys

    lidl.translations()
    

Misc

  • Active coupons count

    lidl.activecoupons_count(store_id)
    
  • Home page data

    lidl.home(store_id)
    
  • Today’s store schedule

    lidl.store_schedule(store_id)
    
  • Store details

    lidl.store_details(store_id)
    

This application is an open source project written in Python, which uses the API of the Lidl Plus application, owned by Lidl Stiftung & Co. KG. The application was created solely for educational purposes and is not affiliated with Lidl Stiftung & Co. KG. The creator of the application is not affiliated with Lidl Stiftung & Co. KG. in any way and does not derive any financial benefits from this project. All trademarks, trade names, and logos are the property of their respective owners. Users use the application at their own risk.

Metadata

Release files for lidlplus-api 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lidlplus-api 0.0.6
File Size Uploaded Provenance Actions
lidlplus_api-0.0.6.tar.gz 21.7 kB With provenance Details for lidlplus_api-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lidlplus-api 0.0.6
File Interpreter ABI Platform Actions
lidlplus_api-0.0.6-py3-none-any.whl Python 3 none any Details for lidlplus_api-0.0.6-py3-none-any.whl

Total release size: 41.8 kB

Release files / lidlplus_api-0.0.6.tar.gz

Download URL lidlplus_api-0.0.6.tar.gz
Size 21.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8ec1aa4c3145911fa5123f1edf25f01fd5f3a4fc187652a1ac1c2b61dbdd8d59
BLAKE2b-256 checksum
How to use checksums
202b4d0cc66c87a4f416dc2f15055f3a0d98d6a1c54935c7ccf66d89802d8495
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / lidlplus_api-0.0.6-py3-none-any.whl

Download URL lidlplus_api-0.0.6-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d06a320e34b17a721721effce1daa229a41efbe0898f695650de6b1ee3f5997
BLAKE2b-256 checksum
How to use checksums
79cac3aa5bc3043dacfc528c484be3e47f1f97f1eaadf22fa663086c81162705
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for lidlplus-api 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lidlplus_api-0.0.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page