PASAR API

🇨🇭 Fedlex ~ Swiss federal law as linked open data

← directory
Swiss Federal ChancelleryGovernment servicestier: openauth: no authpricing: freeverified 2026-07-05

SPARQL endpoint over RDF using the European Legislation Identifier (ELI) model; no key needed.

View docs ↗ More Government services APIs

Call it

curl 'https://fedlex.data.admin.ch/sparqlendpoint'

AI prompt

I'm building an app using a free Switzerland API (no auth needed).

API: Fedlex ~ Swiss federal law as linked open data
Provider: Swiss Federal Chancellery
Endpoint: GET https://fedlex.data.admin.ch/sparqlendpoint
It returns JSON.

Source: Swiss Federal Chancellery (https://fedlex.data.admin.ch/)
Source type: Official open-data catalogue
Endpoint type: Open-data catalogue JSON
Integration difficulty: Copy-paste ready
Last checked: 2026-07-05
Production caveat: Still handle empty rows, schema changes, pagination, stale coverage, and temporary upstream failures.

Help me fetch this and build a simple page that displays it nicely. Include basic production safeguards for errors, empty responses, schema changes, caching, and rate limits.

Related Government services APIs

data.gov.sg ~ Singapore open data & real-time APIsJAKIM e-Solat Prayer Times APIWaktu Solat API (Malaysia Prayer Times)SSM e-Info Company Registry APIOpenDOSM ~ official Malaysian statisticsGLEIF LEI API ~ global Legal Entity Identifier registryCompanies House API ~ UK company registry, filings & officersSEC EDGAR APIs ~ US public-company filings & financial dataFederal Register API ~ US government documents, rules & noticesOpenSanctions API ~ global sanctions, PEP & watchlist screening