> ## 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.

# Quick Start

> Make your first Law4Devs API call in under 60 seconds.

Pick your preferred method:

<Tabs>
  <Tab title="curl">
    ```bash theme={null}
    # 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"
    ```
  </Tab>

  <Tab title="Python">
    ```bash theme={null}
    pip install law4devs
    ```

    ```python theme={null}
    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")
    ```
  </Tab>

  <Tab title="TypeScript">
    ```bash theme={null}
    npm install law4devs
    ```

    ```typescript theme={null}
    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`);
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="Python SDK →" href="/sdks/python/installation" icon="python" color="#3776AB" />

  <Card title="TypeScript SDK →" href="/sdks/typescript/installation" icon="js" color="#3178C6" />

  <Card title="PHP SDK →" href="/sdks/php/installation" icon="php" color="#777BB4" />

  <Card title="API Reference →" href="/api-reference" icon="code" color="#8B5CF6" />

  <Card title="All Frameworks →" href="/frameworks" icon="building-columns" color="#0EA5E9" />
</CardGroup>
