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

Destinasi & Area Wisata

Dokumentasi API untuk mengeksplorasi daftar destinasi wisata berdasarkan wilayah dan provinsi di seluruh Indonesia.

Endpoint Overview

MethodEndpointDeskripsi
GET/destinationsMengambil daftar wilayah destinasi dengan pagination.

1. List Destinations

Mendapatkan daftar wilayah (kota/kabupaten) yang memiliki produk wisata aktif. Data mencakup jumlah produk per kategori (experience, attraction, homestay).

  • URL: /destinations
  • Method: GET
  • Headers: Authorization: Bearer {{token}}
  • Query Parameters:
    • page (default: 1): Nomor halaman.
    • max (default: 10): Jumlah item per halaman.
  • Response (200 OK):
{
  "total_rows": 150,
  "total_page": 15,
  "current_page": 1,
  "next_page": 2,
  "rows": [
    {
      "title": "Jakarta Pusat",
      "slug": "jakarta-pusat",
      "cover_photo": "https://cdn.atourin.com/...",
      "province": "DKI Jakarta",
      "product_count": [
        { "type": "experience", "count": 25 },
        { "type": "attraction", "count": 12 },
        { "type": "homestay", "count": 8 }
      ]
    },
    {
      "title": "Lombok Tengah",
      "slug": "lombok-tengah",
      "cover_photo": "https://cdn.atourin.com/...",
      "province": "Nusa Tenggara Barat",
      "product_count": [
        { "type": "experience", "count": 15 }
      ]
    }
  ]
}

Fitur Utama:

  • Product Counting: Menampilkan jumlah produk aktif secara real-time untuk setiap destinasi.
  • Image Optimization: Menggunakan URL gambar yang sudah teroptimasi untuk beban server yang ringan.
  • Pagination: Mendukung pengelolaan data dalam jumlah besar dengan parameter page dan max.

🔥 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
Produk & Pengalaman Wisata
Next
Homestay (Akomodasi)