this web service is used to obtain the number of hits for a property.

Resource information
AuthenticationRequired
ParametersRequired
HTTP MethodGET
ResponseString

Resource URL

https://property-api.mapaprop.com/property/get/hits

Parameters request.

KeyTypeRequiredDescription
custIdStringyesthe customer id identifier
propertyIdStringyesthe property id identifier
brandStringyesbrand or system sending data
originIdStringyesoriginating portal sending the data
daysStringyesnumber of days from current date
originCountryStringyescountry code to store customer's local time

Parameters conditions

  • The parameter "days" only accepts this values: 1 , 7 , 14, 30, 90.

Example curl

curl --location 'https://property-api.mapaprop.com/property/get/hits?custId=444&propertyId=213251&days=14&originCountry=ar&originId=PatagonProp&brand=mapaprop' \
--header 'Authorization: cGFyYSBwcm9wZXJ0eSBhcGkgdGFtYmllbiBuZWNlc2l0YW1vcyB1bmEgY2xhdmUgYmllbiBidWVuYSAyMDIz'

Sample code

GET https://property-api.mapaprop.com/property/get/hits Host: property-api.mapaprop.com Content-Type: text/plain; charset=utf-8 Content-Length: 0 Authorization: cGFyYSBwcm9wZXJ0eSBhcGkgdGFtYmllbiBuZWNlc2l0YW1vcyB1bmEgY2xhdmUgYmllbiBidWVuYSAyMDIz Parameters: custId=1(Number) propertyId=213251(Number) days=14(Number) originCountry=ar(String) originId=PatagonProp(String) brand=mapaprop(String)


Response

The JSON returned depends on whether the execution was successful or gave an error during the execution.

ObjectFieldTypeDescription
Response DatasuccessStringA json with the information of the user, the property and its hits.
Response ErrorerrorStringA text indicating the exact error that occurred.

Sample code

Sample response for the get hits

{ "days": 14, "hits": 7, "propertyId": "213251", "originUrlHit": "https://www.patagonprop.com/ar/propiedad/alquiler-de-departamento-en-caballito-capital-federal-444-191022/5ebebe55a9b6c47f0702173b9a8168cf", "customerId": "444", "brand": "mapaprop", "originCountry": "ar", "originId": "PatagonProp", "report": { "2023-11-07": 0, "2023-11-06": 0, "2023-11-05": 0, "2023-11-04": 1, "2023-11-03": 0, "2023-11-02": 0, "2023-11-01": 0, "2023-10-31": 1, "2023-10-30": 1, "2023-10-29": 1, "2023-10-28": 1, "2023-10-27": 0, "2023-10-26": 2, "2023-10-25": 0 } }


Error Example

Date not available or parameter with error.