Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- headers = {
- 'accept': 'application/json',
- 'Content-Type': 'application/json',
- 'Authorization': 'Bearer 9064dc72d183e258027627cc21a5d953',
- }
- data = '{ "listingType":"Rent", "propertyTypes":[ "apartmentUnitFlat" ], "minBedrooms":1, "maxBathrooms": 1, "minBathrooms":1, "maxBathrooms": 1, "minCarspaces":0, "maxCarspaces": 1, "minPrice": 400, "maxPrice": 600, "locations":[ { "state":"NSW", "region":"", "area":"", "suburb":"Mascot", "postCode":"", "includeSurroundingSuburbs":false } ]}'
- response = requests.post('https://api.domain.com.au/v1/listings/residential/_search', headers=headers, data=data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement