search_listings
search_listingsSearch published listings by free text, category and location. Every argument is optional but at least one must be given; supplying several narrows the result the way a user ticking filters would.
category_id and location_id are hierarchical and match the whole subtree beneath them, so the category 'Mobilni telefoni i oprema' also returns listings filed under its child categories, and Beograd also returns listings in Novi Beograd, Zemun and every other place under it. Filter at the broadest level the user actually meant, and only narrow when they named a specific place or category. Get ids from get_categories and search_locations.
q is an ordinary keyword search, not semantic or vector search: it matches words the listing actually contains, so synonyms and paraphrases will not find anything. It matches broadly across titles, descriptions, attribute values and the listing's category and location names, but ranks titles and descriptions highest. Prefer q for what an item is, and the id filters for where it is and what it is filed under — 'stan Beograd' works, but a location_id for Beograd works better.
Only the first few best matches are returned and there is no way to page past them. If the result looks too broad, narrow the search and call again rather than asking for more.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Keywords to match, for example 'iphone 15 pro' | |
| limit | No | Maximum results to return (1-10, default 10) | |
| categoryId | No | Numeric category id from get_categories; matches this category and everything under it | |
| locationId | No | Numeric location id from search_locations; matches this place and everything under it |