Discover/Comparis API
live

Comparis APIcomparis.ch

Access Swiss real estate listings, car marketplace data, and live mortgage rates from Comparis.ch via 7 structured endpoints with filters and detail views.

Endpoint health
verified 6d ago
get_car_detail
get_real_estate_detail
get_car_filters
search_real_estate
get_mortgage_rates
7/7 passing latest checkself-healing
Endpoints
7
Updated
22d ago

What is the Comparis API?

The Comparis.ch API exposes 7 endpoints covering Swiss real estate listings, car marketplace data, and benchmark mortgage interest rates. Use search_real_estate to query properties by location, price, area, and room count, or get_mortgage_rates to retrieve current term-based rates from multiple Swiss providers. Each domain includes a search endpoint for paginated results and a detail endpoint for full field-level data.

Try it

No input parameters required.

api.parse.bot/scraper/f21cd4c4-6927-4b2b-96d5-738e8b93b458/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/f21cd4c4-6927-4b2b-96d5-738e8b93b458/get_real_estate_filters' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace comparis-ch-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: Comparis.ch SDK — search Swiss real estate, cars, and mortgage rates."""
from parse_apis.comparis_ch_api import (
    Comparis, DealType, RealEstateSort, VehicleType, ListingNotFound
)

client = Comparis()

# Fetch available real estate filter vocabulary (deal types, property types, sort options).
filters = client.realestatefilters.get()
print(f"Deal types: {filters.deal_types}, Property types available: {len(filters.property_types)}")

# Search rental apartments in Zurich, sorted by date, capped at 3 results.
for listing in client.realestatelistingsummaries.search(
    location="Zurich", deal_type=DealType.RENT, sort=RealEstateSort.DATE_DESC, limit=3
):
    print(f"  {listing.title} — CHF {listing.price_value}, {listing.property_type_text}")

# Drill into one listing's full details via .first() then .details().
listing = client.realestatelistingsummaries.search(
    location="Zurich", deal_type=DealType.RENT, limit=1
).first()
if listing:
    detail = listing.details()
    print(f"Detail: {detail.title}, rooms={detail.num_rooms}, floor={detail.floor}")

# Typed error handling when fetching a listing by ID.
try:
    full = client.realestatelistings.get(ad_id="999999999")
    print(f"Found: {full.title}")
except ListingNotFound as exc:
    print(f"Listing gone: {exc}")

# Search used cars under CHF 20,000 from 2015+.
for car in client.carlistingsummaries.search(
    vehicle_type=VehicleType.USED, price_to=20000, year_from=2015, limit=3
):
    print(f"  {car.make} {car.model} — CHF {car.price}, {car.vehicle_type}")

# Fetch current mortgage rates and inspect the Comparis benchmark.
rates = client.mortgagerates.get()
print(f"Comparis benchmark rate: {rates.comparis_offer.interest_rate}%")
for term in rates.term_informations[:3]:
    print(f"  {term.term}y: {term.local_min}%-{term.local_max}%")

print("Exercised: realestatefilters.get / realestatelistingsummaries.search / details / realestatelistings.get / carlistingsummaries.search / mortgagerates.get")
All endpoints · 7 totalmissing one? ·

Returns the fixed vocabulary of deal types, property types, and sort options accepted by the real estate search endpoint. No parameters required; the response is static reference data.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "deal_types": "object mapping deal type ID string to label",
    "sort_options": "object mapping sort ID string to label",
    "property_types": "object mapping property type ID string to label"
  },
  "sample": {
    "data": {
      "deal_types": {
        "10": "Rent",
        "20": "Buy"
      },
      "sort_options": {
        "0": "Relevance",
        "1": "Price Ascending",
        "2": "Price Descending",
        "3": "Date Descending"
      },
      "property_types": {
        "1": "Wohnung",
        "3": "WG-Zimmer",
        "4": "Grundstück",
        "5": "Parkplatz, Garage",
        "8": "Gewerbeobjekt",
        "9": "Bastelraum",
        "10": "Haus"
      }
    },
    "status": "success"
  }
}

About the Comparis API

Real Estate Endpoints

The get_real_estate_filters endpoint returns the static vocabulary of deal type IDs, property type IDs, and sort option IDs you pass into search_real_estate. That search endpoint accepts location (city name or postal code), deal_type, price_to, area_from, area_to, rooms_to, and page for pagination starting at page 1. Note that total_count may be null on some queries. Once you have an AdId from search results, get_real_estate_detail returns the full record: Area, Floor, Price, PriceText, NumRooms, Remarks, a Features array, and source_links.

Car Marketplace Endpoints

get_car_filters returns the list of available car makes as objects with MakeId and DisplayName; the Models, ModelGroups, and AggregatedModels fields are null until a make is passed into search_cars. The search endpoint accepts make, model, vehicle_type, year_from, mileage_to, price_to, and page. Each listing in the results includes AdID, Make, Model, Price, VehicleType, and a Specifications object. get_car_detail resolves a single AdID into structured blocks: MainInformation (make, model, mileage, registration date, condition), PriceInformation (price, market price, original price), Overview (fuel type, transmission, body type, engine), TechnicalDetails (color, weight, emissions, engine size), Features, and ContactInformation (dealer name, address, phone).

Mortgage Rates Endpoint

get_mortgage_rates requires no parameters and returns the current Swiss mortgage rate landscape. ComparisOffer holds the Comparis benchmark rate with InterestRate and ProviderId. ProviderInfos lists individual providers with their rates and product IDs. TermInformations breaks down minimum and maximum rates (both local and service-wide) by term length in years. ProviderFootnotes supplies indexed footnote text for provider-specific conditions.

Reliability & maintenanceVerified

The Comparis API is a managed, monitored endpoint for comparis.ch — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when comparis.ch changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official comparis.ch API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
6d ago
Latest check
7/7 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Monitor Swiss rental and purchase listing prices across cities using search_real_estate with location and deal_type filters
  • Build a property comparison tool using area, room count, and price fields from get_real_estate_detail
  • Track used car prices on the Swiss market by querying search_cars with make, year_from, and mileage_to filters
  • Display dealer contact information and market price comparisons for specific vehicles using get_car_detail PriceInformation
  • Fetch current Swiss mortgage benchmark rates by term and provider for a mortgage calculator using get_mortgage_rates TermInformations
  • Populate filter UIs for property or car searches using the static vocabulary from get_real_estate_filters and get_car_filters
  • Alert users when listings matching their criteria appear by polling search_real_estate with price and area bounds
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Comparis.ch offer an official developer API?+
Comparis.ch does not publish a publicly documented developer API or API portal for third-party use.
What does get_mortgage_rates return, and does it include historical rate data?+
get_mortgage_rates returns current snapshot data: the Comparis benchmark rate, per-provider rates with product IDs, term-based min/max ranges (LocalMin, LocalMax, ServiceMin, ServiceMax), and provider footnotes. It does not include historical rate series. The API covers only the current rate snapshot. You can fork it on Parse and revise to add an endpoint that records and stores successive snapshots for trend analysis.
Can I filter real estate listings by property type?+
get_real_estate_filters returns property_type IDs, but search_real_estate does not currently expose a property_type input parameter — filtering is limited to location, deal_type, price_to, area_from, area_to, rooms_to, sort, and page. You can fork it on Parse and revise to add property_type as a filter parameter if that capability becomes available.
Does the API cover insurance, telecom, or other Comparis comparison categories?+
Not currently. The API covers real estate listings, car marketplace data, and mortgage interest rates. Comparis.ch also hosts comparisons for health insurance, telecom plans, and other financial products, but none of those categories are exposed by the current endpoints. You can fork it on Parse and revise to add endpoints for those verticals.
How does pagination work for search_real_estate and search_cars?+
Both endpoints use page-based pagination starting at page 1, passed via the page integer parameter. The total_count field in the response indicates the total number of matching records but may be null on certain queries, so you should handle null gracefully and continue paginating until an empty listings array is returned.
Page content last updated . Spec covers 7 endpoints from comparis.ch.
Related APIs in Real EstateSee all →
immoscout24.ch API
Search residential and commercial property listings on ImmoScout24 by location, price, and room count, then access detailed information including images, company details, and property types. Find your ideal property with comprehensive filtering options and complete listing data all in one place.
toppreise.ch API
Search and compare product prices across Swiss retailers on Toppreise.ch, view detailed specifications, track price history, and discover the best shops for any item. Find exactly what you're looking for with comprehensive product details and real-time pricing information.
centris.ca API
Search and retrieve real estate listings from Centris.ca, Canada's largest real estate platform. Filter by location, property type, price range, and keywords to find houses, condos, plexes, and multi-generational properties across Quebec. Get detailed listing information including price, address, room counts, and photos.
immobiliare.it API
Search Italian property listings for sale or rent, browse real estate agencies, and explore price trends across Italian cities — all via immobiliare.it.
ss.lv API
Browse real estate and spare parts listings from ss.lv, search by keywords, and view detailed information about specific listings. Get instant access to property and automotive parts data to find what you're looking for on one of Latvia's largest marketplaces.
imot.bg API
Search real estate listings for sale or rent on Bulgaria's imot.bg marketplace, view detailed property information, and compare average prices to make informed decisions. Access search filters and options to refine your property search by location, price, and other criteria.
kleinanzeigen.de API
Search and retrieve classified ad listings from kleinanzeigen.de. Filter by keyword, category, price range, and sorting order. Supports vehicles, real estate, jobs, electronics, and general products, with full listing details including title, price, description, location, and seller information.
immowelt.de API
Search and browse real estate listings across Germany on Immowelt.de, with access to property details, images, and features for both rentals and sales. Filter results by location and sorting preferences to find properties that match your needs.