Public listing detail
curl --request GET \
--url https://api.anhome.tuanle.dev/api/v1/public/listings/{slug}import requests
url = "https://api.anhome.tuanle.dev/api/v1/public/listings/{slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.anhome.tuanle.dev/api/v1/public/listings/{slug}', 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.anhome.tuanle.dev/api/v1/public/listings/{slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.anhome.tuanle.dev/api/v1/public/listings/{slug}"
req, _ := http.NewRequest("GET", url, nil)
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.anhome.tuanle.dev/api/v1/public/listings/{slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anhome.tuanle.dev/api/v1/public/listings/{slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"headline": "<string>",
"amenities": [
"<string>"
],
"organization_name": "<string>",
"property_name": "<string>",
"room_name": "<string>",
"base_rent": "3500000",
"default_deposit": "3500000",
"images": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"image_url": "<string>",
"sort_order": 123,
"media_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"alt_text": "<string>"
}
],
"updated_at": "2023-11-07T05:31:56Z",
"display": {
"amenities": [
{
"value": "PARTIALLY_PAID",
"label": "Thanh toán một phần"
}
],
"location": {
"city": "<string>",
"district": "<string>",
"ward": "<string>",
"address_area": "<string>"
}
},
"description": "<string>",
"contact_phone": "<string>",
"zalo_url": "<string>",
"available_date": "2023-12-25",
"min_lease_months": 123,
"owner_name": "<string>",
"property_address": "<string>",
"city": "<string>",
"district": "<string>",
"ward": "<string>",
"floor": "<string>",
"area_m2": 123
},
"request_id": "<string>",
"meta": {}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}public_listings
Public listing detail
Documents an AnHome API operation.
GET
https://api.anhome.tuanle.dev
/
api
/
v1
/
public
/
listings
/
{slug}
Public listing detail
curl --request GET \
--url https://api.anhome.tuanle.dev/api/v1/public/listings/{slug}import requests
url = "https://api.anhome.tuanle.dev/api/v1/public/listings/{slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.anhome.tuanle.dev/api/v1/public/listings/{slug}', 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.anhome.tuanle.dev/api/v1/public/listings/{slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.anhome.tuanle.dev/api/v1/public/listings/{slug}"
req, _ := http.NewRequest("GET", url, nil)
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.anhome.tuanle.dev/api/v1/public/listings/{slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anhome.tuanle.dev/api/v1/public/listings/{slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"headline": "<string>",
"amenities": [
"<string>"
],
"organization_name": "<string>",
"property_name": "<string>",
"room_name": "<string>",
"base_rent": "3500000",
"default_deposit": "3500000",
"images": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"image_url": "<string>",
"sort_order": 123,
"media_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"alt_text": "<string>"
}
],
"updated_at": "2023-11-07T05:31:56Z",
"display": {
"amenities": [
{
"value": "PARTIALLY_PAID",
"label": "Thanh toán một phần"
}
],
"location": {
"city": "<string>",
"district": "<string>",
"ward": "<string>",
"address_area": "<string>"
}
},
"description": "<string>",
"contact_phone": "<string>",
"zalo_url": "<string>",
"available_date": "2023-12-25",
"min_lease_months": 123,
"owner_name": "<string>",
"property_address": "<string>",
"city": "<string>",
"district": "<string>",
"ward": "<string>",
"floor": "<string>",
"area_m2": 123
},
"request_id": "<string>",
"meta": {}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"fields": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": "<unknown>"
}
}Path Parameters
Listing slug
Response
Public listing detail
Endpoint-specific response payload. See the referenced schema for the resource fields.
Show child attributes
Show child attributes
Request correlation identifier returned from X-Request-Id or generated by the API.
Optional response metadata such as pagination limits, counts, or export context.
⌘I