POST
/
v2
/
protected
/
adverts
/
search
/
count
const request = require('request');

const options = {
  method: 'POST',
  url: 'https://api.fluximmo.io/v2/protected/adverts/search/count',
  headers: {'content-type': 'application/json', 'x_api_key': 'REPLACE_KEY_VALUE'},
  body: {
    search: {
      filterAd: {
        currentPrice: {value: {max: 0, min: 0}, valuePerArea: {max: 0, min: 0}},
        habitation: {
          bathroomCount: {max: 0, min: 0},
          bedroomCount: {max: 0, min: 0},
          characteristics: {
            hasAlarm: true,
            hasBalcony: true,
            hasCellar: true,
            hasConcierge: true,
            hasDigicode: true,
            hasFireplace: true,
            hasGarage: true,
            hasGarden: true,
            hasGrenier: true,
            hasInterphone: true,
            hasJacuzzi: true,
            hasLand: true,
            hasLift: true,
            hasMezzanine: true,
            hasParking: true,
            hasPool: true,
            hasTerrace: true,
            hasVisAVis: true,
            isPeaceful: true
          },
          climate: {
            epcClimate: 'GREENHOUSE_CLASSIFICATION_UNKNOWN',
            epcClimateScore: {max: 0, min: 0},
            epcEnergy: 'ENERGY_CLASSIFICATION_UNKNOWN',
            epcEnergyScore: {max: 0, min: 0},
            epcClimateDate: {max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'},
            epcEnergyDate: {max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'}
          },
          features: {
            exposure: 'EXPOSURE_UNKNOWN',
            furniture: 'UNKNOWN_FURNITURE',
            propertyFloor: {max: 0, min: 0},
            propertyTotalFloor: {max: 0, min: 0},
            constructionMaterials: 'MATERIAL_UNKNOWN',
            glazingTypes: 'GLAZING_TYPE_UNKNOWN',
            hasThroughExposure: true,
            viewOns: 'VIEW_ON_UNKNOWN',
            viewTypes: 'VIEW_TYPE_UNKNOWN'
          },
          heatTypes: 'HEAT_TYPE_UNKNOWN',
          heatTypeDetails: 'HEAT_DETAIL_UNKNOWN',
          heatings: 'HEATING_UNKNOWN',
          propertyCondition: [
            {
              constructionYear: 0,
              interiorCondition: 'INTERIOR_CONDITION_UNKNOWN',
              renovationYear: 0,
              generalConditions: 'GENERAL_CONDITION_UNKNOWN'
            }
          ],
          roomCount: {max: 0, min: 0},
          surface: {
            balconies: {max: 0, min: 0},
            floorSpace: {max: 0, min: 0},
            gardens: {max: 0, min: 0},
            groundFloor: {max: 0, min: 0},
            kitchen: {max: 0, min: 0},
            livingSpace: {max: 0, min: 0},
            livingroom: {max: 0, min: 0},
            terraces: {max: 0, min: 0},
            total: {max: 0, min: 0}
          },
          type: 'PROPERTY_TYPE_UNKNOWN',
          wcCount: {max: 0, min: 0}
        },
        hasAnomaly: true,
        isAuction: true,
        isUrgent: true,
        land: {
          canConstruct: true,
          isServiced: true,
          surface: {max: 0, min: 0},
          surfaceConstructable: {max: 0, min: 0},
          type: 'LAND_UNKNOWN',
          haveBuildingPermit: true,
          haveElectricity: true,
          haveTelecom: true,
          haveWater: true
        },
        lastModifiedAt: [{max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'}],
        offer: [
          {
            isCurrentlyOccupied: true,
            renting: {isColocation: true, isLongTerm: true, isShortTerm: true, isSubLease: true},
            type: 'OFFER_UNKNOWN'
          }
        ],
        parking: {
          count: {max: 0, min: 0},
          numberOfCars: {max: 0, min: 0},
          surface: {max: 0, min: 0},
          type: 'PARKING_UNKNOWN'
        },
        process: 'PROCESS_UNKNOWN',
        scope: 'PRICING_ONE_OFF',
        tags: ['string'],
        type: 'CLASS_UNKNOWN',
        warrantyDeposit: {max: 0, min: 0},
        firstSeenAt: [{max: '2022-10-21T11:31:33.593Z', min: '2022-10-21T11:31:33.593Z'}],
        location: {
          city: 'string',
          cityCoordinate: {
            location: {
              geoBoundingBox: {bottomRight: {lat: 0, lon: 0}, topLeft: {lat: 0, lon: 0}},
              geoDistance: {distanceKm: 0, pin: {lat: 0, lon: 0}},
              geoInseeCodeDistance: {distanceKm: 0, inseeCode: 'string'}
            }
          },
          department: 'string',
          inseeCode: 'string',
          irisCode: 'string',
          locationCoordinate: {
            location: {
              geoBoundingBox: {bottomRight: {lat: 0, lon: 0}, topLeft: {lat: 0, lon: 0}},
              geoDistance: {distanceKm: 0, pin: {lat: 0, lon: 0}},
              geoInseeCodeDistance: {distanceKm: 0, inseeCode: 'string'}
            }
          },
          postalCode: 'string'
        },
        source: {flxId: 'string', url: 'string', website: 'string'},
        currency: 'EUR',
        mainPropertyAdFlxId: ['string'],
        propertyFlxId: ['string'],
        isPro: true,
        seller: [
          {flxId: 'string', name: 'string', siren: 'string', type: 'SELLER_TYPE_UNKNOWN'}
        ],
        isOnline: true,
        isExclusive: true
      },
      fullTexts: ['string'],
      keywords: ['string']
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
{
  "data": {
    "count": 123
  }
}

Authorizations

x-api-key
string
headerrequired

Body

application/json
search
object
required

Response

200 - application/json
data
object
required