Prezio provides two distinct environments for API access, each serving a specific purpose in your development lifecycle.

Available Environments

Sandbox

URL: https://sandbox.prezio.eu/api/

Development and testing environment with sample data and relaxed rate limits.

Production

URL: https://api.prezio.eu/api/

Live environment with complete data coverage and standard rate limits.

Development Workflow

1

Start with Sandbox

Begin your integration using the sandbox environment with test data.

2

Test Thoroughly

Validate your implementation with various scenarios and edge cases.

3

Move to Production

Once testing is complete, switch to the production environment with the same code and API key but different base URL.

Sandbox Environment

The sandbox environment is your development and testing playground, offering:

Safe Testing

Test without affecting production systems or incurring unexpected charges.

Real Data

Access limited but real pricing data across supported markets.

Error Simulation

Test error handling with invalid parameters or rate limit scenarios.

Sandbox Limitations: The sandbox environment is provided as-is, without service level guarantees. Updates and changes may be released at any time without prior notice. API structure, responses, or data availability may change as the service evolves. While we strive to maintain stability, the sandbox environment is primarily intended for development and testing purposes, not for production applications.

Data Coverage

Sandbox has limited geographic coverage. See our data availability guide for details on supported regions.

Sandbox Characteristics

Rate Limits

Production Environment

The production environment provides live electricity pricing data with full market coverage and reliability guarantees.

Production Features

Complete Coverage

Access to all supported countries, bid zones, organizations and price components, according to your contract.

Real-time Data

Up-to-date pricing information synchronized with market data sources.

Performance

Optimized for scalability and reliability with standard rate limits based on your subscription tier.

Customer support

Ongoing support available at support@prezio.eu in case of questions or issues with tariffs.

Environment Configuration

Use the same API key for both environments, but call different base URLs:

# Sandbox request (open access)
curl -X GET "https://sandbox.prezio.eu/api/live/?country=DK&tariff_id=tar_123" \
  -H "Authorization: Token YOUR_API_KEY"

# Production request (requires contract)
curl -X GET "https://api.prezio.eu/api/live/?country=DK&tariff_id=tar_123" \
  -H "Authorization: Token YOUR_API_KEY"

Use environment variables or configuration files to easily switch between environments:

const API_URL = process.env.NODE_ENV === 'production'
  ? 'https://api.prezio.eu/api'
  : 'https://sandbox.prezio.eu/api';
  
const API_KEY = process.env.PREZIO_API_KEY; // Same key for both environments

Access Control: Sandbox access is available to all registered users. Production access requires a contract - contact support@prezio.eu to enable production access.

Best Practices

  1. Develop in sandbox first before deploying to production
  2. Maintain environment parity by using identical code for both environments
  3. Implement proper error handling for all API responses
  4. Monitor API usage to stay within your rate limits
  5. Use the same API key for both environments, switching only the base URL

Need assistance with environment setup? Contact our support team at support@prezio.eu.