European Parliament MCP Server API - v1.4.23
    Preparing search index...

    Function deriveCurrentPoliticalComposition

    • Derives the current Parliament composition from dated MEP membership records.

      Parameters

      • cache: {
            mepDetails: Record<
                string,
                {
                    active: boolean;
                    committees: string[];
                    country: string;
                    id: string;
                    name: string;
                    politicalGroup: string;
                    termStart: string;
                    address?: string;
                    bday?: string;
                    biography?: string;
                    citizenship?: string;
                    email?: string;
                    facebook?: string;
                    familyName?: string;
                    givenName?: string;
                    hasEmail?: string;
                    hasGender?: string;
                    hasHonorificPrefix?: string;
                    hasMembership?: {
                        contactPoint: {
                            email?: string;
                            hasSite?: string;
                            hasTelephone?: {
                                hasValue?: (...)
                                | (...);
                                id?: (...) | (...);
                                type?: (...) | (...);
                            };
                            id?: string;
                            officeAddress?: string;
                            type?: string;
                        }[];
                        id?: string;
                        identifier?: string;
                        memberDuring?: {
                            id: string;
                            type: string;
                            endDate?: string;
                            startDate?: string;
                        };
                        membershipClassification?: string;
                        notation_codictFunctionId?: string;
                        notation_codictMandateId?: string;
                        organization?: string;
                        represents?: string[];
                        role?: string;
                        type?: string;
                    }[];
                    identifier?: string;
                    img?: string;
                    label?: string;
                    notation_codictPersonId?: string;
                    phone?: string;
                    placeOfBirth?: string;
                    roles?: string[];
                    sortLabel?: string;
                    termEnd?: string;
                    twitter?: string;
                    type?: string;
                    upperFamilyName?: string;
                    upperGivenName?: string;
                    votingStatistics?: {
                        abstentions: number;
                        attendanceRate: number;
                        totalVotes: number;
                        votesAgainst: number;
                        votesFor: number;
                    };
                    website?: string;
                },
            >;
            meps: {
                active: boolean;
                committees: string[];
                country: string;
                id: string;
                name: string;
                politicalGroup: string;
                termStart: string;
                email?: string;
                termEnd?: string;
            }[];
            metadata: {
                generatedAt: string;
                schemaVersion: number;
                source: string;
                complete?: boolean;
                dataset?: "meps"
                | "corporate-bodies"
                | "controlled-vocabularies";
                detailCount?: number;
                recordCount?: number;
                scope?: "current" | "all";
                weekKey?: string;
            };
        }
      • asOf: string = ...

      Returns CurrentPoliticalComposition