### Get Treaty Actions Response (JSON) Source: https://documenter.getpostman.com/view/6803158/VV56LCkZ/index An example of a JSON response when a treaty action query fails, indicating 'No Treaty matches the given query.' It includes the error message and details about the request parameters. ```json { "error": "No Treaty matches the given query.", "request": { "congress": "117", "contentType": "application/json", "format": "json" } } ``` -------------------------------- ### Example JSON Response for Treaty Details Source: https://documenter.getpostman.com/view/6803158/VV56LCkZ/index This is an example of a successful JSON response when requesting treaty details from the Congress.gov API. It includes metadata about the request and a 'treaty' object containing various attributes of the treaty, such as its congress number, actions, and related documents. ```json { "request": { "congress": "117", "contentType": "application/json", "format": "json" }, "treaty": { "actions": { "count": 7, "url": "https://api.data.gov/congress/v3/treaty/117/3/actions?format=json" }, "congress": 117, "endCongressId": 117, "inForceDate": null, "oldTreatyNum": null, "oldTreatyNumDisplayStr": null, "parts": {}, "relatedDocs": [], "resolutionText": "[117] TreatyRes. 6 for TreatyDoc. 117 - 3

As approved by the Senate:

Resolved (two-thirds of the Senators present concurring therein),

SECTION 1. SENATE ADVICE AND CONSENT SUBJECT TO DECLARATIONS AND CONDITIONS.

The Senate advises and consents to the ratification of the Protocols to the North Atlantic Treaty of 1949 on the Accession of the Republic of Finland and the Kingdom of Sweden, which were signed on July 5, 2022, by the United States of America and other parties to the North Atlantic Treaty of 1949 (Treaty Doc. 117-3), subject to the declarations of section 2 and the condition of section 3.

SEC. 2. DECLARATIONS.

The advice and consent of the Senate under section 1 is subject to the following declarations:

(1)\tReaffirmation That United States Membership in NATO Remains a Vital National Security Interest of the United States.- The Senate declares that-

(A)\tfor more than 70 years the North Atlantic Treaty Organization (NATO) has served as the preeminent organization to defend the countries in the North Atlantic area against all external threats;

(B)\tthrough common action, the established democracies of North America and Europe that were joined in NATO persevered and prevailed in the task of ensuring the survival of democratic government in Europe and North America throughout the Cold War;

(C)\tNATO enhances the security of the United States by embedding European states in a process of cooperative security planning and by ensuring an ongoing and direct leadership role for the United States in European security affairs;

(D)\tthe responsibility and financial burden of defending the democracies of Europe and North America can be more equitably shared through an alliance in which specific obligations and force goals are met by its members;

(E)\tthe security and prosperity of the United States is enhanced by NATO's collective defense against aggression that may threaten the security of NATO members; and

(F)\tUnited States membership in NATO remains a vital national security interest of the United States.

(2)\tStrategic Rationale for NATO Enlargement.- The Senate declares that-

(A)\tthe United States and its NATO allies face continued threats to their stability and territorial integrity;

(B)\tan attack against Finland or Sweden, or the destabilization of either arising from external subversion, would threaten the stability of Europe and jeopardize United States national security interests;

(C)\tFinland and Sweden, having established democratic governments and having demonstrated a willingness to meet the requirements of membership, including those necessary to contribute to the defense of all NATO members, are in a position to further the principles of the North Atlantic Treaty and to contribute to the security of the North Atlantic area; and

(D)\textending NATO membership to Finland and Sweden will strengthen NATO, enhance stability in Europe, and advance the interests of the United States and its NATO allies.

(3)\tSupport for NATO's Open Door Policy.- The policy of the United States is to support NATO's Open Door Policy that allows any European country to express its desire to join NATO and demonstrate its ability to meet the obligations of NATO membership.

(4)\tFuture Consideration of Candidates for Membership in NATO.-

(A)\tSenate Finding.-The Senate finds that the United States will not support the accession to the North Atlantic Treaty of, or the invitation to begin acc" } } ``` -------------------------------- ### Get Treaty Committees Response (JSON) Source: https://documenter.getpostman.com/view/6803158/VV56LCkZ/index An example of a JSON response when retrieving treaty committees. This specific example shows an empty array for 'treatyCommittees', indicating no committees were found or associated with the queried treaty. ```json { "request": { "congress": "117", "contentType": "application/json", "format": "json" }, "treatyCommittees": [] } ``` -------------------------------- ### GET /v3/treaty/{congress}/{treatyNumber}/{treatySuffix} Source: https://documenter.getpostman.com/view/6803158/VV56LCkZ/index Returns detailed information for a specified partitioned treaty. Requires an API Key for authorization. ```APIDOC ## GET /v3/treaty/{congress}/{treatyNumber}/{treatySuffix} ### Description Returns detailed information for a specified partitioned treaty. ### Method GET ### Endpoint `/treaty/{congress}/{treatyNumber}/{treatySuffix}` ### Parameters #### Query Parameters - **format** (string) - Optional - Specifies the response format, e.g., 'json'. ### Request Example ``` curl --location 'https://api.congress.gov/v3/treaty/117/3/A?format=json' ``` ### Response #### Success Response (200) - **treaty** (object) - Contains detailed information about the treaty. - **treatyId** (string) - Unique identifier for the treaty. - **title** (string) - The title of the treaty. - **congress** (string) - The congress number associated with the treaty. - **treatyNumber** (string) - The number of the treaty. - **treatySuffix** (string) - The suffix of the treaty number. - **actionsUrl** (string) - URL to fetch actions related to the treaty. - **detailsUrl** (string) - URL to fetch detailed information about the treaty. #### Response Example ```json { "treaty": [ { "treatyId": "117-3", "title": "Protocol to the North Atlantic Treaty", "congress": "117", "treatyNumber": "3", "treatySuffix": "A", "actionsUrl": "https://api.congress.gov/v3/treaty/117/3/actions?format=json", "detailsUrl": "https://api.congress.gov/v3/treaty/117/3/A?format=json" } ], "pagination": { "count": 1 }, "request": { "congress": "117", "contentType": "application/json", "format": "json" } } ``` #### Error Response (404) - **error** (string) - Message indicating that no treaty matches the query. - **request** (object) - Details of the failed request. #### Error Response Example ```json { "error": "No Treaty matches the given query.", "request": { "congress": "117", "contentType": "application/json", "format": "json" } } ``` ``` -------------------------------- ### Get Treaty Actions (API) Source: https://documenter.getpostman.com/view/6803158/VV56LCkZ/index Retrieves a list of actions performed on a specified treaty, identified by its congress, treaty number. Requires an API Key. Returns JSON format. Example response shows actions like referral, committee reporting, and floor actions. ```curl curl --location 'https://api.congress.gov/v3/treaty/117/3/actions?format=json' ``` -------------------------------- ### GET /v3/treaty/{congress}/{treatyNumber}/{treatySuffix}/actions Source: https://documenter.getpostman.com/view/6803158/VV56LCkZ/index Returns the list of actions on a specified partitioned treaty. Requires API Key. ```APIDOC ## GET /v3/treaty/{congress}/{treatyNumber}/{treatySuffix}/actions ### Description Returns the list of actions on a specified partitioned treaty. ### Method GET ### Endpoint `/treaty/{congress}/{treatyNumber}/{treatySuffix}/actions` ### Query Parameters - **format** (string) - Optional - Specifies the response format, e.g., `json`. ### Request Example ```bash curl --location 'https://api.congress.gov/v3/treaty/117/3/A/actions?format=json' ``` ### Response #### Success Response (200) - **request** (object) - Information about the request made. - **error** (string) - Error message if no treaty matches the query. #### Response Example (Error) ```json { "error": "No Treaty matches the given query.", "request": { "congress": "117", "contentType": "application/json", "format": "json" } } ``` ``` -------------------------------- ### GET /v3/treaty/{congress}/{treatyNumber}/actions Source: https://documenter.getpostman.com/view/6803158/VV56LCkZ/index Returns the list of actions on a specified treaty. Requires an API Key for authorization. ```APIDOC ## GET /v3/treaty/{congress}/{treatyNumber}/actions ### Description Returns the list of actions on a specified treaty. ### Method GET ### Endpoint `/treaty/{congress}/{treatyNumber}/actions` ### Parameters #### Query Parameters - **format** (string) - Optional - Specifies the response format, e.g., 'json'. ### Request Example ``` curl --location 'https://api.congress.gov/v3/treaty/117/3/actions?format=json' ``` ### Response #### Success Response (200) - **actions** (array) - A list of actions performed on the treaty. - **actionCode** (string) - Code representing the action. - **actionDate** (string) - Date the action was taken. - **committee** (string or null) - The committee involved in the action. - **text** (string) - Description of the action. - **type** (string) - Type of action (e.g., 'IntroReferral', 'Committee', 'Floor'). - **pagination** (object) - Pagination information for the results. - **count** (integer) - The total number of actions. #### Response Example ```json { "actions": [ { "actionCode": "S05120", "actionDate": "2022-07-11", "committee": null, "text": "Received in the Senate and referred to the Committee on Foreign Relations by unanimous consent removing the injunction of secrecy.", "type": "IntroReferral" }, { "actionCode": "S05885", "actionDate": "2022-07-19", "committee": null, "text": "Committee on Foreign Relations. Ordered to be reported without amendment favorably.", "type": "Committee" } ], "pagination": { "count": 7 }, "request": { "congress": "117", "contentType": "application/json", "format": "json" } } ``` ``` -------------------------------- ### GET /v3/treaty/{congress}/{treatyNumber} Source: https://documenter.getpostman.com/view/6803158/VV56LCkZ/index Retrieves detailed information for a specific treaty using its congress number and treaty number. ```APIDOC ## GET /v3/treaty/{congress}/{treatyNumber} ### Description Returns detailed information for a specified treaty. ### Method GET ### Endpoint `/v3/treaty/{congress}/{treatyNumber}` ### Parameters #### Path Parameters - **congress** (integer) - Required - The congress number for the treaty. - **treatyNumber** (integer) - Required - The unique number of the treaty. #### Query Parameters - **format** (string) - Optional - Specifies the response format. Defaults to `json`. ### Request Example ```json { "example": "https://api.congress.gov/v3/treaty/117/3?format=json" } ``` ### Response #### Success Response (200) - **request** (object) - Information about the request made. - **congress** (string) - The congress number requested. - **contentType** (string) - The content type of the response. - **format** (string) - The format of the response. - **treaty** (object) - Details about the treaty. - **actions** (object) - Information about actions related to the treaty. - **count** (integer) - The number of actions. - **url** (string) - URL to fetch the treaty actions. - **congress** (integer) - The congress number the treaty belongs to. - **endCongressId** (integer) - The ID of the congress session the treaty ended in. - **inForceDate** (string) - The date the treaty came into force (if applicable). - **oldTreatyNum** (string) - The old treaty number (if applicable). - **oldTreatyNumDisplayStr** (string) - Display string for the old treaty number. - **parts** (object) - Placeholder for treaty parts information. - **relatedDocs** (array) - An array of related documents. - **resolutionText** (string) - The text of the resolution related to the treaty. #### Response Example ```json { "request": { "congress": "117", "contentType": "application/json", "format": "json" }, "treaty": { "actions": { "count": 7, "url": "https://api.data.gov/congress/v3/treaty/117/3/actions?format=json" }, "congress": 117, "endCongressId": 117, "inForceDate": null, "oldTreatyNum": null, "oldTreatyNumDisplayStr": null, "parts": {}, "relatedDocs": [], "resolutionText": "..." } } ``` ``` -------------------------------- ### Get Treaty Detail (API) Source: https://documenter.getpostman.com/view/6803158/VV56LCkZ/index Retrieves detailed information for a specific treaty using its congress, treaty number, and suffix. Requires an API Key. Returns JSON format. Handles '404 Not Found' errors if no treaty matches the query. ```curl curl --location 'https://api.congress.gov/v3/treaty/117/3/A?format=json' ``` -------------------------------- ### GET /v3/treaty/{congress}/{treatyNumber}/committees Source: https://documenter.getpostman.com/view/6803158/VV56LCkZ/index Returns the list of committees associated with a specified treaty. Requires API Key. ```APIDOC ## GET /v3/treaty/{congress}/{treatyNumber}/committees ### Description Returns the list of committees associated with a specified treaty. ### Method GET ### Endpoint `/treaty/{congress}/{treatyNumber}/committees` ### Query Parameters - **format** (string) - Optional - Specifies the response format, e.g., `json`. ### Request Example ```bash curl --location 'https://api.congress.gov/v3/treaty/117/3/committees?format=json' ``` ### Response #### Success Response (200) - **request** (object) - Information about the request made. - **treatyCommittees** (array) - A list of committees associated with the treaty. #### Response Example ```json { "request": { "congress": "117", "contentType": "application/json", "format": "json" }, "treatyCommittees": [] } ``` ``` -------------------------------- ### Get Treaty Actions (cURL) Source: https://documenter.getpostman.com/view/6803158/VV56LCkZ/index Retrieves a list of actions performed on a specific treaty. This endpoint requires the treaty's congress number, treaty number, and treaty suffix. The response is in JSON format. ```curl curl --location 'https://api.congress.gov/v3/treaty/117/3/A/actions?format=json' ``` -------------------------------- ### Get Treaty Committees (cURL) Source: https://documenter.getpostman.com/view/6803158/VV56LCkZ/index Fetches the list of committees associated with a particular treaty. The request requires the congress number and treaty number. The output is provided in JSON format. ```curl curl --location 'https://api.congress.gov/v3/treaty/117/3/committees?format=json' ``` -------------------------------- ### Retrieve Treaty Details using cURL Source: https://documenter.getpostman.com/view/6803158/VV56LCkZ/index This snippet shows how to request detailed treaty information using the cURL command-line tool. It specifies the API endpoint and the desired format for the response. The request requires an API key, which is assumed to be configured. ```shell curl --location 'https://api.congress.gov/v3/treaty/117/3?format=json' ``` -------------------------------- ### Congress.gov API Endpoints Source: https://documenter.getpostman.com/view/6803158/VV56LCkZ/index This section details the various endpoints available in the Congress.gov API for retrieving legislative information. ```APIDOC ## Congress.gov API Overview ### Description This API provides access to Congressional data including bills, amendments, summaries, congress information, members, committees, reports, communications, nominations, and treaties. ### Authorization API Key: `api_key` ### Endpoints #### Bills API - **Endpoint**: `/bill` - **Description**: Retrieve information about bills. #### Amendments API - **Endpoint**: `/amendments` - **Description**: Retrieve information about amendments. #### Summaries API - **Endpoint**: `/summaries` - **Description**: Retrieve summaries of legislative actions. #### Congress API - **Endpoint**: `/congress` - **Description**: Retrieve information about sessions of Congress. #### Member API - **Endpoint**: `/member` - **Description**: Retrieve information about members of Congress. #### Committee API - **Endpoint**: `/committee` - **Description**: Retrieve information about Congressional committees. #### Committee Report API - **Endpoint**: `/committeeReport` - **Description**: Retrieve information about committee reports. #### Congressional Record API - **Endpoint**: `/congressional-record` - **Description**: Retrieve information from the Congressional Record. #### House Communication API - **Endpoint**: `/house-communication` - **Description**: Retrieve communications from the House of Representatives. #### Senate Communication API - **Endpoint**: `/senate-communication` - **Description**: Retrieve communications from the Senate. #### Nomination API - **Endpoint**: `/nomination` - **Description**: Retrieve information about nominations. #### Treaty API - **Endpoint**: `/treaty` - **Description**: Retrieve information about treaties. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.