Documentation Index
Fetch the complete documentation index at: https://docs.law4devs.eu/llms.txt
Use this file to discover all available pages before exploring further.
Pick your preferred method:
# List all frameworks
curl -H "X-API-Key: YOUR_API_KEY" \
https://api.law4devs.eu/v1/frameworks
# Get GDPR articles
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.law4devs.eu/v1/frameworks/gdpr/articles?per_page=5"
# Search across all frameworks
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.law4devs.eu/v1/search?q=data+breach+notification"
import os
from law4devs import Law4DevsClient
client = Law4DevsClient(api_key=os.environ["LAW4DEVS_API_KEY"])
# List all frameworks
page = client.frameworks.list()
for fw in page.data:
print(fw.slug, fw.name)
# Iterate all GDPR articles (auto-pagination)
for article in client.articles.iter("gdpr"):
print(article.article_number, article.title)
# Search
results = client.search.query("data breach notification")
print(f"Found {results.meta.total} results")
import { Law4DevsClient } from 'law4devs';
const client = new Law4DevsClient({
apiKey: process.env.LAW4DEVS_API_KEY!,
});
// List all frameworks
const page = await client.frameworks.list();
page.data.forEach(fw => console.log(fw.slug, fw.name));
// Iterate all GDPR articles (auto-pagination)
for await (const article of client.articles.iter('gdpr')) {
console.log(article.articleNumber, article.title);
}
// Search
const results = await client.search.query('data breach notification');
console.log(`Found ${results.meta.total} results`);
Next Steps