Search
Six search endpoints over the same documents: keyword, semantic, hybrid, their reranked variants, and reference search through the citation graph.
Keyword Search
/v1.1/search/keyword_searchParameters
querystringrequiredKeyword query. Supports boolean operators and quoted phrases. Use Boolean operators to refine results. Combine terms with AND (both must match), OR (either matches), or NOT (exclude a term). Use parentheses to group expressions, e.g. (fraud OR negligence) AND "GDPR". Quoting controls how strictly terms are matched: unquoted terms match anywhere in the document, while a quoted phrase (e.g. "data protection") matches only where the words appear next to each other in that order. For exact phrase search, use one double quote (") on each side of the phrase. Two single quotes ('') do not enable exact phrase search. In a JSON request, escape the inner double quotes with a backslash. Use '*' as a wildcard to expand a prefix, e.g. regul* matches regulation and regulatory (a leading wildcard is treated as a literal asterisk).
documentTypesstring[]Filter by document type. Only accepts IDs returned by GET /v1.1/search/filters/documenttypes. Example IDs: '18fead608f1a4dcb5671b9fc8aeab4d1' (Laws and regulations), '04b42e5bf858a66de2229227deaa21e3' (Decisions).
jurisdictionsstring[]Filter by jurisdiction. Only accepts names returned by GET /v1.1/search/filters/jurisdictions_portals.
portalsstring[]Filter by portal. Use the `value` field returned by GET /v1.1/search/filters/jurisdictions_portals. Can be combined with jurisdictions — e.g. pairing 'Netherlands' in jurisdictions with '0|eur-lex.europa.eu' in portals searches all documents from the Netherlands and documents from eur-lex.europa.eu.
fieldsOfLawstring[]Filter by field of law. Only accepts IDs returned by GET /v1.1/search/filters/trees.
documentIdentifiersstring[]Restrict the search to chunks belonging to these documents. Each value is a Moonlit document identifier (e.g. '32016R0679'). Empty list (or omitted) means no document scoping. Maximum 50 identifiers; exceeding returns 422. Composes with every other filter — e.g. combined with reference_identifier to scope reference search to a specific document.
from_datestring | nullInclusive lower date bound (YYYY-MM-DD). Applied only together with until_date; on its own it is ignored.
until_datestring | nullInclusive upper date bound (YYYY-MM-DD). Applied only together with from_date; on its own it is ignored.
date_fieldstringdefault: dateWhich document date `from_date`/`until_date` (and sort_type 1/2, where available) apply to. `date` (default) is the primary document date, as returned by retrieve_document. Documents without the chosen date are excluded by the date filter and sorted last.
sourcesstring[]Filter by source (issuing entity such as a court or legislative body). Only accepts the `value` field from items returned by GET /v1.1/search/filters/sources. For example, if the filter endpoint returns `{"name": "Hof van Cassatie", "value": "c1f4502e43dc2c11969f4f201194fc07", ...}`, pass `"c1f4502e43dc2c11969f4f201194fc07"` in this array.
reference_identifierstring | nullDocument identifier to find references for. When set, results are restricted to documents that reference or are referenced by this document (depending on reference_direction).
reference_directioninteger | nullDirection of the reference relationship. 0 = to (documents that reference/cite reference_identifier), 1 = made_by (documents referenced by reference_identifier), 2 = both directions combined. Only used when reference_identifier is set.
article_reference_idstring | nullArticle-level identifier to narrow reference results to a specific article within the referenced document. Use GET /v1.1/document/articles to discover available article identifiers for a document. Only used when reference_identifier is set.
reference_typesstring[] | nullKeep only documents related to reference_identifier by one of these reference type ids, as listed in each result's `referenceTypes[].id`, e.g. `CITES`, `REPEALS`, `BASED_ON`. An unknown id returns no results. Not applied together with article_reference_id.
reference_familiesstring[] | nullKeep only documents related to reference_identifier by a reference type of one of these families: `CITES`, `AMENDS`, `APPLIES`, `INTERPRETS`, `LEGAL_BASIS`, `REPEALS`, `CASE_HISTORY`, `RELATED_CASE`, `STRUCTURE`, `EDITORIAL`, `SAME_DOCUMENT`, `DOCUMENT_VERSION`, `JURISDICTION_SPECIFIC`. Not applied together with article_reference_id.
sort_typeinteger0 = relevance (default), 1 = newest first, 2 = oldest first, 3 = most cited.
pageintegerdefault: 1Page number, starting from 1. Determines which slice of results to return. The server computes the internal offset as (page − 1) × num_results. page × num_results may not exceed 10,000; a deeper page returns 400.
num_resultsintegerdefault: 10Maximum number of documents to return per page. Must be between 1 and 100.
facetsbooleandefault: falseWhether to include facets in the response. Facets are aggregations of the search results.
all_facetsbooleandefault: falseWhen facets is enabled, controls whether to include all known facet values (including those with count 0) or only values that appear in the current result set. Applies to FieldsOfLaw and DocumentTypes; Sources only ever lists values present in the result set.
facet_limitinteger | nullMaximum number of sources kept under each top-level category in the Sources facet, ranked by document count. Omit for the full tree. When set, every top-level category with documents is still returned and carries an otherCount with the number of children dropped; `result.sourcesTotal` and `result.sourcesTruncated` report the cut.
Example request
curl -X POST "https://api.moonlit.ai/v1.1/search/keyword_search" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"all_facets": true,
"documentTypes": [
"18fead608f1a4dcb5671b9fc8aeab4d1",
"04b42e5bf858a66de2229227deaa21e3"
],
"facets": true,
"fieldsOfLaw": [],
"from_date": "2021-01-01",
"jurisdictions": [
"Netherlands"
],
"num_results": 10,
"page": 1,
"portals": [
"0|eur-lex.europa.eu"
],
"query": "\"data protection\" AND (\"Facebook\" OR \"Meta\")",
"sort_type": 0,
"sources": [],
"until_date": "2024-12-31"
}'Try it
/v1.1/search/keyword_searchNot run yetThe key stays in this browser tab and is sent only to api.moonlit.ai. Every request counts against your plan like any other call.
Response
Keyword search results
resultobjectSearch result payload.
countintegerKeyword and reference search: all matching documents. Semantic and hybrid search: the number of results on this page.
skipintegerOffset of the first result: (page − 1) × num_results.
topintegerPage size: num_results.
resultsobject[]The documents on this page.
identifierstringMoonlit document identifier. Pass it to retrieve_document.
secondaryIdentifierstring | nullSecondary identifier, such as an ECLI.
tertiaryIdentifierstring | nullTertiary identifier, such as a case number.
titlestring | nullDocument title.
portalstringPortal domain the document comes from.
dataSourceintegerNumeric jurisdiction code: the number before | in portal filter values (0 is the European Union).
courtstring | nullName of the issuing court or body.
languagestring | nullLanguage code, e.g. EN.
datestring | nullPrimary document date, as an ISO 8601 timestamp. The other date fields match retrieve_document and are null when unknown.
decisionDatestring | nullDate the decision was rendered or the act adopted.
enactmentDatestring | nullDate the act was enacted.
publicationDatestring | nullDate of official publication.
entryIntoForceDatestring | nullDate the document entered into force.
validFromstring | nullStart of the validity period.
validTostring | nullEnd of the validity period.
proceedingsStartDatestring | nullDate the proceedings started.
startDatestring | nullStart of the document's date range.
endDatestring | nullEnd of the document's date range.
yearinteger | nullYear of date.
highlightsstring[] | nullKeyword matches in context; matched words are wrapped in <span class='bold'>. Null on semantic search.
semanticHighlightsobject[] | nullPassages that matched by meaning. Null on keyword and reference search.
summarystring | nullAI-generated summary, when one exists.
sourcesobject[]Issuing body as a path from category to body, e.g. International courts, then Court of Justice (Grand Chamber).
fieldsOfLawobject[]Fields of law.
documentTypesobject[]Document types.
referencedinteger | nullNumber of documents that cite this document.
literatureReferencedinteger | nullNumber of literature documents that cite this document.
scorenumberRanking score. The scale differs per endpoint: keyword relevance, vector similarity, fused rank or reranker score.
sourceUrlstring | nullLink to the official publication.
inForceboolean | nullWhether the document is in force; null when unknown.
referenceTypesobject[]Only when the search uses reference_identifier: how the result relates to that document.
facetsobject | nullOnly with facets=true on keyword and reference search, otherwise null: DataSources, Portals, FieldsOfLaw, DocumentTypes and Sources, each a list of values with a name, value and count.
sourcesTotalintegerOnly with facet_limit: source nodes in the Sources facet before the limit.
sourcesTruncatedbooleanOnly with facet_limit: whether the limit dropped any source.
successbooleanWhether upstream query succeeded.
errorany | nullUpstream error payload.
{
"result": {
"count": 143,
"skip": 0,
"top": 10,
"results": [
{
"identifier": "62021CJ0252",
"secondaryIdentifier": "ECLI:EU:C:2023:537",
"tertiaryIdentifier": "MNLT:EU:EUEURLEX:2021:62021CJ0252",
"portal": "eur-lex.europa.eu",
"startDate": "2021-04-22T00:00:00+00:00",
"endDate": "2023-07-04T00:00:00+00:00",
"date": "2023-07-04T00:00:00+00:00",
"decisionDate": "2023-07-04T00:00:00+00:00",
"enactmentDate": null,
"publicationDate": null,
"entryIntoForceDate": null,
"validFrom": null,
"validTo": null,
"proceedingsStartDate": "2021-04-22T00:00:00+00:00",
"summary": null,
"title": "Court of Justice (Grand Chamber) 4 July 2023, C-252/21 (Meta Platforms Inc and Others v Bundeskartellamt.)",
"court": "Court of Justice (Grand Chamber)",
"year": 2023,
"language": "EN",
"dataSource": 0,
"referenced": 831,
"literatureReferenced": 25,
"sourceUrl": "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:62021CJ0252",
"inForce": null,
"fieldsOfLaw": [
{
"id": "dd1d654d122ccfe4dca550d3c2d5c8e5",
"parentId": null,
"shortName": "Private law",
"name": "Private law"
},
{
"id": "c05592783ea71881536e23f451738d6c",
"parentId": "dd1d654d122ccfe4dca550d3c2d5c8e5",
"shortName": "Information law",
"name": "Information law"
}
],
"score": 64.25356,
"highlights": [
". Kranenborg and G. Meessen, acting as Agents, after hearing the Opinion of the Advocate General at the sitting on 20 September 2022, gives the following Judgme ...",
" authorities, the regulatory authorities, the federal <span class='bold'>data</span> <span class='bold'>protection</span> and freedom of information officer, th ..."
],
"semanticHighlights": null,
"documentTypes": [
{
"id": "04b42e5bf858a66de2229227deaa21e3",
"parentId": null,
"shortName": "Decisions",
"name": "Decisions"
},
{
"id": "de031523335927bc8401fa9ee92cf81a",
"parentId": "04b42e5bf858a66de2229227deaa21e3",
"shortName": "Court judgments",
"name": "Court judgments"
}
],
"sources": [
{
"id": "f7875ac0576a21c24937d480f6fde4f1",
"parentId": null,
"shortName": "International courts",
"name": "International courts"
},
{
"id": "8280a224a89a6295254aaab7a73c9868",
"parentId": "f7875ac0576a21c24937d480f6fde4f1",
"shortName": "Court of Justice (Grand Chamber)",
"name": "Court of Justice (Grand Chamber)"
}
]
},
{
"identifier": "62020CJ0319",
"secondaryIdentifier": "ECLI:EU:C:2022:322",
"tertiaryIdentifier": "MNLT:EU:EUEURLEX:2020:62020CJ0319",
"portal": "eur-lex.europa.eu",
"startDate": "2020-07-15T00:00:00+00:00",
"endDate": "2022-04-28T00:00:00+00:00",
"date": "2022-04-28T00:00:00+00:00",
"decisionDate": "2022-04-28T00:00:00+00:00",
"enactmentDate": null,
"publicationDate": null,
"entryIntoForceDate": null,
"validFrom": null,
"validTo": null,
"proceedingsStartDate": "2020-07-15T00:00:00+00:00",
"summary": null,
"title": "Court of Justice (Third Chamber) 28 April 2022, C-319/20 (Meta Platforms Ireland Limited v Bundesverband der Verbraucherzentralen und Verbraucherverbände - Verb ...",
"court": "Court of Justice (Third Chamber)",
"year": 2022,
"language": "EN",
"dataSource": 0,
"referenced": 134,
"literatureReferenced": 3,
"sourceUrl": "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:62020CJ0319",
"inForce": null,
"fieldsOfLaw": [
{
"id": "dd1d654d122ccfe4dca550d3c2d5c8e5",
"parentId": null,
"shortName": "Private law",
"name": "Private law"
},
{
"id": "6a89e686beca9918a742ecdeead1ba69",
"parentId": "dd1d654d122ccfe4dca550d3c2d5c8e5",
"shortName": "Commercial law",
"name": "Commercial law"
}
],
"score": 54.707138,
"highlights": [
", acting as Agents, – the European Commission, initially by F. Erlbacher, H. Kranenborg and D. Nardi, and subsequently by F. Erlbacher and H. Kranenborg, acting ...",
" Consumer Organisations and Associations, Germany) (‘the Federal Union’) concerning the infringement by <span class='bold'>Meta</span> Platforms Ireland of the ..."
],
"semanticHighlights": null,
"documentTypes": [
{
"id": "04b42e5bf858a66de2229227deaa21e3",
"parentId": null,
"shortName": "Decisions",
"name": "Decisions"
},
{
"id": "de031523335927bc8401fa9ee92cf81a",
"parentId": "04b42e5bf858a66de2229227deaa21e3",
"shortName": "Court judgments",
"name": "Court judgments"
}
],
"sources": [
{
"id": "f7875ac0576a21c24937d480f6fde4f1",
"parentId": null,
"shortName": "International courts",
"name": "International courts"
},
{
"id": "2338ff1168999b9e2691bc4d5df5d7a2",
"parentId": "f7875ac0576a21c24937d480f6fde4f1",
"shortName": "Court of Justice (Third Chamber)",
"name": "Court of Justice (Third Chamber)"
}
]
}
],
"facets": {
"DataSources": [
{
"name": "European Union",
"value": "0",
"parentId": null,
"count": 139,
"shortName": "European Union",
"tooltip": "European Union",
"children": null,
"portals": []
},
{
"name": "United Kingdom",
"value": "2",
"parentId": null,
"count": 93,
"shortName": "United Kingdom",
"tooltip": "United Kingdom",
"children": null,
"portals": []
}
],
"FieldsOfLaw": [
{
"name": "European law",
"value": "4969871cb271bbd3cdbb7ee2ab8e9325",
"parentId": null,
"count": 22,
"shortName": "European law",
"tooltip": "European law",
"children": [
{
"name": "European private law",
"value": "2b0d77a189446417e8ce762cbe4f3714",
"parentId": "4969871cb271bbd3cdbb7ee2ab8e9325",
"count": 5,
"shortName": "European private law",
"tooltip": "European private law",
"children": null
},
{
"name": "European procedural law",
"value": "300dcf81de923484b5742247fc2020d4",
"parentId": "4969871cb271bbd3cdbb7ee2ab8e9325",
"count": 3,
"shortName": "European procedural law",
"tooltip": "European procedural law",
"children": null
}
]
},
{
"name": "Private law",
"value": "dd1d654d122ccfe4dca550d3c2d5c8e5",
"parentId": null,
"count": 9,
"shortName": "Private law",
"tooltip": "Private law",
"children": [
{
"name": "Information law",
"value": "c05592783ea71881536e23f451738d6c",
"parentId": "dd1d654d122ccfe4dca550d3c2d5c8e5",
"count": 13,
"shortName": "Information law",
"tooltip": "Information law",
"children": []
},
{
"name": "Commercial law",
"value": "6a89e686beca9918a742ecdeead1ba69",
"parentId": "dd1d654d122ccfe4dca550d3c2d5c8e5",
"count": 3,
"shortName": "Commercial law",
"tooltip": "Commercial law",
"children": []
}
]
}
],
"Portals": [
{
"name": "autoriteitpersoonsgegevens.nl",
"value": "autoriteitpersoonsgegevens.nl",
"parentId": null,
"count": 20,
"shortName": "autoriteitpersoonsgegevens.nl",
"tooltip": null,
"children": null
},
{
"name": "uitspraken.rechtspraak.nl",
"value": "uitspraken.rechtspraak.nl",
"parentId": null,
"count": 9,
"shortName": "uitspraken.rechtspraak.nl",
"tooltip": null,
"children": null
}
],
"DocumentTypes": [
{
"name": "Policy",
"value": "bb491487def337216dea442161545e72",
"parentId": null,
"count": 158,
"shortName": "Policy",
"tooltip": "Policy",
"children": [
{
"name": "European policy",
"value": "0c87693ad27fb5cd2df3d5eac607ae00",
"parentId": "bb491487def337216dea442161545e72",
"count": 113,
"shortName": "European policy",
"tooltip": "European policy",
"children": []
},
{
"name": "Parliamentary documents",
"value": "16dc6cc342cbf8ef33a7e6507d819e1d",
"parentId": "bb491487def337216dea442161545e72",
"count": 44,
"shortName": "Parliamentary documents",
"tooltip": "Parliamentary documents",
"children": []
}
]
},
{
"name": "Decisions",
"value": "04b42e5bf858a66de2229227deaa21e3",
"parentId": null,
"count": 90,
"shortName": "Decisions",
"tooltip": "Decisions",
"children": [
{
"name": "Court judgments",
"value": "de031523335927bc8401fa9ee92cf81a",
"parentId": "04b42e5bf858a66de2229227deaa21e3",
"count": 40,
"shortName": "Court judgments",
"tooltip": "Court judgments",
"children": []
},
{
"name": "Administrative decisions",
"value": "83a776c0ba12085b1ae0e4746f2431bb",
"parentId": "04b42e5bf858a66de2229227deaa21e3",
"count": 27,
"shortName": "Administrative decisions",
"tooltip": "Administrative decisions",
"children": []
}
]
}
],
"Sources": [
{
"name": "International courts",
"value": "f7875ac0576a21c24937d480f6fde4f1",
"parentId": null,
"count": 54,
"shortName": "International courts",
"tooltip": "International courts",
"children": [
{
"name": "Court of Justice",
"value": "831ac8586a41ff18af4cb7d70e5cf9d3",
"parentId": "f7875ac0576a21c24937d480f6fde4f1",
"count": 22,
"shortName": "Court of Justice",
"tooltip": "Court of Justice",
"children": null
},
{
"name": "Court of Justice (Grand Chamber)",
"value": "8280a224a89a6295254aaab7a73c9868",
"parentId": "f7875ac0576a21c24937d480f6fde4f1",
"count": 9,
"shortName": "Court of Justice (Grand Chamber)",
"tooltip": "Court of Justice (Grand Chamber)",
"children": null
}
]
},
{
"name": "Legislative bodies",
"value": "b49c23adeaa6a345aa815e401c6d194b",
"parentId": null,
"count": 34,
"shortName": "Legislative bodies",
"tooltip": "Legislative bodies",
"children": [
{
"name": "Council of the European Union",
"value": "9890dd389f2ed51d77bbf446c60ec14a",
"parentId": "b49c23adeaa6a345aa815e401c6d194b",
"count": 16,
"shortName": "Council of the European Union",
"tooltip": "Council of the European Union",
"children": null
},
{
"name": "Council of the European Union and European Parliament",
"value": "05bd5d5f816e9836f8ffac5cbfed674c",
"parentId": "b49c23adeaa6a345aa815e401c6d194b",
"count": 7,
"shortName": "Council of the European Union and European Parliament",
"tooltip": "Council of the European Union and European Parliament",
"children": null
}
]
}
]
}
},
"success": true,
"error": null
}Errors
Semantic Search
/v1.1/search/semantic_searchParameters
querystringrequiredNatural-language semantic query text.
documentTypesstring[]Filter by document type. Only accepts IDs returned by GET /v1.1/search/filters/documenttypes. Example IDs: '18fead608f1a4dcb5671b9fc8aeab4d1' (Laws and regulations), '04b42e5bf858a66de2229227deaa21e3' (Decisions).
jurisdictionsstring[]Filter by jurisdiction. Only accepts names returned by GET /v1.1/search/filters/jurisdictions_portals.
portalsstring[]Filter by portal. Use the `value` field returned by GET /v1.1/search/filters/jurisdictions_portals. Can be combined with jurisdictions — e.g. pairing 'Netherlands' in jurisdictions with '0|eur-lex.europa.eu' in portals searches all documents from the Netherlands and documents from eur-lex.europa.eu.
fieldsOfLawstring[]Filter by field of law. Only accepts IDs returned by GET /v1.1/search/filters/trees.
documentIdentifiersstring[]Restrict the search to chunks belonging to these documents. Each value is a Moonlit document identifier (e.g. '32016R0679'). Empty list (or omitted) means no document scoping. Maximum 50 identifiers; exceeding returns 422. Composes with every other filter — e.g. combined with reference_identifier to scope reference search to a specific document.
from_datestring | nullInclusive lower date bound (YYYY-MM-DD). Applied only together with until_date; on its own it is ignored.
until_datestring | nullInclusive upper date bound (YYYY-MM-DD). Applied only together with from_date; on its own it is ignored.
date_fieldstringdefault: dateWhich document date `from_date`/`until_date` (and sort_type 1/2, where available) apply to. `date` (default) is the primary document date, as returned by retrieve_document. Documents without the chosen date are excluded by the date filter and sorted last.
sourcesstring[]Filter by source (issuing entity such as a court or legislative body). Only accepts the `value` field from items returned by GET /v1.1/search/filters/sources. For example, if the filter endpoint returns `{"name": "Hof van Cassatie", "value": "c1f4502e43dc2c11969f4f201194fc07", ...}`, pass `"c1f4502e43dc2c11969f4f201194fc07"` in this array.
reference_identifierstring | nullDocument identifier to find references for. When set, results are restricted to documents that reference or are referenced by this document (depending on reference_direction).
reference_directioninteger | nullDirection of the reference relationship. 0 = to (documents that reference/cite reference_identifier), 1 = made_by (documents referenced by reference_identifier), 2 = both directions combined. Only used when reference_identifier is set.
article_reference_idstring | nullArticle-level identifier to narrow reference results to a specific article within the referenced document. Use GET /v1.1/document/articles to discover available article identifiers for a document. Only used when reference_identifier is set.
reference_typesstring[] | nullKeep only documents related to reference_identifier by one of these reference type ids, as listed in each result's `referenceTypes[].id`, e.g. `CITES`, `REPEALS`, `BASED_ON`. An unknown id returns no results. Not applied together with article_reference_id.
reference_familiesstring[] | nullKeep only documents related to reference_identifier by a reference type of one of these families: `CITES`, `AMENDS`, `APPLIES`, `INTERPRETS`, `LEGAL_BASIS`, `REPEALS`, `CASE_HISTORY`, `RELATED_CASE`, `STRUCTURE`, `EDITORIAL`, `SAME_DOCUMENT`, `DOCUMENT_VERSION`, `JURISDICTION_SPECIFIC`. Not applied together with article_reference_id.
pageintegerdefault: 11-based result page. page × num_results may not exceed 2,500; a deeper page returns 400.
num_resultsintegerdefault: 20Results per page.
Example request
curl -X POST "https://api.moonlit.ai/v1.1/search/semantic_search" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"documentTypes": [
"18fead608f1a4dcb5671b9fc8aeab4d1",
"04b42e5bf858a66de2229227deaa21e3"
],
"fieldsOfLaw": [],
"jurisdictions": [],
"num_results": 20,
"page": 1,
"portals": [
"0|eur-lex.europa.eu"
],
"query": "data transfer safeguards for tech companies",
"sources": []
}'Try it
/v1.1/search/semantic_searchNot run yetThe key stays in this browser tab and is sent only to api.moonlit.ai. Every request counts against your plan like any other call.
Response
Semantic search results
resultobjectSearch result payload.
countintegerKeyword and reference search: all matching documents. Semantic and hybrid search: the number of results on this page.
skipintegerOffset of the first result: (page − 1) × num_results.
topintegerPage size: num_results.
resultsobject[]The documents on this page.
identifierstringMoonlit document identifier. Pass it to retrieve_document.
secondaryIdentifierstring | nullSecondary identifier, such as an ECLI.
tertiaryIdentifierstring | nullTertiary identifier, such as a case number.
titlestring | nullDocument title.
portalstringPortal domain the document comes from.
dataSourceintegerNumeric jurisdiction code: the number before | in portal filter values (0 is the European Union).
courtstring | nullName of the issuing court or body.
languagestring | nullLanguage code, e.g. EN.
datestring | nullPrimary document date, as an ISO 8601 timestamp. The other date fields match retrieve_document and are null when unknown.
decisionDatestring | nullDate the decision was rendered or the act adopted.
enactmentDatestring | nullDate the act was enacted.
publicationDatestring | nullDate of official publication.
entryIntoForceDatestring | nullDate the document entered into force.
validFromstring | nullStart of the validity period.
validTostring | nullEnd of the validity period.
proceedingsStartDatestring | nullDate the proceedings started.
startDatestring | nullStart of the document's date range.
endDatestring | nullEnd of the document's date range.
yearinteger | nullYear of date.
highlightsstring[] | nullKeyword matches in context; matched words are wrapped in <span class='bold'>. Null on semantic search.
semanticHighlightsobject[] | nullPassages that matched by meaning. Null on keyword and reference search.
summarystring | nullAI-generated summary, when one exists.
sourcesobject[]Issuing body as a path from category to body, e.g. International courts, then Court of Justice (Grand Chamber).
fieldsOfLawobject[]Fields of law.
documentTypesobject[]Document types.
referencedinteger | nullNumber of documents that cite this document.
literatureReferencedinteger | nullNumber of literature documents that cite this document.
scorenumberRanking score. The scale differs per endpoint: keyword relevance, vector similarity, fused rank or reranker score.
sourceUrlstring | nullLink to the official publication.
inForceboolean | nullWhether the document is in force; null when unknown.
referenceTypesobject[]Only when the search uses reference_identifier: how the result relates to that document.
facetsobject | nullOnly with facets=true on keyword and reference search, otherwise null: DataSources, Portals, FieldsOfLaw, DocumentTypes and Sources, each a list of values with a name, value and count.
sourcesTotalintegerOnly with facet_limit: source nodes in the Sources facet before the limit.
sourcesTruncatedbooleanOnly with facet_limit: whether the limit dropped any source.
successbooleanWhether upstream query succeeded.
errorany | nullUpstream error payload.
{
"result": {
"count": 20,
"skip": 0,
"top": 20,
"results": [
{
"identifier": "52012PC0011",
"secondaryIdentifier": null,
"tertiaryIdentifier": "MNLT:EU:EUEURLEX:2012:52012PC0011",
"portal": "eur-lex.europa.eu",
"startDate": null,
"endDate": "2012-01-25T00:00:00+00:00",
"date": "2012-01-25T00:00:00+00:00",
"decisionDate": "2012-01-25T00:00:00+00:00",
"enactmentDate": null,
"publicationDate": null,
"entryIntoForceDate": null,
"validFrom": null,
"validTo": "2016-04-27T00:00:00+00:00",
"proceedingsStartDate": null,
"summary": null,
"title": "European Commission 25 January 2012, Proposal for a REGULATION OF THE EUROPEAN PARLIAMENT AND OF THE COUNCIL on the protection of individuals with regard to the ...",
"court": "European Commission",
"year": 2012,
"language": "EN",
"dataSource": 0,
"referenced": 50,
"literatureReferenced": 0,
"sourceUrl": "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:52012PC0011",
"inForce": null,
"fieldsOfLaw": [],
"score": 0.85971752,
"highlights": null,
"semanticHighlights": [
{
"chunkIdentifier": "52012PC0011#119",
"chunkText": "The appropriate safeguards referred to in paragraph 1 shall be provided for, in particular, by: (a) binding corporate rules in accordance with Article 43; or (b ...",
"startOffset": 196002,
"endOffset": 197936,
"score": 0.85971752
},
{
"chunkIdentifier": "52012PC0011#52",
"chunkText": "(81) In line with the fundamental values on which the Union is founded, in particular the protection of human rights, the Commission should, in its assessment o ...",
"startOffset": 87496,
"endOffset": 89856,
"score": 0.85578981
}
],
"documentTypes": [
{
"id": "18fead608f1a4dcb5671b9fc8aeab4d1",
"parentId": null,
"shortName": "Laws and regulations",
"name": "Laws and regulations"
},
{
"id": "87a86c141d2c0649a699745ba63e4c6b",
"parentId": "18fead608f1a4dcb5671b9fc8aeab4d1",
"shortName": "European law",
"name": "European law"
}
],
"sources": [
{
"id": "e7043f83f817aea4fe62b8ba57664f5b",
"parentId": null,
"shortName": "Executive bodies",
"name": "Executive bodies"
},
{
"id": "ef0c4549e230285e355740fcf7933795",
"parentId": "e7043f83f817aea4fe62b8ba57664f5b",
"shortName": "European Commission",
"name": "European Commission"
}
]
},
{
"identifier": "32018R1725",
"secondaryIdentifier": "reg/2018/1725/oj",
"tertiaryIdentifier": "MNLT:EU:EUEURLEX:2018:32018R1725",
"portal": "eur-lex.europa.eu",
"startDate": null,
"endDate": "2018-10-23T00:00:00+00:00",
"date": "2018-10-23T00:00:00+00:00",
"decisionDate": "2018-10-23T00:00:00+00:00",
"enactmentDate": "2018-10-23T00:00:00+00:00",
"publicationDate": "2018-11-21T00:00:00+00:00",
"entryIntoForceDate": "2018-12-11T00:00:00+00:00",
"validFrom": "2018-12-11T00:00:00+00:00",
"validTo": null,
"proceedingsStartDate": null,
"summary": null,
"title": "Council of the European Union and European Parliament 23 October 2018, Regulation (EU) 2018/1725 of the European Parliament and of the Council of 23 October 201 ...",
"court": "Council of the European Union and European Parliament",
"year": 2018,
"language": "EN",
"dataSource": 0,
"referenced": 6388,
"literatureReferenced": 44,
"sourceUrl": "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32018R1725",
"inForce": true,
"fieldsOfLaw": [],
"score": 0.85553682,
"highlights": null,
"semanticHighlights": [
{
"chunkIdentifier": "32018R1725#115",
"chunkText": "The Union institutions and bodies shall take the necessary measures to comply with decisions taken by the Commission where it establishes, pursuant to Article 4 ...",
"startOffset": 166881,
"endOffset": 168608,
"score": 0.85553682
},
{
"chunkIdentifier": "32018R1725#36",
"chunkText": "(64) The Commission can decide, under Article 45 of Regulation (EU) 2016/679 or under Article 36 of Directive (EU) 2016/680, that a third country, a territory o ...",
"startOffset": 60908,
"endOffset": 63223,
"score": 0.8506104
}
],
"documentTypes": [
{
"id": "18fead608f1a4dcb5671b9fc8aeab4d1",
"parentId": null,
"shortName": "Laws and regulations",
"name": "Laws and regulations"
},
{
"id": "87a86c141d2c0649a699745ba63e4c6b",
"parentId": "18fead608f1a4dcb5671b9fc8aeab4d1",
"shortName": "European law",
"name": "European law"
}
],
"sources": [
{
"id": "b49c23adeaa6a345aa815e401c6d194b",
"parentId": null,
"shortName": "Legislative bodies",
"name": "Legislative bodies"
},
{
"id": "05bd5d5f816e9836f8ffac5cbfed674c",
"parentId": "b49c23adeaa6a345aa815e401c6d194b",
"shortName": "Council of the European Union and European Parliament",
"name": "Council of the European Union and European Parliament"
}
]
}
],
"facets": null
},
"success": true,
"error": null
}Errors
Semantic Search with Reranking
/v1.1/search/semantic_search_rerankedParameters
querystringrequiredNatural-language semantic query text.
documentTypesstring[]Filter by document type. Only accepts IDs returned by GET /v1.1/search/filters/documenttypes. Example IDs: '18fead608f1a4dcb5671b9fc8aeab4d1' (Laws and regulations), '04b42e5bf858a66de2229227deaa21e3' (Decisions).
jurisdictionsstring[]Filter by jurisdiction. Only accepts names returned by GET /v1.1/search/filters/jurisdictions_portals.
portalsstring[]Filter by portal. Use the `value` field returned by GET /v1.1/search/filters/jurisdictions_portals. Can be combined with jurisdictions — e.g. pairing 'Netherlands' in jurisdictions with '0|eur-lex.europa.eu' in portals searches all documents from the Netherlands and documents from eur-lex.europa.eu.
fieldsOfLawstring[]Filter by field of law. Only accepts IDs returned by GET /v1.1/search/filters/trees.
documentIdentifiersstring[]Restrict the search to chunks belonging to these documents. Each value is a Moonlit document identifier (e.g. '32016R0679'). Empty list (or omitted) means no document scoping. Maximum 50 identifiers; exceeding returns 422. Composes with every other filter — e.g. combined with reference_identifier to scope reference search to a specific document.
from_datestring | nullInclusive lower date bound (YYYY-MM-DD). Applied only together with until_date; on its own it is ignored.
until_datestring | nullInclusive upper date bound (YYYY-MM-DD). Applied only together with from_date; on its own it is ignored.
date_fieldstringdefault: dateWhich document date `from_date`/`until_date` (and sort_type 1/2, where available) apply to. `date` (default) is the primary document date, as returned by retrieve_document. Documents without the chosen date are excluded by the date filter and sorted last.
sourcesstring[]Filter by source (issuing entity such as a court or legislative body). Only accepts the `value` field from items returned by GET /v1.1/search/filters/sources. For example, if the filter endpoint returns `{"name": "Hof van Cassatie", "value": "c1f4502e43dc2c11969f4f201194fc07", ...}`, pass `"c1f4502e43dc2c11969f4f201194fc07"` in this array.
reference_identifierstring | nullDocument identifier to find references for. When set, results are restricted to documents that reference or are referenced by this document (depending on reference_direction).
reference_directioninteger | nullDirection of the reference relationship. 0 = to (documents that reference/cite reference_identifier), 1 = made_by (documents referenced by reference_identifier), 2 = both directions combined. Only used when reference_identifier is set.
article_reference_idstring | nullArticle-level identifier to narrow reference results to a specific article within the referenced document. Use GET /v1.1/document/articles to discover available article identifiers for a document. Only used when reference_identifier is set.
reference_typesstring[] | nullKeep only documents related to reference_identifier by one of these reference type ids, as listed in each result's `referenceTypes[].id`, e.g. `CITES`, `REPEALS`, `BASED_ON`. An unknown id returns no results. Not applied together with article_reference_id.
reference_familiesstring[] | nullKeep only documents related to reference_identifier by a reference type of one of these families: `CITES`, `AMENDS`, `APPLIES`, `INTERPRETS`, `LEGAL_BASIS`, `REPEALS`, `CASE_HISTORY`, `RELATED_CASE`, `STRUCTURE`, `EDITORIAL`, `SAME_DOCUMENT`, `DOCUMENT_VERSION`, `JURISDICTION_SPECIFIC`. Not applied together with article_reference_id.
pageintegerdefault: 11-based result page. Results stop after 3 × num_results, and at least 60; deeper pages come back empty.
num_resultsintegerdefault: 20Results per page.
rerankerTypeintegerdefault: 11 = Google Vertex AI reranker (default). 2 is accepted and currently ranks the same as 1.
Example request
curl -X POST "https://api.moonlit.ai/v1.1/search/semantic_search_reranked" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"documentTypes": [],
"fieldsOfLaw": [],
"jurisdictions": [],
"num_results": 20,
"page": 1,
"portals": [],
"query": "data transfer safeguards for tech companies",
"rerankerType": 1,
"sources": []
}'Try it
/v1.1/search/semantic_search_rerankedNot run yetThe key stays in this browser tab and is sent only to api.moonlit.ai. Every request counts against your plan like any other call.
Response
Semantic search results, reranked by relevance
resultobjectSearch result payload.
countintegerKeyword and reference search: all matching documents. Semantic and hybrid search: the number of results on this page.
skipintegerOffset of the first result: (page − 1) × num_results.
topintegerPage size: num_results.
resultsobject[]The documents on this page.
identifierstringMoonlit document identifier. Pass it to retrieve_document.
secondaryIdentifierstring | nullSecondary identifier, such as an ECLI.
tertiaryIdentifierstring | nullTertiary identifier, such as a case number.
titlestring | nullDocument title.
portalstringPortal domain the document comes from.
dataSourceintegerNumeric jurisdiction code: the number before | in portal filter values (0 is the European Union).
courtstring | nullName of the issuing court or body.
languagestring | nullLanguage code, e.g. EN.
datestring | nullPrimary document date, as an ISO 8601 timestamp. The other date fields match retrieve_document and are null when unknown.
decisionDatestring | nullDate the decision was rendered or the act adopted.
enactmentDatestring | nullDate the act was enacted.
publicationDatestring | nullDate of official publication.
entryIntoForceDatestring | nullDate the document entered into force.
validFromstring | nullStart of the validity period.
validTostring | nullEnd of the validity period.
proceedingsStartDatestring | nullDate the proceedings started.
startDatestring | nullStart of the document's date range.
endDatestring | nullEnd of the document's date range.
yearinteger | nullYear of date.
highlightsstring[] | nullKeyword matches in context; matched words are wrapped in <span class='bold'>. Null on semantic search.
semanticHighlightsobject[] | nullPassages that matched by meaning. Null on keyword and reference search.
summarystring | nullAI-generated summary, when one exists.
sourcesobject[]Issuing body as a path from category to body, e.g. International courts, then Court of Justice (Grand Chamber).
fieldsOfLawobject[]Fields of law.
documentTypesobject[]Document types.
referencedinteger | nullNumber of documents that cite this document.
literatureReferencedinteger | nullNumber of literature documents that cite this document.
scorenumberRanking score. The scale differs per endpoint: keyword relevance, vector similarity, fused rank or reranker score.
sourceUrlstring | nullLink to the official publication.
inForceboolean | nullWhether the document is in force; null when unknown.
referenceTypesobject[]Only when the search uses reference_identifier: how the result relates to that document.
facetsobject | nullOnly with facets=true on keyword and reference search, otherwise null: DataSources, Portals, FieldsOfLaw, DocumentTypes and Sources, each a list of values with a name, value and count.
sourcesTotalintegerOnly with facet_limit: source nodes in the Sources facet before the limit.
sourcesTruncatedbooleanOnly with facet_limit: whether the limit dropped any source.
successbooleanWhether upstream query succeeded.
errorany | nullUpstream error payload.
{
"result": {
"count": 20,
"skip": 0,
"top": 20,
"results": [
{
"identifier": "52022SC0034",
"secondaryIdentifier": null,
"tertiaryIdentifier": "MNLT:EU:EUEURLEX:2022:52022SC0034",
"portal": "eur-lex.europa.eu",
"startDate": null,
"endDate": "2022-02-23T00:00:00+00:00",
"date": "2022-02-23T00:00:00+00:00",
"decisionDate": "2022-02-23T00:00:00+00:00",
"enactmentDate": null,
"publicationDate": null,
"entryIntoForceDate": null,
"validFrom": null,
"validTo": null,
"proceedingsStartDate": null,
"summary": null,
"title": "European Commission 23 February 2022, COMMISSION STAFF WORKING DOCUMENT IMPACT ASSESSMENT REPORT Accompanying the document Proposal for a Regulation of the Euro ...",
"court": "European Commission",
"year": 2022,
"language": "EN",
"dataSource": 0,
"referenced": 3,
"literatureReferenced": 0,
"sourceUrl": "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:52022SC0034",
"inForce": null,
"fieldsOfLaw": [],
"score": 0.5363,
"highlights": null,
"semanticHighlights": [
{
"chunkIdentifier": "52022SC0034#242",
"chunkText": "The safeguards would be intended to make unlawful data transfer without notification by the cloud service provider impossible, rather than resolving potential c ...",
"startOffset": 402666,
"endOffset": 404766,
"score": 0.85910675
}
],
"documentTypes": [
{
"id": "bb491487def337216dea442161545e72",
"parentId": null,
"shortName": "Policy",
"name": "Policy"
},
{
"id": "0c87693ad27fb5cd2df3d5eac607ae00",
"parentId": "bb491487def337216dea442161545e72",
"shortName": "European policy",
"name": "European policy"
}
],
"sources": [
{
"id": "e7043f83f817aea4fe62b8ba57664f5b",
"parentId": null,
"shortName": "Executive bodies",
"name": "Executive bodies"
},
{
"id": "ef0c4549e230285e355740fcf7933795",
"parentId": "e7043f83f817aea4fe62b8ba57664f5b",
"shortName": "European Commission",
"name": "European Commission"
}
]
},
{
"identifier": "52020SC0115",
"secondaryIdentifier": null,
"tertiaryIdentifier": "MNLT:EU:EUEURLEX:2020:52020SC0115",
"portal": "eur-lex.europa.eu",
"startDate": null,
"endDate": "2020-06-24T00:00:00+00:00",
"date": "2020-06-24T00:00:00+00:00",
"decisionDate": "2020-06-24T00:00:00+00:00",
"enactmentDate": null,
"publicationDate": null,
"entryIntoForceDate": null,
"validFrom": null,
"validTo": null,
"proceedingsStartDate": null,
"summary": null,
"title": "European Commission 24 June 2020, COMMISSION STAFF WORKING DOCUMENT Accompanying the document COMMUNICATION FROM THE COMMISSION TO THE EUROPEAN PARLIAMENT AND T ...",
"court": "European Commission",
"year": 2020,
"language": "EN",
"dataSource": 0,
"referenced": 5,
"literatureReferenced": 0,
"sourceUrl": "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:52020SC0115",
"inForce": null,
"fieldsOfLaw": [],
"score": 0.3837,
"highlights": null,
"semanticHighlights": [
{
"chunkIdentifier": "52020SC0115#50",
"chunkText": "The flexibility of this “toolbox” is demonstrated by Article 46 GDPR, which regulates data transfers based on “appropriate safeguards”, including enforceable da ...",
"startOffset": 88222,
"endOffset": 90272,
"score": 0.86090982
},
{
"chunkIdentifier": "52020SC0115#42",
"chunkText": "7.2 The GDPR transfer toolbox As more and more private and public operators rely on international data flows as part of their routine operations, there is an in ...",
"startOffset": 73364,
"endOffset": 75686,
"score": 0.8546346499999999
}
],
"documentTypes": [
{
"id": "bb491487def337216dea442161545e72",
"parentId": null,
"shortName": "Policy",
"name": "Policy"
},
{
"id": "0c87693ad27fb5cd2df3d5eac607ae00",
"parentId": "bb491487def337216dea442161545e72",
"shortName": "European policy",
"name": "European policy"
}
],
"sources": [
{
"id": "e7043f83f817aea4fe62b8ba57664f5b",
"parentId": null,
"shortName": "Executive bodies",
"name": "Executive bodies"
},
{
"id": "ef0c4549e230285e355740fcf7933795",
"parentId": "e7043f83f817aea4fe62b8ba57664f5b",
"shortName": "European Commission",
"name": "European Commission"
}
]
}
],
"facets": null
},
"success": true,
"error": null
}Errors
Hybrid Search
/v1.1/search/hybrid_searchParameters
querystringrequiredNatural-language query. The system extracts keyword terms automatically and runs both keyword and semantic searches in parallel, fusing the results.
documentTypesstring[]Filter by document type. Only accepts IDs returned by GET /v1.1/search/filters/documenttypes. Example IDs: '18fead608f1a4dcb5671b9fc8aeab4d1' (Laws and regulations), '04b42e5bf858a66de2229227deaa21e3' (Decisions).
jurisdictionsstring[]Filter by jurisdiction. Only accepts names returned by GET /v1.1/search/filters/jurisdictions_portals.
portalsstring[]Filter by portal. Use the `value` field returned by GET /v1.1/search/filters/jurisdictions_portals. Can be combined with jurisdictions — e.g. pairing 'Netherlands' in jurisdictions with '0|eur-lex.europa.eu' in portals searches all documents from the Netherlands and documents from eur-lex.europa.eu.
fieldsOfLawstring[]Filter by field of law. Only accepts IDs returned by GET /v1.1/search/filters/trees.
documentIdentifiersstring[]Restrict the search to chunks belonging to these documents. Each value is a Moonlit document identifier (e.g. '32016R0679'). Empty list (or omitted) means no document scoping. Maximum 50 identifiers; exceeding returns 422. Composes with every other filter — e.g. combined with reference_identifier to scope reference search to a specific document.
from_datestring | nullInclusive lower date bound (YYYY-MM-DD). Applied only together with until_date; on its own it is ignored.
until_datestring | nullInclusive upper date bound (YYYY-MM-DD). Applied only together with from_date; on its own it is ignored.
date_fieldstringdefault: dateWhich document date `from_date`/`until_date` (and sort_type 1/2, where available) apply to. `date` (default) is the primary document date, as returned by retrieve_document. Documents without the chosen date are excluded by the date filter and sorted last.
sourcesstring[]Filter by source (issuing entity such as a court or legislative body). Only accepts the `value` field from items returned by GET /v1.1/search/filters/sources. For example, if the filter endpoint returns `{"name": "Hof van Cassatie", "value": "c1f4502e43dc2c11969f4f201194fc07", ...}`, pass `"c1f4502e43dc2c11969f4f201194fc07"` in this array.
reference_identifierstring | nullDocument identifier to find references for. When set, results are restricted to documents that reference or are referenced by this document (depending on reference_direction).
reference_directioninteger | nullDirection of the reference relationship. 0 = to (documents that reference/cite reference_identifier), 1 = made_by (documents referenced by reference_identifier), 2 = both directions combined. Only used when reference_identifier is set.
article_reference_idstring | nullArticle-level identifier to narrow reference results to a specific article within the referenced document. Use GET /v1.1/document/articles to discover available article identifiers for a document. Only used when reference_identifier is set.
reference_typesstring[] | nullKeep only documents related to reference_identifier by one of these reference type ids, as listed in each result's `referenceTypes[].id`, e.g. `CITES`, `REPEALS`, `BASED_ON`. An unknown id returns no results. Not applied together with article_reference_id.
reference_familiesstring[] | nullKeep only documents related to reference_identifier by a reference type of one of these families: `CITES`, `AMENDS`, `APPLIES`, `INTERPRETS`, `LEGAL_BASIS`, `REPEALS`, `CASE_HISTORY`, `RELATED_CASE`, `STRUCTURE`, `EDITORIAL`, `SAME_DOCUMENT`, `DOCUMENT_VERSION`, `JURISDICTION_SPECIFIC`. Not applied together with article_reference_id.
pageintegerdefault: 11-based result page. A page can repeat a few results from earlier pages.
num_resultsintegerdefault: 10Results per page.
semantic_weightnumberdefault: 0.6Weight for semantic search results in RRF fusion (0.0–1.0). Keyword weight is inferred as 1 − semantic_weight.
Example request
curl -X POST "https://api.moonlit.ai/v1.1/search/hybrid_search" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"documentTypes": [],
"fieldsOfLaw": [],
"jurisdictions": [
"European Union"
],
"num_results": 10,
"page": 1,
"portals": [],
"query": "What are the GDPR requirements for cross-border data transfers?",
"semantic_weight": 0.6,
"sources": []
}'Try it
/v1.1/search/hybrid_searchNot run yetThe key stays in this browser tab and is sent only to api.moonlit.ai. Every request counts against your plan like any other call.
Response
Hybrid search results ranked by fused RRF score
resultobjectSearch result payload.
countintegerKeyword and reference search: all matching documents. Semantic and hybrid search: the number of results on this page.
skipintegerOffset of the first result: (page − 1) × num_results.
topintegerPage size: num_results.
resultsobject[]The documents on this page.
identifierstringMoonlit document identifier. Pass it to retrieve_document.
secondaryIdentifierstring | nullSecondary identifier, such as an ECLI.
tertiaryIdentifierstring | nullTertiary identifier, such as a case number.
titlestring | nullDocument title.
portalstringPortal domain the document comes from.
dataSourceintegerNumeric jurisdiction code: the number before | in portal filter values (0 is the European Union).
courtstring | nullName of the issuing court or body.
languagestring | nullLanguage code, e.g. EN.
datestring | nullPrimary document date, as an ISO 8601 timestamp. The other date fields match retrieve_document and are null when unknown.
decisionDatestring | nullDate the decision was rendered or the act adopted.
enactmentDatestring | nullDate the act was enacted.
publicationDatestring | nullDate of official publication.
entryIntoForceDatestring | nullDate the document entered into force.
validFromstring | nullStart of the validity period.
validTostring | nullEnd of the validity period.
proceedingsStartDatestring | nullDate the proceedings started.
startDatestring | nullStart of the document's date range.
endDatestring | nullEnd of the document's date range.
yearinteger | nullYear of date.
highlightsstring[] | nullKeyword matches in context; matched words are wrapped in <span class='bold'>. Null on semantic search.
semanticHighlightsobject[] | nullPassages that matched by meaning. Null on keyword and reference search.
summarystring | nullAI-generated summary, when one exists.
sourcesobject[]Issuing body as a path from category to body, e.g. International courts, then Court of Justice (Grand Chamber).
fieldsOfLawobject[]Fields of law.
documentTypesobject[]Document types.
referencedinteger | nullNumber of documents that cite this document.
literatureReferencedinteger | nullNumber of literature documents that cite this document.
scorenumberRanking score. The scale differs per endpoint: keyword relevance, vector similarity, fused rank or reranker score.
sourceUrlstring | nullLink to the official publication.
inForceboolean | nullWhether the document is in force; null when unknown.
referenceTypesobject[]Only when the search uses reference_identifier: how the result relates to that document.
facetsobject | nullOnly with facets=true on keyword and reference search, otherwise null: DataSources, Portals, FieldsOfLaw, DocumentTypes and Sources, each a list of values with a name, value and count.
sourcesTotalintegerOnly with facet_limit: source nodes in the Sources facet before the limit.
sourcesTruncatedbooleanOnly with facet_limit: whether the limit dropped any source.
successbooleanWhether upstream query succeeded.
errorany | nullUpstream error payload.
{
"result": {
"count": 10,
"skip": 0,
"top": 10,
"results": [
{
"identifier": "MNLT:EU:EDPB:2019:1596291428",
"secondaryIdentifier": null,
"tertiaryIdentifier": null,
"portal": "edpb.europa.eu",
"startDate": null,
"endDate": "2019-02-12T00:00:00+00:00",
"date": "2019-02-12T00:00:00+00:00",
"decisionDate": null,
"enactmentDate": null,
"publicationDate": "2019-02-12T00:00:00+00:00",
"entryIntoForceDate": null,
"validFrom": null,
"validTo": null,
"proceedingsStartDate": null,
"summary": null,
"title": "European Data Protection Board 12 February 2019, Information note on data transfers under the GDPR in the event of a no-deal Brexit",
"court": "European Data Protection Board",
"year": 2019,
"language": "EN",
"dataSource": 0,
"referenced": 0,
"literatureReferenced": 0,
"sourceUrl": "https://www.edpb.europa.eu/documents/other-guidance/information-note-on-data-transfers-under-the-gdpr-in-the-event-of-a-no_en",
"inForce": null,
"fieldsOfLaw": [],
"score": 0.016223330957472085,
"highlights": [
"Information note on <span class='bold'>data</span> <span class='bold'>transfers</span> under the <span class='bold'>GDPR</span> in the event of a no-deal Brexit ...",
" activities. 1 See Chapter V of <span class='bold'>GDPR</span>. 2 These can be used only in the absence of Standard <span class='bold'>Data</span> Protection Cl ..."
],
"semanticHighlights": [
{
"chunkIdentifier": "MNLT:EU:EDPB:2019:1596291428#2",
"chunkText": "However, these contracts may be included in a wider contract and additional clauses might be added provided that they do not contradict, directly or indirectly, ...",
"startOffset": 2963,
"endOffset": 5220,
"score": 0.8613208
},
{
"chunkIdentifier": "MNLT:EU:EDPB:2019:1596291428#3",
"chunkText": "Codes of conduct and certification mechanismsA code of conduct or a certification mechanism can offer appropriate safeguards for transfers of personal data if t ...",
"startOffset": 4759,
"endOffset": 7340,
"score": 0.852735015
}
],
"documentTypes": [
{
"id": "bb491487def337216dea442161545e72",
"parentId": null,
"shortName": "Policy",
"name": "Policy"
},
{
"id": "0c87693ad27fb5cd2df3d5eac607ae00",
"parentId": "bb491487def337216dea442161545e72",
"shortName": "European policy",
"name": "European policy"
}
],
"sources": [
{
"id": "f7875ac0576a21c24937d480f6fde4f1",
"parentId": null,
"shortName": "International courts",
"name": "International courts"
},
{
"id": "397aa9cbc27e22215a1ae2c498c97101",
"parentId": "f7875ac0576a21c24937d480f6fde4f1",
"shortName": "European Data Protection Board",
"name": "European Data Protection Board"
}
]
},
{
"identifier": "52017DC0007",
"secondaryIdentifier": null,
"tertiaryIdentifier": "MNLT:EU:EUEURLEX:2017:52017DC0007",
"portal": "eur-lex.europa.eu",
"startDate": null,
"endDate": "2017-01-10T00:00:00+00:00",
"date": "2017-01-10T00:00:00+00:00",
"decisionDate": "2017-01-10T00:00:00+00:00",
"enactmentDate": null,
"publicationDate": null,
"entryIntoForceDate": null,
"validFrom": null,
"validTo": null,
"proceedingsStartDate": null,
"summary": null,
"title": "European Commission 10 January 2017, COMMUNICATION FROM THE COMMISSION TO THE EUROPEAN PARLIAMENT AND THE COUNCIL Exchanging and Protecting Personal Data in a G ...",
"court": "European Commission",
"year": 2017,
"language": "EN",
"dataSource": 0,
"referenced": 29,
"literatureReferenced": 0,
"sourceUrl": "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:52017DC0007",
"inForce": null,
"fieldsOfLaw": [],
"score": 0.01352904456389804,
"highlights": [
" involving <span class='bold'>transfers</span> of personal <span class='bold'>data</span> to the third country in question. Such decisions can therefore ease tr ...",
" processor-to processor SCCs. 45 It can involve developing new components of the EU compliance infrastructure, for instance through the Commission defining <spa ..."
],
"semanticHighlights": [
{
"chunkIdentifier": "52017DC0007#3",
"chunkText": "While the architecture remains essentially the same as under the 1995 Directive, the reform of the rules on international transfers clarifies and simplifies the ...",
"startOffset": 5777,
"endOffset": 7955,
"score": 0.8539607499999999
}
],
"documentTypes": [
{
"id": "bb491487def337216dea442161545e72",
"parentId": null,
"shortName": "Policy",
"name": "Policy"
},
{
"id": "0c87693ad27fb5cd2df3d5eac607ae00",
"parentId": "bb491487def337216dea442161545e72",
"shortName": "European policy",
"name": "European policy"
}
],
"sources": [
{
"id": "e7043f83f817aea4fe62b8ba57664f5b",
"parentId": null,
"shortName": "Executive bodies",
"name": "Executive bodies"
},
{
"id": "ef0c4549e230285e355740fcf7933795",
"parentId": "e7043f83f817aea4fe62b8ba57664f5b",
"shortName": "European Commission",
"name": "European Commission"
}
]
}
],
"facets": null
},
"success": true,
"error": null
}Errors
Hybrid Search with Reranking
/v1.1/search/hybrid_search_rerankedParameters
querystringrequiredNatural-language query. The system extracts keyword terms automatically and runs both keyword and semantic searches in parallel, fusing the results.
documentTypesstring[]Filter by document type. Only accepts IDs returned by GET /v1.1/search/filters/documenttypes. Example IDs: '18fead608f1a4dcb5671b9fc8aeab4d1' (Laws and regulations), '04b42e5bf858a66de2229227deaa21e3' (Decisions).
jurisdictionsstring[]Filter by jurisdiction. Only accepts names returned by GET /v1.1/search/filters/jurisdictions_portals.
portalsstring[]Filter by portal. Use the `value` field returned by GET /v1.1/search/filters/jurisdictions_portals. Can be combined with jurisdictions — e.g. pairing 'Netherlands' in jurisdictions with '0|eur-lex.europa.eu' in portals searches all documents from the Netherlands and documents from eur-lex.europa.eu.
fieldsOfLawstring[]Filter by field of law. Only accepts IDs returned by GET /v1.1/search/filters/trees.
documentIdentifiersstring[]Restrict the search to chunks belonging to these documents. Each value is a Moonlit document identifier (e.g. '32016R0679'). Empty list (or omitted) means no document scoping. Maximum 50 identifiers; exceeding returns 422. Composes with every other filter — e.g. combined with reference_identifier to scope reference search to a specific document.
from_datestring | nullInclusive lower date bound (YYYY-MM-DD). Applied only together with until_date; on its own it is ignored.
until_datestring | nullInclusive upper date bound (YYYY-MM-DD). Applied only together with from_date; on its own it is ignored.
date_fieldstringdefault: dateWhich document date `from_date`/`until_date` (and sort_type 1/2, where available) apply to. `date` (default) is the primary document date, as returned by retrieve_document. Documents without the chosen date are excluded by the date filter and sorted last.
sourcesstring[]Filter by source (issuing entity such as a court or legislative body). Only accepts the `value` field from items returned by GET /v1.1/search/filters/sources. For example, if the filter endpoint returns `{"name": "Hof van Cassatie", "value": "c1f4502e43dc2c11969f4f201194fc07", ...}`, pass `"c1f4502e43dc2c11969f4f201194fc07"` in this array.
reference_identifierstring | nullDocument identifier to find references for. When set, results are restricted to documents that reference or are referenced by this document (depending on reference_direction).
reference_directioninteger | nullDirection of the reference relationship. 0 = to (documents that reference/cite reference_identifier), 1 = made_by (documents referenced by reference_identifier), 2 = both directions combined. Only used when reference_identifier is set.
article_reference_idstring | nullArticle-level identifier to narrow reference results to a specific article within the referenced document. Use GET /v1.1/document/articles to discover available article identifiers for a document. Only used when reference_identifier is set.
reference_typesstring[] | nullKeep only documents related to reference_identifier by one of these reference type ids, as listed in each result's `referenceTypes[].id`, e.g. `CITES`, `REPEALS`, `BASED_ON`. An unknown id returns no results. Not applied together with article_reference_id.
reference_familiesstring[] | nullKeep only documents related to reference_identifier by a reference type of one of these families: `CITES`, `AMENDS`, `APPLIES`, `INTERPRETS`, `LEGAL_BASIS`, `REPEALS`, `CASE_HISTORY`, `RELATED_CASE`, `STRUCTURE`, `EDITORIAL`, `SAME_DOCUMENT`, `DOCUMENT_VERSION`, `JURISDICTION_SPECIFIC`. Not applied together with article_reference_id.
pageintegerdefault: 11-based result page. The first 100 results are reranked; later pages keep the fused order.
num_resultsintegerdefault: 10Results per page.
semantic_weightnumberdefault: 0.6Weight for semantic search results in RRF fusion (0.0–1.0). Keyword weight is inferred as 1 − semantic_weight.
rerankerTypeintegerdefault: 11 = Google Vertex AI reranker (default). 2 is accepted and currently ranks the same as 1.
Example request
curl -X POST "https://api.moonlit.ai/v1.1/search/hybrid_search_reranked" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"documentTypes": [],
"fieldsOfLaw": [],
"jurisdictions": [
"European Union"
],
"num_results": 10,
"page": 1,
"portals": [],
"query": "What are the GDPR requirements for cross-border data transfers?",
"rerankerType": 1,
"semantic_weight": 0.6,
"sources": []
}'Try it
/v1.1/search/hybrid_search_rerankedNot run yetThe key stays in this browser tab and is sent only to api.moonlit.ai. Every request counts against your plan like any other call.
Response
Hybrid search results, reranked by relevance
resultobjectSearch result payload.
countintegerKeyword and reference search: all matching documents. Semantic and hybrid search: the number of results on this page.
skipintegerOffset of the first result: (page − 1) × num_results.
topintegerPage size: num_results.
resultsobject[]The documents on this page.
identifierstringMoonlit document identifier. Pass it to retrieve_document.
secondaryIdentifierstring | nullSecondary identifier, such as an ECLI.
tertiaryIdentifierstring | nullTertiary identifier, such as a case number.
titlestring | nullDocument title.
portalstringPortal domain the document comes from.
dataSourceintegerNumeric jurisdiction code: the number before | in portal filter values (0 is the European Union).
courtstring | nullName of the issuing court or body.
languagestring | nullLanguage code, e.g. EN.
datestring | nullPrimary document date, as an ISO 8601 timestamp. The other date fields match retrieve_document and are null when unknown.
decisionDatestring | nullDate the decision was rendered or the act adopted.
enactmentDatestring | nullDate the act was enacted.
publicationDatestring | nullDate of official publication.
entryIntoForceDatestring | nullDate the document entered into force.
validFromstring | nullStart of the validity period.
validTostring | nullEnd of the validity period.
proceedingsStartDatestring | nullDate the proceedings started.
startDatestring | nullStart of the document's date range.
endDatestring | nullEnd of the document's date range.
yearinteger | nullYear of date.
highlightsstring[] | nullKeyword matches in context; matched words are wrapped in <span class='bold'>. Null on semantic search.
semanticHighlightsobject[] | nullPassages that matched by meaning. Null on keyword and reference search.
summarystring | nullAI-generated summary, when one exists.
sourcesobject[]Issuing body as a path from category to body, e.g. International courts, then Court of Justice (Grand Chamber).
fieldsOfLawobject[]Fields of law.
documentTypesobject[]Document types.
referencedinteger | nullNumber of documents that cite this document.
literatureReferencedinteger | nullNumber of literature documents that cite this document.
scorenumberRanking score. The scale differs per endpoint: keyword relevance, vector similarity, fused rank or reranker score.
sourceUrlstring | nullLink to the official publication.
inForceboolean | nullWhether the document is in force; null when unknown.
referenceTypesobject[]Only when the search uses reference_identifier: how the result relates to that document.
facetsobject | nullOnly with facets=true on keyword and reference search, otherwise null: DataSources, Portals, FieldsOfLaw, DocumentTypes and Sources, each a list of values with a name, value and count.
sourcesTotalintegerOnly with facet_limit: source nodes in the Sources facet before the limit.
sourcesTruncatedbooleanOnly with facet_limit: whether the limit dropped any source.
successbooleanWhether upstream query succeeded.
errorany | nullUpstream error payload.
{
"result": {
"count": 10,
"skip": 0,
"top": 10,
"results": [
{
"identifier": "MNLT:EU:EDPB:2023:2055349599",
"secondaryIdentifier": null,
"tertiaryIdentifier": null,
"portal": "edpb.europa.eu",
"startDate": null,
"endDate": "2023-04-01T00:00:00+00:00",
"date": "2023-04-01T00:00:00+00:00",
"decisionDate": null,
"enactmentDate": null,
"publicationDate": "2023-04-01T00:00:00+00:00",
"entryIntoForceDate": null,
"validFrom": null,
"validTo": null,
"proceedingsStartDate": null,
"summary": null,
"title": "European Data Protection Board 1 April 2023, Legal study on government access to data in third countries - Brazil",
"court": "European Data Protection Board",
"year": 2023,
"language": "EN",
"dataSource": 0,
"referenced": 0,
"literatureReferenced": 0,
"sourceUrl": "https://www.edpb.europa.eu/documents/legal-study-by-external-suppliers/legal-study-on-government-access-to-data-in-third-0_en",
"inForce": null,
"fieldsOfLaw": [],
"score": 0.6010952087072277,
"highlights": null,
"semanticHighlights": [
{
"chunkIdentifier": "MNLT:EU:EDPB:2023:2055349599#6",
"chunkText": "1.2.1 DATA TRANSFERS IN THE GDPRPersonal data transfers to a third country or to an international organisation under the GDPR are only permitted if they comply ...",
"startOffset": 11222,
"endOffset": 12824,
"score": 0.8520321
}
],
"documentTypes": [
{
"id": "bb491487def337216dea442161545e72",
"parentId": null,
"shortName": "Policy",
"name": "Policy"
},
{
"id": "0c87693ad27fb5cd2df3d5eac607ae00",
"parentId": "bb491487def337216dea442161545e72",
"shortName": "European policy",
"name": "European policy"
}
],
"sources": [
{
"id": "f7875ac0576a21c24937d480f6fde4f1",
"parentId": null,
"shortName": "International courts",
"name": "International courts"
},
{
"id": "397aa9cbc27e22215a1ae2c498c97101",
"parentId": "f7875ac0576a21c24937d480f6fde4f1",
"shortName": "European Data Protection Board",
"name": "European Data Protection Board"
}
]
},
{
"identifier": "MNLT:EN:EUINITIATIVES:2020:12322",
"secondaryIdentifier": "12322",
"tertiaryIdentifier": null,
"portal": "ec.europa.eu",
"startDate": null,
"endDate": "2020-04-01T00:00:00+00:00",
"date": "2020-04-01T00:00:00+00:00",
"decisionDate": null,
"enactmentDate": null,
"publicationDate": null,
"entryIntoForceDate": null,
"validFrom": null,
"validTo": null,
"proceedingsStartDate": "2020-04-01T00:00:00+00:00",
"summary": null,
"title": "EU Initiatives Report on the application of the General Data Protection Regulation 01 April 2020",
"court": "European Commission",
"year": 2020,
"language": "EN",
"dataSource": 0,
"referenced": 0,
"literatureReferenced": 0,
"sourceUrl": "https://ec.europa.eu/info/law/better-regulation/have-your-say/initiatives/12322",
"inForce": null,
"fieldsOfLaw": [],
"score": 0.5883542202332334,
"highlights": null,
"semanticHighlights": [
{
"chunkIdentifier": "MNLT:EN:EUINITIATIVES:2020:12322#99",
"chunkText": "This continuity of protection is important, given that in today ’s world data moves easily across borders and the protections guaranteed by the GDPR would be in ...",
"startOffset": 153339,
"endOffset": 155556,
"score": 0.86119005
}
],
"documentTypes": [
{
"id": "bb491487def337216dea442161545e72",
"parentId": null,
"shortName": "Policy",
"name": "Policy"
},
{
"id": "0c87693ad27fb5cd2df3d5eac607ae00",
"parentId": "bb491487def337216dea442161545e72",
"shortName": "European policy",
"name": "European policy"
}
],
"sources": [
{
"id": "e7043f83f817aea4fe62b8ba57664f5b",
"parentId": null,
"shortName": "Executive bodies",
"name": "Executive bodies"
},
{
"id": "ef0c4549e230285e355740fcf7933795",
"parentId": "e7043f83f817aea4fe62b8ba57664f5b",
"shortName": "European Commission",
"name": "European Commission"
}
]
}
],
"facets": null
},
"success": true,
"error": null
}Errors
Reference Search
/v1.1/search/reference_searchParameters
reference_identifierstringrequiredDocument identifier to find references for.
documentTypesstring[]Filter by document type. Only accepts IDs returned by GET /v1.1/search/filters/documenttypes. Example IDs: '18fead608f1a4dcb5671b9fc8aeab4d1' (Laws and regulations), '04b42e5bf858a66de2229227deaa21e3' (Decisions).
jurisdictionsstring[]Filter by jurisdiction. Only accepts names returned by GET /v1.1/search/filters/jurisdictions_portals.
portalsstring[]Filter by portal. Use the `value` field returned by GET /v1.1/search/filters/jurisdictions_portals. Can be combined with jurisdictions — e.g. pairing 'Netherlands' in jurisdictions with '0|eur-lex.europa.eu' in portals searches all documents from the Netherlands and documents from eur-lex.europa.eu.
fieldsOfLawstring[]Filter by field of law. Only accepts IDs returned by GET /v1.1/search/filters/trees.
documentIdentifiersstring[]Restrict the search to chunks belonging to these documents. Each value is a Moonlit document identifier (e.g. '32016R0679'). Empty list (or omitted) means no document scoping. Maximum 50 identifiers; exceeding returns 422. Composes with every other filter — e.g. combined with reference_identifier to scope reference search to a specific document.
from_datestring | nullInclusive lower date bound (YYYY-MM-DD). Applied only together with until_date; on its own it is ignored.
until_datestring | nullInclusive upper date bound (YYYY-MM-DD). Applied only together with from_date; on its own it is ignored.
date_fieldstringdefault: dateWhich document date `from_date`/`until_date` (and sort_type 1/2, where available) apply to. `date` (default) is the primary document date, as returned by retrieve_document. Documents without the chosen date are excluded by the date filter and sorted last.
sourcesstring[]Filter by source (issuing entity such as a court or legislative body). Only accepts the `value` field from items returned by GET /v1.1/search/filters/sources. For example, if the filter endpoint returns `{"name": "Hof van Cassatie", "value": "c1f4502e43dc2c11969f4f201194fc07", ...}`, pass `"c1f4502e43dc2c11969f4f201194fc07"` in this array.
reference_directionintegerdefault: 0Direction of the reference relationship. 0 = to (documents that cite reference_identifier), 1 = made_by (documents cited by reference_identifier), 2 = both directions combined.
article_reference_idstring | nullArticle-level identifier to narrow reference results to a specific article within the referenced document. Use GET /v1.1/document/articles to discover available article identifiers for a document. Only used when reference_identifier is set.
reference_typesstring[] | nullKeep only documents related to reference_identifier by one of these reference type ids, as listed in each result's `referenceTypes[].id`, e.g. `CITES`, `REPEALS`, `BASED_ON`. An unknown id returns no results. Not applied together with article_reference_id.
reference_familiesstring[] | nullKeep only documents related to reference_identifier by a reference type of one of these families: `CITES`, `AMENDS`, `APPLIES`, `INTERPRETS`, `LEGAL_BASIS`, `REPEALS`, `CASE_HISTORY`, `RELATED_CASE`, `STRUCTURE`, `EDITORIAL`, `SAME_DOCUMENT`, `DOCUMENT_VERSION`, `JURISDICTION_SPECIFIC`. Not applied together with article_reference_id.
querystringdefault: *Optional keyword query to apply on top of the reference filter. Defaults to '*' (all matching references).
sort_typeinteger0 = relevance (default), 1 = newest first, 2 = oldest first, 3 = most cited.
pageintegerdefault: 11-based result page. page × num_results may not exceed 10,000; a deeper page returns 400.
num_resultsintegerdefault: 10Results per page.
facetsbooleandefault: falseWhether to include facets in the response.
all_facetsbooleandefault: falseInclude zero-count FieldsOfLaw and DocumentTypes values when facets is enabled.
facet_limitinteger | nullMaximum number of sources kept under each top-level category in the Sources facet, ranked by document count. Omit for the full tree.
Example request
curl -X POST "https://api.moonlit.ai/v1.1/search/reference_search" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"all_facets": false,
"documentTypes": [],
"facets": false,
"fieldsOfLaw": [],
"jurisdictions": [],
"num_results": 10,
"page": 1,
"portals": [],
"query": "*",
"reference_direction": 0,
"reference_identifier": "32016R0679",
"sort_type": 0,
"sources": []
}'Try it
/v1.1/search/reference_searchNot run yetThe key stays in this browser tab and is sent only to api.moonlit.ai. Every request counts against your plan like any other call.
Response
Reference search results
resultobjectSearch result payload.
countintegerKeyword and reference search: all matching documents. Semantic and hybrid search: the number of results on this page.
skipintegerOffset of the first result: (page − 1) × num_results.
topintegerPage size: num_results.
resultsobject[]The documents on this page.
identifierstringMoonlit document identifier. Pass it to retrieve_document.
secondaryIdentifierstring | nullSecondary identifier, such as an ECLI.
tertiaryIdentifierstring | nullTertiary identifier, such as a case number.
titlestring | nullDocument title.
portalstringPortal domain the document comes from.
dataSourceintegerNumeric jurisdiction code: the number before | in portal filter values (0 is the European Union).
courtstring | nullName of the issuing court or body.
languagestring | nullLanguage code, e.g. EN.
datestring | nullPrimary document date, as an ISO 8601 timestamp. The other date fields match retrieve_document and are null when unknown.
decisionDatestring | nullDate the decision was rendered or the act adopted.
enactmentDatestring | nullDate the act was enacted.
publicationDatestring | nullDate of official publication.
entryIntoForceDatestring | nullDate the document entered into force.
validFromstring | nullStart of the validity period.
validTostring | nullEnd of the validity period.
proceedingsStartDatestring | nullDate the proceedings started.
startDatestring | nullStart of the document's date range.
endDatestring | nullEnd of the document's date range.
yearinteger | nullYear of date.
highlightsstring[] | nullKeyword matches in context; matched words are wrapped in <span class='bold'>. Null on semantic search.
semanticHighlightsobject[] | nullPassages that matched by meaning. Null on keyword and reference search.
summarystring | nullAI-generated summary, when one exists.
sourcesobject[]Issuing body as a path from category to body, e.g. International courts, then Court of Justice (Grand Chamber).
fieldsOfLawobject[]Fields of law.
documentTypesobject[]Document types.
referencedinteger | nullNumber of documents that cite this document.
literatureReferencedinteger | nullNumber of literature documents that cite this document.
scorenumberRanking score. The scale differs per endpoint: keyword relevance, vector similarity, fused rank or reranker score.
sourceUrlstring | nullLink to the official publication.
inForceboolean | nullWhether the document is in force; null when unknown.
referenceTypesobject[]Only when the search uses reference_identifier: how the result relates to that document.
facetsobject | nullOnly with facets=true on keyword and reference search, otherwise null: DataSources, Portals, FieldsOfLaw, DocumentTypes and Sources, each a list of values with a name, value and count.
sourcesTotalintegerOnly with facet_limit: source nodes in the Sources facet before the limit.
sourcesTruncatedbooleanOnly with facet_limit: whether the limit dropped any source.
successbooleanWhether upstream query succeeded.
errorany | nullUpstream error payload.
{
"result": {
"count": 115090,
"skip": 0,
"top": 10,
"results": [
{
"identifier": "MNLT:BE:JUSTEL:1973:1973011250",
"secondaryIdentifier": "1973011250",
"tertiaryIdentifier": "1973-01-12/02",
"portal": "ejustice.just.fgov.be",
"startDate": null,
"endDate": null,
"date": "1973-01-12T00:00:00+00:00",
"decisionDate": "1973-01-12T00:00:00+00:00",
"enactmentDate": "1973-01-12T00:00:00+00:00",
"publicationDate": "1973-03-21T00:00:00+00:00",
"entryIntoForceDate": "1973-03-31T00:00:00+00:00",
"validFrom": null,
"validTo": null,
"proceedingsStartDate": null,
"summary": null,
"title": "1973-01-12, 1973011250 (GECOORDINEERDE WETTEN OP DE RAAD VAN STATE. (NOTA : Raadpleging van vroegere versies vanaf 17-05-1994 en tekstbijwerking tot 05-06-2024) ...",
"court": "Federale Overheidsdienst Justitie",
"year": 1973,
"language": "NL",
"dataSource": 14,
"referenced": 418563,
"literatureReferenced": 0,
"sourceUrl": "https://www.ejustice.just.fgov.be/cgi_wet/article.pl?language=nl&sum_date=&pd_search=1973-03-21&numac_search=1973011250&page=61&lg_txt=N&caller=list&1973011250= ...",
"inForce": null,
"fieldsOfLaw": [],
"score": 16.865286,
"highlights": [
"TITEL I. - INSTELLING. Artikel 1. Er is een Raad van State, bestaande uit een afdeling wetgeving en een (afdeling bestuursrechtspraak) (...). (W 28-06-1983, art ..."
],
"semanticHighlights": null,
"referenceTypes": [
{
"id": "CITES",
"name": "Cites",
"family": "CITES",
"direction": "to"
}
],
"documentTypes": [
{
"id": "18fead608f1a4dcb5671b9fc8aeab4d1",
"parentId": null,
"shortName": "Laws and regulations",
"name": "Laws and regulations"
},
{
"id": "fbee5d2e827c7307c755601603c91bc3",
"parentId": "18fead608f1a4dcb5671b9fc8aeab4d1",
"shortName": "National law",
"name": "National law"
}
],
"sources": [
{
"id": "e7043f83f817aea4fe62b8ba57664f5b",
"parentId": null,
"shortName": "Executive bodies",
"name": "Executive bodies"
},
{
"id": "455ab43055fef318d4212612ca40ade7",
"parentId": "e7043f83f817aea4fe62b8ba57664f5b",
"shortName": "Federale Overheidsdienst Justitie",
"name": "Federale Overheidsdienst Justitie"
}
]
},
{
"identifier": "MNLT:FR:LEGIFRANCECODE:2000:LEGITEXT000006070933",
"secondaryIdentifier": "LEGITEXT000006070933",
"tertiaryIdentifier": "code de justice administrative",
"portal": "legifrance.gouv.fr",
"startDate": null,
"endDate": "2000-12-31T00:00:00+00:00",
"date": "2000-12-31T00:00:00+00:00",
"decisionDate": null,
"enactmentDate": "2000-12-31T00:00:00+00:00",
"publicationDate": null,
"entryIntoForceDate": null,
"validFrom": "2026-09-01T00:00:00+00:00",
"validTo": null,
"proceedingsStartDate": null,
"summary": null,
"title": "République Française 31 December 2000, Code de justice administrative",
"court": "Légifrance Codes",
"year": 2000,
"language": "FR",
"dataSource": 11,
"referenced": 400471,
"literatureReferenced": 0,
"sourceUrl": "https://www.legifrance.gouv.fr/codes/texte_lc/LEGITEXT000006070933",
"inForce": null,
"fieldsOfLaw": [],
"score": 16.807716,
"highlights": [
"Partie législative Titre préliminaire Article L1 Le présent code s'applique au Conseil d'Etat, aux cours administratives d'appel et aux tribunaux ..."
],
"semanticHighlights": null,
"referenceTypes": [
{
"id": "CITES",
"name": "Cites",
"family": "CITES",
"direction": "to"
}
],
"documentTypes": [
{
"id": "18fead608f1a4dcb5671b9fc8aeab4d1",
"parentId": null,
"shortName": "Laws and regulations",
"name": "Laws and regulations"
},
{
"id": "fbee5d2e827c7307c755601603c91bc3",
"parentId": "18fead608f1a4dcb5671b9fc8aeab4d1",
"shortName": "National law",
"name": "National law"
}
],
"sources": [
{
"id": "b49c23adeaa6a345aa815e401c6d194b",
"parentId": null,
"shortName": "Legislative bodies",
"name": "Legislative bodies"
},
{
"id": "f7f069d77f73bee932471f7a07b45598",
"parentId": "b49c23adeaa6a345aa815e401c6d194b",
"shortName": "Légifrance Codes",
"name": "Légifrance Codes"
}
]
}
],
"facets": null
},
"success": true,
"error": null
}