Please select from the following areas that document the usage of our Web Api:
To call this Api use the following url:
[GET]https://api.estatesit.uk/v7.0/api/property?{{parameters}}
The Web Api accepts the following http encoded query parameter(s):
Name | Format | Type | Default | Comments | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Format | Integer | Mandatory | N/A |
Defines the resulting format of the data. Can be one of the following:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AreasAddress4 | Comma Separated Strings | Optional | Empty |
Defines one or more areas to search for in the properties address area. Example:AreasAddress4=Welling,Eltham |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AreasAddress5 | Comma Separated Strings | Optional | Empty |
Defines one or more areas to search for in the properties address town or city. Example:AreasAddress5=London |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AreasAddress6 | Comma Separated Strings | Optional | Empty |
Defines one or more areas to search for in the properties address county or region. Example:AreasAddress6=Kent |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BedroomsFrom | Integer | Optional | 0 |
Defines the number of minimum bedrooms to search for. Example:BedroomsFrom=1 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BedroomsFromPlus | Integer | Optional | 0 |
Defines whether to return properties that have a minimum or specific number of bedrooms. Can be one of the following:
BedroomsFromPlus=1 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BedroomsTo | Integer | Optional | 0 |
Defines the number of maximum bedrooms to search for. Example:BedroomsTo=5 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BedroomsToPlus | Integer | Optional | 0 |
(See bedrooms from plus) Example:BedroomsToPlus=1 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CountRecordsOnly | Integer | Optional | 0 |
Defines whether to return the number of properties found or the property results. This will normally be required for paging. Can be one of the following:
CountRecordsOnly=1 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DisplayOrder | String | Optional | Propcode |
Defines the sorting order that will be applied to the results. Can be one of the following:
DisplayOrder=propcode |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Encoding | Integer | Optional | 1 |
Defines the encoding that will be used for xml formats only. Can be one of the following:
Encoding=1 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IncludeLettings | Integer | Optional | 0 |
Defines whether properties marked as lettings are included. Can be one of the following:
IncludeLettings=1 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IncludeSales | Integer | Optional | 1 |
Defines whether properties marked as sales are included. Can be one of the following:
IncludeSales=1 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Market | Integer | Optional | 0 |
Defines the type of market for the property. Can be one of the following:
Market=1 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PageNo | Integer | Optional | 1 |
Defines the required page number for the results (used in combination with the page size). In order to provide paging support a call to the Web Api will be neccessary setting the CountRecordsOnly property to 1. This will return the number of records that have been found matching the search criteria supplied. It will then be possible to re-call the web service passing in the page number and page size required and setting the value for CountRecordsOnly to 0. Example:PageNo=1 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PageSize | Integer | Optional | 100 |
Defines the number of property records to return for each page (used in combination with the page number). In order to provide paging support a call to the Web Api will be neccessary setting the CountRecordsOnly property to 1. This will return the number of records that have been found matching the search criteria supplied. It will then be possible to re-call the web service passing in the page number and page size required and setting the value for CountRecordsOnly to 0. Example:PageSize=10 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Phototype | Character | Optional | W |
Defines the type of photo that will be returned in the results. Can be one of the following:
Phototype=W |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Postcode | String | Optional | Empty |
Defines the postcode to search for. Example:Postcode=DA1 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PriceHigh | Decimal | Optional | 0 |
Defines the maximum asking price to search for. The price entered will be matched against the currency stored against this property (normally GBP). The price entered may be sent as a decimal if required. The price entered will not be relevant if you include both sales and letting properties. Example:PriceHigh=10000 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PriceLow | Decimal | Optional | 0 |
Defines the minimum asking price to search for. The price entered will be matched against the currency stored against this property (normally GBP). The price entered may be sent as a decimal if required. The price entered will not be relevant if you include both sales and letting properties. Example:PriceLow=0 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PriceType | Integer | Optional | 0 |
Defines the price type that relates to letting properties. Can be one of the following:
PriceType=4 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PropertyCode | String | Optional | Empty |
Defines the property code to search for. Example:PropertyCode=DEM10_000083 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PropertyType | String | Optional | Empty |
Defines the property type to search for i.e. House, Flat, Bungalow. Example:PropertyType=House |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LastUpdated | DateTime | Optional | Empty |
Defines the time that the property was last updated. Should be the following format: yyyyMMddhhmmss Example:LastUpdated=20190601133000 This would represent 1st June 2019 at 1:30pm. |
The following return codes can be returned from the Api service:
Code | Comments |
---|---|
200 | The current request was successful. |
204 | The current request has not found any content matching the search criteria. |
401 | The authorization key is invalid. |
403 | The authorization key not supplied, or forbidden. |
404 | The current request has returned no content. |
The following examples show how to access the Web Api.
// Build up the api request string for any search parameters required. var apiUrl = "https://api.estatesit.uk/v7.0/api/property?Format=1&PageSize=20"; // Create http client. using (var httpClient = new HttpClient()) { httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("{{apikey}}"); var httpResponseMessage = await httpClient.GetAsync(apiUrl); Console.WriteLine(httpResponseMessage.StatusCode.ToString()); var response = await httpResponseMessage.Content.ReadAsStringAsync(); var xmlDocument = new XmlDocument(); xmlDocument.LoadXml(response); ... }
// Build up the api request string for any search parameters required. $api_url = "https://api.estatesit.uk/v7.0/api/property?Format=1&PageSize=20"; // Create context with the authorisation header. $context = stream_context_create(array( 'http' => array( 'header' => "Authorization:" , {{apikey}} ), )); // Get the contents of the url request. $result = file_get_contents($api_url, false, $context);
Use of this software must be in accordance with the Estates IT ™ Limited licence agreement and implies acceptance of the terms stated therein.
Warning: This computer program is protected by copyright law and international treaties. Unauthorised reproduction or distribution of this program, or any portion of it, may result in severe civil or criminal penalties, and will be prosecuted.
By using the Web API provided by Estates IT you agree to our full list of terms and conditions.