This overview of Adriatic.hr web service API is intented for website developers interested in using web services. Some knowlege of HTML is assumed.
Javascript service renders its output as HTML and is used for publishing Adriatic.hr content on client's web site. Input parameters can be specified to customize HTML formatting style and other properties of content being displayed.
<script type="text/javascript" src="https://api.adriatic.hr/javascript-service?call=GetRecommendedPrivateAccommodation&affiliatesiteid=YOUR_AFFILIATE_SITE_ID&lang=en&location=Hvar&theme=orange"></script>
This is the overview of service methods provided by Javascript web service. Note that specifying method parameters is optional, unless stated otherwise.
Displays offer of private accommodation facilities which are recommended by Adriatic.hr.
| AffiliateSiteId | numeric | Your affiliate site id number. |
|---|---|---|
| Lang | string | Language used for displaying text. It is advisable to set this parameter. Default value is en (english). |
| Location | string | Location name (or part of the location name) refering to either place, riviera or region. (Examples: 'Brac', 'Hvar', 'Istria', 'Dalmatia'). |
| NoTitle | bool | Value of 1 displays content without title section. Default value is 0. |
| Results | numeric | Number of results (items) displayed. Can be a number between 1-20. Default value is 3. |
| Target | string | HTML form target. If not set form will be submitted to current window. |
| Theme | string | A predefined color theme. Possible values: adriatic, orange, white. Default value is 'adriatic'. |
| Width | string | Content size (width). |
Request:
<script type="text/javascript" src="https://api.adriatic.hr/javascript-service?call=getrecommendedprivateaccommodation&affiliatesiteid=2470&results=2"></script>Output:

Displays HTML search form for private accommodation offer.
| AffiliateSiteId | numeric | Your affiliate site id number. |
|---|---|---|
| Lang | string | Language used for displaying text. It is advisable to set this parameter. Default value is en (english). |
| Location | string | Location name (or part of the location name) refering to either place, riviera or region. (Examples: 'Brac', 'Hvar', 'Istria', 'Dalmatia'). |
| NoTitle | bool | Value of 1 displays content without title section. Default value is 0. |
| Target | string | HTML form target. If not set form will be submitted to current window. |
| Theme | string | A predefined color theme. Possible values: adriatic, orange, white. Default value is 'adriatic'. |
| Width | string | Content size (width). |
Request:
<script type="text/javascript" src="https://api.adriatic.hr/javascript-service?call=privateaccommodationsearchform&affiliatesiteid=2470&lang=en"></script>Output:

Displays HTML search form for private accommodation offer.
| AffiliateSiteId | numeric | Your affiliate site id number. |
|---|---|---|
| Lang | string | Language used for displaying text. It is advisable to set this parameter. Default value is en (english). |
| Location | string | Location name (or part of the location name) refering to either place, riviera or region. (Examples: 'Brac', 'Hvar', 'Istria', 'Dalmatia'). |
| NoTitle | bool | Value of 1 displays content without title section. Default value is 0. |
| Target | string | HTML form target. If not set form will be submitted to current window. |
| Theme | string | A predefined color theme. Possible values: adriatic, orange, white. Default value is 'adriatic'. |
| Width | string | Content size (width). |
Request:
<script type="text/javascript" src="https://api.adriatic.hr/javascript-service?call=privateaccommodationsearchformlite&affiliatesiteid=2470&lang=en"></script>Output:

Displays HTML search form for private accommodation offer at a specified geographic location.
| AffiliateSiteId | numeric | Your affiliate site id number. |
|---|---|---|
| Lang | string | Language used for displaying text. It is advisable to set this parameter. Default value is en (english). |
| Location | string | Location name (or part of the location name) refering to either place, riviera or region. (Examples: 'Brac', 'Hvar', 'Istria', 'Dalmatia'). |
| NoTitle | bool | Value of 1 displays content without title section. Default value is 0. |
| Target | string | HTML form target. If not set form will be submitted to current window. |
| Theme | string | A predefined color theme. Possible values: adriatic, orange, white. Default value is 'adriatic'. |
| Width | string | Content size (width). |
Request:
<script type="text/javascript" src="https://api.adriatic.hr/javascript-service?call=privateaccommodationsearchformlocation&affiliatesiteid=2470&location=Hvar"></script>Output:

Adriatic.hr
Poljička cesta 26
21000 Split, Kroatia
Arbeidstid:
Pund-Kjæledyr 08:00-16:00
Søn 14:00-22:00
OIB: 16364086764
ID: HR-AB-21-020038491
Brukerprofil