---
title: "Agregados de mercado de una zona"
method: GET
path: "/stats"
tags: ["stats"]
---

# Agregados de mercado de una zona

`GET /stats`

## Request

- Base URL: `https://api.inmo.example/v1`
- URL: `https://api.inmo.example/v1/stats`
- Auth: one of:
  - none
  - API key in header `X-API-Key`

Mediana de precio, inventario por tipo y días en mercado.

## Query parameters

- `near` string
- `radius` integer
- `city` string

## Response `200`

Agregados de la zona.

- Stats
  - `scope` object
    - `near` string
    - `radius` integer
    - `city` string
  - `sale` StatBucket
    - `count` integer
    - `medianPrice` number, nullable
    - `currency` string
  - `lease` StatBucket
    - `count` integer
    - `medianPrice` number, nullable
    - `currency` string
  - `medianDaysOnMarket` number, nullable

## Other responses

- `400`: Parámetros inválidos.

---

[API](https://skmtc.dev/propfacil/apis/protocolo-propfacil-api.md) · [All operations](https://skmtc.dev/propfacil/apis/protocolo-propfacil-api/llms.txt) · [OpenAPI document](https://skmtc.dev/propfacil/apis/protocolo-propfacil-api/revisions/f0da7a416623?raw)
