Accommodation search
.png)
The accommodation search API lets you search the basic price of all accommodations in your administration, or even across your campsite group. You can add filters and aggregations so you only get back the accommodations that match.
We calculate the accommodation price for the arrival and departure dates you provide. The response also includes the number of available places.
Prerequisites
Section titled “Prerequisites”- A public key. Don’t have one? Request one via support@camping.care. Please also send us the host names that should be allowlisted, for example
localhost:8000andwww.my-awesome-booking-engine.com. - Regular rates. The accommodation search filter only works with regular rates. Calculated rates can’t be used in the accommodation search filter.
Endpoint
Section titled “Endpoint”GET https://api.camping.care/v3/accommodations/searchSend your public key as a Bearer token:
Authorization: Bearer YOUR_PUBLIC_KEYHeaders
Section titled “Headers”X-Admin-Id (optional)
Section titled “X-Admin-Id (optional)”The admin ID is already attached to your API key. If you work in a group or chain, you can use this header to get data from one specific administration only.
Parameters
Section titled “Parameters”You can send the following parameters. Make sure you URL-encode the data.
age_table_categories
Section titled “age_table_categories”Specifies the number of persons coming for each age table category. You can find the categories here: age tables settings
Possible values are: babies, young_children, children, young_adults, adults, seniors, eldern, pets
[ { "id":"adults", "count":"2" }, { "id":"children", "count":"0" }]persons
Section titled “persons”If you don’t specify age_table_categories, you can specify the total number of travellers instead. We then use the administration’s default age table category (adults in most cases).
arrival (required)
Section titled “arrival (required)”Arrival date in YYYY-MM-DD format, for example 2024-12-25.
departure (required)
Section titled “departure (required)”Departure date in YYYY-MM-DD format, for example 2024-12-29.
accommodation_id
Section titled “accommodation_id”Use this if you only want information about one accommodation, for example acc_g5c2e11a7d504f83b9fe0723f2f177bv.
Tags to filter on. You can attach tags to accommodations, and we use them to filter the accommodations.

You can send groups of tag IDs to create multiple filters. In the example below, the filter works like this: (6KW OR 12KW) AND Bij het water
[ [ 'tag_d5c2e11a7d504f83b9fe0723f2f177bb', 'tag_c991f976f46648548853a573366539fd' ], [ 'tag_da12832771b146968a32dc2cd92bf230' ]]A simple way to filter on accommodation type. Send the value of one of the types below.
{ type: 'bungalow', operator: 'EQ'}Possible operators: EQ, NEQ, IN, NOT_IN, EMPTY, NOT_EMPTY
Possible types:
[ { title: 'Other', value: 'other' }, { title: 'Pitch', value: 'campsite' }, { title: 'Apartment', value: 'apartment' }, { title: 'Camping barrel', value: 'camping_barrel' }, { title: 'Bungalow tent', value: 'bungalow_tent' }, { title: 'Bungalow', value: 'bungalow' }, { title: 'Caravan', value: 'caravan' }, { title: 'Chalet', value: 'chalet' }, { title: 'Hiker\'s cabin', value: 'hiker_cabin' }, { title: 'Holiday home', value: 'holiday_home' }, { title: 'Hotel Room', value: 'hotelroom' }, { title: 'Lodge tent', value: 'lodge_tent' }, { title: 'Mobile home', value: 'mobilehome' }, { title: 'Studio', value: 'studio' }, { title: 'Tipitent', value: 'tipitent' }, { title: 'Treehouse', value: 'treehouse' }, { title: 'Villa', value: 'villa' }, { title: 'Gypsy wagon', value: 'gipsywagon' }, { title: 'Safari Tent', value: 'safari_tent' }, { title: 'POD', value: 'pod' },]Filters on available stock. With the filter below you only get accommodations with a stock greater than or equal to (GTE) 1, so accommodations without stock in the selected period aren’t returned.
{ stock: 1, operator: 'GTE'}offset
Section titled “offset”The pagination page you want to get back: 1, 2, 3 and so on.
The number of results to return. The maximum is 20.
Returns the total number of accommodations that match your filter. You can use this for your pagination. We advise making one request to get the data and a separate request to get the total count.
You can sort accommodations by various columns. Most column names speak for themselves; rank is the default and follows the order the accommodations are ranked in the back office.
Possible columns: available_stock, rank, price_total, persons_max, persons_min, name, rating
Possible directions: asc, desc
[ { column: 'price_total', order: 'desc' }, { column: 'rank', order: 'asc' }, { column: 'name', order: 'asc' }]Example request
Section titled “Example request”curl --location --request GET 'https://api.camping.care/v3/accommodations/search' \ -H "Accept: application/json" \ -H "Authorization: Bearer YOUR_PUBLIC_KEY"Response
Section titled “Response”[
{ "id": "acc_1701b61a20ec4chd85b3b7323c055d83", "numeric_id": 54, "price": 400, "price_fixed": 0, "price_per_night": 0, "price_total": 400, "available_stock": 56, "thumbnail": "https://lh3.googleusercontent.com/_rS020CQtMZDPuTEUGuAaSTFhGe7SfUpyKa2Bb2oM0__-UGpTohl4XmjKagWXGY8dTJeGT0-Keu7OlqfWqr1zwJ1=s250", "rating": { "amount": "542", "avarage": "9" }, "labels": [ { "id": "be9b19e0-d856-4c85-854f-cd89a3g8dfee", "icon": "mdi-account-multiple-outline", "color": "blue", "description": "6", "translations": { "de": { "description": "" }, "nl": { "name": "6", "description": "" } } }, { "id": "pets", "icon": "mdi-paw", "color": "green", "description": "Pets allowed", "translations": { "de": { "description": "" }, "nl": { "name": "Pets allowed", "description": "" } } }, { "id": "wifi", "icon": "mdi-wifi", "color": "green", "description": "Wifi", "translations": { "de": { "description": "" }, "nl": { "name": "Wifi", "description": "" } } }, { "id": "dishwasher", "icon": "mdi-dishwasher", "color": "green", "description": "Dishwasher", "translations": { "de": { "description": "" }, "nl": { "name": "Dishwasher", "description": "" } } } ], "persons_max": 6, "persons_min": 1, "rank": 1, "closed": true, "name": "Standard plaats", "name_translations": { "de": { "description": "" }, "nl": { "description": "Standard plaats" } }, "description": "Lekker terug naar de basis......", "description_translations": { "de": { "description": "" }, "nl": { "description": "Lekker terug naar de basis......" } }}]Groups and chains
Section titled “Groups and chains”If your public key was created at group or chain level, you can search all the accommodations and administrations in your chain.