AtourinAtourin
Home
API Reference
Home
API Reference
  • API Reference

    • Autentikasi (Auth)
    • Theme & Konfigurasi Aplikasi
    • Home & Discovery
    • Produk & Pengalaman Wisata
    • Destinasi & Area Wisata
    • Homestay (Akomodasi)
    • ARTI (Atourin Regenerative Tourism Initiative)
    • Promo & Voucher
    • Pencarian (Search)
    • Upload File
    • Transaksi & Pesanan (Orders)
    • Pembayaran (Payments)
    • Asuransi (Insurance)
    • Ulasan (Reviews)
    • Profil Pengguna (Profile)
    • Daftar Keinginan (Wishlist)
    • Notifikasi (Notifications)
    • FAQ (Pertanyaan Umum)
    • Blog & Artikel

Home & Discovery

Dokumentasi API untuk merakit komponen halaman utama, menyajikan rekomendasi produk, banner promo, dan fitur penemuan (discovery).

Endpoint Overview

MethodEndpointDeskripsi
GET/sectionsMengambil data produk per section (rekomendasi, dll).
GET/promosMengambil daftar banner promo aktif.
GET/products/suggestionMengambil saran pencarian cepat.

1. Get Home Sections

Mengambil daftar produk yang dikurasi untuk ditampilkan dalam baris (row) section di beranda aplikasi atau web.

  • URL: /sections
  • Method: GET
  • Query Parameters:
    • section: Kode section (Contoh: recommendation, popular, tourism_village).
    • type: Filter tipe produk (experience, attraction, homestay).
    • page, max: Pagination.
  • Response (200 OK):
{
  "total_rows": 48,
  "rows": [
    {
      "product_name": "Sunrise Bromo Tour",
      "slug": "sunrise-bromo-tour",
      "min_price": 350000,
      "rating": 4.8
    }
  ]
}

2. Get Search Suggestions

Memberikan saran kata kunci atau entitas (produk/destinasi) saat pengguna mulai mengetik di kolom pencarian global.

  • URL: /products/suggestion
  • Method: GET
  • Query Parameters:
    • q: Kata kunci pencarian.
    • type: experience, destination, atau village.
  • Response (200 OK):
{
  "products": [
    { "product_name": "Paket Bali", "slug": "paket-bali" }
  ],
  "popular_key": ["bali", "bromo", "jogja"]
}

🔥 Uji Coba API (Simulator)

Gunakan simulator di bawah ini untuk mencoba seluruh endpoint di atas secara langsung. Anda dapat mengubah URL, Method, Headers, dan Body sesuai kebutuhan.

Last Updated: 3/27/26, 5:05 AM
Contributors: Priyono Atourin
Prev
Theme & Konfigurasi Aplikasi
Next
Produk & Pengalaman Wisata