Everything you need to install, customise and troubleshoot the MotR Widget.
The MotR Widget Platform lets you embed free vehicle lookup tools on any website. The widget is a lightweight JavaScript loader (~12KB) that scans your page for data-motr-widget elements and renders a premium search interface inside them.
When a visitor enters a registration, the widget queries official DVLA & DVSA data via MotR's API, displays a preview card with key vehicle details, and provides a button to view the full report on MotR.
Key features: No dependencies, under 30KB, mobile responsive, dark/light/auto themes, full customisation, analytics tracking, and mandatory "Powered by MotR" attribution.
Add the MotR widget to your website in three simple steps:
Step 1: Add the script tag before your closing </body> tag:
<script src="https://motr.uk/functions/serveWidgetEmbed"></script>Step 2: Add the widget div anywhere on your page:
<div data-motr-widget="vehicle-report"
data-motr-theme="dark"
data-motr-accent="#2563eb">
</div>Step 3: That's it. The widget auto-initialises and is ready to use.
All options are set via HTML data attributes on the widget div:
data-motr-widgetvehicle-reportWidget type (see Future Widgets)data-motr-themeautodark, light, or auto (follows user preference)data-motr-accent#2563ebHex colour for buttons and focus statesdata-motr-radius16Corner radius in pixels (0–24)data-motr-button-textCheck VehicleText on the search buttondata-motr-placeholderEnter registrationInput placeholder textdata-motr-sizemediumsmall, medium, or largedata-motr-compactfalseSet to true for minimal paddingdata-motr-width100%Max width (e.g. 400px, 100%)data-motr-keyOptional API key for partner attributionThe widget supports three theme modes:
You can also customise the accent colour to match your brand. Use any valid hex colour:
<div data-motr-widget="vehicle-report"
data-motr-theme="dark"
data-motr-accent="#7c3aed">
</div>The widget automatically tracks the following events to MotR's analytics dashboard:
Widget Load
When the widget renders on page
Search
When a user submits a registration
Lookup Success
When a vehicle is found
Lookup Fail
When no vehicle is found
Preview View
When the preview card is shown
Full Report Click
When user clicks to view full report
Analytics include referring domain, page URL, device type, browser, operating system, and country — all GDPR-compliant with no personal data stored.
If you have a partner API key, analytics are attributed to your account and visible in your partner dashboard.
To prevent abuse, the widget enforces rate limits:
Rate limits reset automatically. If you need higher limits, contact MotR support to discuss an Enterprise plan.
The MotR Widget Platform includes multiple layers of security:
Widget not appearing
Ensure the script tag is placed before the closing </body> tag. Check that the widget div has the data-motr-widget attribute. Open your browser console for any error messages.
"Too many searches" error
You've hit the rate limit. Anonymous users get 30 lookups per hour. Wait and try again, or register for a partner API key to increase your limits.
Vehicle not found
The registration may not be in the DVLA database. Check for typos — the widget only accepts valid UK registration formats. Very new or imported vehicles may not have records yet.
Styling conflicts
The widget uses scoped CSS class names prefixed with motr-w-. If your site's CSS conflicts, wrap the widget in a container with all: revert or contact support.