Add back finder
This commit is contained in:
parent
5e5d9f9a1c
commit
48c13fbcdd
23 changed files with 57347 additions and 0 deletions
52
finder/rightmove/explain.md
Normal file
52
finder/rightmove/explain.md
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
The API works as follows, you must search for outcodes, such as E11, then hit https://los.rightmove.co.uk/typeahead?query=E11&limit=10&exclude=STREET which will return something like:
|
||||
|
||||
{
|
||||
"matches": [
|
||||
{
|
||||
"id": "746",
|
||||
"type": "OUTCODE",
|
||||
"displayName": "E11",
|
||||
"highlighting": "<span class='highlightLetter'>E11</span>",
|
||||
"highlights": [
|
||||
{
|
||||
"text": "E11",
|
||||
"highlighted": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "749",
|
||||
"type": "OUTCODE",
|
||||
"displayName": "E14",
|
||||
"highlighting": "displayName",
|
||||
"highlights": []
|
||||
},
|
||||
{
|
||||
"id": "752",
|
||||
"type": "OUTCODE",
|
||||
"displayName": "E17",
|
||||
"highlighting": "displayName",
|
||||
"highlights": []
|
||||
},
|
||||
...
|
||||
]
|
||||
}
|
||||
|
||||
We need to find the id of the object which has "type": "OUTCODE", and displayName matching the outcode we searched for, in this case E11, which is 746. Then we can hit the search endpoint with that id, and it will return the properties for that outcode:
|
||||
|
||||
https://www.rightmove.co.uk/api/property-search/listing/search?useLocationIdentifier=true&locationIdentifier=OUTCODE%5E746&buy=For+sale&_includeSSTC=on&index=0&sortType=2&channel=BUY&transactionType=BUY&displayLocationIdentifier=E12.html
|
||||
|
||||
You can see the example response to this at [[buy.json]]
|
||||
|
||||
You must set locationIdentifier=OUTCODE%5E{id} where id is 746 in this case, so it's 746 locationIdentifier=OUTCODE%5E746. Paging works by increasing index by the number of results per page, which is 24. So the next page would be index=24, then index=48, etc.
|
||||
|
||||
|
||||
The rental endpoint works similarly:
|
||||
|
||||
https://www.rightmove.co.uk/api/property-search/listing/search?locationIdentifier=OUTCODE%5E745&index=0&sortType=6&channel=RENT&transactionType=LETTING&displayLocationIdentifier=E16.html
|
||||
|
||||
https://www.rightmove.co.uk/api/property-search/listing/search?locationIdentifier=OUTCODE%5E752&index=48&sortType=6&channel=RENT&transactionType=LETTING&displayLocationIdentifier=E17.html
|
||||
|
||||
|
||||
See a response example for the rental endpoint at [[rent.json]]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue