Retour aux ressources
Production
API Recherche
Recherche intelligente de copropriétés par nom ou adresse
Endpoint
GET /api/search/slug?q={query}&type=search&limit={n}Paramètres
| Paramètre | Type | Requis | Description |
|---|---|---|---|
q | string | Oui | Requête de recherche (nom, adresse, ville...) |
type | string | Oui | Toujours "search" |
limit | number | Non | Nombre de résultats (défaut: 10, max: 50) |
Champs de réponse
Chaque résultat contient les informations suivantes
| Champ | Type | Exemple |
|---|---|---|
immatriculation | string | "AF2594737" |
nom | string | "SAINT CHARLES" |
adresse | string | "25 r saint-charles 67300 Schiltigheim" |
code_postal | string | "67300" |
commune | string | "Schiltigheim" |
nombre_lots | number | 9 |
url | string | "/copropriete/saint-charles-AF2594737" |
matchType | string | "nom_exact" | "partial" |
Exemples de requêtes
Recherche par nom :
GET /api/search/slug?q=saint%20charles&type=search&limit=10Recherche par adresse + ville :
GET /api/search/slug?q=3%20avenue%20churchill%20evreux&type=search&limit=5Recherche par adresse + code postal :
GET /api/search/slug?q=25%20rue%20samson%2027200&type=search&limit=5Exemple de réponse JSON
{
"results": [
{
"immatriculation": "AF2594737",
"nom": "SAINT CHARLES",
"adresse": "25 r saint-charles 67300 Schiltigheim",
"code_postal": "67300",
"commune": "Schiltigheim",
"nombre_lots": 9,
"url": "/copropriete/saint-charles-AF2594737",
"matchType": "nom_exact",
"relevanceScore": 250
}
],
"totalFound": 42,
"search_method": "fulltext_priority"
}Tester l'API
Essayez l'API en temps réel
Caractéristiques
- Recherche intelligente par nom ou adresse
- Support des accents (évreux = Évreux)
- Détection automatique du type de requête
- 619,402 copropriétés indexées
- Données Q3 2025 à jour
- Latence < 500ms