API reference

Production access is closed · 37 operations

Get seller statistics

POST/api/v1/statistics/listings

Summary and one page of the owner’s statistics.

Required scope statistics:read

Jump to the example

Request body

Schema StatisticsQuery
NameTypeRequiredDescription
rangeobjectNo—
filtersobjectNo—
pageintegerNominimum 1
limitintegerNominimum 5 · maximum 100
sort"views" | "contacts" | "conversion" | "quality" | "price" | "updated" | "action"No"views" | "contacts" | "conversion" | "quality" | "price" | "updated" | "action"
direction"asc" | "desc"No"asc" | "desc"
JSON Schema
{
  "$ref": "#/components/schemas/StatisticsQuery"
}

Responses

200 Request completed successfully.
application/json
Schema StatisticsPage
NameTypeRequiredDescription
rangeobjectNo—
generatedAtstringNoformat date-time
accountType"private" | "dealer"No"private" | "dealer"
summaryobjectNo—
itemsobject[]No—
metaobjectNo—
JSON Schema
{
  "$ref": "#/components/schemas/StatisticsPage"
}
403 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
429 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
Other API errors Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
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 A valid API key is required.
503 Access is closed or the service is temporarily unavailable. Check code.

Handle errors and rate limits ↗

Related schemas

StatisticsQuery
{
  "type": "object",
  "properties": {
    "range": {
      "type": "object",
      "properties": {
        "preset": {
          "type": "string",
          "enum": [
            "7",
            "30",
            "90",
            "365",
            "custom"
          ]
        },
        "from": {
          "type": "string",
          "format": "date"
        },
        "to": {
          "type": "string",
          "format": "date"
        }
      }
    },
    "filters": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "active",
            "ended",
            "all",
            "draft",
            "expired",
            "sold"
          ]
        },
        "category": {
          "type": "string"
        },
        "make": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "generation": {
          "type": "string"
        },
        "fuelType": {
          "type": "string"
        },
        "gearbox": {
          "type": "string"
        },
        "location": {
          "type": "string"
        },
        "voivodeship": {
          "type": "string"
        },
        "packageTier": {
          "type": "string"
        },
        "priceFrom": {
          "type": "integer",
          "minimum": 0
        },
        "priceTo": {
          "type": "integer",
          "minimum": 0
        },
        "mileageFrom": {
          "type": "integer",
          "minimum": 0
        },
        "mileageTo": {
          "type": "integer",
          "minimum": 0
        },
        "yearFrom": {
          "type": "integer",
          "minimum": 0
        },
        "yearTo": {
          "type": "integer",
          "minimum": 0
        },
        "onlyActionRequired": {
          "type": "boolean"
        }
      }
    },
    "page": {
      "type": "integer",
      "minimum": 1
    },
    "limit": {
      "type": "integer",
      "minimum": 5,
      "maximum": 100
    },
    "sort": {
      "type": "string",
      "enum": [
        "views",
        "contacts",
        "conversion",
        "quality",
        "price",
        "updated",
        "action"
      ]
    },
    "direction": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    }
  }
}
StatisticsPage
{
  "type": "object",
  "properties": {
    "range": {
      "type": "object"
    },
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "accountType": {
      "type": "string",
      "enum": [
        "private",
        "dealer"
      ]
    },
    "summary": {
      "type": "object"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer"
        },
        "limit": {
          "type": "integer"
        },
        "total": {
          "type": "integer"
        },
        "pages": {
          "type": "integer"
        }
      }
    }
  }
}