An intelligent tool that monitors Facebook Marketplace listings using AI to help you find the best deals. Get instant notifications when items matching your criteria are posted, with AI-powered analysis of each listing.
π Read the Full Documentation
Example notification from PushBullet:
Found 1 new gopro from facebook
[Great deal (5)] Go Pro hero 12
$180, Houston, TX
https://facebook.com/marketplace/item/1234567890
AI: Great deal; A well-priced, well-maintained camera meets all search criteria, with extra battery and charger.
- Built-in Web UI: Edit config, add AI backends, and monitor live logs from your browser β starts automatically with the monitor. See Web UI documentation.
- Anthropic/Claude AI Backend: Use Claude models (e.g.
claude-sonnet-4-20250514) to evaluate listings alongside OpenAI, DeepSeek, and Ollama. See AI Services for configuration. - Configurable Rate Limiting: Rate limiting framework for all notification types with per-instance and global limits. Telegram notifications use optimized defaults automatically.
Table of Contents:
- What's New
- β¨ Key Features
- π Quick Start
- π‘ Example Usage
- π Documentation
- π€ Contributing
- π License
- π¬ Support
- π Credits
π Smart Search
- Search multiple products using keywords
- Filter by price and location
- Exclude irrelevant results and spammers
- Support for different Facebook Marketplace layouts
π€ AI-Powered
- Intelligent listing evaluation
- Smart recommendations
- Multiple AI service providers supported
- Self-hosted model option (Ollama)
π± Notifications
- PushBullet, PushOver, Telegram, or Ntfy notifications
- HTML email notifications with images
- Customizable notification levels
- Repeated notification options
π₯οΈ Web UI
- Built-in config editor with TOML syntax highlighting
- Live log streaming and filtering
- Add, edit, and delete config sections from your browser
- No password required on localhost
π Location Support
- Multi-city search
- Pre-defined regions (USA, Canada, etc.)
- Customizable search radius
- Flexible seller location filtering
β οΈ Legal Notice: Facebook's EULA prohibits automated data collection without authorization. This tool was developed for personal, hobbyist use only. You are solely responsible for ensuring compliance with platform terms and applicable laws.
Requires Python 3.10 or higher. Check your version with
python --version. If your system default is older, usepip3.10(orpip3.11,pip3.12, etc.) instead ofpip, or create a virtual environment with the correct version.
pip install ai-marketplace-monitor
playwright installCreate ~/.ai-marketplace-monitor/config.toml:
[marketplace.facebook]
search_city = 'houston' # Replace with your city
[item.gopro]
search_phrases = 'Go Pro Hero 11'
min_price = 100
max_price = 300
[user.me]
pushbullet_token = 'your_token_here' # Get from pushbullet.comai-marketplace-monitorThe program will open a browser, search Facebook Marketplace, and notify you of matching items. A web UI also starts automatically at http://127.0.0.1:8467 for editing config and monitoring logs β see Web UI Guide.
A prebuilt Linux image is published to GitHub Container Registry. It bundles Python, Playwright Chromium, a virtual display (Xvfb), and an embedded noVNC client so you can solve Facebook CAPTCHAs / interactive logins from the web UI β useful on macOS, headless servers, or NAS boxes.
docker run -d --name aimm \
-p 8467:8467 \
-v "$HOME/.ai-marketplace-monitor:/root/.ai-marketplace-monitor" \
-e FACEBOOK_USERNAME -e FACEBOOK_PASSWORD \
-e ANTHROPIC_API_KEY \
--restart unless-stopped \
ghcr.io/bopeng/ai-marketplace-monitor:latestThen open http://localhost:8467. When Facebook needs an interactive login or CAPTCHA, click the Browser button in the header to view and control the in-container Chromium.
Mounting ~/.ai-marketplace-monitor shares your existing config, cache, and logs between the host install and the container β so you can switch back and forth freely. Update with docker pull ghcr.io/bopeng/ai-marketplace-monitor:latest && docker restart aimm.
To build the image yourself instead of pulling: docker build -t aimm . from a checkout of this repo.
Find GoPro cameras under $300:
[item.gopro]
search_phrases = 'Go Pro Hero'
keywords = "('Go Pro' OR gopro) AND (11 OR 12 OR 13)"
min_price = 100
max_price = 300Search nationwide with shipping:
[item.rare_item]
search_phrases = 'vintage collectible'
search_region = 'usa'
delivery_method = 'shipping'
seller_locations = []AI-powered filtering:
[ai.openai]
api_key = 'your_openai_key'
[item.camera]
description = '''High-quality DSLR camera in good condition.
Exclude listings with water damage or missing parts.'''
rating = 4 # Only notify for 4+ star AI ratingsFor detailed information on setup and advanced features, see the comprehensive documentation:
- π Full Documentation - Complete guide and reference
- π Quick Start Guide - Get up and running in 10 minutes
- π Features Overview - Complete feature list
- π± Usage Guide - Command-line options and tips
- π§ Configuration Guide - Notifications, AI prompts, multi-location search
- βοΈ Configuration Reference - Complete configuration reference
- π₯οΈ Web UI Guide - Built-in web interface for config editing and monitoring
Notification Setup:
- Email (SMTP), PushBullet, PushOver, Telegram, Ntfy
- Multi-user configurations
- HTML email templates
AI Integration:
- OpenAI, DeepSeek, Anthropic, Ollama setup
- Custom prompt configuration
- Rating thresholds and filtering
Advanced Search:
- Multi-city and region search
- Currency conversion
- Keyword filtering with Boolean logic
- Proxy/anonymous searching
Configuration:
- TOML file structure
- Environment variables
- Multiple marketplace support
- Language/translation support
Contributions are welcome! Here are some ways you can contribute:
- π Report bugs and issues
- π‘ Suggest new features
- π§ Submit pull requests
- π Improve documentation
- πͺ Add support for new marketplaces
- π Add support for new regions and languages
- π€ Add support for new AI providers
- π± Add new notification methods
Please read our Contributing Guidelines before submitting a Pull Request.
This project is licensed under the Affero General Public License (AGPL). For the full terms and conditions, please refer to the official GNU AGPL v3.
We provide multiple ways to access support and contribute to AI Marketplace Monitor:
- π Documentation - Comprehensive guides and instructions
- π€ Discussions - Community support and ideas
- π Issues - Bug reports and feature requests
- π Become a sponsor - Support development
- π° Donate via PayPal - Alternative donation method
Important Note: Due to time constraints, priority support is provided to sponsors and donors. For general questions, please use the GitHub Discussions or Issues.
- Some of the code was copied from facebook-marketplace-scraper.
- Region definitions were copied from facebook-marketplace-nationwide, which is released under an MIT license as of Jan 2025.
- This package was created with Cookiecutter and the cookiecutter-modern-pypackage project template.


