Porównaj cenę ogłoszenia
GET
/api/v1/catalog/price-barometerPorównanie ceny z podobnymi ogłoszeniami sprzedaży.
Podaj cenę w pełnych złotych. Wartość estimate równa null oznacza brak porównania, np. przy niedostatecznej próbie, najmie lub części.
Wymagany zakres listings:read
Parametry
| Nazwa | Miejsce | Typ | Wymagany | Opis |
|---|---|---|---|---|
category | query | string | Tak | min. znaków 1 · maks. znaków 80 |
make | query | string | Tak | min. znaków 1 · maks. znaków 120 |
model | query | string | Tak | min. znaków 1 · maks. znaków 120 |
price | query | integer | Tak | minimum 1 · maksimum 999999999 |
generation | query | string | Nie | maks. znaków 160 |
condition | query | string | Nie | maks. znaków 80 |
offerMode | query | "sale" | "rent" | Nie | domyślnie sale · "sale" | "rent" |
Odpowiedzi
200 Żądanie zakończone pomyślnie.application/jsonSchemat PriceBarometerEstimate
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
estimate | object | null | Tak | — |
JSON Schema
{
"$ref": "#/components/schemas/PriceBarometerEstimate"
}429 Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}Pozostałe błędy API Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}401 Brak prawidłowego klucza API.403 Brak zakresu wymaganego przez operację lub żądanie bez HTTPS na produkcji.503 Dostęp jest zamknięty lub usługa jest chwilowo niedostępna. Sprawdź code.Powiązane schematy
PriceBarometerEstimate
{
"type": "object",
"properties": {
"estimate": {
"anyOf": [
{
"type": "object",
"properties": {
"level": {
"type": "integer"
},
"sampleSize": {
"type": "integer"
},
"marketAvg": {
"type": "integer"
},
"marketMin": {
"type": "integer"
},
"marketMax": {
"type": "integer"
},
"scope": {
"type": "string",
"enum": [
"generation",
"model"
]
},
"status": {
"type": "string",
"enum": [
"below",
"avg",
"above"
]
},
"label": {
"type": "string"
},
"usedFactors": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
{
"type": "null"
}
]
}
},
"required": [
"estimate"
]
}