Plugins and widgets
Put a number plate lookup on your website without writing code, or call the API from your own code in a few lines.
Website widget
One snippet works on Wix, Squarespace, Webflow, Shopify or any HTML page. Visitors type a reg and see the car, its tax and MOT, and anything else you choose. Set it up here, then copy the code.
Preview with the sample vehicle TE57 AMB. Try TE57 RED or TE57 GRN.
Paste this where you want the box. Swap in your website widget key from the dashboard.
<div data-platekit
data-key="pk_site_YOUR_KEY"
data-show="vehicle,checks"
data-title="Check your car"
data-cta-text="Book an MOT"
data-cta-url="https://yourgarage.co.uk/book?reg={reg}"></div>
<script src="https://platekit.co.uk/widget.js" async></script>Get a website widget key
In your dashboard, create a key of type Website widget and list your website. It’s safe to put in a page: it only works on the sites you list, each visitor gets 10 lookups a minute, and you set a daily limit. Lookups use your credits like any other.
Where to paste it
- WordPress
- Use the plugin below instead. It keeps your key on your server and caches answers.
- Wix
- Add → Embed code → Embed HTML. Choose “Code”, paste the snippet, then resize the box.
- Squarespace
- Add a Code block where you want the box and paste the snippet. Code blocks with scripts need a plan that allows custom code.
- Webflow
- Drag in a Code Embed element and paste the snippet. Publish to see it working.
- Shopify
- Online Store → Themes → Customise → Add section → Custom Liquid, then paste the snippet.
- Any other site
- Paste the snippet into the page’s HTML where you want the box.
WordPress plugin
Adds a PlateKit block and a [platekit] shortcode. Your live key stays on your server: the box asks your own site, and your site asks PlateKit. Answers are reused for 12 hours, so the same car looked up twice costs one credit, and there are limits per visitor and per day.
- Optional button under the result, like “Book an MOT”, with the reg filled in for your booking form.
- “Check my key” button in Settings → PlateKit, using a lookup that’s free.
- Visitors never see messages meant for you, like running out of credits. You do, in Settings.
[platekit]
[platekit show="vehicle,mot,checks"
theme="dark"
title="Check your car"
cta_text="Book an MOT"
cta_url="/book?reg={reg}"]Code libraries
The API is plain HTTPS and JSON, so you don’t need these. They add types, retries when you hit a rate limit, and readable errors. Coming to npm and PyPI shortly; until then, the docs show the plain HTTP calls.
curl https://api.platekit.co.uk/v1/vehicles/AB12CDE \
-H "Authorization: Bearer $PLATEKIT_KEY"