Get Electricity Price Per Sector
/energy/electricity-price-per-sector has rate limitation:
Initially, the API allows for a burst of 20 requests, and afterward, it gradually restores 1 request every 15 seconds until reaching the maximum allowable limit of 20. This limitation is imposed to manage and control the rate at which requests can be made to the API, preventing potential misuse or excessive use of resources.
Electricity Price Per Sector
This endpoint provides detailed electricity pricing data per sector (residential, commercial, industrial) across different regions. It allows analysts and energy managers to track energy cost trends and forecast future changes. Prices are provided for specified time spans, reflecting both current and historical rates.
Authorization
ApiKeyAuth In: header
Query Parameters
Time span
"5Y"Value in
- "5Y"
- "ALL"
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/energy/electricity-price-per-sector?span=5Y"{ "$schema": "https://api.hashrateindex.com/v1/hashrateindex/schemas/ElectricityPricePerSectorData.json", "data": [ { "commercial": 0.1, "date": "2019-08-24T14:15:22Z", "industrial": 0.1, "residential": 0.1 } ]}{ "$schema": "https://api.hashrateindex.com/v1/hashrateindex/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "errors": [ { "location": "string", "message": "string", "value": null } ], "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "https://example.com/errors/example"}{ "$schema": "https://api.hashrateindex.com/v1/hashrateindex/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "errors": [ { "location": "string", "message": "string", "value": null } ], "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "https://example.com/errors/example"}{ "$schema": "https://api.hashrateindex.com/v1/hashrateindex/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "errors": [ { "location": "string", "message": "string", "value": null } ], "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "https://example.com/errors/example"}