SERP API
Zumper
Send the API key in the X-API-Key header, or as the api_key query parameter (Authentication). Zumper searches can also run as async tasks with pingback_url.
Parameters
| Field | Type | Description |
|---|---|---|
engine | string | required Set it to zumper.Values:zumper |
q | string | required The US city: city and state (New York, NY or San Francisco, California) or a Zumper city slug (new-york-ny). Up to 120 characters. location works too. Or send url instead.Example: New York, NY |
url | string | optional A Zumper search page instead of q: the city, the type and the filters (beds, price) are read from it. It wins over q; type, bedrooms, min_price and max_price win over the page's own. A building page answers 400 invalid_url (use type=building).Example: https://www.zumper.com/apartments-for-rent/long-beach-ca/1-beds/under-2000 |
type | string | optional What to rent. Any other value answers 400 invalid_type.Values:apartmentshousesroomscondosDefault: apartments |
page | integer | optional The page of listings, from 1 to 100. Each page has up to 50; search_information.total_pages says how many there are.Default: 1 |
num_pages | integer | optional How many pages to fetch in this call, from 1 to 10, starting at page. Each page fetched costs one credit; page + num_pages - 1 can be at most 100.Default: 1 |
maxResults | integer | optional How many listings to return, from 1 to 500, instead of num_pages: the pages follow from it (50 a page, one credit each), so maxResults=100 is 2 credits. With full_details only these listings are read. max_results works too.Default: 50Example: 10 |
full_details | boolean | optional true: every listing comes back with its building in full (below). One more credit a listing; num_pages 1 to 5, or maxResults.Values:truefalseDefault: false |
bedrooms | string | optional Only these bedroom counts, separated by commas: 0 (studio) to 10.Example: 1,2 |
min_price | integer | optional The lowest monthly rent, in whole US dollars (0 to 1,000,000).Example: 1500 |
max_price | integer | optional The highest monthly rent, in whole US dollars (0 to 1,000,000), not below min_price.Example: 3500 |
response_type | string | optional json: the listings. html: Zumper's raw answer for the fetched pages as text in html, without listings. both: the listings and html.Values:jsonhtmlbothDefault: json |
pingback_url | string | optional Queue the search and get the answer later; see Async tasks. |
Several pages in one call
num_pages) starting at page, 50 listings each. If Zumper stops partway (a captcha), you get the pages before it and pay only for those: search_information.pages_fetched says how many.What comes back
| Field | Type | Description |
|---|---|---|
search_metadata | object | About this request. |
id | string | A unique id for the search. |
status | string | Success when Zumper answered. |
created_at | string | When the search ran, in ISO 8601 (UTC). |
pages | integer | Pages fetched in this call. |
credits_charged | integer | Credits this request cost: one per page fetched. |
task_id | string | Only for async tasks: the task the result belongs to. |
search_parameters | object | What the search used: engine, q, type, page, num_pages (when above 1), the filters you sent and response_type. |
search_information | object | About the listings. |
total_results | integer | How many listings match the place and filters. |
page, per_page, total_pages | integer | This page, listings a page (50) and the pages you can ask for (up to 100). |
pages_fetched | integer | Pages this call fetched (fewer than num_pages when the site stopped partway). |
results_on_page | integer | How many listings this answer has (all fetched pages). |
location_slug | string | The Zumper city the place was read as, like new-york-ny. |
listings | array | The listings, each with position (1, 2, 3... counted across pages, so page 2 starts at 51) and the fields below. |
listing_id, building_id | integer | Zumper's ids for the listing and its building (building_id is null for a single home). |
url | string | The listing on Zumper. |
title, building_name | string | The unit or listing title, and the building's name. |
street_address, city, state, zipcode, neighborhood | string | Where it is: the street address, city, two-letter state, ZIP code and neighborhood. |
latitude, longitude | number | The map point. |
min_price, max_price, previous_price, currency | integer / string | The monthly rent range in US dollars, the earlier rent when it changed (often null) and the currency, always USD. |
min_bedrooms, max_bedrooms, min_bathrooms, max_bathrooms | integer | The bedroom and bathroom range of the units. 0 bedrooms is a studio. |
date_available | string / null | The move-in date (YYYY-MM-DD), when the listing gives one. |
listed_on, created_on, modified_on | integer | When the listing was listed, created and last changed, as Unix timestamps in seconds. |
agent_name, brokerage_name, phone | string | Who rents it out and their phone number, when listed. |
amenities, building_amenities, pets | array | The unit's and the building's amenities, and the pets allowed (empty means none listed). |
image_count, image_ids | integer / array | How many photos there are, and the ids of the first five. |
property_type, listing_type, lease_type | integer | Zumper's own type codes for the property, the listing and the lease. |
floorplan_count, min_lease_days, max_lease_days | integer / null | How many floor plans there are, and the shortest and longest lease in days, when listed. |
is_featured, is_messageable, has_fees | boolean | Whether Zumper features the listing, the agent can be messaged on Zumper, and there are broker fees. |
rating | number | Zumper's rating of the listing, from 0 to 10. |
padmapper_url, min_sqft, max_sqft, unit_count, external_rating | null | In Zumper's data, but empty today. |
html | string | response_type html or both: Zumper's raw answer for the fetched pages, as text. |
The second page of 1 and 2 bedroom houses under $3,000
curl -G "https://api.scraperdata.com/v1/search" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "engine=zumper" \
--data-urlencode "q=Austin, TX" \
--data-urlencode "type=houses" \
--data-urlencode "bedrooms=1,2" \
--data-urlencode "max_price=3000" \
--data-urlencode "page=2"Search by a Zumper page
curl -G "https://api.scraperdata.com/v1/search" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "engine=zumper" \
--data-urlencode "url=https://www.zumper.com/apartments-for-rent/long-beach-ca/1-beds/under-2000"Every listing in full
Add full_details=true to a search and each listing also gets its building's detail: description, every floorplan with its own price and date, photos and tours, leasing agents, office hours, fees, deposits and pet policy. Where both have a field, the listing's own value stays (so position, rating and the address are the search's). detail_availableis false when a building could not be read in time: that listing stays short and costs nothing.
| Field | Type | Description |
|---|---|---|
search_information.details_fetched | integer | Listings that came back in full (one credit each). |
search_information.details_missing | integer | Listings that stayed short (free). |
listings[].detail_available | boolean | true when this listing came back in full. |
default (50 listings, short) | 1 credit | One page. |
maxResults=10, full_details=true | up to 11 | 1 page + 10 listings in full. |
maxResults=100, full_details=true | up to 102 | 2 pages + 100 listings in full. |
curl -G "https://api.scraperdata.com/v1/search" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "engine=zumper" \
--data-urlencode "q=Long Beach, CA" \
--data-urlencode "maxResults=10" \
--data-urlencode "full_details=true"One building in full
With type=building the same endpoint reads one building by the building_id every listing carries. The number in a Zumper page URL (like p990258) is a different id, so a URL is refused.
| Field | Type | Description |
|---|---|---|
type | string | required Set it to building.Values:building |
building_id | integer | required The building_id from a listing of a search.Example: 1483460 |
response_type | string | optional json: the building. html: Zumper's raw answer in html. both: the building and html.Values:jsonhtmlbothDefault: json |
| Field | Type | Description |
|---|---|---|
search_parameters | object | engine, type (building) and building_id. |
building_results | object | The building, with the fields below. |
building_id, name, url | integer / string | Zumper's id for the building, its name and its page path. |
description, short_description | string | The building's own description, long and short. |
street_address, formatted_address, city, state, zipcode, country, neighborhood | string | Where the building is. |
latitude, longitude | number | The building on the map. |
year_built, year_remodeled, total_units, floors | integer / null | When it was built and remodeled, how many units and floors. |
min_price | integer | The lowest monthly rent in US dollars. |
phone, agent_name, brokerage_name, homepage, airbnb_url, feed_name | string / null | Who to call, the property's website and where the listing comes from. |
amenity_tags, pets, pet_policy | array | Building amenities, allowed pets (1 cat, 2 dog, 3 other) and the pet rules. |
fees, deposits, has_fees | array / boolean | Application and admin fees, and security deposits. |
hours | array | Office hours per day, like ["mon", "9:30 am", "6:30 pm"]. |
parking, income_restrictions | object / null | Parking and income restriction details, when there are some. |
lease_type, min_lease_days, max_lease_days, building_status, is_messageable | integer / null / boolean | Lease terms and whether the agent takes messages. |
floorplans, floorplan_count | array / integer | Each unit: listing_id, title, bedrooms, bathrooms, half_bathrooms, square_feet, min_price, max_price, date_available, listing_status, amenity_tags and url. |
media, media_count | array / integer | Photos and virtual tours: media_id, media_type (image or virtual_tour), origin_url and name. |
agents | array | Leasing agents: user_id, name, email, phone and logo_url. |
curl -G "https://api.scraperdata.com/v1/search" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "engine=zumper" \
--data-urlencode "type=building" \
--data-urlencode "building_id=1483460"Errors
Errors never cost credits. Every error code is on the Errors page; these are the Zumper ones:
| Field | Type | Description |
|---|---|---|
missing_query, invalid_query | 400 | No q, or one longer than 120 characters. |
invalid_type | 400 | type is not apartments, houses, rooms or condos. |
invalid_page | 400 | page is not a whole number from 1 to 100. |
invalid_num_pages | 400 | num_pages is not 1 to 10 (1 to 5 with full_details), or page + num_pages - 1 goes past page 100. |
invalid_max_results | 400 | maxResults is not 1 to 500, was sent with num_pages, or goes past page 100 from page. |
invalid_full_details | 400 | full_details=true with response_type=html: send json or both. |
invalid_url | 400 | url is not a Zumper search page, or it is a building page (use type=building with its building_id). |
missing_building, invalid_building_id | 400 | type=building without a building_id, or one that is not a whole number. |
invalid_bedrooms, invalid_price | 400 | bedrooms is not 0 to 10 separated by commas, or a price is not 0 to 1,000,000 or min_price is above max_price. |
invalid_filter | 400 | Zumper did not accept a filter; the message says which. |
invalid_response_type | 400 | response_type is not json, html or both. |
no_results | 404 | Zumper has no listings for this place and these filters (or does not know the place). Check the city and state. |
upstream_error, upstream_unavailable, upstream_timeout | 502 / 503 / 504 | Zumper could not be reached in time. Retry in a few seconds. |
{
"error": {
"code": "invalid_price",
"message": "min_price must not be higher than max_price."
},
"charged": false
}Credits
type=building is 1 credit. Use maxResults to control cost. A page past the last one is an ordinary answer with no listings. Failed searches, places with no listings and buildings that are not found are free.