Code Samples

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.

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

Returns lists of reference data to be used in subsequent requests. It is recommended to execute this call in a separate api client as response can be over 2 mb. This API returns data for NSW.

https://api.onegov.nsw.gov.au/FuelCheckRefData/v2/fuel/lovs

Returns lists of reference data to be used in subsequent requests. It is recommended to execute this call in a separate api client as response can be over 2 mb. This API can return data for NSW and TAS.

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

Returns current fuel prices for a single fuel type and a named location (ie Suburb or postcode). This API returns data for NSW.

https://api.onegov.nsw.gov.au/FuelPriceCheck/v2/fuel/prices/location

Returns current fuel prices for a single fuel type and a named location (ie Suburb or postcode). This API can return data for NSW and TAS.

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

Returns current fuel prices for a single fuel type within a specified radius from a reference point. If no stations exist within the radius then fuel prices for the closest 10 stations are returned. This API returns data for NSW.

https://api.onegov.nsw.gov.au/FuelPriceCheck/v2/fuel/prices/nearby

Returns current fuel prices for a single fuel type within a specified radius from a reference point. If no stations exist within the radius then fuel prices for the closest 10 stations are returned. This API can return data for NSW and TAS.

https://api.onegov.nsw.gov.au/FuelPriceCheck/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. It is recommended to execute this call in a separate api client as response can be over 2 mb. This API returns data for NSW.

https://api.onegov.nsw.gov.au/FuelPriceCheck/v2/fuel/prices

Returns all current fuel prices for all service stations. There may be restrictions on how often this API request can be made. It is recommended to execute this call in a separate api client as response can be over 2 mb. This API can return data for NSW and TAS.

https://api.onegov.nsw.gov.au/FuelPriceCheck/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. This API returns data for NSW.

https://api.onegov.nsw.gov.au/FuelPriceCheck/v2/fuel/prices/new

Returns all new current prices that have been submitted since the last "/fuelpricecheck/v2/fuel/prices" or "/fuelpricecheck/v2/fuel/prices/new" request using the apikey on the current day. This API can return data for NSW and TAS.

https://api.onegov.nsw.gov.au/FuelPriceCheck/v1/fuel/prices/station/{stationCode}

Returns current fuel prices for a single fuel type and a named location (ie Suburb or postcode). This API returns data for NSW.

https://api.onegov.nsw.gov.au/FuelPriceCheck/v2/fuel/prices/station/{stationCode}

Returns current fuel prices for a single fuel type and a named location (ie Suburb or postcode). This API can return data for NSW and TAS.