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.
Install
Add to your pom.xml:
<dependency>
<groupId>eu.law4devs.sdk</groupId>
<artifactId>java</artifactId>
<version>1.0.0</version>
</dependency>
Basic Usage
import eu.law4devs.sdk.Law4DevsClient;
import eu.law4devs.sdk.models.ArticleSummary;
import eu.law4devs.sdk.models.Framework;
var client = Law4DevsClient.builder()
.apiKey(System.getenv("LAW4DEVS_API_KEY"))
.build();
// List all frameworks
var page = client.frameworks().list();
for (Framework fw : page.data()) {
System.out.println(fw.slug() + " — " + fw.name());
}
// List first 5 CRA articles
var articles = client.articles().list("cra", 1, 5);
for (ArticleSummary a : articles.data()) {
System.out.println("Art. " + a.number() + ": " + a.title());
}
// Auto-paginate all GDPR articles
for (ArticleSummary a : client.articles().iter("gdpr")) {
System.out.println(a.number() + " " + a.title());
}
// Search across all frameworks
var results = client.search().query("data breach notification");
System.out.println("Found " + results.meta().total() + " results");
Next Steps