EU Parliament Monitor — API Documentation - v1.0.11
    Preparing search index...
    • Pick the per-language SEO title from the resolved editorial pair and the localized template fallback.

      When falling back to the localized template (no editorial headline available), append an ISO date suffix so two runs of the same article type on different dates do not produce identical titles, plus an (EP) SERP-floor pad when the result falls below the per-script reader floor. No run-number or "Edition N" disambiguator is appended: scripts/validate-article-seo.js forbids run-number / edition tokens in reader-facing titles, so same-date collisions are expected to be resolved through editorial / content-based differentiation instead.

      Parameters

      • fallbackTitle: string

        Localized article-type template title

      • editorialHeadline: string

        Editorial headline (localized or English)

      • _runId: string

        Unused; retained for call-site signature compatibility

      • Optionaldate: string

        Optional ISO date appended when no editorial headline exists

      • Optionallang: string

        Optional language code; drives per-script floor/budget classification

      Returns string

      SEO title candidate