In order to make an API call you need to Register.

For more info please visit the Help Page.

GET

GetFuelPricesForStation

https://api.onegov.nsw.gov.au/fuelpricesapp/v1/fuel/prices/station/{stationcode}

Returns current fuel prices for a single fuel type and a named location (ie Suburb or postcode)

GET

GetNewFuelPrices

https://api.onegov.nsw.gov.au/fuelpricesapp/v1/fuel/prices/new

Returns all new current prices that have been submitted since the last "/fuelpricecheck/v1/fuel/prices" or "/fuelpricecheck/v1/fuel/prices/new" request using the apikey on the current day.

GET

GetAllFuelPrices

https://api.onegov.nsw.gov.au/fuelpricesapp/v1/fuel/prices

Returns all current fuel prices for all service stations. There may be restrictions on how often this API request can be made. Since the response is too long for this request, it is advised that you download the postman collection, and make a request to this endpoint from the collection.

POST

GetFuelPricesWithinRadius

https://api.onegov.nsw.gov.au/fuelpricesapp/v1/fuel/prices/nearby

Returns current fuel prices for a single fuel type within a specified radius from a reference point

POST

GetFuelPricesForLocation

https://api.onegov.nsw.gov.au/fuelpricesapp/v1/fuel/prices/location

Returns current fuel prices for a single fuel type and a named location (ie Suburb or postcode)

GET

GetReferenceData

https://api.onegov.nsw.gov.au/fuelpricesapp/v1/fuel/lovs

Returns lists of reference data to be used in subsequent requests. Since the response is too long for this request, it is advised that you download the postman collection, and make a request to this endpoint from the collection.

GET

oauth-client_credential-accesstoken-get

https://api.onegov.nsw.gov.au/oauth/client_credential/accesstoken

The client can request an access token using only its client credentials (or other supported means of authentication) when the client is requesting access to the protected resources under its control, or those of another resource owner that have been previously arranged with the authorization server. This request is only required to perform the price update request.