Partner level API for accessing information for clients under a development parter's account.
endpoint: https://api.idxbroker.com/partners/[...]
This is a simple, access anywhere, method for getting a list of all API components available.
// access URL and request method $url = 'https://api.idxbroker.com/partners/listcomponents'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'outputtype: json' // optional - overrides the preferences in our API control page ); // set up cURL $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); // exec the cURL request and returned information. Store the returned HTTP code in $code for later reference $response = curl_exec($handle); $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($code >= 200 || $code < 300) $components = json_decode($response,true); else $error = $code;
A simple method for listing all available methods in the current API component. This method will also list which request methods (GET, PUT, POST, or DELETE) are supported by each method.
// access URL and request method $url = 'https://api.idxbroker.com/partners/listmethods'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'outputtype: json' // optional - overrides the preferences in our API control page ); // set up cURL $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); // exec the cURL request and returned information. Store the returned HTTP code in $code for later reference $response = curl_exec($handle); $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($code >= 200 || $code < 300) $response = json_decode($response,true); else $error = $code;
A list of clients available to a given partner. The list of clients can be filtered by GET values.
filterField
optional the field to use when filtering output. Available values:
filterValue
conditional on use of filterField - the value by which to filter// access URL and request method $url = 'https://api.idxbroker.com/partners/clients'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'outputtype: json' // optional - overrides the preferences in our API control page ); // set up cURL $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); // exec the cURL request and returned information. Store the returned HTTP code in $code for later reference $response = curl_exec($handle); $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($code >= 200 || $code < 300) $clients = json_decode($response,true); else $error = $code;
A control method for generating, replacing, and revoking the key for any client under a partner's account.
accountID
required The client's numeric account ID// access URL and request method $url = 'https://api.idxbroker.com/partners/clientkeys/123'; $method = 'PUT'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'outputtype: json' // optional - overrides the preferences in our API control page ); // set up cURL $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); if ($method != 'GET') curl_setopt($handle, CURLOPT_CUSTOMREQUEST, $method); // exec the cURL request and returned information. Store the returned HTTP code in $code for later reference $response = curl_exec($handle); $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($code >= 200 || $code < 300) $clients = json_decode($response,true); else $error = $code;
accountID
required The client's numeric account ID// access URL and request method $url = 'https://api.idxbroker.com/partners/clientkeys/123'; $method = 'DELETE'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'outputtype: json' // optional - overrides the preferences in our API control page ); // set up cURL $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); if ($method != 'GET') curl_setopt($handle, CURLOPT_CUSTOMREQUEST, $method); // exec the cURL request and returned information. Store the returned HTTP code in $code for later reference $response = curl_exec($handle); $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($code >= 200 || $code < 300) $clients = json_decode($response,true); else $error = $code;
Gives the names and IDs of all available property types. This method differs from the property type lookup method in the client API compenent in that it can look up property types for any active Platinum MLS, not just those for which the client is a member.
idxID
optional The IDX ID of the MLS from which you need property type information. If no
IDX ID is specified then only the IDX property types (parentPtID) will be returned.
pt
.pt
.// access URL and request method $url = 'https://api.idxbroker.com/partners/propertytypes/a001'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'outputtype: json' // optional - overrides the preferences in our API control page ); // set up cURL $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); // exec the cURL request and returned information. Store the returned HTTP code in $code for later reference $response = curl_exec($handle); $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($code >= 200 || $code < 300) $propertyTypes = json_decode($response,true); else $error = $code;
Get a list of all leads created, edited, or active during a specified time frame of up to 1 week.
interval
optional - the number of hours worth of data to return.
1.5
.0.0166
(~ 1 minute). Maximum value: 168
(1 week).
startDatetime
optional - the date and time to from which the interval counts back.
2013-01-01 23:59:59
. This will pull data from the very end of the day to 24 hours previous.YYYY-MM-DD hh:mm:ss
dateType
optional - there are several dates associated with a lead, this will specify is being used to return information.
413 -Requested Entity Too Large
error is returned. If encountered a smaller interval will need to be used.// access URL and request method $url = 'https://api.idxbroker.com/partners/aggregatedleads?interval=24&startDatetime=2012-01-01+23:59:59&dateType=lastLoginDate'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'outputtype: json' // optional - overrides the preferences in our API control page ); // set up cURL $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); // exec the cURL request and returned information. Store the returned HTTP code in $code for later reference $response = curl_exec($handle); $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($code >= 200 || $code < 300) $leads = json_decode($response,true); else $error = $code;
Get a list of all saved searches created or edited during a specified time frame of up to 1 week.
interval
optional - the number of hours worth of data to return.
1.5
.0.0166
(~ 1 minute). Maximum value: 168
(1 week).
startDatetime
optional - the date and time to from which the interval counts back.
2013-01-01 23:59:59
. This will pull data from the very end of the day to 24 hours previous.YYYY-MM-DD hh:mm:ss
dateType
optional - there are several dates associated with a lead, this will specify is being used to return information.
// access URL and request method $url = 'https://api.idxbroker.com/partners/aggregatedsearches?interval=24&startDatetime=2012-01-01+23:59:59&dateType=created'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'outputtype: json' // optional - overrides the preferences in our API control page ); // set up cURL $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); // exec the cURL request and returned information. Store the returned HTTP code in $code for later reference $response = curl_exec($handle); $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($code >= 200 || $code < 300) $searches = json_decode($response,true); else $error = $code;
Get a list of all saved properties created or edited during a specified time frame of up to 1 week.
interval
optional - the number of hours worth of data to return.
1.5
.0.0166
(~ 1 minute). Maximum value: 168
(1 week).
startDatetime
optional - the date and time to from which the interval counts back.
2013-01-01 23:59:59
. This will pull data from the very end of the day to 24 hours previous.YYYY-MM-DD hh:mm:ss
dateType
optional - there are several dates associated with a lead, this will specify is being used to return information.
// access URL and request method $url = 'https://api.idxbroker.com/partners/aggregatedproperties?interval=24&startDatetime=2012-01-01+23:59:59&dateType=created'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'outputtype: json' // optional - overrides the preferences in our API control page ); // set up cURL $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); // exec the cURL request and returned information. Store the returned HTTP code in $code for later reference $response = curl_exec($handle); $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($code >= 200 || $code < 300) $properties = json_decode($response,true); else $error = $code;
Get a list of all leads traffic history during a specified time frame of up to 1 week.
interval
optional - the number of hours worth of data to return.
1.5
.0.0166
(~ 1 minute). Maximum value: 168
(1 week).
startDatetime
optional - the date and time to from which the interval counts back.
2013-01-01 23:59:59
. This will pull data from the very end of the day to 24 hours previous.YYYY-MM-DD hh:mm:ss
// access URL and request method $url = 'https://api.idxbroker.com/partners/aggregatedleadtraffic?interval=24&startDatetime=2012-01-01+23:59:59'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'outputtype: json' // optional - overrides the preferences in our API control page ); // set up cURL $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); // exec the cURL request and returned information. Store the returned HTTP code in $code for later reference $response = curl_exec($handle); $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($code >= 200 || $code < 300) $properties = json_decode($response,true); else $error = $code;
Get a list of featured MLS properties listed over a specified time frame of up to 1 year per query.
interval
optional - the number of hours worth of data to return.
1.5
.0.0166
(~ 1 minute). Maximum value: 8765
(1 year).
startDatetime
optional - the date and time to from which the interval counts back.
2013-01-01 23:59:59
. This will pull data from the very end of the day to 24 hours previous.YYYY-MM-DD hh:mm:ss
dateType
optional - there are several dates associated with a lead, this will specify is being used to return information.
// access URL and request method $url = 'https://api.idxbroker.com/partners/aggregatedfeatured?interval=24&startDatetime=2012-01-01+23:59:59&dateType=dateAdded'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'outputtype: json' // optional - overrides the preferences in our API control page ); // set up cURL $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); // exec the cURL request and returned information. Store the returned HTTP code in $code for later reference $response = curl_exec($handle); $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($code >= 200 || $code < 300) $properties = json_decode($response,true); else $error = $code;
Get a list of supplemental (non-MLS) properties listed over a specified time frame of up to 1 year per query.
interval
optional - the number of hours worth of data to return.
1.5
.0.0166
(~ 1 minute). Maximum value: 8765
(1 year).
startDatetime
optional - the date and time to from which the interval counts back.
2013-01-01 23:59:59
. This will pull data from the very end of the day to 24 hours previous.YYYY-MM-DD hh:mm:ss
dateType
optional - there are several dates associated with a lead, this will specify is being used to return information.
// access URL and request method $url = 'https://api.idxbroker.com/partners/aggregatedsupplemental?interval=24&startDatetime=2012-01-01+23:59:59&dateType=dateAdded'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'outputtype: json' // optional - overrides the preferences in our API control page ); // set up cURL $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); // exec the cURL request and returned information. Store the returned HTTP code in $code for later reference $response = curl_exec($handle); $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($code >= 200 || $code < 300) $properties = json_decode($response,true); else $error = $code;
Get a list of sold/pending MLS properties listed over a specified time frame of up to 1 year per query.
interval
optional - the number of hours worth of data to return.
1.5
.0.0166
(~ 1 minute). Maximum value: 8765
(1 year).
startDatetime
optional - the date and time to from which the interval counts back.
2013-01-01 23:59:59
. This will pull data from the very end of the day to 24 hours previous.YYYY-MM-DD hh:mm:ss
dateType
optional - there are several dates associated with a lead, this will specify is being used to return information.
// access URL and request method $url = 'https://api.idxbroker.com/partners/aggregatedsoldpending?interval=24&startDatetime=2012-01-01+23:59:59&dateType=dateAdded'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'outputtype: json' // optional - overrides the preferences in our API control page ); // set up cURL $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); // exec the cURL request and returned information. Store the returned HTTP code in $code for later reference $response = curl_exec($handle); $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($code >= 200 || $code < 300) $properties = json_decode($response,true); else $error = $code;
This method gives the status for all MLS listings (not supplemental) broken down by client account ID. This includes sold/pending listings with an unknown status which are not usually returned by sold/pending api methods. This is helping if you need to know when previously gathered featured properties have left the market.
filterField
optional the field to use when filtering output. Available values:
filterValue
conditional on use of filterField - the value by which to filter. Available values:
// access URL and request method $url = 'https://api.idxbroker.com/partners/aggregatedlistingstatus?filterField=status&filterValue=unknown'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'outputtype: json' // optional - overrides the preferences in our API control page ); // set up cURL $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); // exec the cURL request and returned information. Store the returned HTTP code in $code for later reference $response = curl_exec($handle); $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($code >= 200 || $code < 300) $listings = json_decode($response,true); else $error = $code;
Get a list of all agents for your clients.
// access URL and request method $url = 'https://api.idxbroker.com/partners/aggregatedagents'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'outputtype: json' // optional - overrides the preferences in our API control page ); // set up cURL $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); // exec the cURL request and returned information. Store the returned HTTP code in $code for later reference $response = curl_exec($handle); $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($code >= 200 || $code < 300) $components = json_decode($response,true); else $error = $code;