Discover/Urbania API
live

Urbania APIurbania.pe

Search Peru real estate listings, get location suggestions, and retrieve full property details including prices, features, and images via the Urbania.pe API.

Endpoint health
verified 4d ago
get_location_suggestions
search_listings
get_listing_detail
3/3 passing latest checkself-healing
Endpoints
3
Updated
26d ago

What is the Urbania API?

The Urbania.pe API exposes 3 endpoints for accessing Peru's real estate market: search listings with price and area filters, resolve location IDs for districts like Miraflores or San Isidro, and retrieve full property detail records containing up to 10 structured response fields including amenities, coordinates, images, and multi-currency pricing. The get_listing_detail endpoint returns everything needed to display a complete property profile.

Try it
Max number of suggestions to return.
The location name to search for (e.g., 'Lima', 'Miraflores', 'San Isidro').
api.parse.bot/scraper/674ae4c8-a300-4438-80a7-ef1b86db7513/<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/674ae4c8-a300-4438-80a7-ef1b86db7513/get_location_suggestions?limit=5&query=Lima' \
  -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 urbania-pe-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.

from parse_apis.urbania_pe_api import Urbania, Sort, PropertyType, OperationType, Currency

urbania = Urbania()

# Search for locations matching "Miraflores"
for location in urbania.locations.search(query="Miraflores"):
    print(location.id, location.name, location.label_suggest)

# Construct a known location and search its listings
miraflores = urbania.location(id="V1-D-51119497")
for listing in miraflores.listings.search(
    sort=Sort.PRICE_ASC,
    property_type=PropertyType.DEPARTAMENTO,
    operation_type=OperationType.ALQUILER,
    currency_id=Currency.SOLES,
    bedrooms_min=2,
):
    print(listing.title, listing.address)
    for price in listing.prices:
        print(price.currency, price.amount, price.formatted)

# Get full details from a summary
detail = listing.details()
print(detail.title, detail.publication_date, detail.amenities)
All endpoints · 3 totalmissing one? ·

Search for location suggestions by name. Returns matching locations with their IDs and labels. Use the returned location_id in search_listings to scope results geographically. Each result includes a hierarchical label (district, city, department).

Input
ParamTypeDescription
limitintegerMax number of suggestions to return.
queryrequiredstringThe location name to search for (e.g., 'Lima', 'Miraflores', 'San Isidro').
Response
{
  "type": "object",
  "fields": {
    "items": "array of location suggestion objects with id, name, label, labelSuggest, and tokens"
  },
  "sample": {
    "data": {
      "items": [
        {
          "id": "V1-D-51119497",
          "name": "Miraflores",
          "label": "barrio",
          "tokens": [
            "lima",
            "miraflores"
          ],
          "labelSuggest": "Miraflores, Lima, Lima"
        }
      ]
    },
    "status": "success"
  }
}

About the Urbania API

What the API covers

The Urbania.pe API gives programmatic access to property listings on urbania.pe, one of Peru's primary real estate portals. It covers three operations: resolving location names to IDs, searching listings with filters, and fetching full detail records for individual properties. Data spans residential and commercial listings across Peru's districts, cities, and departments.

Location resolution and search

get_location_suggestions accepts a query string (e.g. 'Lima', 'Miraflores') and returns matching location objects including id, name, label, labelSuggest, and tokens. The id from this response feeds directly into search_listings to scope results geographically. search_listings supports filters for price_min, price_max, area_min, area_max, currency_id, and keyword query. Results are paginated; the response includes page, total_pages, and a formatted total count alongside an items array of listing summaries.

Listing detail fields

get_listing_detail accepts a listing_id obtained from search_listings and returns a complete record: title, url, address, expenses, images (array of URLs), prices (array with operation, currency, amount, and formatted per price entry), a features object covering total_area, covered_area, bedrooms, bathrooms, parking, and antiquity, a location object with district, city, and coordinates, and an amenities array of string descriptors.

Pagination and sorting

search_listings paginates via the page integer parameter. The total_pages field in each response indicates how many pages exist for a given query. An optional sort parameter controls result ordering. There is no cursor-based pagination; all navigation is by page number.

Reliability & maintenanceVerified

The Urbania API is a managed, monitored endpoint for urbania.pe — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when urbania.pe 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 urbania.pe 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
4d ago
Latest check
3/3 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
  • Aggregate Lima property listings by district using location IDs from get_location_suggestions
  • Build a price-per-square-meter calculator using area and price fields from search_listings results
  • Sync a property database nightly by paginating through all pages of search_listings
  • Display full property profiles including amenities, images, and coordinates from get_listing_detail
  • Compare sale vs. rental prices for the same property using the prices array in get_listing_detail
  • Filter properties by covered_area and bedroom count for a buyer-matching application
  • Geocode property locations using the coordinates returned in the location object
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 Urbania.pe have an official developer API?+
Urbania.pe does not publish a documented public developer API. There is no official API portal or published developer documentation available from the site.
What does get_listing_detail return beyond what search_listings provides?+
search_listings returns summary objects suitable for list views. get_listing_detail adds the full description, the complete images array, the amenities list, monthly expenses, antiquity, and the precise coordinates within the location object — fields not included in search result summaries.
Does the search_listings endpoint support filtering by property type or number of bedrooms?+
The current search_listings inputs cover price range, area range, currency, keyword query, sort order, and page number. Filtering by property type or bedroom count is not currently exposed as search parameters. The features object (including bedrooms) is available in get_listing_detail responses. You can fork this API on Parse and revise it to add property type or bedroom filters as search inputs.
How does pagination work, and is there a limit on how many pages can be retrieved?+
search_listings uses integer page numbers. The response includes total_pages, which tells you the last valid page for a given query. There is no cursor or token; increment the page parameter to advance through results.
Does the API cover new-development projects or only resale/rental listings?+
The API returns listings as they appear on urbania.pe, which includes both resale and rental properties. Structured project-level data for new developments (e.g. developer info, unit availability tables, floor plans) is not currently a dedicated endpoint. You can fork this API on Parse and revise it to add a new-developments endpoint if that data is available on the site.
Page content last updated . Spec covers 3 endpoints from urbania.pe.
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.
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.
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.
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.
privateproperty.co.za API
Search and browse property listings for sale and rent across South Africa by location, price, features, and size, then view detailed information about specific properties. Get location suggestions to help narrow down your search area.
zonaprop.com.ar API
Search and retrieve property listings from Zonaprop, Argentina's leading real estate portal. Filter by operation type, property category, and location, then fetch full details for any listing.
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.
pararius.com API
Search and browse rental property listings on Pararius.com. Filter by city, price, size, and furnishing; retrieve full property details; look up listings by estate agent; and autocomplete location queries.