{ } DLPL API

Cơ sở lưu trú du lịch

Free

14.416 cơ sở lưu trú du lịch do Cục Du lịch Quốc gia công bố: loại hình, hạng sao, địa chỉ, số phòng, khoảng giá, liên hệ.

Endpoint

EndpointMô tả
GET /v1/tourist-accommodationsTìm kiếm, lọc, phân trang
GET /v1/tourist-accommodations/{id}Chi tiết một bản ghi (toàn bộ trường)
bash
curl "https://api.dulieuphapluat.vn/v1/tourist-accommodations?q=từ khoá&per_page=10" \
  -H "Authorization: Bearer dlpl_live_xxxxxxxxxxxxxxxxxxxxxxxx"

Tham số và trường dữ liệu

Tham số lọc
Tham sốKiểu
q Từ khoá tìm trong: name, address
province_slug string
former_province_code string
type string
rank string
stars int
region string
is_state_managed bool
page, per_pagePhân trang

Cần ít nhất một trong: q, province_slug, former_province_code, type, rank, stars

Trường dữ liệu
TrườngKiểuGói
id id Free
name string Free
type* string Free
type_name string Free
rank string Free
stars int Free
address string Free
district_name* string Free
province_slug* string Free
province_name string Free
former_province* string Free
former_province_code* string Free
region* string Free
room_count int Free
is_state_managed* bool Free
price_text* string Starter+
price_min* int Starter+
price_max* int Starter+
phone* string Starter+
mobile* string Starter+
fax* string Starter+
email* string Starter+
website* string Starter+

* chỉ trả ở endpoint chi tiết.

Cùng nhóm Du lịch