Download the PHP package trackstone/immo-data-php-sdk without Composer
On this page you can find all versions of the php package trackstone/immo-data-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download trackstone/immo-data-php-sdk
More information about trackstone/immo-data-php-sdk
Files in trackstone/immo-data-php-sdk
Package immo-data-php-sdk
Short Description PHP SDK for the Immo Data French real estate API
License MIT
Homepage https://github.com/trackstone/immo-data-php-sdk
Informations about the package immo-data-php-sdk
Immo Data PHP SDK
A PHP SDK for the Immo Data API — French real estate data including property valuation, geocoding, geographic boundaries, and market prices.
Requirements
- PHP 8.3+
- Guzzle 7.5+
Installation
Quick Start
Configuration
Resources
The client exposes the following resources:
| Resource | Method | Description |
|---|---|---|
valuation() |
estimate() |
Property price estimation |
geocode() |
search() |
Location search / autocomplete |
geo() |
region(), department(), city(), district(), subdistrict() |
Geographic data and boundaries |
market() |
priceHistory(), currentPrice(), saleDurationHistory(), currentSaleDuration() |
Market price and sale-duration data |
transactions() |
search() |
Real estate transactions (DVF) |
dpe() |
search(), get() |
Energy Performance Diagnostics (DPE) |
Valuation
Estimate the price of a property based on its characteristics.
Required parameters: longitude, latitude, realtyType, nbRooms, livingArea
Optional parameters:
| Parameter | Type | Description |
|---|---|---|
condition |
?Condition |
Property condition (-1 = to renovate, 0 = standard, 1 = excellent) |
landArea |
?float |
Land area in m² |
bathrooms |
?int |
Number of bathrooms |
constructionYear |
?int |
Year of construction |
dpe |
?Dpe |
Energy performance rating (A-G) |
level |
?int |
Total number of floors in building |
floor |
?int |
Floor the property is on |
pool |
?bool |
Has swimming pool |
cellar |
?bool |
Has cellar |
niceView |
?bool |
Has nice view |
parking |
?bool |
Has parking |
elevator |
?bool |
Has elevator |
patio |
?bool |
Has patio/terrace |
Geocode
Search for locations by name. Returns structured geographic results with bounding boxes and center coordinates.
GeocodeResult properties:
| Property | Type | Description |
|---|---|---|
geoLevel |
GeoLevel |
Geographic level (region, department, city, district, street, address) |
regionName |
?string |
Region name |
regionCode |
?string |
Region code |
departmentName |
?string |
Department name |
departmentCode |
?string |
Department code |
cityName |
?string |
City name |
inseeCode |
?string |
INSEE code |
districtCode |
?string |
District (grand quartier) code |
subdistrictCode |
?string |
IRIS code |
postCode |
string[] |
Post codes |
streetCode |
?string |
Street code (street/address results) |
streetName |
?string |
Street name (street/address results) |
streetType |
?string |
Street type, e.g. Rue, Avenue (street/address results) |
streetNumber |
?string |
Street number (address results) |
streetSuffix |
?string |
Street number suffix, e.g. bis, ter (address results) |
addressId |
?string |
Unique address identifier (address results) |
parcelIds |
string[] |
Cadastral parcel identifiers (address results) |
boundingBox |
?BoundingBox |
Bounding box coordinates |
center |
?Coordinates |
Center point (longitude, latitude) |
label |
string |
Human-readable label |
Geographic Data
Retrieve geographic entities with their GeoJSON boundaries.
All geographic entities include a boundaries property containing a GeoJsonPolygon with type and coordinates.
Market Data
Retrieve real estate market data at the department, city, or district level.
Market endpoints only support
GeoLevel::Department,GeoLevel::City, andGeoLevel::District. Using other levels will throw anInvalidArgumentException.
Sale Duration
Retrieve how long properties take to sell, at the department, city, or district level. Sale duration is aggregated across all property types and is available from January 2022.
Sale-duration endpoints accept the same
GeoLevel::Department,GeoLevel::City, andGeoLevel::Districtlevels as the price endpoints. Dates use theYYYY-MMformat.currentSaleDuration()->valueisnullwhen no data is available.
DPE (Energy Performance Diagnostics)
Search Energy Performance Diagnostics (DPE). Like transactions, DPE search supports either code + geoLevel or latitude + longitude + radius, and is paginated with a searchAfter cursor.
DPE search accepts
GeoLevel::City,GeoLevel::District, andGeoLevel::Address. TheDpeenum (A-G) is reused for bothdpeRatingandgesRatingfilters.
Enums
| Enum | Values |
|---|---|
RealtyType |
House, Apartment |
GeoLevel |
Region, Department, City, District, Street, Address |
Dpe |
A, B, C, D, E, F, G |
Condition |
ToRenovate (-1), Standard (0), Excellent (1) |
MarketType |
Sales |
Interval |
Monthly |
Metric |
SqmPrice |
DurationUnit |
Days, Months |
DpeSortBy |
Date, LivingArea, EnergyConsFinal |
Error Handling
All API errors throw typed exceptions extending ImmoDataException:
Custom HTTP Client
You can provide your own HTTP client for testing or custom transport by implementing HttpClientInterface:
Code Style
This package uses PHP CS Fixer with the PER Coding Style preset.
Testing
License
MIT