Discover/Casas y Terrenos API
live

Casas y Terrenos APIcasasyterrenos.com

Search and retrieve Mexico real estate listings from casasyterrenos.com. Get property details, pricing, images, coordinates, and seller contacts via 2 endpoints.

Endpoint health
verified 3h ago
search_listings
get_listing_detail
1/2 passing latest checkself-healing
Endpoints
2
Updated
26d ago

What is the Casas y Terrenos API?

The casasyterrenos.com API provides access to real estate listings across all Mexican states through 2 endpoints. Use search_listings to filter properties by state, city, bedrooms, bathrooms, parking, and price, getting up to 40 results per page with summary data, then call get_listing_detail with the canonical slug to retrieve full property information including GPS coordinates, image gallery, amenities, and direct seller contact details.

Try it
Municipality/city name slug to filter within the state (e.g., 'monterrey', 'guadalajara', 'zapopan'). Hyphens are replaced with spaces and title-cased for matching.
Page number (0-indexed). Each page returns up to 40 results.
Sort order. Omitting sorts by featured listings first.
Mexican state name slug in lowercase hyphenated form (e.g., 'jalisco', 'nuevo-leon', 'ciudad-de-mexico', 'quintana-roo'). Corresponds to all 32 Mexican states.
Minimum number of parking spaces.
Minimum number of bedrooms.
Minimum number of bathrooms.
Maximum price in MXN. Filters on priceSale for venta, priceRent for renta.
Minimum price in MXN. Filters on priceSale for venta, priceRent for renta.
Operation type.
Property type slug.
api.parse.bot/scraper/be39d005-39e6-4654-b189-f96e0e6c94ce/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/be39d005-39e6-4654-b189-f96e0e6c94ce/search_listings?city=guadalajara&page=0&sort=price_asc&state=jalisco&parking=1&bedrooms=2&bathrooms=2&max_price=10000000&min_price=1000000&operation=venta&property_type=casa' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace casasyterrenos-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: CasasYTerrenos SDK — search Mexican real estate, drill into details."""
from parse_apis.casas_y_terrenos_api import (
    CasasYTerrenos, PropertyType, Operation, Sort, ListingNotFound
)

client = CasasYTerrenos()

# Search houses for sale in Jalisco, sorted by price ascending
jalisco = client.state("jalisco")
for listing in jalisco.search(
    city="guadalajara",
    property_type=PropertyType.CASA,
    operation=Operation.VENTA,
    sort=Sort.PRICE_ASC,
    bedrooms=3,
    limit=5,
):
    print(listing.name, listing.price_sale, listing.municipality)

# Drill into the first result for full detail (features, amenities, seller)
listing = jalisco.search(
    property_type=PropertyType.DEPARTAMENTO,
    operation=Operation.RENTA,
    limit=1,
).first()
if listing:
    detail = listing.details()
    print(detail.name, detail.selling_price)
    print(detail.features.rooms, detail.features.bathrooms, detail.features.parking)
    if detail.seller:
        print(detail.seller.first_name, detail.seller.email)

# Typed error handling: catch a missing listing
try:
    bad = client.state("quintana-roo").search(limit=1).first()
    if bad:
        bad.details()
except ListingNotFound as exc:
    print(f"Listing gone: {exc.slug_or_url}")

print("exercised: state.search / listing.details / ListingNotFound")
All endpoints · 2 totalmissing one? ·

Search for real estate listings (houses, apartments, land, etc.) by state, municipality, property type, and operation. Returns paginated results with up to 40 listings per page. Listings include summary info: price, size, rooms, broker contact, and a canonical slug for drill-down via get_listing_detail. Pagination is zero-based; sort defaults to featured listings first.

Input
ParamTypeDescription
citystringMunicipality/city name slug to filter within the state (e.g., 'monterrey', 'guadalajara', 'zapopan'). Hyphens are replaced with spaces and title-cased for matching.
pageintegerPage number (0-indexed). Each page returns up to 40 results.
sortstringSort order. Omitting sorts by featured listings first.
staterequiredstringMexican state name slug in lowercase hyphenated form (e.g., 'jalisco', 'nuevo-leon', 'ciudad-de-mexico', 'quintana-roo'). Corresponds to all 32 Mexican states.
parkingintegerMinimum number of parking spaces.
bedroomsintegerMinimum number of bedrooms.
bathroomsintegerMinimum number of bathrooms.
max_priceintegerMaximum price in MXN. Filters on priceSale for venta, priceRent for renta.
min_priceintegerMinimum price in MXN. Filters on priceSale for venta, priceRent for renta.
operationstringOperation type.
property_typestringProperty type slug.
Response
{
  "type": "object",
  "fields": {
    "page": "integer, current page number",
    "limit": "integer, max results per page (40)",
    "total": "integer, estimated total number of matching listings",
    "properties": "array of property listing objects with id, name, state, municipality, neighborhood, type, surface, construction, rooms, bathrooms, parkingLots, currency, priceSale, priceRent, photoPreview, canonical, slugs, images, broker, lastUpdate"
  }
}

About the Casas y Terrenos API

What the API Returns

The search_listings endpoint accepts a required state parameter as a lowercase hyphenated slug (e.g., nuevo-leon, ciudad-de-mexico) and optional filters for city, bedrooms, bathrooms, parking, and max_price. Results are 0-indexed via the page parameter and return up to 40 listings per page. Each listing in the properties array includes the property id, name, state, municipality, neighborhood, type, surface area, construction area, room count, bathroom count, and a canonical field used to fetch full details.

Listing Detail

Passing the canonical slug from search results to get_listing_detail returns the complete property record. The response includes coords (lat/lng), an images array with original URLs and alt text, a features object covering age, area, construction, bathrooms, halfBathrooms, levels, parking, and rooms, and a seller object with id, name, email, phone, and whatsapp. A contactCard object provides business-level contact info including business_name and phones, and description returns the full HTML property description.

Coverage and Filtering

Listings span residential, commercial, and land categories across Mexican states. Price filtering works against priceSale for sale listings and priceRent for rental listings depending on the operation type. The sort parameter controls ordering; omitting it returns featured listings first. The total field in search results reflects an estimated count of matches, which is useful for building pagination controls.

Reliability & maintenanceVerified

The Casas y Terrenos API is a managed, monitored endpoint for casasyterrenos.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when casasyterrenos.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official casasyterrenos.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
3h ago
Latest check
1/2 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a Mexico property search portal filtering by state, city, and bedroom count using search_listings
  • Aggregate asking prices across municipalities to analyze real estate market trends by region
  • Display property location on a map using coords lat/lng from get_listing_detail
  • Extract seller whatsapp and phone fields to build a lead generation tool for real estate agents
  • Compare surface area and construction area across listings in a given neighborhood
  • Compile image galleries for listings by iterating the images array from detail responses
  • Track available inventory by page-walking search_listings and monitoring the total count over time
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does casasyterrenos.com have an official developer API?+
No public developer API is documented or available on casasyterrenos.com. The Parse API is the available programmatic way to access this listing data.
What does `search_listings` return versus `get_listing_detail`?+
The search_listings endpoint returns summary data — price, size, room count, municipality, and a canonical slug — for up to 40 listings per page. The get_listing_detail endpoint takes that slug and returns the full record: GPS coordinates, all images, the HTML description, detailed features (levels, half-bathrooms, parking), and seller/business contact fields not present in search results.
Does the API cover rental listings as well as properties for sale?+
Yes. The max_price filter applies against priceSale for sale listings and priceRent for rental listings, so both operation types are accessible. The operation type is part of how you construct your query.
Is historical pricing or price-change history available?+
Not currently. The API returns the current listed price per property; no historical price timeline or change log is exposed. You can fork this API on Parse and revise it to add an endpoint that records and compares price snapshots over time.
What are the pagination limits and how is the total count reported?+
Each search_listings response returns at most 40 results per page. The page parameter is 0-indexed, and the total field gives an estimated total match count. Note that total is an estimate from the source and may not be exact for very large result sets.
Page content last updated . Spec covers 2 endpoints from casasyterrenos.com.
Related APIs in Real EstateSee all →
propiedades.com API
Search and browse real estate listings from Mexico's Propiedades.com, view detailed property information including images and descriptions, and use location autocomplete to find homes in your desired area. Access comprehensive listing data to compare properties and make informed real estate decisions.
inmuebles24.com API
Search and browse real estate listings from inmuebles24.com, Mexico's leading property portal. Filter by property type, operation type, and location, with pagination support to explore available rentals and sales across regions and property categories.
properati.com.ar API
Search and browse real estate listings in Argentina with detailed property information, including descriptions, prices, and similar properties. Filter listings by property type and operation type (buy, rent, etc.) to find exactly what you're looking for.
encuentra24.com API
Browse Encuentra24 real estate listings by region and property category, and retrieve full details for individual listings including price, attributes, description, photos, and seller contact info.
inmuebles.mercadolibre.com.ar API
Search and browse apartment listings on Mercado Libre Argentina with detailed information including prices, addresses, and full descriptions. Get access to paginated results to easily explore available properties across different areas.
portalinmobiliario.com API
Search and analyze property listings from Chile's top real estate platform, accessing detailed information like prices in UF or CLP, room and bathroom counts, square footage, and locations for apartments, houses, and other properties. Quickly compare available properties and gather market data to find your ideal home or investment opportunity.
casa.it API
Search and browse property listings from Casa.it, Italy's real estate marketplace. Retrieve listings by location, price, size, property type, and transaction type (sale or rent), and fetch full details for individual properties including descriptions, photos, features, and publisher information.
realtor.ca API
Search Canadian real estate listings and retrieve detailed property information including photos, prices, descriptions, and agent details from REALTOR.ca. Browse available properties with comprehensive listing data across Canada.