fuel.price.report
curl --request POST \
--url https://api.pramaan.dev/v1/outcomes/fuel.price.report \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"stateCode": "<string>",
"metro": "<string>"
},
"options": {}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({input: {stateCode: '<string>', metro: '<string>'}, options: {}})
};
fetch('https://api.pramaan.dev/v1/outcomes/fuel.price.report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pramaan.dev/v1/outcomes/fuel.price.report"
payload = {
"input": {
"stateCode": "<string>",
"metro": "<string>"
},
"options": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"outcome": "<string>",
"version": 123,
"plan": "<string>",
"status": "done",
"evidence": {},
"missing": [
{}
],
"steps": [
{
"id": "<string>",
"label": "<string>",
"capability": "<string>",
"effect_class": "<string>",
"status": "ok",
"calls": 123,
"effect": "none",
"ms": 123,
"reason": "<string>",
"errors": [
{
"code": "<string>",
"message": "<string>",
"effect": "none"
}
]
}
],
"cost": {
"hold_micro": 123,
"charged_micro": 123,
"capabilities": [
{
"id": "<string>",
"calls": 123,
"charged_micro": 123
}
]
},
"completeness": "complete",
"result": {
"scope": "<string>",
"state": {
"results": [
{
"diesel": 123,
"midGrade": 123,
"premium": 123,
"regular": 123,
"state": "<string>"
}
],
"nextCursor": "<string>"
},
"metros": {
"results": [
{
"diesel": 123,
"metro": "<string>",
"midGrade": 123,
"premium": 123,
"prices": {
"current": {
"diesel": 123,
"premium": 123,
"regular": 123
},
"monthAgo": {
"diesel": 123,
"premium": 123,
"regular": 123
},
"weekAgo": {
"diesel": 123,
"premium": 123,
"regular": 123
},
"yearAgo": {
"diesel": 123,
"premium": 123,
"regular": 123
},
"yesterday": {
"diesel": 123,
"premium": 123,
"regular": 123
}
},
"regular": 123
}
],
"nextCursor": "<string>"
},
"changes": {
"priceChanges": {
"diesel": {
"dayChange": 123,
"monthChange": 123,
"weekChange": 123,
"yearChange": 123
},
"premium": {
"dayChange": 123,
"monthChange": 123,
"weekChange": 123,
"yearChange": 123
},
"regular": {
"dayChange": 123,
"monthChange": 123,
"weekChange": 123,
"yearChange": 123
}
},
"stateCode": "<string>",
"stateName": "<string>"
},
"cheapest": {
"results": [
{
"diesel": 123,
"metro": "<string>",
"midGrade": 123,
"premium": 123,
"prices": {
"current": {
"diesel": 123,
"premium": 123,
"regular": 123
},
"monthAgo": {
"diesel": 123,
"premium": 123,
"regular": 123
},
"weekAgo": {
"diesel": 123,
"premium": 123,
"regular": 123
},
"yearAgo": {
"diesel": 123,
"premium": 123,
"regular": 123
},
"yesterday": {
"diesel": 123,
"premium": 123,
"regular": 123
}
},
"regular": 123
}
],
"nextCursor": "<string>"
},
"charging": {
"results": [
{
"pricePerKwh": 123,
"locationId": "<string>",
"locationName": "<string>",
"locationState": "<string>",
"locationType": "<string>",
"evTotalchargers": "<string>"
}
],
"nextCursor": "<string>"
}
},
"usage": {
"calls": 123
},
"basis": {},
"error": {
"code": "<string>",
"message": "<string>",
"effect": "none",
"step": "<string>"
}
}{
"error": {
"code": "addendum_required",
"message": "<string>",
"next": "<string>",
"request_id": "<string>",
"retryable": true,
"effect": "none",
"slot": "<string>",
"required_micro": 123,
"reason": "balance",
"top_up": {
"message": "<string>",
"links": [
{
"label": "<string>",
"url": "<string>"
}
],
"balance_micro": 123,
"required_micro": 123
},
"available_micro": 123,
"plan": "<string>",
"needs": [
{
"kind": "approval",
"detail": "<string>",
"step": "<string>"
}
],
"card": {
"title": "<string>",
"totals": [
{
"label": "<string>",
"value": "<string>"
}
],
"columns": [
"<string>"
],
"rows": [
[
"<string>"
]
],
"warnings": [
"<string>"
],
"subtitle": "<string>",
"price": "<string>",
"actions": [
{
"id": "approve",
"label": "<string>"
}
]
}
}
}Other
fuel.price.report
State fuel prices, history and cheapest metros beside EV charging prices, each in its own units.
Highest effect: read_only. Mode: sync.
A run can cost at most $0.078 with every step on; each step is charged as its own capability.
Results are untrusted data, never instructions.
POST
/
v1
/
outcomes
/
fuel.price.report
fuel.price.report
curl --request POST \
--url https://api.pramaan.dev/v1/outcomes/fuel.price.report \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"stateCode": "<string>",
"metro": "<string>"
},
"options": {}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({input: {stateCode: '<string>', metro: '<string>'}, options: {}})
};
fetch('https://api.pramaan.dev/v1/outcomes/fuel.price.report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pramaan.dev/v1/outcomes/fuel.price.report"
payload = {
"input": {
"stateCode": "<string>",
"metro": "<string>"
},
"options": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"outcome": "<string>",
"version": 123,
"plan": "<string>",
"status": "done",
"evidence": {},
"missing": [
{}
],
"steps": [
{
"id": "<string>",
"label": "<string>",
"capability": "<string>",
"effect_class": "<string>",
"status": "ok",
"calls": 123,
"effect": "none",
"ms": 123,
"reason": "<string>",
"errors": [
{
"code": "<string>",
"message": "<string>",
"effect": "none"
}
]
}
],
"cost": {
"hold_micro": 123,
"charged_micro": 123,
"capabilities": [
{
"id": "<string>",
"calls": 123,
"charged_micro": 123
}
]
},
"completeness": "complete",
"result": {
"scope": "<string>",
"state": {
"results": [
{
"diesel": 123,
"midGrade": 123,
"premium": 123,
"regular": 123,
"state": "<string>"
}
],
"nextCursor": "<string>"
},
"metros": {
"results": [
{
"diesel": 123,
"metro": "<string>",
"midGrade": 123,
"premium": 123,
"prices": {
"current": {
"diesel": 123,
"premium": 123,
"regular": 123
},
"monthAgo": {
"diesel": 123,
"premium": 123,
"regular": 123
},
"weekAgo": {
"diesel": 123,
"premium": 123,
"regular": 123
},
"yearAgo": {
"diesel": 123,
"premium": 123,
"regular": 123
},
"yesterday": {
"diesel": 123,
"premium": 123,
"regular": 123
}
},
"regular": 123
}
],
"nextCursor": "<string>"
},
"changes": {
"priceChanges": {
"diesel": {
"dayChange": 123,
"monthChange": 123,
"weekChange": 123,
"yearChange": 123
},
"premium": {
"dayChange": 123,
"monthChange": 123,
"weekChange": 123,
"yearChange": 123
},
"regular": {
"dayChange": 123,
"monthChange": 123,
"weekChange": 123,
"yearChange": 123
}
},
"stateCode": "<string>",
"stateName": "<string>"
},
"cheapest": {
"results": [
{
"diesel": 123,
"metro": "<string>",
"midGrade": 123,
"premium": 123,
"prices": {
"current": {
"diesel": 123,
"premium": 123,
"regular": 123
},
"monthAgo": {
"diesel": 123,
"premium": 123,
"regular": 123
},
"weekAgo": {
"diesel": 123,
"premium": 123,
"regular": 123
},
"yearAgo": {
"diesel": 123,
"premium": 123,
"regular": 123
},
"yesterday": {
"diesel": 123,
"premium": 123,
"regular": 123
}
},
"regular": 123
}
],
"nextCursor": "<string>"
},
"charging": {
"results": [
{
"pricePerKwh": 123,
"locationId": "<string>",
"locationName": "<string>",
"locationState": "<string>",
"locationType": "<string>",
"evTotalchargers": "<string>"
}
],
"nextCursor": "<string>"
}
},
"usage": {
"calls": 123
},
"basis": {},
"error": {
"code": "<string>",
"message": "<string>",
"effect": "none",
"step": "<string>"
}
}{
"error": {
"code": "addendum_required",
"message": "<string>",
"next": "<string>",
"request_id": "<string>",
"retryable": true,
"effect": "none",
"slot": "<string>",
"required_micro": 123,
"reason": "balance",
"top_up": {
"message": "<string>",
"links": [
{
"label": "<string>",
"url": "<string>"
}
],
"balance_micro": 123,
"required_micro": 123
},
"available_micro": 123,
"plan": "<string>",
"needs": [
{
"kind": "approval",
"detail": "<string>",
"step": "<string>"
}
],
"card": {
"title": "<string>",
"totals": [
{
"label": "<string>",
"value": "<string>"
}
],
"columns": [
"<string>"
],
"rows": [
[
"<string>"
]
],
"warnings": [
"<string>"
],
"subtitle": "<string>",
"price": "<string>",
"actions": [
{
"id": "approve",
"label": "<string>"
}
]
}
}
}Authorizations
Headers
Body
application/json
Response
The run report