Tariff information
GET
/tariff/{type}
const url = 'https://demo.evcc.io/api/tariff/grid';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://demo.evcc.io/api/tariff/gridReturns the prices or emission values for the upcoming hours
Parameters
Section titled β Parameters βPath Parameters
Section titled βPath Parameters β type
required
string
Tariff type
Responses
Section titled β Responses βSuccess
Media type application/json
object
result
object
rates
Array<object>
A charging interval
object
start
Start
string format: date-time
end
End
string format: date-time
value
Cost
number
Example
{ "result": { "rates": [ { "start": "2025-07-19T12:30:00.000Z", "end": "2025-07-19T12:30:00.000Z" } ] }}Tariff not defined