The ForeclosureListings.com APIs let you get the latest 10 Foreclosure Homes in any zipcode, city, county or state and also know if a property in a given address is a foreclosure. All you need to do is register your domain then follow the instructions bellow.
For example, the following url:
http://api.foreclosurelistings.com/foreclosure?domain=example.com&key=yourkeyhere&state=FL&county=miami-dade
Should return an xml file like this:
Alternatively, the following url:
http://api.foreclosurelistings.com/foreclosure?domain=example.com&key=yourkeyhere&state=FL&county=miami-dade&format=json
Should return an JSON object like this:
Also, the following url:
http://api.foreclosurelistings.com/isforeclosure?domain=example.com&key=yourkeyhere&address=1010 Example St&city=Brooklyn&state=ny
Should return an xml file like this:
Again, the following url:
http://api.foreclosurelistings.com/isforeclosure?domain=example.com&key=yourkeyhere&address=1010 Example St&city=Brooklyn&state=ny&format=json
Should return an JSON object like this:
To use the ForeclosureListings.com APIs, you must first register your domain. Once you do, you will be given an API key to use along with your domain in the API request.
All ForeclosureListings.com APIs now support JSON. All you need to do is pass an additional parameter, &format=json, and the answer will be a JSON object, instead of an xml file, which is the default.
Recent Foreclosure Homes API: this API returns the latest foreclosure homes in any zipcode, state, county or city.
This API URL must be in the following format:
http://api.foreclosurelistings.com/foreclosure?domain=<domain>&key=<key>&<parameters>
Where <domain> is the domain you registered, <key> is the API key associated to that domain and <parameters> can be any and more than one of the following:
Note: If you specify a zipcode, this will be used, and other parameters will be ignored. Otherwise, we'll try to find properties in the city, county and/or state you provide.
Is Foreclosure API: this API answers if a property is in foreclosure given its address.
This API URL must be in the following format:
http://api.foreclosurelistings.com/isforeclosure?domain=<domain>&key=<key>&address<address>&city=<city>&state=<state>
Where <domain> is the domain you registered, <key> is the API key associated to that domain and <address>, <city> and <state> inform the location of the property.
When doing an API request, you might want to read first the tag information:
Besides giving you information on how many properties were found or if a property is a foreclosure or not, this will tell you if an error has occurred, and which error was that. The following messages may be received:
There's a limit to the number of calls per day you can make to the ForclosureListings.com's APIs. To avoid access problems, we limit the access to 1,000 calls per day. If you think you will make more than 1,000 API calls per day, please contact us.