3 min read
The chat.smarterbot.ai API provides functionality to retrieve a list of real estate listings by sending a POST request to the /chat/Chatbot/RealEstateList endpoint.
chat.smarterbot.ai
POST
/chat/Chatbot/RealEstateList
Request URL: https://chat.smarterbot.ai/chat/Chatbot/RealEstateList
Method: POST
The API request must include the following headers:
chatrobot-sessionkey: <Your-Session-Key>
The request body should contain the following parameters:
{ // string, required - The ID of the chatbot (found on the chatbot settings -> general -> chatbot ID) "SerialNumber": "3254a9d0424c4806b9ea3d0763xxxxxx", // string, optional - Filter properties by city name "CityName": "Los Angeles", // string, optional - Must be one of: [for_sale, for_rent] "SaleType": "for_sale", // string, optional - Filter properties by MLS number "MLSNumber": "MLS123456", // integer, optional - Page number for pagination (default: 1) "PageNumber": 1, // integer, optional - Number of items per page (default: 20) "PageSize": 20}
SerialNumber
CityName
SaleType
MLSNumber
PageNumber
PageSize
const res = await fetch('https://chat.smarterbot.ai/chat/Chatbot/RealEstateList', { method: 'POST', headers: { "chatrobot-sessionkey": "<Your-Session-Key>"}, body: JSON.stringify({ "SerialNumber": "3254a9d0424c4806b9ea3d0763xxxxxx", "CityName": "Los Angeles", "SaleType": "for_sale", "PageNumber": 1, "PageSize": 20})});const data = await res.json();console.log(data);
import requestsimport jsonurl = 'https://chat.smarterbot.ai/chat/Chatbot/RealEstateList'headers = { "chatrobot-sessionkey": "<Your-Session-Key>"}data = { "SerialNumber": "3254a9d0424c4806b9ea3d0763xxxxxx", "CityName": "Los Angeles", "SaleType": "for_sale", "PageNumber": 1, "PageSize": 20}response = requests.post(url, headers=headers, json=data)data = response.json()print(data)
curl 'https://chat.smarterbot.ai/chat/Chatbot/RealEstateList' \ -X POST \ -H 'chatrobot-sessionkey: <Your-Session-Key>' \ -d '{"SerialNumber":"3254a9d0424c4806b9ea3d0763xxxxxx","CityName":"Los Angeles","SaleType":"for_sale","PageNumber":1,"PageSize":20}'
POST /chat/Chatbot/RealEstateList HTTP/1.1Host: chat.smarterbot.aichatrobot-sessionkey: <Your-Session-Key>{ "SerialNumber": "3254a9d0424c4806b9ea3d0763xxxxxx", "CityName": "Los Angeles", "SaleType": "for_sale", "PageNumber": 1, "PageSize": 20}
The API response will be a JSON object with the following structure:
{ // object - The response data "Data": { "List": [ { "ID": 7459, "PropertyType": "Single Family Residential", "SaleType": "For Rent", "Status": "Active", "Images": "", "CurrencySymbol": "$", "Price": "80000.00", "State": "CA", "City": "Los Angeles", "Address": "123 Main St", "ZIP": "90001", "LATITUDE": 30.96, "LONGITUDE": -78.93, "Area": "Downtown", "Bathrooms": "4", "Bedrooms": "4", "Url": "https://example.com/property/123", "Tours": "3D", "YearBuilt": "2020", "MLSNumber": "MLS123456", "DaysOnMarket": "20", "LotArea": "800", "BuildingArea": "2500", "ParkingSpots": "8", "Description": "Beautiful property in prime location", "ExtensionColumn": "[{'Key':'Pool', 'value':'Yes'}]", "RentPrice": "80000.00", "SpaceType": "Entire place", "DepositFee": "5000.00", "SalePrice": "", "UnitAreaPrice": "", "ZestimatePrice": "", "HOAMonth": "" } ], "VirtualCount": 10 }, // string - API version "Version": "1.0.0", // boolean - Operation success status "Success": true, // integer - HTTP status code "Code": 200, // string - Error message if any "Message": ""}
If the request fails, you should: 1. Check the HTTP status code for network-level errors 2. Examine the `Code` and `Message` fields in the response for business-level errors 3. The `Message` field will contain detailed error information
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Post Comment