Skip to content

Travel advisories installation

Like the visa widget, the advisories board is a hosted drop-in: add a container, load one script. It works on any site, any CMS or none, with no build step and no API key.

Place an element with the data-visamundi-advisories attribute where the board should appear:

<div data-visamundi-advisories></div>

Add the script anywhere on the page. It auto-mounts every data-visamundi-advisories container it finds, fetching the live feed and rendering rounded flags with colour-coded threat levels:

<script src="https://advisories.visamundi.app/advisories.js" defer></script>

That’s it. The board renders inside a Shadow DOM, so its styles never clash with your site’s CSS (and vice versa).

Configure each board through data-* attributes on the container:

AttributeDefaultDescription
data-limit24Max number of advisories to show (most recent first).
data-themelightVisual theme (light / dark).
data-endpointhttps://advisories.visamundi.app/api/advisoriesOverride the data endpoint (self-hosting / a deploy preview).
<div data-visamundi-advisories data-limit="12" data-theme="dark"></div>

The data is a public, CORS-enabled JSON endpoint, so you can skip the script and render it yourself:

GET https://advisories.visamundi.app/api/advisories

See Data & source for the response shape and the country-code mapping behind the flags.

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.