A powerful API interface for Ebay-Kleinanzeigen.de that enables you to fetch listings and specific data.
🚀 Looking for a ready-to-use solution?
Try it at adspy.one »
✓ Automated Search Agents
🔜 Hosted Scraper API (Coming Soon)
Report Bug
·
Request Feature
Visit adspy.one for our hosted solution with additional features and zero configuration required.
- Python 3.12 or higher
- pip (Python package manager)
- Playwright
- Clone the repository
git clone https://github.com/DanielWTE/ebay-kleinanzeigen-api.git
cd ebay-kleinanzeigen-api
- Install dependencies
pip install -r requirements.txt
playwright install chromium
- Start the API
uvicorn main:app --reload
The API will be available at http://localhost:8000
Endpoint: GET /inserate
Description: Retrieves a list of listings based on search criteria.
query
(string, optional): The search term (e.g., "fahrrad" to search for bicycles).location
(string, optional): The location or postal code to narrow the search (e.g.,10178
for Berlin).radius
(integer, optional): The search radius in kilometers from the specified location (e.g.,5
for a 5 km radius).min_price
(integer, optional): The minimum price in Euros for the listings (e.g.,200
for at least 200 Euros).max_price
(integer, optional): The maximum price in Euros for the listings (e.g.,500
for at most 500 Euros).page_count
(integer, optional): The number of pages to search or return (e.g.,5
for the first 5 pages, default is 1, max: 20 pages).
GET /inserate?query=fahrrad&location=10178&radius=5&min_price=200&page_count=5
Endpoint: GET /inserat/{id}
Description: Retrieves detailed information about a specific listing.
id
(string): The unique identifier of the listing to fetch details for.
GET /inserat/12345
All API endpoints return responses in the following JSON format:
{
"success": true,
"data": [
...
]
}
API documentation is available at http://localhost:8000/docs
when running locally.
Distributed under the MIT License. See LICENSE
for more information.