İçeriğe geç

Mahalleleri Listele

GET /others/neighbourhoods
GET /others/neighbourhoods

Belirtilen ilçe altındaki kayıtlı mahalle/köy bilgilerini döndürür.

ParametreKonumTipAçıklamaVarsayılanÖrnek
Authorization * headerstringBearer Yetkilendirme Tokeni (Örn: Bearer eyJhb...)-Bearer <TOKEN>
useTradres * querystring-true
iladi * querystring-samsun
ilce * querystring-çarşamba
fetch('https://api.kargomucuz.com/others/neighbourhoods', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <YOUR_TOKEN>'
}
})
.then(response => response.json())
.then(data => console.log(data));
200: Başarılı
{
"status": true,
"message": "Çok fazla istek gönderildi. Sistem sınırlandırıldı.",
"code": 500
}
401: Yetkisiz
{
"status": false,
"message": "Herhangi bir giriş sağlanmadı.",
"code": 500
}