curl --request GET \
--url https://api.avest.fr/v1/external-integration/ad \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.avest.fr/v1/external-integration/ad"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.avest.fr/v1/external-integration/ad', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.avest.fr/v1/external-integration/ad",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.avest.fr/v1/external-integration/ad"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.avest.fr/v1/external-integration/ad")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.avest.fr/v1/external-integration/ad")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"ad": {
"id": "6a044cba8db14b3fbd015208",
"reference": "REF-2025-001",
"status": "online",
"adType": "sale",
"adSaleType": "old",
"title": "Bel appartement 3 pièces",
"description": "Lumineux, proche métro",
"propertyType": "housing",
"propertyHousingType": "apartment",
"surface": 65,
"mandateNumber": "1729",
"mandateType": "exclusive",
"isPriceDisplayed": true,
"salePrice": 252000,
"buyerSaleFee": 0,
"sellerSaleFee": 12000,
"contact": {
"firstName": "Marie",
"lastName": "Martin",
"email": "marie.martin@agence.com",
"phone": "+33601020304"
},
"location": {
"number": "3",
"route": "Avenue Reille",
"postalCode": "75014",
"city": "Paris",
"country": "France",
"isLocationDisplayed": true
},
"pictures": [
"https://static.example.com/ad/6a044cba8db14b3fbd015208"
],
"urlAgencyAd": "https://agence.example.com/annonce/REF-2025-001",
"transactionType": "sale",
"transactionModel": "619b46b47e043165f206db1b",
"transactionStep": "MND",
"owner": "6939530d9200187f19a2707d",
"firstPublicationDate": "2026-05-13T10:04:42.139Z",
"lastPublicationDate": "2026-05-14T10:04:42.139Z",
"createdAt": "2026-05-13T10:04:42.139Z"
}
}Récupérer une annonce par id ou référence
Récupère une annonce (listing publique) par son id MongoDB ou sa reference métier.
Exactement un des deux paramètres id / reference doit être fourni — pas zéro, pas les deux. L’annonce n’est retournée que si elle appartient à la agencyGroup du token ET à une des agencies du LinkedAPI ; sinon ad: null. Seuls les champs de diffusion publique sont exposés (médias en URLs CloudFront, adresse au niveau rue conditionnée par location.isLocationDisplayed). Endpoint en lecture seule.
curl --request GET \
--url https://api.avest.fr/v1/external-integration/ad \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.avest.fr/v1/external-integration/ad"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.avest.fr/v1/external-integration/ad', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.avest.fr/v1/external-integration/ad",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.avest.fr/v1/external-integration/ad"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.avest.fr/v1/external-integration/ad")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.avest.fr/v1/external-integration/ad")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"ad": {
"id": "6a044cba8db14b3fbd015208",
"reference": "REF-2025-001",
"status": "online",
"adType": "sale",
"adSaleType": "old",
"title": "Bel appartement 3 pièces",
"description": "Lumineux, proche métro",
"propertyType": "housing",
"propertyHousingType": "apartment",
"surface": 65,
"mandateNumber": "1729",
"mandateType": "exclusive",
"isPriceDisplayed": true,
"salePrice": 252000,
"buyerSaleFee": 0,
"sellerSaleFee": 12000,
"contact": {
"firstName": "Marie",
"lastName": "Martin",
"email": "marie.martin@agence.com",
"phone": "+33601020304"
},
"location": {
"number": "3",
"route": "Avenue Reille",
"postalCode": "75014",
"city": "Paris",
"country": "France",
"isLocationDisplayed": true
},
"pictures": [
"https://static.example.com/ad/6a044cba8db14b3fbd015208"
],
"urlAgencyAd": "https://agence.example.com/annonce/REF-2025-001",
"transactionType": "sale",
"transactionModel": "619b46b47e043165f206db1b",
"transactionStep": "MND",
"owner": "6939530d9200187f19a2707d",
"firstPublicationDate": "2026-05-13T10:04:42.139Z",
"lastPublicationDate": "2026-05-14T10:04:42.139Z",
"createdAt": "2026-05-13T10:04:42.139Z"
}
}Autorisations
Token LinkedAPI avec scope externalIntegration. La clé doit avoir un agencyGroup configuré (sinon 400 LinkedAPI agencyGroup is required). Fourni via l'en-tête Authorization: Bearer {linkedAPI_token}. Si la clé a secure === true, l'IP appelante doit être whitelistée (en-tête X-Real-IP), sinon 403 Not authorized to access this resource.
La clé porte aussi un niveau d'accès : en lecture seule, elle n'autorise que les GET ; un POST ou un PATCH renvoie alors 403 Not authorized to access this resource, soit la même réponse qu'une requête sans en-tête Authorization. Voir le guide Authentification.