> ## Documentation Index
> Fetch the complete documentation index at: https://doc.fluximmo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Statistiques prix par zone

> Statistiques prix moyens / au m² par zone géographique.



## OpenAPI

````yaml post /v2/protected/analytics/market/price_per_area/statistics
openapi: 3.0.0
info:
  title: Real-estate data API - Fluximmo V2
  description: >+
    ## Fluximmo

    ##### Real-time real estate data: Power workflows, business applications and
    decision-making.


    Real estate expert since 2017, Fluximmo aggregates, exploits, enriches &
    analyzes the 


    real-estate market in real time to offer data flows, APIs and innovative
    services to real estate professionals.


    ## Authentification

    You'll need to be authenticated with an active subscription to access our
    REST endpoints.


    To get an API-KEY please contact us at contact@fluximmo.com or book a call
    with our team: https://calendly.com/fluximmo/meet-fluximmo

    ##### How to use your API KEY

    Simply add to your HTTP request your API KEY in the headers:
    `{'x_api_key':'randomApiKey'}`


    ## Properties and Adverts

    Real-estate market can be conceptualized in different ways. We offer two
    different conceptualization depending on your needs: Properties & Adverts.

    #### Properties (BAAS)

    A property is a real-estate habitation/land/commercial/building to which is
    attached adverts.


    We gather all the adverts offering (selling or renting) this real-estate
    asset and consolidate all the information into one Property.


    A Property is by definition `de-duplicated` and can gather 1 to x adverts:
    these adverts are either duplicates from different portals or with mandates
    from different agencies or republication of the same advertising with a
    price update or not.


    The concept of property is in constant mutation until the real-estate asset
    is sold: We'll keep merging new adverts within the Property concept and
    update the price if needed.


    By it's nature in constant mutation, we do not offer the possibility to
    receive these Properties on webhooks. You'll need to use our APIs as a
    Backend As A Service (BaaS).


    #### Adverts (BAAS and WEBHOOK)

    Adverts are advertising of a real-estate property. Adverts can come from
    many sources: Agencies websites, Aggregation real-estate portals,
    Social-Networks, NewsPaper etc...


    After gathering all these adverts our proprietary AI algorithms will
    de-duplicate these adverts and associate them to a Property


    An advert have a unique URL. Meaning that the same advertising re-published
    twice (with our without any change, on the same website or not, by the same
    agency or not) is considered as 2 ads.


    You can choose either to retrieve all the Adverts or only the non duplicated
    ones. Adverts can be retrieved either by API (Search or Alerts) or Webhook

    ## Webhooks

    We offer the possibility to receive our real-estate Adverts data in
    real-time using webhooks. As soon as we gather the data, you'll receive it
    few moments later.


    Using ALERTS, you can receive new adverts matching your criteria on a
    webhook.


    ##### Webhook differences between Adverts and Properties

    As Properties are by nature in perpetual evolutions (new duplicated ads will
    be merged, new data to be consolidated etc..), we do not offer the
    possibility to receive through Webhooks the full body of the properties.
    Properties webhook will only send you the list of the properties FlxIds
    matching your search.


    You'll find below the schema of the data you would receive on your webhook
    (`/v2/sample/webhook/properties`, `/v2/sample/webhook/adverts`)

    ##### What is a webhook

    A webhook can be thought of as a type of API that is driven by events rather
    than requests


    .Instead of one application making a request to another to receive a
    response, a webhook is a service that allows one program to send data to
    another as soon as a particular event takes place.


    Webhooks are sometimes referred to as “reverse APIs,” because communication
    is initiated by the application sending the data rather than the one
    receiving it.


    With web services becoming increasingly interconnected, webhooks are seeing
    more action as a lightweight solution for enabling real-time notifications
    and data updates without the need to develop a full-scale API.

    ##### When to use a webhook instead of the REST API

    You're supposed to receive a high volume of data (frequently or not), you're
    looking for real-time data, you just have to relax and wait (no cron, no
    call on our API etc..)

    ##### Webhook implementation examples

    A webhook is simply a POST endpoint we can request

    * Python:
    https://gist.github.com/aloysius-tim/293772256526efa20d5c625c6ace036a

    * Node:
    https://gist.github.com/aloysius-tim/ea1d9feb2c527b5b09ffc356b662d14b

  version: 2.0.0
  contact: {}
  x-logo:
    url: https://www.fluximmo.com/assets/images/logo_text.png
    backgroundColor: '#F31051'
    altText: Fluximmo logo
servers:
  - url: https://api.fluximmo.io
security: []
tags:
  - name: PropertyModel
    description: <SchemaDefinition schemaRef="#/components/schemas/PropertyDto" />
  - name: AdvertModel
    description: <SchemaDefinition schemaRef="#/components/schemas/AdvertDto" />
paths:
  /v2/protected/analytics/market/price_per_area/statistics:
    post:
      tags:
        - Market Analytics
      summary: Prices per area statistics
      description: Obtain city's live prices per area statistics.
      operationId: PricePerAreaAnalyticsController_liveStatistics
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/PricePerAreaLiveStatisticsStudiedDataRequestDto
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PricePerAreaLiveStatisticsAnalyticsResponseDto
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionDto'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionDto'
      security:
        - x_api_key: []
components:
  schemas:
    PricePerAreaLiveStatisticsStudiedDataRequestDto:
      type: object
      properties:
        studiedData:
          description: Array of studied data items
          type: array
          items:
            $ref: '#/components/schemas/PricePerAreaLiveStatisticsStudiedDataDto'
      required:
        - studiedData
    PricePerAreaLiveStatisticsAnalyticsResponseDto:
      type: object
      properties:
        data:
          description: Array of data items in the response
          type: array
          items:
            $ref: '#/components/schemas/PricePerAreaLiveStatisticsDataItemDto'
      required:
        - data
    ExceptionDto:
      type: object
      properties:
        error:
          description: Error object
          allOf:
            - $ref: '#/components/schemas/ErrorDto'
      required:
        - error
    PricePerAreaLiveStatisticsStudiedDataDto:
      type: object
      properties:
        inseeCode:
          type: string
          example: '75001'
          description: INSEE code of the location
        propertyClass:
          $ref: '#/components/schemas/PropertyClass'
          example: CLASS_HOUSE
          description: Class of the property
        offerType:
          $ref: '#/components/schemas/OfferType'
          example: OFFER_BUY
          description: Type of offer for the property
      required:
        - inseeCode
        - propertyClass
        - offerType
    PricePerAreaLiveStatisticsDataItemDto:
      type: object
      properties:
        average:
          type: number
          example: 250000
          description: Average value for the data
        median:
          type: number
          example: 240000
          description: Median value for the data
        limits:
          description: Limits data for the item
          allOf:
            - $ref: '#/components/schemas/PricePerAreaLiveStatisticsLimitsDto'
        confidence:
          description: Confidence interval data for the item
          allOf:
            - $ref: '#/components/schemas/PricePerAreaLiveStatisticsConfidenceDto'
      required:
        - average
        - median
        - limits
        - confidence
    ErrorDto:
      type: object
      properties:
        message:
          type: string
          description: Error message
        code:
          type: number
          description: Error code
      required:
        - message
        - code
    PropertyClass:
      type: string
      enum:
        - CLASS_UNKNOWN
        - CLASS_HOUSE
        - CLASS_FLAT
        - CLASS_PROGRAM
        - CLASS_SHOP
        - CLASS_PREMISES
        - CLASS_OFFICE
        - CLASS_LAND
        - CLASS_BUILDING
        - CLASS_PARKING
        - CLASS_ROOM
        - CLASS_OTHER
    OfferType:
      type: string
      enum:
        - OFFER_UNKNOWN
        - OFFER_BUY
        - OFFER_RENT
        - OFFER_BUSINESS_TAKE_OVER
        - OFFER_LEASE_BACK
        - OFFER_LIFE_ANNUITY_SALE
        - OFFER_HOLIDAYS
        - OFFER_AUCTION
    PricePerAreaLiveStatisticsLimitsDto:
      type: object
      properties:
        upperBound:
          type: number
          example: 500000
          description: Upper bound of data limit
        lowerBound:
          type: number
          example: 100000
          description: Lower bound of data limit
        count:
          type: number
          example: 50
          description: Count of items within limits
      required:
        - upperBound
        - lowerBound
        - count
    PricePerAreaLiveStatisticsConfidenceDto:
      type: object
      properties:
        upperBound:
          type: number
          example: 550000
          description: Upper bound of confidence interval
        lowerBound:
          type: number
          example: 90000
          description: Lower bound of confidence interval
        count:
          type: number
          example: 40
          description: Count of items within confidence limits
      required:
        - upperBound
        - lowerBound
        - count
  securitySchemes:
    x_api_key:
      type: apiKey
      in: header
      name: x-api-key

````