Lebanese Legislation Law API

The Law API from Lebanese Legislation — 3 operation(s) for law.

GitHub OpenAPI

Operations 3

GET /api/v1/law/{id}/ A law, decree or other text: its metadata, outline and amendments #
GET /api/v1/law/{id}/article/{n}/ One article's text in force, its versions, the texts that changed it and the… #
GET /api/v1/law/{id}/calculated-current/ The Code of Civil Procedure's monetary amounts as calculated under decree… #

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/lebaneselegislation-com:lebaneselegislation-com-law-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

lebaneselegislation-com-law-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lebanese Legislation Law API
  version: v1
  summary: Read-only JSON API over every Lebanese law, decree, article, court ruling and Official Gazette issue.
  description: 'Free, no key. Every text field is copied from the source as the Lebanese University''s Centre for Research and Studies in Legal Informatics published it; nothing is paraphrased. Not legal advice. updated_at is the day a record''s page last changed on the site (an amendment in force, a ruling''s reading, a correction), never the text''s own date; it is absent when not known. title_en is an unofficial English rendering of the Arabic title, written by a model; the Arabic title is official. Responses are cached for 60 seconds. Each client may make a limited number of requests a minute: on 429 wait for Retry-After.'
  license:
    name: MIT (code); texts keep their own rights and attribution
    identifier: MIT
  contact:
    name: Lebanese Legislation
    url: https://lebaneselegislation.com/developers/
    email: nizar@taktek.io
servers:
- url: https://lebaneselegislation.com
tags:
- name: Law
paths:
  /api/v1/law/{id}/:
    get:
      operationId: getLaw
      summary: 'A law, decree or other text: its metadata, outline and amendments'
      parameters:
      - $ref: '#/components/parameters/LawID'
      responses:
        '200':
          description: The text.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LawDetail'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooMany'
        '503':
          $ref: '#/components/responses/Busy'
      tags:
      - Law
  /api/v1/law/{id}/article/{n}/:
    get:
      operationId: getArticle
      summary: One article's text in force, its versions, the texts that changed it and the…
      parameters:
      - $ref: '#/components/parameters/LawID'
      - name: n
        in: path
        required: true
        description: The article's number as printed, spaces as hyphens ("12-مكرر").
        schema:
          type: string
        example: '1'
      responses:
        '200':
          description: The article.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArticleDetail'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooMany'
        '503':
          $ref: '#/components/responses/Busy'
      tags:
      - Law
  /api/v1/law/{id}/calculated-current/:
    get:
      operationId: getCalculatedCurrent
      summary: The Code of Civil Procedure's monetary amounts as calculated under decree…
      description: 'A calculation, not published wording: cite its authority.'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          const: 244565
        example: 244565
      responses:
        '200':
          description: The calculated articles, by number; empty when none applies.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CalculatedCurrentList'
        '404':
          description: Any other text.
        '429':
          $ref: '#/components/responses/TooMany'
        '503':
          description: The text could not be loaded, or the server is busy.
      tags:
      - Law
components:
  schemas:
    CalculatedCurrentList:
      type: object
      required:
      - law_id
      - articles
      properties:
        law_id:
          type: integer
        articles:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/CalculatedCurrent'
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
    CalculatedCurrent:
      type: object
      description: 'A monetary amount calculated under decree 13909/2024 (multiplier 50, effective 2024-09-19). Not published wording: cite authority.url.'
      additionalProperties: true
    ArticleDetail:
      type: object
      required:
      - law
      - number
      - text_ar
      - url
      - not_legal_advice
      properties:
        calculated_current:
          $ref: '#/components/schemas/CalculatedCurrent'
        law:
          $ref: '#/components/schemas/LawSummary'
        number:
          type: string
        note:
          type: string
        centre_error:
          type: object
          properties:
            en:
              type: string
            ar:
              type: string
        text_ar:
          type: string
          description: The wording in force today, as the page prints it.
        text_fr:
          type: string
        centre_text_ar:
          type: string
          description: The Centre's wording, when an amendment replaced it.
        centre_text_fr:
          type: string
        in_force_from:
          $ref: '#/components/schemas/Date'
        versions:
          type: array
          items:
            type: object
            required:
            - major
            - minor
            - state
            - text_source
            properties:
              major:
                type: integer
              minor:
                type: integer
              valid_from:
                $ref: '#/components/schemas/Date'
              valid_to:
                $ref: '#/components/schemas/Date'
              state:
                type: string
              text_ar:
                type: string
              text_source:
                type: string
              note:
                type: string
        repealed:
          type: boolean
        changes:
          type: array
          items:
            type: object
            required:
            - relation
            - by
            - found_by
            - url
            properties:
              relation:
                type: string
              part:
                type: string
              by:
                $ref: '#/components/schemas/LawSummary'
              by_article:
                type: string
              effective_on:
                $ref: '#/components/schemas/Date'
              text_ar:
                type: string
              found_by:
                type: array
                items:
                  type: string
              url:
                type: string
                format: uri
        possibly_affected_by:
          type: array
          description: 'General repeals that may touch the article: leads to check, never findings.'
          items:
            type: object
            required:
            - by
            - by_article
            - url
            properties:
              by:
                $ref: '#/components/schemas/LawSummary'
              by_article:
                type: string
              url:
                type: string
                format: uri
        rulings_count:
          type: integer
        rulings:
          type: array
          items:
            type: object
            required:
            - id
            - court
            - url
            properties:
              id:
                type: integer
              court:
                type: string
              number:
                type: string
              year:
                type: integer
              decided_on:
                $ref: '#/components/schemas/Date'
              url:
                type: string
                format: uri
        url:
          type: string
          format: uri
        source_url:
          type: string
          format: uri
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        not_legal_advice:
          type: string
    LawSummary:
      type: object
      description: A text's identity, without its text.
      required:
      - id
      - kind
      - title
      - status
      - article_count
      - url
      properties:
        id:
          type: integer
        kind:
          type: string
          description: In Arabic, as the Centre names it.
        kind_en:
          type: string
        number:
          type: string
        issued_on:
          $ref: '#/components/schemas/Date'
        title:
          type: string
          description: The official Arabic title.
        title_en:
          type: string
          description: Unofficial English title, written by a model from the Arabic title.
        status:
          type: string
          enum:
          - in_force
          - repealed
        article_count:
          type: integer
        code:
          type: string
          description: The curated code's short name, e.g. "Code of Obligations and Contracts".
        url:
          type: string
          format: uri
        source_url:
          type: string
          format: uri
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
    LawDetail:
      allOf:
      - $ref: '#/components/schemas/LawSummary'
      - type: object
        required:
        - not_legal_advice
        properties:
          gazette_number:
            type: string
          gazette_date:
            $ref: '#/components/schemas/Date'
          gazette_issue_id:
            type: integer
          preamble:
            type: string
          explanatory_note:
            type: string
          closing:
            type: string
          table_of_contents:
            type: array
            items:
              type: object
              required:
              - id
              - depth
              - heading
              properties:
                id:
                  type: integer
                depth:
                  type: integer
                heading:
                  type: string
                note:
                  type: string
          articles:
            type: array
            items:
              type: object
              required:
              - position
              - number
              - url
              properties:
                position:
                  type: integer
                number:
                  type: string
                section_id:
                  type: integer
                url:
                  type: string
                  format: uri
          amended_by:
            type: array
            items:
              $ref: '#/components/schemas/LawChange'
          amended:
            type: array
            items:
              $ref: '#/components/schemas/LawChange'
          not_legal_advice:
            type: string
    UpdatedAt:
      type: string
      format: date
      description: 'The day the record''s page last changed on the site (page_state): an amendment in force, a ruling''s reading, a correction. Never the text''s own date. Absent when not known.'
    LawChange:
      type: object
      required:
      - relation
      - verb
      - law
      properties:
        relation:
          type: string
        verb:
          type: string
        law:
          $ref: '#/components/schemas/LawSummary'
        effective_on:
          $ref: '#/components/schemas/Date'
        articles:
          type: array
          items:
            type: string
    Date:
      type: string
      format: date
      examples:
      - '2026-11-02'
  responses:
    Busy:
      description: 'The server is busy: try again shortly.'
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        text/plain:
          schema:
            type: string
    TooMany:
      description: 'Too many requests from this client: wait for Retry-After seconds.'
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        text/plain:
          schema:
            type: string
    NotFound:
      description: No such record.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  parameters:
    LawID:
      name: id
      in: path
      required: true
      description: The text's id, as in its address (/law/{id}/).
      schema:
        type: integer
        minimum: 1
      example: 1
externalDocs:
  description: Developer guide, and the MCP server at /mcp
  url: https://lebaneselegislation.com/developers/