Python API client for Lidl Connect
Find a file
2025-07-15 13:01:57 +02:00
.github/workflows Updated github workflow 2025-05-24 01:40:16 +02:00
LidlConnect Added credit_topup method 2025-07-15 12:45:17 +02:00
.gitignore Initial Commit 2025-05-24 01:03:16 +02:00
apiDoc.md Updated apiDoc.md and README.md 2025-07-15 12:45:28 +02:00
LICENSE Added LICENSE 2025-05-24 01:08:15 +02:00
pyproject.toml Updated pyproject.toml to v0.1.2 2025-07-15 13:01:57 +02:00
README.md Updated apiDoc.md and README.md 2025-07-15 12:45:28 +02:00

LidlConnect.py

PyPI version License: MIT

A Python library for accessing your Lidl Connect account through the Self-Care API.

Features

  • 📱 View your current data, minutes, and SMS usage
  • 💰 Check your account balance and payment history
  • 📅 View tariff details and package validity dates
  • 🧾 Access invoice and voucher history
  • 🔄 Automatic session management with proper login/logout

Installation

Install directly from PyPI:

pip install LidlConnect.py

Quick Start

from LidlConnect import LidlConnect

# Initialize with PUK (preferred method)
client = LidlConnect(identifier="069012345678", puk="12345678")

# Or initialize with password
# client = LidlConnect(identifier="069012345678", password="yourPassword")

# Login and initialize connection
if not client.initialize():
    print("Failed to initialize client")
    exit(1)

# Get remaining data
data_info = client.get_remaining_data()
print(f"Data: {data_info['remaining']}/{data_info['total']} GiB")

# Check minutes
minutes_info = client.get_remaining_minutes()
print(f"Minutes: {minutes_info['remaining']}/{minutes_info['total']} minutes")

# Get EU roaming data
eu_data_info = client.get_remaining_eu_data()
print(f"EU Data: {eu_data_info['remaining']}/{eu_data_info['total']} GiB")

# Access account information
print(f"User: {client.user_name}")
print(f"Phone Number: {client.phone_number}")
print(f"Balance: €{client.balance if client.balance is not None else 'N/A'}")
print(f"Package valid until: {client.tariff_package_valid_to}")

# View payment history
client.print_invoices()

# Logout when done (automatic on program exit, but explicit is better)
client.logout()

Documentation

For complete documentation of all features and methods, please refer to the API documentation.

Requirements

  • Python 3.6+
  • requests library
  • beautifulsoup4 library

Supported Services

This library currently supports the Austrian Lidl Connect service (https://selfcare.lidl-connect.at). It's designed to work with accounts that have at least one active tariff package.

License

MIT License

Disclaimer

This is an unofficial library and is not affiliated with, maintained, authorized, endorsed, or sponsored by Lidl or any of its affiliates (like Drei).