OpenCaseLaw Scholarship API

The Scholarship API from OpenCaseLaw — 8 operation(s) for scholarship.

GitHub OpenAPI

Operations 8

GET /scholarship/search Search OA Swiss legal scholarship #
GET /scholarship/sources List indexed scholarship sources + license catalog #
GET /scholarship/licenses Full license + attribution catalog for all sources #
GET /scholarship/citation-stats Citation-bridge counts between scholarship and caselaw #
GET /scholarship/cited-by-statute Scholarship citing a statute article #
GET /scholarship/cited-by-decision Scholarship citing a court decision #
GET /scholarship-fulltext Get full text of an OA publication (on demand) #
GET /scholarship/{pub_id} Get a single publication by pub_id #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/opencaselaw-ch:opencaselaw-ch-scholarship-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

opencaselaw-ch-scholarship-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenCaseLaw Scholarship API
  description: Swiss court decisions, statutes, commentaries, scholarship, and citation graph. 1,040,000+ published decisions from Swiss federal, cantonal, and regulatory bodies, 5,546 federal laws, 16,400 cantonal acts, 1,100+ commentaries, 51,000+ OA scholarship records.
  version: 1.0.0
servers:
- url: https://mcp.opencaselaw.ch/api
  description: OpenCaseLaw public REST API
- url: /api
  description: Relative — for self-hosted or reverse-proxied deployments
tags:
- name: Scholarship
paths:
  /scholarship/search:
    get:
      tags:
      - Scholarship
      summary: Search OA Swiss legal scholarship
      description: Full-text search across the unified scholarship corpus (OA journal articles + commentaries + dissertations + books + reports). Returns ranked results with snippets and per-source attribution (required by CC-BY / CC-BY-SA license terms — preserve when re-using).
      operationId: api_search_scholarship_scholarship_search_get
      parameters:
      - name: query
        in: query
        required: false
        schema:
          type: string
          description: Topic query (FTS5 syntax); optional if `author` or a filter is given
          title: Query
        description: Topic query (FTS5 syntax); optional if `author` or a filter is given
      - name: q
        in: query
        required: false
        schema:
          type: string
          description: Alias for `query`.
          title: Q
        description: Alias for `query`.
      - name: source
        in: query
        required: false
        schema:
          type: string
          description: Filter by source slug
          title: Source
        description: Filter by source slug
      - name: pub_type
        in: query
        required: false
        schema:
          type: string
          description: Filter by publication type
          title: Pub Type
        description: Filter by publication type
      - name: language
        in: query
        required: false
        schema:
          type: string
          description: Language filter (de/fr/it/en)
          title: Language
        description: Language filter (de/fr/it/en)
      - name: year_min
        in: query
        required: false
        schema:
          type: integer
          description: Earliest publication year
          title: Year Min
        description: Earliest publication year
      - name: year_max
        in: query
        required: false
        schema:
          type: integer
          description: Latest publication year
          title: Year Max
        description: Latest publication year
      - name: author
        in: query
        required: false
        schema:
          type: string
          description: Filter by author (substring); usable without a query for a bibliographic browse
          title: Author
        description: Filter by author (substring); usable without a query for a bibliographic browse
      - name: sort
        in: query
        required: false
        schema:
          type: string
          description: 'Order: relevance (default) / year / year_asc'
          title: Sort
        description: 'Order: relevance (default) / year / year_asc'
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 50
          minimum: 1
          description: Max results
          default: 10
          title: Limit
        description: Max results
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /scholarship/sources:
    get:
      tags:
      - Scholarship
      summary: List indexed scholarship sources + license catalog
      description: Returns counts per source + license + attribution. Always available even when the scholarship DB is empty.
      operationId: api_list_scholarship_sources_scholarship_sources_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /scholarship/licenses:
    get:
      tags:
      - Scholarship
      summary: Full license + attribution catalog for all sources
      description: Source-by-source license terms, license URLs, homepages, and attribution text. Includes active and scaffolded-but-inactive sources so the catalog lists everything that will eventually be served.
      operationId: api_scholarship_licenses_scholarship_licenses_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /scholarship/citation-stats:
    get:
      tags:
      - Scholarship
      summary: Citation-bridge counts between scholarship and caselaw
      description: Returns live counts of the resolved citations from scholarship full-text into the canonical decision + statute corpora. Populated nightly by Step 2b of build_legal_scholarship.py.
      operationId: api_scholarship_citation_stats_scholarship_citation_stats_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /scholarship/cited-by-statute:
    get:
      tags:
      - Scholarship
      summary: Scholarship citing a statute article
      operationId: api_scholarship_cited_by_statute_scholarship_cited_by_statute_get
      parameters:
      - name: sr_number
        in: query
        required: true
        schema:
          type: string
          description: SR number (e.g. '220')
          title: Sr Number
        description: SR number (e.g. '220')
      - name: article
        in: query
        required: false
        schema:
          type: string
          description: Article number (e.g. '41')
          title: Article
        description: Article number (e.g. '41')
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 20
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /scholarship/cited-by-decision:
    get:
      tags:
      - Scholarship
      summary: Scholarship citing a court decision
      operationId: api_scholarship_cited_by_decision_scholarship_cited_by_decision_get
      parameters:
      - name: decision_id
        in: query
        required: true
        schema:
          type: string
          description: Decision id (e.g. 'bge_BGE_140_III_86')
          title: Decision Id
        description: Decision id (e.g. 'bge_BGE_140_III_86')
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 20
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /scholarship-fulltext:
    get:
      tags:
      - Scholarship
      summary: Get full text of an OA publication (on demand)
      operationId: api_get_scholarship_full_text_scholarship_fulltext_get
      parameters:
      - name: pub_id
        in: query
        required: true
        schema:
          type: string
          description: Canonical pub_id
          title: Pub Id
        description: Canonical pub_id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /scholarship/{pub_id}:
    get:
      tags:
      - Scholarship
      summary: Get a single publication by pub_id
      operationId: api_get_scholarship_scholarship__pub_id__get
      parameters:
      - name: pub_id
        in: path
        required: true
        schema:
          type: string
          description: Canonical pub_id
          title: Pub Id
        description: Canonical pub_id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            type: string
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
          type: object
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError