Skip to content

Developers

'Search and Book' in any site, in a few lines

The BUKAZU search module and calendar run in your client's site, not on a separate page. Choose the WordPress plugin, two tags via the CDN, or the npm package for React. The same portal, the same data.

To the WordPress pluginGitHub

No separate licence and no integration fees. Your client only needs a portal code from their own BUKAZU account.

index.html
<!-- in the head -->
<link rel="stylesheet" href="https://portal.bukazu.com/main.css">

<!-- at the bottom of the body -->
<script src="https://portal.bukazu.com/main.js"></script>

<!-- where the module should go -->
<div id="bukazu-app" class="bukazu-app"
     portal-code="xxxxx" language="en"></div>

On WordPress the plugin does these three lines for you.

  • WordPress pluginInstall from the plugin library, place the block, enter the portal code in the block. No theme changes and no build. To the plugin
  • CDN, two tagsOne stylesheet, one script and a div with your portal code. Works in any CMS and in static HTML. To the CDN
  • npm packagebukazu-portal-react, with the same props as the attributes on the div. To npm

WordPress

A block in the editor, nothing more

The plugin is in WordPress's own plugin library, so you install it from the site's admin screen. It loads the stylesheet and the script in the right place and gives you a BUKAZU block for the block editor. You enter the portal code and the object code in the block itself, so your client can add a page without you and without digging into settings.

  1. In WordPress go to Plugins, Add New Plugin, search for BUKAZU, install and activate.
  2. In the block editor, put the BUKAZU block on the page where the module should go.
  3. Enter the portal code in that block, from your client's BUKAZU account. If you leave the object code empty, you get the search module; if you fill it in, you get the calendar of that object.

Does the site use Wix instead of WordPress? There you paste the same two tags into an HTML element.

  • No theme changesThe plugin puts the module in the page you point to. You don't need to make a child theme or edit templates.
  • Multiple blocks per pageEach block carries its own portal and object code, so two accommodations side by side on one page is no problem.
  • Filters from the URLWorks here too: a link with ?persons_min=4 pre-fills the search form.

Via the CDN

One stylesheet, one script, one div

The stylesheet goes in the head, the script at the bottom of the body. Then you call the portal wherever you want it. Without object-code you get the search page, with that code the calendar of that object.

Multiple modules on one page? Give them all the same class and their own id.

index.html
<!-- in the head -->
<link rel="stylesheet" href="https://portal.bukazu.com/main.css">

<!-- at the bottom of the body -->
<script src="https://portal.bukazu.com/main.js"></script>

<!-- the search page -->
<div id="bukazu-app" class="bukazu-app"
     portal-code="xxxxx" language="en"></div>

<!-- the calendar of one object -->
<div id="bukazu-app" class="bukazu-app"
     portal-code="xxxxx" object-code="yyyyy"></div>

Attributes on the div, props on the component

ididNeeded to load the portal and for the stylesheet to take effect.
classclassNameThis is how you load multiple portals on the same page.
portal-codeportalCodeThe portal that is shown. Required.
object-codeobjectCodeOne accommodation. Leave it out and you get the search page.
languagelocaleLanguage of the portal. Default nl.
filtersfiltersPre-filled filters. As a JSON string on the div, as an object in React.

Via npm

A component in your own React app

The same portal, the same behavior, but as a component. Handy if the site already has a build and you want to hook the module into your own routing.

github.com/BUKAZU/React-portal

App.jsx
// install
npm install bukazu-portal-react

import Portal from 'bukazu-portal-react'
import 'bukazu-portal-react/build/index.css'

export default function Listings() {
  return <Portal portalCode="xxxxx" locale="en"
                 filters={{ persons_min: 2 }} />
}

Deep linking

Pre-fill filters via the URL

From a landing page, a blog or a newsletter you link to the search page with filters already set. Query parameters on the page where the search module sits, without object-code.

    https://your-site.com/listings?arrival_date=2026-07-01&departure_date=2026-07-08&persons_min=4&countries=12&properties=12,34
  
arrival_dateYYYY-MM-DD. Arrival alone searches for a minimum of one night.
departure_dateOnly together with arrival; the number of nights follows from it.
persons_minInteger, like persons_max.
bedrooms_minInteger, like bathrooms_min.
weekprice_maxMaximum weekly price in whole currency units.
countriesNumeric id, not an ISO code. Also regions and cities.
propertiesComma-separated property ids, for example 12,34,56.
category_<id>One property id per category, merged with properties.
  • Fetching the idsCountries, regions and properties have numeric ids. You fetch them with GET /portal_api/v1/config/filter-fields.
  • What takes precedenceThe URL wins over the filters attribute. When a parameter is recognised, remembered filters are skipped and the list starts at page 1.
  • Can be switched offOn by default, can be switched off per portal with filters_form.prefill_filters_from_url.

Stuck on an integration?

Email what you're trying to do and which portal code you use. You get an answer from someone who builds the portal themselves, not from a first-line queue.