Szukaj lokalizacji
search_locationsFind Polish cities, districts, or streets by partial name to get the city_slug needed for offer searches. Use it first; it returns location details, not offers or prices.
Instructions
Znajduje miasta, dzielnice i ulice w Polsce po fragmencie nazwy. Użyj na początku, żeby zamienić nazwę miejsca na city_slug, którego wymaga search_offers. Nie zwraca ofert ani cen.
Zwraca items (kind: city, district albo street; name, city, city_slug, opcjonalnie district, street, lat, lng i offer_count, czyli liczbę ofert wg serwisu) oraz total, returned, truncated i hint. total jest null, gdy wyników jest więcej niż pokazano; truncated=true znaczy, że pasujących może być więcej: doprecyzuj nazwę. Miejscowości z offer_count=0 nie mają ofert: nie przekazuj ich do search_offers. Dzielnica i ulica podają city_slug swojego miasta. Nazwę dzielnicy (kind=district, pole name) przekaż do search_offers jako district razem z tym city_slug; po ulicy search_offers nie filtruje.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Fragment nazwy miasta, dzielnicy lub ulicy, 2–100 znaków, z polskimi znakami, np. Kraków, Mokotów. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| items | Yes | ||
| total | Yes | Wszystkie pasujące; null, gdy wyników jest więcej niż pokazano. | |
| returned | Yes | ||
| truncated | Yes |