Referencja API

Dostęp produkcyjny zamknięty · 37 operacji

Porównaj cenę ogłoszenia

GET/api/v1/catalog/price-barometer

Poró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

Przejdź do przykładu

Parametry

NazwaMiejsceTypWymaganyOpis
categoryquerystringTakmin. znaków 1 · maks. znaków 80
makequerystringTakmin. znaków 1 · maks. znaków 120
modelquerystringTakmin. znaków 1 · maks. znaków 120
pricequeryintegerTakminimum 1 · maksimum 999999999
generationquerystringNiemaks. znaków 160
conditionquerystringNiemaks. znaków 80
offerModequery"sale" | "rent"Niedomyślnie sale · "sale" | "rent"

Odpowiedzi

200 Żądanie zakończone pomyślnie.
application/json
Schemat PriceBarometerEstimate
NazwaTypWymaganyOpis
estimateobject | nullTak—
JSON Schema
{
  "$ref": "#/components/schemas/PriceBarometerEstimate"
}
429 Błąd przetwarzania żądania.
application/json
Schemat object
NazwaTypWymaganyOpis
codestringTak—
messagestringTak—
requestIdstringTak—
issuesobject[]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/json
Schemat object
NazwaTypWymaganyOpis
codestringTak—
messagestringTak—
requestIdstringTak—
issuesobject[]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.

Obsługa błędów i limitów ↗

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"
  ]
}