EV readiness API

Request a score from your server and display it in your own app. Start with 100 scored lookups per month. Get a free key

Look up a place

curl -H "Authorization: Bearer $CIC_API_KEY" \
  "https://www.canicharge.com/api/ev-score?lat=30.2672&lng=-97.7431"

Use latitude and longitude for a map pin. You can also send a US street address in address, a five-digit zip, a state, or a city or county paired with its state.

The response includes a regional readiness score from 0 to 100, the region used, and nearby station counts. A null score means the area is unrated. Nearby station counts for a map pin use the supplied coordinates.

Use a score across page views

For a property listing, fetch once when you import the home. Store the response with the listing and render that saved value for each visitor. Refresh in the background after refresh_after (24 hours), or immediately if the coordinates change.

station_data_updated_at is the last known station publication time, or null when unavailable. scoring_version identifies the scoring method. Refreshing can return the same data.

Download the server-side JavaScript example
import { getReadiness } from './ev-readiness.mjs'

const result = await getReadiness(
    home.latitude, home.longitude, home.savedScore, process.env.CIC_API_KEY
)
await saveScore(home.id, result)

Use your own storage for saveScore. If a refresh fails, keep the previous result for that location with its date. Keep API keys on your server.

Each successful rated lookup uses one request. Displaying a saved result, failed lookups, and unrated results use none. HTTP 401 means the key is missing or invalid. For HTTP 429, wait until the time in the Retry-After header before retrying.