> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inmodata.builker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Historial de un proyecto

> Historial de precios del proyecto y señales de venta por tipología a partir de observaciones periódicas.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/presale/projects/{id}/history
openapi: 3.1.0
info:
  title: InmoData API
  version: 1.0.0
  description: >-
    API comercial de datos inmobiliarios: mercado tradicional, rentas cortas,
    preventa, análisis geoespacial y valoraciones.
  termsOfService: https://inmodata.builker.com/terms
  contact:
    name: InmoData
    url: https://inmodata.builker.com
    email: contacto@builker.com
servers:
  - url: https://api.inmodata.builker.com
    description: Producción
security: []
tags:
  - name: mercados
    x-group: Mercados
    description: Cobertura, referencias y tendencias de precio por m².
  - name: tradicional
    x-group: Mercado tradicional
    description: Avisos de venta y arriendo.
  - name: rentas-cortas
    x-group: Rentas cortas
    description: Alojamientos de renta corta y tarifas observadas.
  - name: preventa
    x-group: Preventa
    description: Proyectos de vivienda nueva.
  - name: geoespacial
    x-group: Geoespacial
    description: Geocodificación, contexto urbano y retícula de precios.
  - name: valoraciones
    x-group: Valoraciones
    description: Estimaciones orientativas de valor.
paths:
  /v1/presale/projects/{id}/history:
    get:
      tags:
        - preventa
      summary: Historial de un proyecto
      description: >-
        Historial de precios del proyecto y señales de venta por tipología a
        partir de observaciones periódicas.
      operationId: Presale-presale-history
      parameters:
        - description: Identificador del proyecto.
          in: path
          name: id
          required: true
          schema:
            type: string
        - explode: false
          in: query
          name: days
          schema:
            default: 365
            format: int64
            maximum: 730
            minimum: 7
            type: integer
          description: Días de historial hacia atrás.
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PresaleHistoryResult'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
        - apiKey: []
components:
  schemas:
    PresaleHistoryResult:
      additionalProperties: false
      properties:
        currency:
          type: string
        days_on_market:
          format: int64
          type: integer
        first_seen_date:
          type: string
        last_seen_date:
          type: string
        points:
          items:
            $ref: '#/components/schemas/PresaleHistoryPoint'
          type:
            - array
            - 'null'
        price_change_pct:
          format: double
          type: number
        price_m2_change_pct:
          format: double
          type: number
        project_id:
          type: string
        removed_typologies:
          items:
            $ref: '#/components/schemas/PresaleRemovedTypology'
          type:
            - array
            - 'null'
        snapshot_count:
          format: int64
          type: integer
      required:
        - project_id
        - currency
        - first_seen_date
        - last_seen_date
        - days_on_market
        - snapshot_count
        - points
        - removed_typologies
      type: object
    ErrorModel:
      additionalProperties: false
      properties:
        detail:
          description: Explicación de este caso concreto.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Lista de errores individuales, cuando los hay.
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: URI de esta ocurrencia del problema.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: Código de estado HTTP.
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: Resumen corto del tipo de problema.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: URI que identifica el tipo de problema.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    PresaleHistoryPoint:
      additionalProperties: false
      properties:
        max_price:
          format: double
          type: number
        min_price:
          format: double
          type: number
        min_price_per_m2:
          format: double
          type: number
        scrape_date:
          type: string
        typology_count:
          format: int32
          maximum: 65535
          minimum: 0
          type: integer
      required:
        - scrape_date
        - typology_count
      type: object
    PresaleRemovedTypology:
      additionalProperties: false
      properties:
        area_m2:
          format: double
          type: number
        display_name:
          type: string
        last_price:
          format: double
          type: number
        last_seen_date:
          type: string
        typology_key:
          type: string
      required:
        - typology_key
        - display_name
        - last_seen_date
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: Dónde está el error, por ejemplo `body.latitude` o `query.limit`.
          type: string
        message:
          description: Descripción del error.
          type: string
        value:
          description: Valor recibido en esa ubicación.
      type: object
  securitySchemes:
    apiKey:
      description: >-
        API key de InmoData (`imd_...`). También se acepta como `Authorization:
        Bearer imd_...`.
      in: header
      name: X-Api-Key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.