> ## 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.

# Buscar en un polígono

> Alojamientos de renta corta dentro de un polígono. Envía la geometría en `polygon` como un `Polygon` o `MultiPolygon` GeoJSON, en coordenadas longitud, latitud.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/str/search
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/str/search:
    post:
      tags:
        - rentas-cortas
      summary: Buscar en un polígono
      description: >-
        Alojamientos de renta corta dentro de un polígono. Envía la geometría en
        `polygon` como un `Polygon` o `MultiPolygon` GeoJSON, en coordenadas
        longitud, latitud.
      operationId: Short-Term-Rentals-str-search
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchSTRInputBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListSTROutputBody'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
        - apiKey: []
components:
  schemas:
    SearchSTRInputBody:
      additionalProperties: false
      properties:
        city:
          type: string
          description: >-
            Slug de la ciudad, por ejemplo `bogota` o `medellin`. Consulta los
            disponibles en la cobertura.
        country:
          type: string
          description: Código de país ISO-2. Por defecto `CO`.
        host_id:
          type: string
          description: Solo los alojamientos de este anfitrión del portal.
        limit:
          format: int64
          type: integer
          description: Número máximo de resultados.
        max_price:
          format: double
          type: number
          description: Precio máximo, en la moneda local.
        min_bedrooms:
          format: int64
          type: integer
          description: Número mínimo de habitaciones.
        min_capacity:
          format: int64
          type: integer
          description: Capacidad mínima de huéspedes.
        min_price:
          format: double
          type: number
          description: Precio mínimo, en la moneda local.
        offset:
          format: int64
          type: integer
          description: Número de resultados que se saltan, para paginar.
        polygon:
          description: Geometría GeoJSON `Polygon` o `MultiPolygon` del área de búsqueda.
        property_type:
          type: string
          description: >-
            Tipo de inmueble: `apartment`, `house`, `office`, `retail`,
            `studio`, `warehouse` o `land`.
        room_type:
          type: string
          description: Tipo de alojamiento.
        superhost:
          type: boolean
          description: >-
            Solo alojamientos de anfitriones destacados (`true`) o solo los
            demás (`false`).
      type: object
    ListSTROutputBody:
      additionalProperties: false
      properties:
        items:
          items:
            $ref: '#/components/schemas/ShortTermListingSummary'
          type:
            - array
            - 'null'
        limit:
          format: int64
          type: integer
        offset:
          format: int64
          type: integer
        total:
          format: int64
          type: integer
      required:
        - total
        - limit
        - offset
        - items
      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
    ShortTermListingSummary:
      additionalProperties: false
      properties:
        avg_min_nights:
          format: double
          type: number
        bedrooms:
          format: int32
          maximum: 32767
          minimum: -32768
          type: integer
        beds:
          format: int32
          maximum: 32767
          minimum: -32768
          type: integer
        calendar_observed_days:
          format: int32
          maximum: 32767
          minimum: -32768
          type: integer
        calendar_unavailable_days:
          format: int32
          maximum: 32767
          minimum: -32768
          type: integer
        calendar_unavailable_pct:
          description: Observed unavailable calendar share (not confirmed bookings)
          format: double
          type: number
        capacity:
          format: int32
          maximum: 32767
          minimum: -32768
          type: integer
        city_display_name:
          type: string
        city_slug:
          type: string
        country_code:
          type: string
        cover_photo_url:
          type: string
        currency:
          type: string
        est_monthly_income:
          format: double
          type:
            - number
            - 'null'
        estimated_occupancy_pct:
          format: double
          type:
            - number
            - 'null'
        external_id:
          type: string
        first_seen_date:
          type: string
        h3_res8:
          type: string
        host_id:
          description: Public portal host identifier; filter listings with host_id
          type: string
        host_name:
          type: string
        id:
          type: string
        is_superhost:
          type: boolean
        last_seen_date:
          type: string
        latitude:
          format: double
          type: number
        locality_name:
          type: string
        longitude:
          format: double
          type: number
        monthly_gross_potential_30n:
          description: >-
            Full-availability 30-night gross capacity (observed_night_price *
            30), not expected income
          format: double
          type: number
        name:
          type: string
        neighborhood_name:
          type: string
        observed_night_price:
          description: Observed nightly price signal from scrape history (not revenue)
          format: double
          type: number
        occupancy_confidence:
          type: string
        occupancy_method:
          type: string
        occupancy_snapshot_count:
          format: int64
          type: integer
        occupancy_status:
          type: string
        photo_count:
          format: int64
          type: integer
        property_type:
          type: string
        rating_overall:
          format: double
          type: number
        review_count:
          format: int64
          type: integer
        room_type:
          type: string
        source_name:
          type: string
        source_scraped_at:
          format: date-time
          type: string
        title:
          type: string
        url:
          type: string
      required:
        - id
        - external_id
        - source_name
        - country_code
        - city_slug
        - property_type
        - currency
        - occupancy_method
        - occupancy_status
        - occupancy_confidence
        - occupancy_snapshot_count
        - estimated_occupancy_pct
        - est_monthly_income
        - photo_count
        - first_seen_date
        - 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.