congress-dot-gov - v0.4.3
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    apiKey: string
    baseUrl: string
    endpoint: string

    Methods

    • Returns detailed information for a specified Congressional Research Service (CRS) report.

      Parameters

      • reportNumber: string

        The report number to retrieve

      • params: { format?: Format } = {}

        {BaseParams} - Format parameters

      Returns Promise<
          {
              CRSReport: {
                  authors: { author: string }[];
                  contentType: string;
                  formats: { format: string; url: string }[];
                  id: string;
                  publishDate: string;
                  relatedMaterials: {
                      congress: number;
                      number: string | number;
                      title: null | string;
                      type: string;
                      URL: string;
                  }[];
                  status: string;
                  summary: string;
                  title: string;
                  topics: { topic: string }[];
                  updateDate: string;
                  url: string;
                  version: number;
              };
          } & { rateLimit: RateLimitInfo },
      >

      Detailed information for the specified CRS report

    • Returns Congressional Research Service (CRS) report data from the API.

      Parameters

      • params: { format?: Format; limit?: number; offset?: number } = {}

        {PaginationParams} - Pagination and format parameters

      Returns Promise<
          {
              CRSReports: {
                  contentType: string;
                  id: string;
                  publishDate: string;
                  status: string;
                  title: string;
                  updateDate: string;
                  url: string;
                  version: number;
              }[];
          } & { rateLimit: RateLimitInfo },
      >

      A list of CRS reports