Add live Australian fuel prices to your website in seconds. Perfect for automotive blogs, travel sites, and community websites.
Data updated hourly from 10,000+ stations across Australia
Just 2 lines of code to add to any website
Coverage across NSW, VIC, QLD, WA, SA, TAS, NT, ACT
Start using immediately with no API keys required
This is what the widget looks like when embedded on your site:
Copy and paste this code into your HTML where you want the widget to appear:
Customise the widget using data attributes:
| Attribute | Values | Description |
|---|---|---|
data-state |
NSW, VIC, QLD, WA, SA, TAS, NT, ACT | Australian state (default: VIC) |
data-fuel |
ULP, E10, DIESEL, PULP95, PULP98, LPG, all | Fuel type filter (default: all) |
data-theme |
light, dark, auto | Widget theme (default: auto - matches system) |
NSW Unleaded only:
Queensland all fuel types:
Western Australia Diesel:
Add multiple widgets on the same page using the class instead of ID:
Need direct API access for advanced integrations?
CORS enabled - the API can be called from any domain.
Copy the code above and paste it into your HTML.
Open Petrolmatehttps://petrolmate.com.au/js/petrolmate-widget.jsid="petrolmate-widget" or class="petrolmate-widget"