Integrate Swiss German learning into your website with our embeddable widget
Follow these simple steps to add Schwiizr to your website:
Contact us at partners@schwiizr.ch to receive your unique partner API token and configure your allowed domains.
Include our embed script in your HTML. It's lightweight (~15KB) and loads asynchronously.
Call SchwiizrEmbed.init() with your token and customization options to render the widget.
White-label the widget with your brand colors, fonts, and logo through our admin panel.
Add this code to your website where you want the Schwiizr widget to appear:
<!-- Schwiizr Embed Widget -->
<div id="schwiizr-widget"></div>
<script src="https://schwiizr.ch/embed/widget.js"></script>
<script>
SchwiizrEmbed.init({
// Required: Your partner API token
token: 'YOUR_PARTNER_TOKEN',
// Required: Container element ID
container: 'schwiizr-widget',
// Optional: Override default branding
branding: {
primaryColor: '#22c55e',
accentColor: '#f59e0b',
fontFamily: 'Inter, system-ui, sans-serif'
},
// Optional: Filter lessons
options: {
difficulty: 'A1', // A1, A2, B1, B2
maxLessons: 10,
showProgress: true
},
// Optional: Event callbacks
onLessonComplete: (lessonId, score) => {
console.log(`Lesson ${lessonId} completed with score ${score}`);
},
onError: (error) => {
console.error('Schwiizr error:', error);
}
});
</script>
Customize the widget and see a live preview:
Choose the plan that fits your needs:
CHF 0
CHF 49/mo
CHF 149/mo
Custom
Contact our partnership team to get your API token and start integrating Schwiizr into your platform.