Skip to content

List solar arrays

Request

List all the solar arrays that the authorization token has access to.

Security
oauth2(Required scopes: solar:read)
Query
page_beforestring[a-z]{4}[A-Z\d]{26}

Return results from the page after this ID.

Example:page_before=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR
page_afterstring[a-z]{4}[A-Z\d]{26}

Return results from the page before this ID.

Example:page_after=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR
page_sizeinteger, [ 1 .. 100 ]

Specify the number of results to return per page.

Default:25
Example:page_size=10
expandArray of strings

Specify a url field to expand into a nested resource.

Items Enum:"user""inverter"
vehicle_idstring

When provided, populates the percent_vehicle_battery_charge_until_midnight field.

Example:vehicle_id=vhcl01HRFF3SEVSCRAV9B3CHVDFN0H
Headers
EvEnergy-Userstringuser[A-Z\d]{26}

If the client is authenticated using Client Credentials, setting EvEnergy-User to a valid user ID allows requests to be made as if you were directly authenticated as that user.

Example:user01HN2NJ9NMRZBXT1H6FT9N7735
EvEnergy-Versionnumber

Specify the version of this endpoint to use.

Value:2
Accept-Languagestring

Indicates the natural language and locale that the client prefers.

curl -i -X GET \
  'https://developers.ev.energy/_mock/ev.energy-api-v2/solar_arrays?page_before=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR&page_after=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR&page_size=10&expand=user&vehicle_id=vhcl01HRFF3SEVSCRAV9B3CHVDFN0H' \
  -H 'Accept-Language: string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'EvEnergy-User: user01HN2NJ9NMRZBXT1H6FT9N7735' \
  -H 'EvEnergy-Version: 2'

Responses

Returns a list of solar arrays.

Headers
EvEnergy-Versionnumber

Indicates the version of the API that generated this response. If EvEnergy-Version was not specified in the request, this will be your OAuth application's default version.

Value:2
X-RateLimit-Limitnumber

The maximum number of requests that can be made to this endpoint per hour. Defaults to 1000 but may vary per client.

Default:1000
X-RateLimit-Remainingnumber

The number of requests remaining until this client's rate limit is reached.

Default:999
RetryAfternumber

The number of seconds until this client's requests will not be rate limited.

Default:3600
Bodyapplication/json
Array [
idstringsolr[A-Z\d]{26}read-onlyrequired

Unique identifier for the given Solar Array.

Example:"solr01JASZTD3T7N39DTZPBJVXNPKP"
urlstring, (uri)read-onlyrequired
Example:"https://api.ev.energy/solar_arrays/solr01JASZTD3T7N39DTZPBJVXNPKP"
capacity_wattsinteger

Capacity of the solar array in watts.

inverter(string or null) or Inverter (object)
One of:

Reference of the connected inverter.

string or null (uri)
forecastobject or null

Forecast data if available to the user.

Only available to internal users.

userstring or User (object)
One of:
string (uri)
]
Response
[ { "id": "solr01JASZTD3T7N39DTZPBJVXNPKP", "url": "https://api.ev.energy/v2/solar_arrays/solr01JASZTD3T7N39DTZPBJVXNPKP", "capacity_watts": 7000, "inverter": "https://api.ev.energy/v2/inverters/invtFB08NVS8KADFY6GAQ9C6RMFGUY", "forecast": {}, "user": "https://api.ev.energy/v2/users/user01HN2NJ9NMRZBXT1H6FT9N7735" } ]