API v1
API Overview
The Strompreise Schweiz API provides programmatic access to Swiss electricity tariff data. Use our REST API to integrate tariff information into your applications, energy management systems, or data analysis workflows.
Base URL
All API requests should be made to the following base URL:
https://www.strompreise-schweiz.ch/api/v1Key Features
- Access comprehensive electricity tariff data from Swiss energy providers
- Filter and search tariffs by provider, type, and date
- Pagination support for handling large datasets
- Structured JSON responses with consistent formatting
Quick Start
Make your first API request to list all available tariffs:
Requestbash
curl -X GET "https://www.strompreise-schweiz.ch/api/v1/tariffs" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json"Versioning
The API uses URL-based versioning. The current version is v1. We recommend always specifying the version in your requests to ensure compatibility.