← Back to Calculator · CFO ROI Brief · OpenAPI 3.1 · 10-Row Sample CSV
Commercial EV Truck & Van Fleet TCO, Depot Peak-Demand Charge, Smart Load-Shaping & V2G Arbitrage Calculator — Pro API Quickstart
Endpoint: GET https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-ev-fleet-depot-v2g-calc/dataset (36 live records).
Get Polar License Key ($39/mo)
1. Dataset Columns
metric, value
2. cURL, Python & DuckDB
curl -H "Authorization: Bearer YOUR_POLAR_KEY" \
https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-ev-fleet-depot-v2g-calc/dataset
# Python pandas
import pandas as pd, requests
df = pd.json_normalize(requests.get("https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-ev-fleet-depot-v2g-calc/dataset", headers={"Authorization": "Bearer YOUR_POLAR_KEY"}).json())
-- DuckDB SQL
SELECT * FROM read_json_auto('https://p2-ev-fleet-depot-v2g-calc.pages.dev/data/sample-preview.json');
4. PowerBI / Excel PowerQuery M & Google Sheets Live Connectors
let
Source = Json.Document(Web.Contents("https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-ev-fleet-depot-v2g-calc/dataset", [Headers=[Authorization="Bearer YOUR_POLAR_KEY"]])),
TableData = Table.FromRecords(Source[records])
in
TableData
=IMPORTDATA("https://p2-ev-fleet-depot-v2g-calc.pages.dev/data/sample-preview.csv")
Inline License Connection Tester:
Vendor Security & MoR Pack · vendor-pack.json · Hub 48-Portal BI Connectors