search_kleinanzeigen
Search Kleinanzeigen listings by keyword, category, location, price, and seller type, then filter by required or excluded terms to find exact items and avoid unwanted accessories.
Instructions
Search Kleinanzeigen listings. Needs a query, a
category or both.
A bare query matches the whole ad text and drags in accessories, bundles
and spare parts, so scope to a category when you can, and use
attributes over extra words.
Put the model in query and every spec in require. Sellers write
"128GB", "128 GB" or leave it out of the title, so query="iPhone 13", require=["128gb"] finds what query="iPhone 13 128 GB" misses.
These filters run here, paging on until rows matches turn up or 250 ads
were scanned (scanned):
title_only: every query word must be in the title.require: every term must be in the title or description; a number with its unit matches however it is spelled.exclude: drop titles carrying any of these words, e.g.["pro", "max"]. A word also hits the tail of a compound ("kabel" in "Ladekabel"), never a prefix ("pro" spares "Prozessor"). Don't exclude ordinary nouns like "akku" or "display", real listings use them too.
A missing price_amount is normal: price_type then says "FREE" (zu
verschenken) or "PLEASE_CONTACT" (VB); with a price, PLEASE_CONTACT means
negotiable.
Args:
query: Search words.
category: Category id or name; includes its subcategories.
attributes: Category filters, e.g. {"pc_zubehoer_software.art": "grafikkarten"}; a multi_select one also takes a list. Keys
and values come from get_category_filters.
location_id: From search_locations.
zip_code: A German postcode, instead of location_id.
distance_km: Radius around the location or postcode.
min_price / max_price: Price bounds.
ad_type: "OFFERED" (Ich biete) or "WANTED" (Ich suche).
poster_type: "PRIVATE" or "COMMERCIAL".
sort: Default "RECOMMENDED"; "DISTANCE_ASCENDING" needs a location.
picture_required / buy_now_only / shippable: Only ads with photos /
"Direkt kaufen" / shipping.
include_top_ads: Also return paid "TOP" placements (is_top_ad).
They are pinned above any sort order and mostly repair shops and
buyers, so they are left out by default.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_kleinanzeigen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | ||
| sort | No | RECOMMENDED | |
| query | No | ||
| offset | No | ||
| ad_type | No | ||
| exclude | No | ||
| require | No | ||
| category | No | ||
| zip_code | No | ||
| max_price | No | ||
| min_price | No | ||
| shippable | No | ||
| attributes | No | ||
| title_only | No | ||
| distance_km | No | ||
| location_id | No | ||
| poster_type | No | ||
| buy_now_only | No | ||
| price_currency | No | EUR | |
| include_top_ads | No | ||
| picture_required | No |