Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
https://api2.realtor.ca/Listing.svc/PropertySearch_Post
realtor.post
- returns a request-promise POST with the given options
realtor.buildUrl
- returns a URL with the query string constructed from the specified options.
realtor.optionsFromUrl
- returns options from a URL from realtor.ca (from the map view)
^ Note: The website link from buildUrl
only allows specific price quantities. Any inconsistent PriceMin
and PriceMax
values will be rounded up to the next price level. Read the source for clarification.
const realtor = require('realtorca');
let opts = {
LongitudeMin: -79.6758985519409,
LongitudeMax: -79.6079635620117,
LatitudeMin: 43.57601549736786,
LatitudeMax: 43.602250137362276,
PriceMin: 100000,
PriceMax: 410000
};
console.log( realtor.buildUrl(opts) );
//https://www.realtor.ca/Residential/Map.aspx#LongitudeMin=-79.6758985519409&LongitudeMax=-79.6079635620117&LatitudeMin=43.57601549736786&LatitudeMax=43.602250137362276&PriceMin=100000&PriceMax=425000
// Parse options from url
console.log(realtor.optionsFromUrl("https://www.realtor.ca/Residential/Map.aspx#LongitudeMin=-79.6758985519409&LongitudeMax=-79.6079635620117&LatitudeMin=43.57601549736786&LatitudeMax=43.602250137362276&PriceMin=100000&PriceMax=425000"));
realtor.post(opts)
.then(data => {
//json response
})
.catch(err => {
});
Most of the information was pulled from the DOM nodes on the website
All of the following options are optional. The first 3 listed are required but the wrapper will provide a default if they aren't specified.
CultureId
- 1
for EN, 2
for FR. Defaulted to 1.ApplicationId
- Unused. Defaulted to 1.PropertySearchTypeId
- Defaulted to 1. Determines the type of property, possible values:
0
No Preference1
Residential2
Recreational3
Condo/Strata4
Agriculture5
Parking6
Vacant Land8
Multi FamilyMost useful options
PriceMin
- Defaults to 0PriceMax
LongitudeMin
- Designates the bounds of the query, easiest to find these values from browser requests.LongitudeMax
LatitudeMin
LatitudeMax
TransactionTypeId
- Defaults to 2?
1
For sale or rent2
For sale3
For rentStoreyRange
- "min-max"
i.e. "2-3"
BedRange
- "min-max"
if min = max, it searches for the exact value. If it's 1-0
, it means it's 1+. Maxes at 5BathRange
- "min-max"
Others
Type | Sort |
---|---|
Low to High ($) | 1-A |
High to Low ($) | 1-D |
Date Posted: New to Old | 6-D |
Date Posted: Old to New | 6-A |
Open Houses First | 12-D |
More Photos First | 13-D |
Virtual Tour First | 11-D |
organizationID
- sort/search by organizationID of a group of realtors. Value of this field can be found using a URL such as https://www.realtor.ca/Residential/OfficeDetails.aspx?OrganizationId=271479 as pointed out by Froren.individualID
- sort/search by agentID. Can be found using a URL such as https://www.realtor.ca/Agent/1914698/Gaetan-Kill-130---1152-Main... (in this case individualID = 1914698) as indicated by Kris.viewState
- m
, g
, or 1
. Seems irrelevant.Longitude
- Longitude to focus on? UnneededLatitude
- Latitude to focus on? UnneededZoomLevel
- not sure what this doesCurrentPage
- read somewhere that it maxes at 51RecordsPerPage
- maxes at 200MaximumResults
PropertyTypeGroupID
- ???OwnershipTypeGroupId
0
Any1
Freehold2
Condo/Strata3
Timeshare/Fractional4
LeaseholdViewTypeGroupId
0
Any1
City2
Mountain3
Ocean4
Lake5
River6
Ravine7
Other8
All Water ViewsBuildingTypeId
0
Any1
House2
Duplex3
Triplex5
Residential Commercial Mix6
Mobile Home12
Special Purpose14
Other16
Row/Townhouse17
Apartment19
Fourplex20
Garden Home27
Manufactured Home/Mobile28
Commercial Apartment29
Manufactured HomeConstructionStyleId
0
Any1
Attached3
Detached5
Semi-detached7
Stacked9
LinkAirCondition
- 0
or 1
, defaults 0Pool
- 0
or 1
, defaults 0Fireplace
- 0
or 1
, defaults 0Garage
- 0
or 1
, defaults 0Waterfront
- 0
or 1
, defaults 0Acreage
- 0
or 1
, defaults 0Keywords
- search textListingIds
- Comma Separated listing IdsReferenceNumber
- Search using MLS#OpenHouse
- 0
or 1
, must include if filtering by open house
OpenHouseStartDate
- MM/DD/YYYYOpenHouseEndDate
- MM/DD/YYYYFeel free to PR and fork.
FAQs
API wrapper for realtor.ca
We found that realtorca demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.