API v1.0.0
API Documentation
Integrate Sammenligneren functionality into your applications with our RESTful API.
Fast & Reliable
Low latency responses with 99.9% uptime SLA
Secure
HTTPS-only, rate limiting, and data protection
Well Documented
Complete guides, examples, and OpenAPI specification
Getting Started
POST /api/leads
Submit a new lead for comparison services
Request Example
fetch('https://sammenligneren.no/api/leads', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
category: 'strom',
name: 'Ola Nordmann',
email: 'ola@example.com',
phone: '+47 12345678',
consent: true,
preferences: {
property_type: 'apartment',
estimated_usage: '5000 kWh/year'
}
})
})Response Example
{
"success": true,
"leadId": "550e8400-e29b-41d4-a716-446655440000"
}Parameters
required
categorystring - Category slug (strom, bank, etc.)required
namestring - Full namerequired
emailstring - Email addressrequired
phonestring - Phone numberrequired
consentboolean - Must be trueoptional
preferencesobject - Category-specific dataRate Limits
Leads API
10
requests per hour per IP
Reviews API
5
requests per hour per IP
Search API
60
requests per minute per IP
Resources
Full Documentation
Complete API reference in Markdown format
OpenAPI Specification
Machine-readable API spec in YAML format
Support
Need help with the API? We're here to assist you.
Email: api@sammenligneren.no
Documentation: https://sammenligneren.no/docs/api