This end point allows you to list properties in property manager's portfolio. It accepts GET requests to
https://sturents.com/api/houses
To return a specific property add the reference to the URL. E.g. for property with reference 1234:
GET /api/houses/1234
To return all properties which have been added to the system after a specific date and time you can place added-since/{date}/{time}
(time optional) in your request URL. E.g. for properties added after 12:30pm on 4th July 2017:
GET /api/houses/added-since/2017-07-04/12:30
You can combine the single property fetch and added routes to store data locally for a portfolio and re-fetch just
the data you need when you need it. Check our developer support email at the base of this page for more
suggestions.
All data types are assumed to be strings unless stated otherwise. All strings and arrays may be empty unless stated
otherwise. Objects will always contain the specified keys.
Pagination
If a request would return more than 50 properties then the first 50 properties will be returned. If this is the case the root object will contain a pagination object. Making requests with a page integer value in the query string will fetch that page.
List object
date - a timestamp in the format yyyy-mm-dd hh:min:sec
branches - an array containing a single branch object
Pagination object
pages - the number of pages total
current - for data integrity, the page that these results relate to
next - if present this shows there is another page available after this one
prev - if present this shows there is another page available prior to this one
Branch object
agent_id - the ID of the branch on StuRents, this will match the value of landlord provided in the request
name - the name recorded for the branch
website - if listed, the website for the branch *
properties - an array containing zero or more property objects
Property object
reference
-
a unique reference to the property on your platform which will
not change
available -
an array of one or more availability objects
designation - "house" | "pbsa"
beds_available - the number of bedrooms (formerly called "beds"). If set to "zero" this will
list the property as a studio flat
beds_total - the number of bedrooms (if not specified, will be set the same as the value above)
rooms_let_individually - boolean where true indicates each room may be let on a
separate contract
quantity - When designation is set to "pbsa" this describes the number of
identical
rental options available
quantity_available - as above, but currently available to rent
room_type - When designation is set to "pbsa" each property record describes a
type of room. This field gives that type a name e.g. "Deluxe En-suite"
property_type - "Residential"
description - a plain text or HTML description of the property. Please note HTML will be
stripped but the HTML structure will be used to render line breaks where necessary
bathrooms - number of bathrooms
floor_space - floor space of the property in square metres
We have written sample libraries to handle generation of an authentication token and submission to our API. If your
language is not included, please feel free to suggest it to our API team via
email
Our API is rate limited for identical requests, if you are constantly receiving an error code 429,
please reduce the frequency of your requests. Identical requests are those with the exact same query parameter values.
We strongly encourage that if you are encountering this issue during local development you cache/save the response from
the API.