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.
Website integration
Section titled “Website integration”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.
Where do I find my administration slug?
Section titled “Where do I find my administration slug?”The administration slug is the unique identifier of your administration. Once you’re logged in, you’ll find it here: Find your administration slug
Create a public key
Section titled “Create a public key”The widgets load your accommodations, prices and availability straight from the Camping.care API, so they need a public key for your website.
- In Camping.care, go to Settings > API keys.
- Create a key of the type Public, and add the domain of the website where you use the widgets.
- Copy the key (it starts with
pub_) into thepublic-keyattribute.
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.
Explore all widgets
Section titled “Explore all widgets”| 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.
Parameters
Section titled “Parameters”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.
Language
Section titled “Language”Widgets show their texts in the language from, in this order:
- the
langattribute, for examplelang="nl"; - the
langparameter in the URL of your page; - the language of your page (
<html lang="…">); - the visitor’s browser language.
If none of these is available, the widget is in English.
Styling and events
Section titled “Styling and events”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