You need the rental listings shown on a particular real estate agent’s Zillow profile, not a general search for homes in a city. By the end of this guide, you can find an agent identifier, call the rental endpoint, and distinguish its results from the API’s for-sale search example.
How agent rental listings work
Real-Time Zillow Data API includes an Agent Properties For Rent endpoint that returns rental listings shown on an agent’s Zillow profile, with five listings per page. It takes an encodedZuid identifier, so your integration needs to identify the agent before requesting that agent’s rentals.
Agent Search can help with that first step. It searches for agents by location and can return profiles with review ratings, sales data, brokerage information, and the encodedZuid used by the agent listing endpoints.
This workflow suits an agent-profile page, a rental discovery tool, or an internal dashboard that starts with an agent and displays the rentals associated with that profile. The result is scoped to the agent’s profile; it should not be treated as a complete inventory of rentals in a city.
Getting started on Zyla API Hub
Open the Real-Time Zillow Data API marketplace page on Zyla API Hub. Click Subscribe or Start Free Trial when available, then get an API key and use it in the Authorization: Bearer YOUR_API_KEY header.
Zyla uses a subscription and quota model rather than pay-per-call billing. The first API offers a 7-day trial or 50 requests; check the API page for current access options and pricing.
Endpoints for the agent workflow
Agent Properties For Rent
Use this endpoint when you already have the agent’s encodedZuid. It returns the rental listings shown on that agent’s Zillow profile, five per page.
Method: GET
Request URL: https://zylalabs.com/api/7341/real-time-zillow-data-api/42097/agent-properties-for-rent
Required parameter: encodedZuid, a string. The example identifier is X1-ZU12j0quxoelgjt_uwi3.
The Python example below calls this endpoint with that identifier. Replace it with the identifier for the agent whose profile you need.
Agent Search
Use Agent Search to find an agent before requesting their listings. It searches by location and can optionally search by name; returned profiles include an encodedZuid that can be used with the agent listing endpoints.
Method: GET
Request URL: https://zylalabs.com/api/7341/real-time-zillow-data-api/41037/agent-search
Required parameter: location, a string. An example value is new-york-ny.
Keep the identifier associated with the agent selected by your user. Pass that identifier to Agent Properties For Rent rather than using a location as a substitute.
Agent Properties For Sale
This endpoint is the corresponding option for listings shown for sale on an agent’s Zillow profile. Like the rental endpoint, it returns five listings per page.
Method: GET
Request URL: https://zylalabs.com/api/7341/real-time-zillow-data-api/42098/agent-properties-for-sale
Required parameter: encodedZuid, a string. The example identifier is X1-ZUxs6j84n4ak95_3mmvm.
Choose the rental or sale endpoint according to the inventory your application needs. An agent identifier is the input to both; a general property search is a different operation.
Make requests and inspect the results
The following Python sample calls Agent Properties For Rent and prints the decoded response without assuming rental-specific field names. It also calls the general Search endpoint from the official example and reads the status and data fields shown in that example.
Replace YOUR_API_KEY before running it. The sample uses Python’s standard library and sends the same bearer header to each endpoint.
import json
from urllib.request import Request, urlopen
api_key = "YOUR_API_KEY"
rental_url = (
"https://zylalabs.com/api/7341/real-time-zillow-data-api/"
"42097/agent-properties-for-rent"
"?encodedZuid=X1-ZU12j0quxoelgjt_uwi3"
)
search_url = (
"https://zylalabs.com/api/7341/real-time-zillow-data-api/"
"11667/search?location=Los+Angeles%2C+CA&page=2&home_status=FOR_SALE"
)
def get_json(url):
request = Request(
url,
headers={"Authorization": "Bearer " + api_key},
method="GET",
)
with urlopen(request) as response:
return json.load(response)
rentals = get_json(rental_url)
print("Agent rental response:")
print(json.dumps(rentals, indent=2))
search = get_json(search_url)
print("General search status:", search.get("status"))
print("General search data:", search.get("data"))
Inspect the rental response before mapping it into your application. In particular, do not assume that the field names in the general Search example below are also the rental endpoint’s response fields.
Official general Search example
The official example below is a general search for properties for sale in Los Angeles. It is useful for seeing the published Search response, but it is not an Agent Properties For Rent response.
Method: GET
Request URL: https://zylalabs.com/api/7341/real-time-zillow-data-api/11667/search
curl -s -X GET "https://zylalabs.com/api/7341/real-time-zillow-data-api/11667/search?location=Los+Angeles%2C+CA&page=2&home_status=FOR_SALE" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"status": "OK",
"request_id": "dbf09d77-22dd-44c1-8145-2a9c55ace291",
"parameters": {
"page": 2,
"home_status": "FOR_SALE",
"sort": "DEFAULT",
"listing_type": "BY_AGENT",
"location": "Los Angeles, CA"
},
"data": [
{
"zpid": "20031815",
"homeStatus": "FOR_SALE",
"detailUrl": "https://www.zillow.com/homedetails/3280-Fryman-Rd-Studio-City-CA-91604/20031815_zpid/",
"address": "3280 Fryman Rd, Studio City, CA 91604",
"streetAddress": "3280 Fryman Rd",
"city": "Studio City",
"state": "CA",
"country": "USA",
"zipcode": "91604",
"latitude": 34.130352,
"longitude": -118.391685,
"homeType": "SINGLE_FAMILY",
"price": 10250000,
"currency": "USD",
"taxAssessedValue": 5839481,
"lotAreaValue": 1.1106,
"lotAreaUnit": "acres",
"bathrooms": 8,
"bedrooms": 7,
"livingArea": 6456,
"daysOnZillow": 12,
"isFeatured": false,
"isPreforeclosureAuction": false,
"timeOnZillow": 1101058000,
"isNonOwnerOccupied": true,
"isPremierBuilder": false,
"isZillowOwned": false,
"isShowcaseListing": false,
"listingSubType": {
"is_FSBA": true
},
"palsId": "17327010_26106083",
"id": "20031815",
"rawHomeStatusCd": "ForSale",
"marketingStatusSimplifiedCd": "For Sale by Agent",
"imgSrc": "https://photos.zillowstatic.com/fp/06f842493b871cd327201c05953e4ef7-p_e.jpg",
"hasImage": true,
"statusType": "FOR_SALE",
"statusText": "House for sale",
"countryCurrency": "$",
"unformattedPrice": 10250000,
"addressStreet": "3280 Fryman Rd",
"addressCity": "Studio City",
"addressState": "CA",
"addressZipcode": "91604",
"isUndisclosedAddress": false,
"shouldShowRequestOnPrice": false,
"beds": 7,
"baths": 8,
"area": 6456,
"latLong": {
"latitude": 34.130352,
"longitude": -118.391685
},
"flexFieldText": "12 days on Zillow",
"contentType": "daysOnZillow",
"hdpData": {…
This excerpt stops mid-object. In the portion shown, status describes the Search result, parameters records the search settings, and data contains property information. The example property includes an address, price, currency, bedrooms and bathrooms; its lotAreaUnit is acres.
Handling agent results in an application
For an agent directory, make the agent selection explicit before loading rentals. Agent Search returns profile information that can help a user distinguish agents, while encodedZuid connects the selected profile to the rental request.
For a profile page, keep rental and for-sale results separate so that a user looking for a rental is not shown a sale listing as a rental. Both agent listing endpoints return five listings per page. Check the API page for how to navigate additional results before building pagination controls.
In an internal dashboard, retain the selected agent identifier alongside the response so that a refresh is associated with the correct profile. Because calls consume the subscription quota, decide when the dashboard should refresh rather than making an additional request every time a user redraws the same view.
Call the API from an AI agent
Zyla API Hub also makes its APIs available through an MCP endpoint for Claude Code, Cursor, Windsurf, and other MCP-compatible clients. Configure your client with MCP, using the connection URL https://mcp.zylalabs.com/mcp?apikey=YOUR_API_KEY.
A useful agent task is to find an agent by location, identify the selected profile’s encodedZuid, and request that agent’s rental listings. Keep the distinction between the rental and for-sale endpoints in the task: the two answer different questions.
FAQ
How do I get an agent’s rental listings?
Call Agent Properties For Rent with the agent’s encodedZuid. The endpoint returns rental listings shown on that agent’s Zillow profile, five per page.
Where do I find the agent identifier?
Agent Search accepts a location and returns agent profiles that include an encodedZuid. Use the identifier for the agent whose listings you want.
Can I use the same identifier for an agent’s sale listings?
Yes. Agent Properties For Sale also takes encodedZuid, but returns listings shown for sale rather than rentals.
Does the general Search example show the rental response?
No. The official example is a general search for properties for sale. Inspect the response from Agent Properties For Rent separately before selecting fields for your rental interface.
How do I start?
Create a free Zyla API Hub account, get an API key, and Start 7-day trial on Real-Time Zillow Data API. Check the listing for current access options and pricing before integrating it into your application.