Get started in 3 steps
From sign-up to your first API response in under 5 minutes.
Get your API key
Book a call with our team to get your API key. We'll set up your account and provide your subscription key. Include it in every request as a header:
Ocp-Apim-Subscription-Key: sk_live_abc123...Search European law
Make your first search request. The keyword search endpoint accepts a query string and returns matching legal documents across your chosen jurisdictions.
curl -X POST 'https://api.moonlit.ai/v1.1/search/keyword_search' \
-H 'Ocp-Apim-Subscription-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"query": "data protection",
"jurisdictions": ["European Union"],
"num_results": 5
}'Retrieve a full document
Use the identifier from your search results to retrieve the full text, metadata, and AI-generated summary via a GET request with a query parameter.
curl "https://api.moonlit.ai/v1.1/document/retrieve_document?DocumentIdentifier=62018CJ0311" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY"Data Protection Commissioner v Facebook Ireland Limited and Maximillian Schrems (Schrems II)
"In those circumstances, the referring court considers that the validity of Decision 2010/87, read in the light of Articles 7, 8 and 47 of the Charter..."
The Court of Justice invalidated the EU-US Privacy Shield and upheld the validity of standard contractual clauses, subject to additional safeguards...
165
https://curia.europa.eu/...
Next steps
Explore the API Reference
Full documentation for every endpoint, parameter, and response field.
View referenceBrowse use cases
Step-by-step guides for building legal AI assistants, monitoring tools, and more.
View use casesRead the search strategy guide
Learn when to use keyword, semantic, or hybrid search for optimal results.
View guide