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.
| Parameter | Type | Description |
|---|---|---|
data-limit | integer | How many trips, 1–100. Default 6. |
data-category | string | domestic or international. |
data-region | string | e.g. Gilgit. |
data-sort | string | Same values as the API’s sort. |
data-available | boolean | true hides sold-out trips. |
data-q | string | Search text. |
data-columns | integer | Columns on wide screens, 1–4. Default 3; collapses on phones. |
data-theme | string | light (default) or dark — pick the one that matches your page. |
data-accent | color | Hex colour for prices and buttons. Default #0FA8B0. |
data-target | string | _blank (default) opens Baydaar in a new tab; _self the same tab. |
data-source | string | Tag 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.