TooGoodToGo Monitor
TGTG Monitor
Never miss a Magic Bag again. TGTG Monitor continuously watches Too Good To Go for available deals in your area and sends instant notifications the moment stock appears — including when prices change.
Features
- Real-time Monitoring — Continuously checks for Magic Bag availability and stock changes across your area
- Three Notification Strategies
- New Item Detection — Notifies when a store or item appears in your area for the first time (after the script starts)
- Stock Availability — Alerts when an existing store restocks; also fires immediately on first run if bags are already available
- Price Change Alerts — Optionally notifies when the price of an in-stock bag changes (opt-in)
- Favorites or Area Search — Monitor only your favorited TGTG stores (default) or all stores within your search radius
- Minimum Rating Filter — Skip stores below a configurable star rating (0.0–5.0)
- Location-based Search — Configure search center via latitude/longitude with a custom radius (default: 50 km)
- Secure Authentication — Email-based login with PIN confirmation; no password required
- Proxy Support — Optional proxy configuration with automatic rotation across multiple proxies
- Customizable Interval — Tune monitoring frequency to balance responsiveness with resource usage
Requirements
1. Too Good To Go Account
A valid TGTG account is required. Provide the email address associated with your account in the configuration. This email also uniquely identifies your script instance.
2. Location Coordinates
Provide the latitude and longitude for the location you want to monitor. These can be found at latlong.net. The search radius defaults to 50 km and can be customized.
3. Authentication
On first run (or when credentials expire), the script sends a login email to your address. Open the email, copy the PIN, and enter it when prompted. Subsequent runs reuse stored credentials automatically.
No CAPTCHA service required.
Note: too many login attempts in a short period may trigger a CAPTCHA lockout from the TGTG API — avoid restarting the script repeatedly.
Tags
Rate this script
Release history
Maintenance release.
What's Changed
Bug Fixes
- TGTG login restored — Fixed a regression where
authByEmailalways returned a captcha URL, making it impossible to log in. The DataDome cookie was not being sent on the retry request after a 403, causing TGTG's backend to reject the request as untrusted.
Maintenance release
New Feature: Added favorites only configuration option to allow filtering items by favorite stores.
Improvement: Added default values for monitor interval and search radius in the configuration.
Improvement: Implemented additional validation for the TGTG script configuration variables.
Fixed authentication issue. Updated instructions:
1. Check your email inbox for a message from Too Good To Go
2. Open the email and look for the authentication PIN/code
3. Enter the PIN/code in the dialog
Add instructions on what is needed beforehand to run the script.
Fixed datadome cookie.
Initial release, enjoy!
