MyVR.js

MyVR has designed a powerful JavaScript library that makes it easy to connect a 3rd party website to MyVR account data. Whether you're building a website with WordPress or SquareSpace, you can use MyVR.js to embedded searchable property lists, showcase availability data, retrieve quotes, and take bookings that feed directly into a MyVR account.


Intended Audience

MyVR.js is designed for developers with JavaScript programming knowledge. If you are not a developer but you're interested in connecting a 3rd party website to your account, we recommend our Website Widgets. These widgets can be found by registered MyVR users in the MyVR online app. Our Website Widgets are packaged for out-of-the-box use by non-developers. If you can copy and paste, you can use our Website Widgets.

Warning Developers Only Past This Point!
MyVR.js is intended for developers with Javascript knowledge. If you are a non-developer, check out our Website Widgets.

How It Works

MyVR.js a simple JavaScript include you place on your website. Once included, you can power your website with a direct connection to your MyVR account.

Common Use Cases

  • Showcase a searchable list of MyVR properties
  • Take bookings that feed into MyVR's reservation system
  • Receive inquiries that are synced into MyVR's inbox
  • Display detailed property information including availability data
  • Generate real time quotes

Include MyVR.js

Get started by including MyVR.js on every page you plan to use it.

<script type="text/javascript" src="https://static.myvr.com/public/myvrjs/v1/myvr.js"></script>
      

Provide Your Public Key

For MyVR.js to work, you need to provide a unique public key associated with your account. MyVR account holders can retrieve this key from within their account, and MyVR application developers can retrieve a test key from within their Developer Portal account.

<script type="text/javascript">
        myvr.init("YOUR_PUBLIC_KEY");
      </script>
      

Interact With Your MyVR Account

With MyVR.js included on your site and your public key set, you're ready to interact with your account. Below you'll find a list of ways you can retrieve and send data to your account.

  • Property Details

    Retrieve the details of an individual property, including the name, description, photos, amenities, rates, fees, and much more.

  • List of Properties

    Retrieve a list of properties directly from your MyVR account and display them on your website. You can filter properties by availability, number of bedrooms, bathrooms, and more.

  • Calendar Availability

    Retrieve real-time availability data for an individual property. Use it to display an up-to-date availability calendar.

  • Real Time Quotes

    Generate a quote for a potential stay with real time pricing information. We'll also include the availability, so you know if the quote can be booked or not.

  • Renter Inquiries

    Accept inquiries directly on your website and feed them into MyVR's powerful inbox.

  • Online Booking

    Direct your renters to book online using MyVR's optimized vacation rental booking flow. Reservations and associated payments feed directly into your MyVR Reservation system.