Sverige Begagnad
v0.3.1Search Swedish second-hand marketplaces (Blocket, Tradera, Klaravik, Vinted) for used items.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_blocket Search Blocket
Search Blocket.se — Sweden's largest classifieds — for used items from private sellers and dealers. Best for LOCAL deals (usually pickup): each result carries the ad's text location plus `coordinates` (lat/lon) and `distance`, so you can apply a precise radius filter yourself (Blocket's own filter is regional/län, not km). USE for local or regional finds. Do NOT use for nationwide auctions (use search_tradera or search_klaravik), for second-hand fashion (use search_vinted), or when you want every source at once (use search_all). Returns {ads: [normalized listings], count, warning?}; each…
| Parameter | Type | Description |
|---|---|---|
query * | string | Free-text search query. Swedish terms work best (e.g. 'String hylla', 'Festool', 'Fjällräven'). |
category | Optional Blocket category name to filter by. Must be a value from list_blocket_categories(); an unknown value is ignored and flagged in `warning`. | |
locations | Optional list of region (län) names to search, e.g. ['KRONOBERG','KALMAR']. Valid names come from list_blocket_locations(). If omitted, falls back to the BLOCKET_LOCATIONS env default, then to all of… | |
max_pages | integer | How many result pages to fetch (~60 ads per page). Keep small (1–3) to limit load. |
list_blocket_categories List Blocket categories
List the valid Blocket category names accepted by search_blocket()'s `category` argument (and search_all's `blocket_category`). Call this first when you intend to filter a Blocket search by category. Takes no arguments. Returns {categories: [names]}.
list_blocket_locations List Blocket regions
List the valid Blocket region (län) names accepted by search_blocket()'s `locations` argument (and search_all's `blocket_locations`). Takes no arguments. Returns {locations: [names]}.
search_tradera Search Tradera
Search Tradera.com — Sweden's largest online auction house — via its official REST API. NATIONAL and ships anywhere; covers timed auctions and Buy-It-Now. `price_sek` is the current bid or Buy-It-Now price and CAN RISE before an auction ends. USE for nationwide, shippable finds and auctions. Do NOT use for local-pickup-only deals (use search_blocket) or for fashion (use search_vinted). Requires TRADERA_APP_ID and TRADERA_APP_KEY env vars (register free at api.tradera.com); without them it returns an error. Returns {items: [normalized listings], count, total_available}.
| Parameter | Type | Description |
|---|---|---|
query * | string | Free-text search query. Swedish terms work best (e.g. 'String hylla', 'Festool', 'Fjällräven'). |
category_id | Optional Tradera category id to filter by. Get valid ids from list_tradera_categories(). | |
county_id | Optional Tradera county id to restrict results to a region. Get ids from list_tradera_counties(). Rarely needed since Tradera ships nationally. | |
price_max | Optional upper price bound in SEK (inclusive). Omit for no upper bound. | |
price_min | Optional lower price bound in SEK (inclusive). Omit for no lower bound. |
list_tradera_categories List Tradera categories
Fetch Tradera's full category tree to find `category_id` values for search_tradera(). Takes no arguments. Requires Tradera credentials. Returns {categories: <nested tree>} (or {error} if credentials are missing/invalid).
list_tradera_counties List Tradera counties
Fetch Tradera's county list (id → name) for search_tradera()'s optional `county_id` filter. Takes no arguments. Rarely needed since Tradera is national. Requires Tradera credentials. Returns {counties: [...]}
search_klaravik Search Klaravik
Search Klaravik.se, a Swedish online AUCTION house — the strongest source for undervalued tools, machinery, and estate/house-clearance goods. National; lots either ship or need pickup/freight (many are heavy). `price_sek` is the current bid and CAN RISE before close. USE for tools, machinery, and bulky bargains. Do NOT use for fashion (use search_vinted) or when you specifically want private-seller classifieds (use search_blocket). Unofficial endpoint — may break if the site changes. Returns {items: [normalized listings], count, total_available}.
| Parameter | Type | Description |
|---|---|---|
query * | string | Free-text search query. Swedish terms work best (e.g. 'String hylla', 'Festool', 'Fjällräven'). Matches within item titles (e.g. 'bahco', 'cykel'). |
search_vinted Search Vinted
Search Vinted.se, a peer-to-peer second-hand FASHION marketplace — best for branded clothing, genuine leather/wool, bags, footwear, and outdoor apparel (e.g. Fjällräven, The North Face, Patagonia). National; items ship. Fixed prices: `price_sek` is the item price and `total_price_sek` includes Vinted's buyer-protection fee. USE for fashion and apparel. Do NOT use for furniture, tools, or electronics (use the other sources). Unofficial and bot-protected — the most fragile source; may occasionally be rate-limited and return an error. Returns {items: [normalized listings], count, total_avai…
| Parameter | Type | Description |
|---|---|---|
query * | string | Free-text search query. Swedish terms work best (e.g. 'String hylla', 'Festool', 'Fjällräven'). |
price_max | Optional upper price bound in SEK (inclusive). Omit for no upper bound. | |
price_min | Optional lower price bound in SEK (inclusive). Omit for no lower bound. |
search_facebook_marketplace Search Facebook Marketplace
Search Facebook Marketplace for local listings. DISABLED BY DEFAULT and LOCAL-ONLY: it uses an unofficial method that violates Facebook's Terms of Service, so it returns an explanatory 'disabled' error unless ENABLE_FACEBOOK_SEARCH=1 is set locally. When enabled, it is best for local private-seller deals; otherwise prefer search_blocket for local classifieds and search_all for a full sweep. Returns {listings: [...], count} when enabled, otherwise {error, message}.
| Parameter | Type | Description |
|---|---|---|
query * | string | Free-text search query. Swedish terms work best (e.g. 'String hylla', 'Festool', 'Fjällräven'). |
location | Optional Facebook Marketplace location id (numeric) to search in. If omitted, uses the logged-in account's saved location. | |
radius_km | integer | Advisory search radius in km. Facebook applies the radius from the account's saved location, so this is not strictly enforced. |
search_all Search all sources
One-call sweep across ALL marketplaces — Blocket + Tradera + Klaravik + Vinted (+ Facebook Marketplace if locally enabled) — returning a single combined, normalized result set. USE this for a broad sourcing sweep when you want maximum coverage in one call. Do NOT use it when you already know the single best source for a query — call that tool directly instead (faster, fewer irrelevant results). Per-source failures are non-fatal: they are reported in `source_errors` rather than raised. Price bounds apply to the Tradera and Vinted portions. Returns {query, total_results, results: [mixed li…
| Parameter | Type | Description |
|---|---|---|
query * | string | Free-text search query. Swedish terms work best (e.g. 'String hylla', 'Festool', 'Fjällräven'). |
blocket_category | Optional Blocket category filter for the Blocket portion (see list_blocket_categories()). | |
blocket_locations | Optional list of Blocket region names scoping the Blocket portion (see list_blocket_locations()). Defaults to the BLOCKET_LOCATIONS env / all Sweden. | |
price_max | Optional upper price bound in SEK (inclusive). Omit for no upper bound. Applied to the Tradera and Vinted portions. | |
price_min | Optional lower price bound in SEK (inclusive). Omit for no lower bound. Applied to the Tradera and Vinted portions. | |
tradera_category_id | Optional Tradera category id for the Tradera portion (see list_tradera_categories()). |
health_check Health check
Ping every marketplace source (Blocket, Tradera, Klaravik, Vinted, and Facebook if enabled) with a canned query and report whether each is still fetching data. USE this to verify the server works end-to-end — e.g. from a scheduled monitor — before relying on a sourcing sweep. Do NOT use it to search for items (use search_all or a per-source tool). Takes no arguments. Returns {healthy: bool, unhealthy_sources: [names], sources: {name: {ok, count, latency_ms, error}}}. A source is `ok` when it returns without error AND finds >0 results; Facebook shows status 'disabled' when ENABLE_FACEBOOK_S…