The UK's Largest Customer Review Website for the Property Industry
The UK's Largest Customer Review Website for the Property Industry
allAgents has introduced a RESTful API for its Premium Support Agents, so that they are better able to utilise the wealth of data allAgents has collected over the years.
Please find simple examples of the possible uses for the API in this section. Examples are provided in PHP using cURL, but the core concepts are the same and applicable regardless of client-side implementation. At the moment, the API outputs JSON responses only.
API Keys are only available to Premium Support Plus members, and can be retrieved from the firm or branch's logged-in area on allAgents. You can sign in here.
The API Key must be sent as an HTTP header, 'APIKEY: ...', and not as a POST variable or in the the request URL.
URL | Description & Responses | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GET https://www.allagents.co.uk/api/v1/firms/[your-firm-link]/ |
Retrieve details of your firm. A 'firm' refers to an estate or
letting agency
'group' as a
whole, and to no particular branch.
|
||||||||||||||||||||||||||||||||
GET https://www.allagents.co.uk/api/v1/firms/your-firm-link/branches/your-branch-link/ |
Retrieve details of your branch. A branch refers to an estate
or letting agency office with a particular address. All firms have at least one
branch.
|
||||||||||||||||||||||||||||||||
GET https://www.allagents.co.uk/api/v1/firms/[your-firm-link]/reviews/ |
Retrieve the latest 50 customer reviews left for your firm,
regardless of which branch was reviewed. An array of up to 50 reviews is
returned, with each item containing the following.
|
||||||||||||||||||||||||||||||||
GET https://www.allagents.co.uk/api/v1/firms/[your-firm-link]/branches/[your-branch-link]/reviews/ |
Retrieve the latest 50 customer reviews left for your branch.
An array of up to
50 reviews
is returned, with each item containing the following.
|
||||||||||||||||||||||||||||||||
GET https://www.allagents.co.uk/api/v1/firms/[your-firm-link]/branches/[your-branch-link]/markup/ |
Retrieve schema markup, which when added to your page, can
improve its
appearance in Google.
Add this to branch-specific pages on your website, e.g. 'Croydon Branch'. Google
can use the
information to provide star ratings (based on your allAgents ratings and review
count) for a
page in its search results and information such as address and logo for the knowledge panel.
Effects
are not instant, and depend on Google. Check it has been applied correctly by
using the Structured
Data Tester
Tool
|
Status / Error | Explanation |
---|---|
100: An error has occurred | This is the default catch-all error. If you encounter this error and are sure the request's URL is well-formed, please use your support package to submit details of your request. |
101: API Key not received | This error occurs when an API Key was not sent or received along with the request. The API Key must be sent as an HTTP header, in the form 'APIKEY: ####'. |
102: Unable to validate API Key | This error occurs when an API Key is not provided, the wrong or old key is used, or the API key is not enabled, e.g. not a premium support member. Also not that a firm's API Key is only valid for retrieving information regarding themselves. |
103: Requested resource of type Firm not found | The firm requested has not been found. Please check that the uRL path, in particular the reference following 'firms' corresponds to path of the firm's allAgents profile. |
104: Requested resource of type Branch not found | The branch requested has not been found for the firm requested. Please check that the uRL path, in particular the reference following 'branches' corresponds to path of the branch's allAgents profile. |
Please Sign In and click "API Info" in left menu to find usage examples in your branch account with credentials or contact us for your branch credentials.