Embed the trips widget — Baydaar API
API v1 OpenAPIWebsite

Embed the trips widget

Show Baydaar trips on any website with two lines of HTML. It stays up to date by itself.

Paste this where the trips should appear:

Install

The widget draws inside a shadow root, so your site’s CSS can’t break it and it can’t break yours. It loads the live API, so prices, dates and sold-out badges are always current.

Options

Set these as data- attributes on the div.

ParameterTypeDescription
data-limitintegerHow many trips, 1–100. Default 6.
data-categorystringdomestic or international.
data-regionstringe.g. Gilgit.
data-sortstringSame values as the API’s sort.
data-availablebooleantrue hides sold-out trips.
data-qstringSearch text.
data-columnsintegerColumns on wide screens, 1–4. Default 3; collapses on phones.
data-themestringlight (default) or dark — pick the one that matches your page.
data-accentcolorHex colour for prices and buttons. Default #0FA8B0.
data-targetstring_blank (default) opens Baydaar in a new tab; _self the same tab.
data-sourcestringTag added to booking links as utm_source. Default: your site’s hostname.

Need a different look? Fetch the API yourself and render the cards your way.