Skip to content

Entry formalities script configuration

Options are data-* attributes on the <script> tag (or the options object passed to VisamundiInfo.init()).

AttributeDefaultDescription
data-countryauto-detectDestination, ISO alpha-2 or alpha-3. Comma list for several: TH,VN.
data-nationalityFRATraveller nationality, ISO alpha-2 or alpha-3.
data-lang<html lang>, else frfr or en. Set it explicitly.
data-sectionsvisa,visas,vaccines,customsSections to show: visa (verdict sentence), visas (visas and authorisations), vaccines, customs.
data-reasontourismTravel reason(s) used to filter the visas shown. See below.
data-targetbefore the scriptCSS selector of the container(s). All matching elements are filled.
data-iso-pattern—Regex whose group 1 is an ISO code, run on the URL then on page links.
data-detect-jsonldoffAlso read schema.org addressCountry from JSON-LD.
data-key—Partner key, sent as X-Embed-Key (reserved).
data-style—none disables the default CSS.
data-manual—Do not auto-run; call VisamundiInfo.init({...}).
data-api-basehttps://embed.visamundi.app/api/infoOverride the data endpoint.

When data-country is absent, the first source that gives a country wins:

  1. data-country parameter.
  2. <meta name="visamundi:country" content="EG"> in the page.
  3. JSON-LD addressCountry, only with data-detect-jsonld (off by default: on many travel sites it is the seller’s address, not the destination).
  4. data-iso-pattern: your regex, applied to the page URL, then to the href of every link on the page.
  5. A country slug in the URL path (/voyages-inde/…, /sejour-egypte/), matched against the Visamundi country list. Prefixes such as voyage(s)-, sejour(s)-, circuit(s)- are ignored.

If nothing is found, nothing is displayed.

Useful when your URLs carry a code rather than a name. Example for a site whose breadcrumb links contain destination=LCAI.JP.OSA:

<script async src="https://embed.visamundi.app/infos.js"
data-iso-pattern="destination=[A-Z0-9]+\.([A-Z]{2})(?:\.|&|$)"></script>

Group 1 must capture the ISO code (JP).

data-reason filters the visas and authorisations section. Default: tourism.

ValueValue
tourismTourismstudentStudy
businessBusinesstransitTransit
medicalMedicalngoNGO
traditional-medecineTraditional medicinerelativeFamily visit
conferenceConferencereligiousReligious
eventEventallNo filter

Pass several values separated by commas: data-reason="medical,tourism".

Verdict sentence, for example: For a traveller holding a French passport going to Japan: no visa is required for a stay of up to 90 days. Possible outcomes: visa-free (with the allowed stay), visa required, visa on arrival, e-visa / eTA, special permit, entry not permitted, no information.

Visas and authorisations: one accordion per document (type, stay, validity, entries, fee, online or on arrival, documents to provide). When several visas of the same type apply, they are grouped in one accordion that gives the number of visas, the starting fee, the maximum stay, and the documents of the cheapest one.

Vaccines: mandatory vaccines listed with their comment; recommended vaccines in a closed accordion.

Customs: alcohol, tobacco, currency, medicines, when available.

The block ends with the Source: Visamundi mention and logo.

<div id="formalities"></div>
<script async src="https://embed.visamundi.app/infos.js"
data-target="#formalities"
data-nationality="FRA"
data-lang="en"
data-sections="visa,visas,vaccines,customs"
data-reason="tourism,business"></script>

Request API access

Full access is free in most cases: it's for travel professionals who also offer Visamundi's visa assistance to their customers. Tell us about your business and we'll get back to you within one business day.

Just want to try it? Get a trial key now (India, 100 requests/month).

Get a trial key

No sales call: we're engineers, we'd rather you judge the data on a real request. Confirm your email and your key is ready.

  • India as a destination
  • 100 requests / month
  • No card needed
Lost your key?

What's included · Travel pro? Full access is free in most cases: request it