weknowinc/latam-real-estate-listings
HF LatAm Real Estate Dataset (v4)
Export of listed real-estate properties from Costa Rica and Panama for Hugging Face consumption (NLP, modeling, search, recommendation, price prediction, etc.).
- Sources: OpenSearch
properties(CR) andpa_properties(PA) indices - Filters: status=
listed,listing_date<= cutoff (default ~5 months old), must have price + (built or fallback) area - Rows: one row per (property, operation) side.
sale_and_rentalexpands to two rows with:venta/:alquilersuffixes inrecord_id. - record_id format:
{CR|PA}:{firestore_id}:{venta|alquiler} - Language: Spanish-first — descriptions, labels, operation types, and property types are in Spanish.
place_kinduses language-neutral snakecase machine codes. No English label columns (`placekindlabelen`, etc.) to avoid Spanglish.
Place classification (place_kind)
Each row includes a standardized place type describing the kind of development or building context (e.g. vertical condominium, horizontal PH, office center, commercial plaza). This replaces legacy generic labels and is the primary field for grouping or featurizing listings by development type.
Exported fields:
Every row has a non-null place_kind valid for its country (CR or PA). When a listing has no explicit classification, the country default is applied (condominio_horizontal for CR, ph_horizontal for PA).
CR allowed values: condominio_horizontal, condominio_vertical, condominio_mixto, oficentro, parque_empresarial, zona_franca, plaza_comercial, ofibodega
PA allowed values: ph_vertical, ph_horizontal, ph_mixto, ph_comercial, edificio_de_oficinas, parque_corporativo, zona_libre, plaza_comercial
All columns
record_idcountryadmin_level_1,admin_level_2,admin_level_3place_kind,place_kind_label_es,place_kind_categoriahuman_verifiedproperty_type,property_subtypeoperation_type(venta|alquiler)price,currency,price_usd,price_per_m2_usdbuilt_area_m2,lot_area_m2bedrooms,bathrooms,parking_spaces,construction_yearconditionamenities,features(arrays, may be empty)description_mdlisting_month
Other column notes
admin_level_*: geographic admin names (province / canton or district / district or corregimiento).property_type/property_subtype: canonical Spanish housing types (e.g.apartamento,casa).human_verified:Truewhen the listing was touched in backoffice (admin_updatedon source).
Validation at export time
- Exact column set and order (
HF_COLUMNS) - No duplicate
record_id - Valid
operation_typeandcountry - Every row: non-null
place_kind+place_kind_label_es, validated per country viaapp/utils/geo_config.py
Generation
python scripts/export_hf_latam_dataset.py --dry-run --limit 200
python scripts/export_hf_latam_dataset.py --output-dir output/hf_latam_v4
python scripts/export_hf_latam_dataset.py --output-dir output/hf_latam_v4 --jsonl
python scripts/check_hf_latam_export.py --parquet output/hf_latam_v4/train.parquetAlso writes export_stats.json alongside this README.
Stats from this run
- Run date: 2026-06-19
- Cutoff month: 2026-01
- Output rows: 10420
- By country: {'Costa Rica': 8979, 'Panama': 1441}
- By operation: {'venta': 8486, 'alquiler': 1934}
- By placekind: {'condominiohorizontal': 7716, 'condominiovertical': 1261, 'oficentro': 2, 'phhorizontal': 1417, 'ph_vertical': 24}
See export_stats.json for skips, null rates, and sample record IDs.
License / usage
Intended for research and model training. Verify license of original listings before redistribution.
