Skip to content

Widgets

Booking Engine widgets are small blocks of code you copy and paste into your own website. With them you can add a search bar, a list of your accommodations with their prices, your interactive map and pricing grids to your site.

The widgets are web components: they render directly in your page instead of in an iframe, so they take the width of the spot you put them in, follow your page’s font and can be styled from your own stylesheet.

Booking Engine widgets

Copy the code below and paste it into your website. This works with all the popular CMS tools, such as WordPress and Wix.

<booking-engine
administration="{Your administration slug}"
public-key="{Your public key}"
widget="search-and-book"
></booking-engine>
<script
type="module"
crossorigin
src="https://widgets.camping.care/assets/plugin.js"
></script>

Add the <script> tag once per page, even if you use several widgets on it.

The administration slug is the unique identifier of your administration. Once you’re logged in, you’ll find it here: Find your administration slug

The widgets load your accommodations, prices and availability straight from the Camping.care API, so they need a public key for your website.

  1. In Camping.care, go to Settings > API keys.
  2. Create a key of the type Public, and add the domain of the website where you use the widgets.
  3. Copy the key (it starts with pub_) into the public-key attribute.

The key only works on the domains you’ve added to it. If you use the widgets on more than one website, add every domain or create a key per website.

Widget widget= Plan
Search and book search-and-book All plans A search bar where guests pick their dates, guests and accommodation, then go on to book.
Accommodation filter filter Premium Your accommodations with their prices for the chosen stay, each with a Book button.
Interactive map map Premium Your campsite map with the places that are free for the chosen stay.
Pricing grid grid Premium Prices for one accommodation per arrival date and length of stay.
My reservation my-reservation Premium Lets guests get a link to their reservation by email.
Cart cart In development.
Calendar calendar In development.

On a plan below Premium, the Premium widgets show a message that the widget needs a Premium subscription.

Widgets accept the booking parameters as attributes, such as arrival, departure, persons and category. Each widget page lists the ones it uses.

If you leave an attribute out, the widget looks for the same parameter in the URL of your page. That way you can link to your own booking page with the search filled in, for example https://example.com/book?arrival=2026-07-01&departure=2026-07-08&persons=4.

Widgets show their texts in the language from, in this order:

  1. the lang attribute, for example lang="nl";
  2. the lang parameter in the URL of your page;
  3. the language of your page (<html lang="…">);
  4. the visitor’s browser language.

If none of these is available, the widget is in English.

Widgets use your administration’s primary color and your page’s font. You can change the colors with CSS, and listen for events to handle searching and booking yourself. Read more: Styling and events