Inwestycja z ofertami
get_investmentFetch a new-build development by its slug to see city, street, coordinates, developer, average active prices, and active/archived offers. Use it to inspect apartments in one project.
Instructions
Zwraca inwestycję (projekt deweloperski): miasto, ulicę, współrzędne, dewelopera, średnie ceny aktywnych ofert, liczbę ofert i listę ofert (najpierw aktywne, potem archiwalne). Użyj, gdy chcesz zobaczyć mieszkania jednego projektu. investment_slug daje search_investments, search_offers albo get_developer. investment_url i developer_url to strony inwestycji i dewelopera na deweloperuch.pl: podawaj je użytkownikowi jako linki.
Ograniczenia: zwraca najwyżej limit ofert (domyślnie 20); offers_returned mówi, ile ich jest na liście, truncated i offers_omitted, czy i ile pominięto. offers_total to liczba z serwisu, a pominięte oferty liczy offers_omitted. Przy dużej inwestycji nie zwiększaj limitu bez potrzeby; offers_omitted > 0 znaczy, że lista jest niepełna. include_history=true dodaje historię ceny każdej zwróconej oferty: wynik jest dłuższy i powstaje wolniej. Dla jednej oferty lepiej użyć get_offer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Najwięcej ofert w wyniku (najpierw aktywne), domyślnie 20, 0 = tylko podsumowanie inwestycji. Ile pominięto, mówi offers_omitted. Każda oferta to ok. 300 znaków wyniku, z historią ceny kilkaset więcej. Maksimum 200 daje ok. 60 tys. znaków; zwykle wystarcza domyślne 20. | |
| include_history | No | true: dołącz historię ceny każdej zwróconej oferty (dłuższy wynik). | |
| investment_slug | Yes | investment_slug z search_investments, search_offers albo get_developer, np. smolna. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | ||
| lng | No | ||
| city | Yes | ||
| name | Yes | ||
| offers | Yes | ||
| status | Yes | active (aktualna) albo archived (wycofana). | |
| street | No | ||
| currency | No | ||
| avg_price | No | Średnia cena aktywnych ofert w PLN. | |
| city_slug | Yes | ||
| developer | Yes | ||
| truncated | Yes | true: lista offers jest niepełna (offers_omitted > 0). | |
| avg_area_m2 | No | ||
| offers_total | No | Wszystkie oferty inwestycji wg serwisu, także archiwalne; lista offers jest ucięta przez limit. | |
| developer_url | No | Profil dewelopera na deweloperuch.pl: podaj go użytkownikowi jako link. | |
| offers_active | No | ||
| investment_url | No | Strona inwestycji na deweloperuch.pl: podaj ją użytkownikowi jako link. | |
| offers_omitted | Yes | Ofert pominiętych przez limit. | |
| investment_slug | Yes | ||
| offers_returned | Yes | Ofert na liście offers. | |
| avg_price_per_m2 | No |