Client level API for accessing MLS information.
endpoint: https://api.idxbroker.com/mls/[...]
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/mls/listcomponents'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'ancillarykey: ABCDEFGHIJKLYMNOPRSTUVWX', // optional and for partners only - 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/mls/listmethods'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'ancillarykey: ABCDEFGHIJKLYMNOPRSTUVWX', // optional and for partners only - 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;
This method provides all of the IDX IDs and names for all of the paperwork approved MLSs on the client's account.
Note: This method was previously camelcased as "approvedMLS" but was made lower case to fit the API naming convention. Calls to "approvedMLS" will be forwarded to "approvedmls" and "approvedMLS" is listed as deprecated in the method list.
// access URL and request method $url = 'https://api.idxbroker.com/mls/approvedmls'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'ancillarykey: ABCDEFGHIJKLYMNOPRSTUVWX', // optional and for partners only - 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) $cities = json_decode($response,true); else $error = $code;
All cities represented in the current set of MLS data are available from this method. The output can be filtered using additional GET parameters.
idxID
required (format: x000)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/mls/cities/a001?filterField=stateAbrv&filterValue=Or'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'ancillarykey: ABCDEFGHIJKLYMNOPRSTUVWX', // optional and for partners only - 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) $cities = json_decode($response,true); else $error = $code;
All counties represented in the current set of MLS data are available from this method. The output can be filtered using additional GET parameters.
idxID
required (format: x000)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/mls/counties/a001?filterField=stateAbrv&filterValue=Wa'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'ancillarykey: ABCDEFGHIJKLYMNOPRSTUVWX', // optional and for partners only - 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) $counties = json_decode($response,true); else $error = $code;
All zip codes represented in the current set of MLS data are available from this method. The output can be filtered using additional GET parameters.
idxID
required (format: x000)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/mls/zipcodes/a001?filterField=stateAbrv&filterValue=Wa'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'ancillarykey: ABCDEFGHIJKLYMNOPRSTUVWX', // optional and for partners only - 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) $zipcodes = json_decode($response,true); else $error = $code;
The sum total of properties listed in a given MLS as well as sums for each property type in the MLS.
idxID
required (format: x000)// access URL and request method $url = 'https://api.idxbroker.com/mls/prices/a001'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'ancillarykey: ABCDEFGHIJKLYMNOPRSTUVWX', // optional and for partners only - 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) $prices = json_decode($response,true); else $error = $code;
Gives the property type information for all types that are available on a given MLS.
idxID
required (format: x000)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/mls/propertytypes/a001?filterField=mlsPtID&filterValue=1'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'ancillarykey: ABCDEFGHIJKLYMNOPRSTUVWX', // optional and for partners only - 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) $count = json_decode($response,true); else $error = $code;
Gives a total number of listings available for a given city, county, or zipcode.
idxID
required (format: x000)countType
required specify if you are looking for the count of a city, county, or zipcode. Available values:
city
county
zipcode
countSpecifier
required The numeric city ID, county ID, or zipcode for which you want to get a property count.// access URL and request method $url = 'https://api.idxbroker.com/mls/propertycount/a001?countType=city&countSpecifier=37536'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'ancillarykey: ABCDEFGHIJKLYMNOPRSTUVWX', // optional and for partners only - 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) $count = json_decode($response,true); else $error = $code;
Gives the date and time a particular MLS was last downloaded, processed and the last time images gathering was completed.
Note: dates/times given are UTC.
idxID
required (format: x000)// access URL and request method $url = 'https://api.idxbroker.com/mls/age/a001'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'ancillarykey: ABCDEFGHIJKLYMNOPRSTUVWX', // optional and for partners only - 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) $age = json_decode($response,true); else $error = $code;
All the fields in a given MLS that are currently allowed to be searched according to MLS guidelines.
idxID
required (format: x000)filterField
optional the field to use when filtering output. Available values:
propertytypes
method in this API/Component for a
lookup of property type IDs.filterValue
conditional on use of filterField - the value by which to filter// access URL and request method $url = 'https://api.idxbroker.com/mls/searchfields/a001?filterField=mlsPtID&filterValue=1'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'ancillarykey: ABCDEFGHIJKLYMNOPRSTUVWX', // optional and for partners only - 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) $fields = json_decode($response,true); else $error = $code;
Field values in a given MLS that are currently allowed to be searched according to MLS guidelines.
idxID
required (format: x000)mlsPtID
required mlsPtID - the IDX assigned ID of the MLS property type(s). See the propertytypes
method in this API/Component for a lookup of property type IDs. name
required mls field name - the IDX assigned name of the MLS field name. See the searchfields
for the list of searchable fields.// access URL and request method $url = 'https://api.idxbroker.com/mls/searchfieldvalues/a001?mlsPtID=1&name=subdivision'; $method = 'GET'; // headers (required and optional) $headers = array( 'Content-Type: application/x-www-form-urlencoded', // required 'accesskey: abcdefghijklmnopqrstuvwx', // required - replace with your own 'ancillarykey: ABCDEFGHIJKLYMNOPRSTUVWX', // optional and for partners only - 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) $fields = json_decode($response,true); else $error = $code;