Skip to content

Widget configuration

The widget is configured through data-* attributes on the container element (the same keys work as an options object passed to VisamundiWidget.mount()).

AttributeTypeDefaultDescription
data-languageISO 639-1auto (<html lang>, else en)UI language. Currently en / fr.
data-themestringlightVisual theme (light / dark).
data-default-nationalityISO alpha-3Pre-select a nationality (e.g. FRA).
data-default-destinationISO alpha-3Pre-select a destination (e.g. IND).
data-partner-idstringPartner id, appended to all result links as ?partner=<id>.
data-keystringOptional public embed key (reserved for future use).
data-api-baseURLhttps://requirements.visamundi.app/apiOverride the data endpoint (self-host / debugging).

Country codes use ISO 3166-1 alpha-3 (e.g. FRA, IND), matching the values returned by the widget’s country list.

<div data-visamundi-widget
data-language="en"
data-theme="light"
data-default-nationality="FRA"
data-partner-id="YOUR_PARTNER_ID"></div>
<script src="https://requirements.visamundi.app/widget.js" defer></script>

Request API access

Tell us a little about your integration and we'll get back to you within one business day with a partner token.