usgpo / api

services to access govinfo content and metadata
https://api.govinfo.gov
Other
184 stars 58 forks source link

(BillStatus API): missing `<title>` in S347 of 118th congress #160

Closed ryparker closed 3 months ago

ryparker commented 6 months ago

The <title> tag is missing from the BILLSTATUS response for S347 of congress 118

curl --location 'https://govinfo.gov/bulkdata/BILLSTATUS/118/s/BILLSTATUS-118s347.xml' \
--header 'X-Api-Key:<API_KEY>'

Response:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<billStatus>
  <version>3.0.0</version>
  <bill>
    <number>347</number>
    <updateDate>2024-05-24T13:42:34Z</updateDate>
    <updateDateIncludingText>2024-05-24T13:42:34Z</updateDateIncludingText>
    <originChamber>Senate</originChamber>
    <originChamberCode>S</originChamberCode>
    <type>S</type>
    <introducedDate>2023-02-09</introducedDate>
    <congress>118</congress>
    <committees>
      <item>
        <systemCode>ssbk00</systemCode>
        <name>Banking, Housing, and Urban Affairs Committee</name>
        <chamber>Senate</chamber>
        <type>Standing</type>
        <activities>
          <item>
            <name>Referred to</name>
            <date>2023-02-09T19:23:10Z</date>
          </item>
        </activities>
      </item>
    </committees>
    <relatedBills>
      <item>
        <title>ANTI-SOCIAL CCP Act</title>
        <congress>118</congress>
        <number>1081</number>
        <type>HR</type>
        <latestAction>
          <actionDate>2023-02-17</actionDate>
          <text>Referred to the House Committee on Foreign Affairs.</text>
        </latestAction>
        <relationshipDetails>
          <item>
            <type>Related bill</type>
            <identifiedBy>CRS</identifiedBy>
          </item>
        </relationshipDetails>
      </item>
    </relatedBills>
    <actions>
      <item>
        <actionDate>2023-02-09</actionDate>
        <committees>
          <item>
            <systemCode>ssbk00</systemCode>
            <name>Banking, Housing, and Urban Affairs Committee</name>
          </item>
        </committees>
        <sourceSystem>
          <name>Senate</name>
        </sourceSystem>
        <text>Read twice and referred to the Committee on Banking, Housing, and Urban Affairs.</text>
        <type>IntroReferral</type>
      </item>
      <item>
        <actionDate>2023-02-09</actionDate>
        <text>Introduced in Senate</text>
        <type>IntroReferral</type>
        <actionCode>10000</actionCode>
        <sourceSystem>
          <code>9</code>
          <name>Library of Congress</name>
        </sourceSystem>
      </item>
    </actions>
    <sponsors>
      <item>
        <bioguideId>R000595</bioguideId>
        <fullName>Sen. Rubio, Marco [R-FL]</fullName>
        <firstName>Marco</firstName>
        <lastName>Rubio</lastName>
        <party>R</party>
        <state>FL</state>
        <isByRequest>N</isByRequest>
      </item>
    </sponsors>
    <cosponsors>
      <item>
        <bioguideId>K000383</bioguideId>
        <fullName>Sen. King, Angus S., Jr. [I-ME]</fullName>
        <firstName>Angus</firstName>
        <lastName>King</lastName>
        <party>I</party>
        <state>ME</state>
        <middleName>S.</middleName>
        <sponsorshipDate>2023-02-09</sponsorshipDate>
        <isOriginalCosponsor>True</isOriginalCosponsor>
      </item>
      <item>
        <bioguideId>W000437</bioguideId>
        <fullName>Sen. Wicker, Roger F. [R-MS]</fullName>
        <firstName>Roger</firstName>
        <lastName>Wicker</lastName>
        <party>R</party>
        <state>MS</state>
        <middleName>F.</middleName>
        <sponsorshipDate>2023-03-09</sponsorshipDate>
        <isOriginalCosponsor>False</isOriginalCosponsor>
      </item>
      <item>
        <bioguideId>B001310</bioguideId>
        <fullName>Sen. Braun, Mike [R-IN]</fullName>
        <firstName>Mike</firstName>
        <lastName>Braun</lastName>
        <party>R</party>
        <state>IN</state>
        <sponsorshipDate>2023-03-09</sponsorshipDate>
        <isOriginalCosponsor>False</isOriginalCosponsor>
      </item>
      <item>
        <bioguideId>L000571</bioguideId>
        <fullName>Sen. Lummis, Cynthia M. [R-WY]</fullName>
        <firstName>Cynthia</firstName>
        <lastName>Lummis</lastName>
        <party>R</party>
        <state>WY</state>
        <middleName>M.</middleName>
        <sponsorshipDate>2023-03-09</sponsorshipDate>
        <isOriginalCosponsor>False</isOriginalCosponsor>
      </item>
      <item>
        <bioguideId>S001217</bioguideId>
        <fullName>Sen. Scott, Rick [R-FL]</fullName>
        <firstName>Rick</firstName>
        <lastName>Scott</lastName>
        <party>R</party>
        <state>FL</state>
        <sponsorshipDate>2023-03-09</sponsorshipDate>
        <isOriginalCosponsor>False</isOriginalCosponsor>
      </item>
      <item>
        <bioguideId>B001243</bioguideId>
        <fullName>Sen. Blackburn, Marsha [R-TN]</fullName>
        <firstName>Marsha</firstName>
        <lastName>Blackburn</lastName>
        <party>R</party>
        <state>TN</state>
        <sponsorshipDate>2023-03-14</sponsorshipDate>
        <isOriginalCosponsor>False</isOriginalCosponsor>
      </item>
      <item>
        <bioguideId>T000476</bioguideId>
        <fullName>Sen. Tillis, Thomas [R-NC]</fullName>
        <firstName>Thomas</firstName>
        <lastName>Tillis</lastName>
        <party>R</party>
        <state>NC</state>
        <middleName>Roland</middleName>
        <sponsorshipDate>2023-03-21</sponsorshipDate>
        <isOriginalCosponsor>False</isOriginalCosponsor>
      </item>
    </cosponsors>
    <policyArea>
      <name>International Affairs</name>
    </policyArea>
    <subjects>
      <legislativeSubjects/>
      <policyArea>
        <name>International Affairs</name>
      </policyArea>
    </subjects>
    <summaries>
      <summary>
        <versionCode>00</versionCode>
        <actionDate>2023-02-09</actionDate>
        <actionDesc>Introduced in Senate</actionDesc>
        <updateDate>2023-06-28T13:32:13Z</updateDate>
        <text><![CDATA[ <p><b>Averting the National Threat of Internet Surveillance, Oppressive Censorship and Influence, and Algorithmic Learning by the Chinese Communist Party Act or the ANTI-SOCIAL CCP Act</b></p> <p>This bill requires the President to impose property-blocking sanctions on TikTok, its parent company ByteDance Ltd., and larger social media companies with ties to certain foreign countries.</p> <p>Specifically, the sanctions shall apply if the relevant property interests are (1) in the United States; or (2) in the possession or control of a U.S. person, if blocking the transaction is necessary to prevent the company's commercial operation in the United States. </p> <p>These sanctions shall also apply to larger social media companies involved with countries or persons (entities or individuals) of concern, generally defined as any foreign government or person engaged in activities adverse to U.S. security and safety and includes specific countries such as China, Russia, and North Korea. For the purposes of this bill, a <i>person of concern </i>also includes private companies and individuals domiciled in a country of concern and subject to the substantial influence of the government. </p> <p>Specifically, in addition to TikTok and ByteDance, the sanctions shall apply to any social media company </p> <ul> <li>that is based in or organized under the laws of a country of concern; </li> <li>where a country or person of concern owns 20% of its outstanding voting stock or shares; </li> <li>that uses software or algorithms controlled by a country or person of concern, including through export controls; or</li> <li>where a country or person of concern has substantial influence over the company's data sharing or content moderation practices.</li> </ul>]]></text>
      </summary>
    </summaries>
    <titles>
      <item>
        <titleType>Short Title(s) as Introduced</titleType>
        <titleTypeCode>101</titleTypeCode>
        <title>Averting the National Threat of Internet Surveillance, Oppressive Censorship and Influence, and Algorithmic Learning by the Chinese Communist Party Act</title>
        <billTextVersionName>Introduced in Senate</billTextVersionName>
        <billTextVersionCode>IS</billTextVersionCode>
      </item>
      <item>
        <titleType>Short Title(s) as Introduced</titleType>
        <titleTypeCode>101</titleTypeCode>
        <title>ANTI-SOCIAL CCP Act</title>
        <billTextVersionName>Introduced in Senate</billTextVersionName>
        <billTextVersionCode>IS</billTextVersionCode>
      </item>
      <item>
        <titleType>Official Title as Introduced</titleType>
        <titleTypeCode>6</titleTypeCode>
        <title>A bill to protect Americans from the threat posed by certain foreign adversaries using current or potential future social media companies that those foreign adversaries control to surveil Americans, gather sensitive data about Americans, or spread influence campaigns, propaganda, and censorship.</title>
        <billTextVersionName>Introduced in Senate</billTextVersionName>
        <billTextVersionCode>IS</billTextVersionCode>
      </item>
    </titles>
    <textVersions>
      <item>
        <type>Introduced in Senate</type>
        <date>2023-02-09T05:00:00Z</date>
        <formats>
          <item>
            <url>https://www.govinfo.gov/content/pkg/BILLS-118s347is/xml/BILLS-118s347is.xml</url>
          </item>
        </formats>
      </item>
    </textVersions>
    <latestAction>
      <actionDate>2023-02-09</actionDate>
      <text>Read twice and referred to the Committee on Banking, Housing, and Urban Affairs.</text>
    </latestAction>
  </bill>
  <dublinCore xmlns:dc="http://purl.org/dc/elements/1.1/">
    <dc:format>text/xml</dc:format>
    <dc:language>EN</dc:language>
    <dc:rights>Pursuant to Title 17 Section 105 of the United States Code, this file is not subject to copyright protection and is in the public domain.</dc:rights>
    <dc:contributor>Congressional Research Service, Library of Congress</dc:contributor>
    <dc:description>This file contains bill summaries and statuses for federal legislation. A bill summary describes the most significant provisions of a piece of legislation and details the effects the legislative text may have on current law and federal programs. Bill summaries are authored by the Congressional Research Service (CRS) of the Library of Congress. As stated in Public Law 91-510 (2 USC 166 (d)(6)), one of the duties of CRS is "to prepare summaries and digests of bills and resolutions of a public general nature introduced in the Senate or House of Representatives". For more information, refer to the User Guide that accompanies this file.</dc:description>
  </dublinCore>
</billStatus>

I noticed this on 5/26/2024. I haven't noticed this issue on any other legislation in the 118th congress.

Before today the title tag used to be:

<title>
    Averting the National Threat of Internet Surveillance, Oppressive Censorship and Influence, and Algorithmic Learning by the Chinese Communist Party Act
</title>

Should the <title> tag no longer be expected in the response?

jonquandt commented 6 months ago

Good morning - I see three separate titles in the billStatus/bill/titles area. But it appears that you are looking for a separate title field at billStatus/bill/title.

It appears that is not available in the congress.gov API for this particular bill summary either.

https://api.congress.gov/v3/bill/118/s/347?format=json&api_key=DEMO_KEY

The title tag should be expected in responses, when available from Congress.gov.