Overview
Articles are the primary normative units of each EU regulation. Each article belongs to one framework and may contain multiple numbered paragraphs. Articles can also be tagged and cross-referenced to related articles.Methods
list()
Returns a page of article summaries for a framework.
| Parameter | Type | Default | Description |
|---|---|---|---|
frameworkSlug | string | required | Framework slug, e.g. "gdpr" |
page | number | 1 | Page number |
perPage | number | 20 | Items per page (1–100) |
Promise<Page<ArticleSummary>>
get()
Fetch the full content of a single article including all paragraphs.
| Parameter | Type | Description |
|---|---|---|
frameworkSlug | string | Framework slug |
articleNumber | number | Article number |
Promise<Article>
related()
Fetch articles related to a given article (cross-references and thematic links).
| Parameter | Type | Description |
|---|---|---|
frameworkSlug | string | Framework slug |
articleNumber | number | Article number |
Promise<Page<ArticleSummary>>
iter()
Iterate over all articles in a framework without managing pagination.
list() (except frameworkSlug is the first positional argument and page is managed internally).
Returns AsyncGenerator<ArticleSummary>
Models
ArticleSummary
Returned by list(), related(), and iter().
| Field | Type | Description |
|---|---|---|
id | number | Internal numeric ID |
frameworkSlug | string | Parent framework slug |
articleNumber | number | Article number |
title | string | null | Article title |
position | number | Display order within the framework |
paragraphCount | number | Number of paragraphs |
tags | Tag[] | Tags applied to the article |
Article
Returned by get(). Extends ArticleSummary with:
| Field | Type | Description |
|---|---|---|
content | string | null | Full article text |
paragraphs | ArticleParagraph[] | Structured paragraph list |
ArticleParagraph
| Field | Type | Description |
|---|---|---|
paragraphRef | string | Paragraph reference, e.g. "1", "2a" |
content | string | Paragraph text |
position | number | Display order within the article |
