Customer support |
Login |
REST API

REST API · Regulatory Database

Search the database

GEThttps://api.obsidianri.com/v1/database/search

The regulations of your regulatory database, the same list as its Database page, filtered, sorted and paged. Your database holds the regulations selected for your account and the acts your entities are subject to, within your jurisdictions. Filters combine with AND; the values inside one comma list combine with OR.

Query parameters

ParameterTypeRequiredDescription
qstringoptionalSearch words. Every word is required, matched on the title, short title, reference, jurisdiction, authorities, industries, frameworks and entity names. Up to 200 characters.
jurisdictionstringoptionalComma list of jurisdiction ids or names, e.g. EU,US. Up to 300 characters.
industrystringoptionalComma list of industry ids or names (see Database overview). Up to 400 characters.
frameworkstringoptionalComma list of framework ids or names (see Database overview). Up to 400 characters.
statusstringoptionalComma list among in_force, adopted, proposed, consultation, expected, repealed, withdrawn. Up to 200 characters.
entitystringoptionalComma list of your entity ids or names: only the regulations that apply to them. Up to 400 characters.
sortstringoptionaltitle (default), updated (the most recent change of the law first) or next (the nearest coming step first). Up to 10 characters.
afterstringoptionalThe next cursor of the previous page. Up to 12 characters.
limitintegeroptionalResults per page. Default 20. From 1 to 50.

Request

bash
curl -G https://api.obsidianri.com/v1/database/search \
  -H "X-API-Key: $OBSIDIAN_API_KEY" \
  --data-urlencode "q=packaging" \
  --data-urlencode "jurisdiction=EU" \
  --data-urlencode "sort=next" \
  --data-urlencode "limit=1"

Response

200 with a JSON object:

FieldTypeDescription
totalintegerThe number of regulations in your database.
matchedintegerThe number of regulations that match the filters.
itemsarray of objectsThe regulations of this page. Empty fields are left out of an item.
items[].idstringThe regulation id, JURISDICTION/record id: the id of Get a regulation.
items[].jurisdictionstringThe jurisdiction id.
items[].jurisdiction_labelstringThe jurisdiction name.
items[].titlestringThe title.
items[].short_titlestringThe short title.
items[].referencestringThe official reference.
items[].statusstringThe status id (see the status parameter).
items[].status_labelstringThe status name, e.g. In force.
items[].key_dateobjectThe key date: label, date and precision.
items[].next_stepobjectThe next coming step: date, what and precision.
items[].law_last_changedstringThe date of the last change of the law.
items[].industriesarray of stringsIts industries.
items[].frameworksarray of stringsIts frameworks.
items[].entitiesarray of objectsYour entities it concerns: name and verdict.
items[].authoritiesarray of stringsThe authorities.
items[].official_urlstringThe official source link.
items[].obsidian_urlstringThe regulation page in Obsidian.
nextstring or nullThe cursor of the next page, to send as after. null on the last page.

Example response

Generic values that show the shape, not real records:

json
{
  "total": 148,
  "matched": 3,
  "items": [
    {
      "id": "EU/example-packaging-regulation",
      "jurisdiction": "EU",
      "jurisdiction_label": "European Union",
      "title": "Example: Regulation on packaging and packaging waste",
      "short_title": "Example PPR",
      "reference": "Regulation (EU) 2025/0000",
      "status": "in_force",
      "status_label": "In force",
      "key_date": {
        "label": "Applies from",
        "date": "2026-08-12",
        "precision": "day"
      },
      "next_step": {
        "date": "2027-01-01",
        "what": "Labelling obligations apply",
        "precision": "day"
      },
      "law_last_changed": "2026-10-03",
      "industries": [
        "Packaging"
      ],
      "frameworks": [
        "Example circular economy framework"
      ],
      "entities": [
        {
          "name": "Example Europe GmbH",
          "verdict": "Applies"
        }
      ],
      "authorities": [
        "European Commission"
      ],
      "official_url": "https://www.example.org/official/text/2025-0000",
      "obsidian_url": "https://app.obsidianri.com/database/EU/example-packaging-regulation"
    }
  ],
  "next": "1"
}

Errors

StatusWhen
400after is not a cursor this endpoint returned (detail: bad_cursor).
403The regulatory database is not part of the API and MCP access of the account.
401, 402, 429, 503As for every endpoint: see Errors and limits.

In the MCP server

The same read is the MCP tool database_search.