HowToRomania Legislation API

The Legislation API from HowToRomania — 5 operation(s) for legislation.

GitHub OpenAPI

Operations 5

GET /v1/legislation/search Search acts (1 credit) #
GET /v1/legislation/act/{id}/article/{n} Article (in force) (1 credit) #

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/howtoromania-io:howtoromania-io-legislation-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

howtoromania-io-legislation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Howtoromania Io Legislation API
  version: 0.5.0
  contact:
    email: hello@howtoromania.io
    url: https://howtoromania.io
  description: 'Operations tagged Legislation across 2 of this provider''s published API definitions: howtoromania-io-openapi.json, howtoromania-io-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.howtoromania.io
security:
- apiKey: []
- bearer: []
tags:
- name: Legislation
paths:
  /v1/legislation/search:
    get:
      operationId: search_legislation
      summary: Search acts (1 credit)
      description: By citation ('Legea 31/1990') or title words
      tags:
      - Legislation
      x-credits: 1
      responses:
        '200':
          description: OK
          headers:
            x-credits-used:
              schema:
                type: integer
            x-credits-remaining:
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
        '400':
          description: Invalid input (not billed)
        '401':
          description: Missing/invalid key
        '402':
          description: Out of credits; body has checkout links
        '403':
          description: Endpoint not in demo key
        '404':
          description: Not found (not billed)
        '429':
          description: Demo limit reached
        '451':
          description: Court case closed more than 3 years ago, withheld for data protection (code unavailable_data_protection, not billed)
        '502':
          description: Upstream error (not billed)
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
        description: Citation or title words
        example: Legea 31/1990
      - name: type
        in: query
        required: false
        schema:
          type: string
        description: ''
      - name: number
        in: query
        required: false
        schema:
          type: string
        description: ''
      - name: year
        in: query
        required: false
        schema:
          type: string
        description: ''
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: 1..50
    servers:
    - url: https://api.howtoromania.io
  /v1/legislation/act/{id}:
    get:
      operationId: get_legal_act
      summary: Act (in force) (1 credit)
      description: Current consolidated text, split by article
      tags:
      - Legislation
      x-credits: 1
      responses:
        '200':
          description: OK
          headers:
            x-credits-used:
              schema:
                type: integer
            x-credits-remaining:
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
        '400':
          description: Invalid input (not billed)
        '401':
          description: Missing/invalid key
        '402':
          description: Out of credits; body has checkout links
        '403':
          description: Endpoint not in demo key
        '404':
          description: Not found (not billed)
        '429':
          description: Demo limit reached
        '451':
          description: Court case closed more than 3 years ago, withheld for data protection (code unavailable_data_protection, not billed)
        '502':
          description: Upstream error (not billed)
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        example: '171282'
        description: legislatie.just.ro act id
      - name: offset
        in: query
        required: false
        schema:
          type: integer
        description: ''
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: 1..200
    servers:
    - url: https://api.howtoromania.io
  /v1/legislation/act/{id}/article/{n}:
    get:
      operationId: get_legal_article
      summary: Article (in force) (1 credit)
      description: One article + dated amendment notes
      tags:
      - Legislation
      x-credits: 1
      responses:
        '200':
          description: OK
          headers:
            x-credits-used:
              schema:
                type: integer
            x-credits-remaining:
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
        '400':
          description: Invalid input (not billed)
        '401':
          description: Missing/invalid key
        '402':
          description: Out of credits; body has checkout links
        '403':
          description: Endpoint not in demo key
        '404':
          description: Not found (not billed)
        '429':
          description: Demo limit reached
        '451':
          description: Court case closed more than 3 years ago, withheld for data protection (code unavailable_data_protection, not billed)
        '502':
          description: Upstream error (not billed)
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        example: '171282'
        description: legislatie.just.ro act id
      - name: n
        in: path
        required: true
        schema:
          type: string
        example: '291'
    servers:
    - url: https://api.howtoromania.io
  /v1/legislation/act/{id}/history:
    get:
      operationId: get_legal_act_history
      summary: Amendment history (2 credits)
      description: Consolidation dates, dated amendments per article
      tags:
      - Legislation
      x-credits: 2
      responses:
        '200':
          description: OK
          headers:
            x-credits-used:
              schema:
                type: integer
            x-credits-remaining:
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
        '400':
          description: Invalid input (not billed)
        '401':
          description: Missing/invalid key
        '402':
          description: Out of credits; body has checkout links
        '403':
          description: Endpoint not in demo key
        '404':
          description: Not found (not billed)
        '429':
          description: Demo limit reached
        '451':
          description: Court case closed more than 3 years ago, withheld for data protection (code unavailable_data_protection, not billed)
        '502':
          description: Upstream error (not billed)
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        example: '171282'
        description: legislatie.just.ro act id
      - name: article
        in: query
        required: false
        schema:
          type: string
        description: ''
    servers:
    - url: https://api.howtoromania.io
  /v1/legislation/new:
    get:
      operationId: get_new_legal_acts
      summary: New acts (1 credit)
      description: Acts in force since a date (max 35 days)
      tags:
      - Legislation
      x-credits: 1
      responses:
        '200':
          description: OK
          headers:
            x-credits-used:
              schema:
                type: integer
            x-credits-remaining:
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
        '400':
          description: Invalid input (not billed)
        '401':
          description: Missing/invalid key
        '402':
          description: Out of credits; body has checkout links
        '403':
          description: Endpoint not in demo key
        '404':
          description: Not found (not billed)
        '429':
          description: Demo limit reached
        '451':
          description: Court case closed more than 3 years ago, withheld for data protection (code unavailable_data_protection, not billed)
        '502':
          description: Upstream error (not billed)
      parameters:
      - name: since
        in: query
        required: false
        schema:
          type: string
        description: YYYY-MM-DD, max 35 days back
    servers:
    - url: https://api.howtoromania.io
components:
  schemas:
    Error:
      description: Error body
      type: object
      properties:
        error:
          description: What went wrong
          type: object
          properties:
            code:
              description: Stable code, e.g. invalid_input, not_found, unauthorized, rate_limited, insufficient_credits
              type: string
            message:
              description: What went wrong, and whether the call was billed
              type: string
            retryAfterSeconds:
              description: Seconds to wait, on some rate-limit responses
              type: integer
            balance:
              description: Credit balance, on some billing errors
              type: integer
          additionalProperties: true
    PaymentRequired:
      description: Out of credits
      type: object
      properties:
        error:
          description: insufficient_credits
          type: object
          properties:
            code:
              description: Always insufficient_credits
              type: string
              const: insufficient_credits
            message:
              description: Out-of-credits explanation and how to buy a pack
              type: string
        balance:
          description: Credits remaining
          type: integer
        topup:
          description: How to buy credits
          type: object
          properties:
            howTo:
              description: Next step. When purchases are paused this says so, without a checkout link
              type: string
            purchasesPaused:
              description: True when checkout is closed
              type: boolean
            packs:
              description: Credit packs
              type: array
              items:
                description: One credit pack
                type: object
                properties:
                  id:
                    description: starter, pro, or scale
                    type: string
                  credits:
                    description: Credits in the pack
                    type: integer
                  price:
                    description: Price including VAT, e.g. 5.00 EUR
                    type: string
                  checkout:
                    description: Checkout URL. Present when purchases are open
                    type: string
                    format: uri
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
    bearer:
      type: http
      scheme: bearer
externalDocs:
  url: https://api.howtoromania.io/docs
x-refined-from:
- howtoromania-io-openapi.json
- howtoromania-io-openapi.json
x-mcp:
  url: https://api.howtoromania.io/mcp
  transport: streamable-http