Listings
Search by Agent / Office
Searches active and sold listings for a specific agent (the caller by default), their office, or a set of MLS listing IDs.
Notes:
- limit must be in (0, 1000]; otherwise 400 LISTING_LIMIT_NOT_VALID.
- listingId and soldListingId cannot be supplied together; doing so returns an error envelope on HTTP 200.
- At least one of agentListings, officeListings, listingId, soldListingId, mlsListingIds, buildingName, or buildingAddress must identify the search target.
- When userId differs from the caller, caller must have MANAGE_TEAM_AGENT permission.
GET
/
v1.0
/
listing
Search by Agent / Office
curl --request GET \
--url https://api.lofty.com/v1.0/listing \
--header 'Authorization: <authorization>'import requests
url = "https://api.lofty.com/v1.0/listing"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lofty.com/v1.0/listing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lofty.com/v1.0/listing",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lofty.com/v1.0/listing"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lofty.com/v1.0/listing")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/listing")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"listIng": {},
"soldListing": {},
"get_listingMetadata": {
"collection": "<string>",
"limit": 123,
"total": 123,
"activeTotal": 123,
"soldTotal": 123,
"nextPageKey": "<string>",
"soldNextPageKey": "<string>"
}
}"<string>""<string>""<string>""<string>""<string>"Headers
Bearer [access_token]
Query Parameters
Response
Search result envelope with active listings, sold listings, and listing metadata.
Response for GET /v1.0/listing. Carries active-listing results, sold-listing results, and pagination / total metadata.
Active listings matching the search. Structure is a listing hub payload; fields depend on the listing source.
Sold listings matching the search. Same structure as listIng.
Listing search metadata: totals, pagination cursors, and filter echo.
Show child attributes
Show child attributes
⌘I
Search by Agent / Office
curl --request GET \
--url https://api.lofty.com/v1.0/listing \
--header 'Authorization: <authorization>'import requests
url = "https://api.lofty.com/v1.0/listing"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lofty.com/v1.0/listing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lofty.com/v1.0/listing",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lofty.com/v1.0/listing"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lofty.com/v1.0/listing")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/listing")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"listIng": {},
"soldListing": {},
"get_listingMetadata": {
"collection": "<string>",
"limit": 123,
"total": 123,
"activeTotal": 123,
"soldTotal": 123,
"nextPageKey": "<string>",
"soldNextPageKey": "<string>"
}
}"<string>""<string>""<string>""<string>""<string>"