EU Parliament Monitor - API Documentation - v0.8.2
    Preparing search index...
    • Rank MEP influence scores filtered by topic relevance. Matches scores whose mepName, mepId, or rank contains the topic substring (case-insensitive). Returns the filtered list sorted by overallScore descending. If topic is empty or no matches found, returns all scores sorted by overallScore.

      Parameters

      • scores: readonly MEPInfluenceScore[]

        MEP influence scores to rank

      • topic: string | null | undefined

        Topic keyword to filter by; if null/undefined/empty, all scores are returned sorted by overallScore

      Returns MEPInfluenceScore[]

      Sorted array of matching MEPInfluenceScore entries