Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Get recent bills does not include congressional session within each bill #241

@ndawg

Description

@ndawg

Although the get recent bills endpoint requires a value for congress, it does not seem to include the value of the congressional session for each bill, like other similar endpoints do. For example, consider one of the returned bills:

{
  "bill_id": "s693-116",
  "bill_slug": "s693",
  "bill_type": "s",
  "number": "S.693",
  "bill_uri": "https://api.propublica.org/congress/v1/116/bills/s693.json",
  "title": "A bill to amend title 36, United States Code, to require that the POW/MIA flag be displayed on all days that the flag of the United States is displayed on certain Federal property.",
  "short_title": "National POW/MIA Flag Act",
  "sponsor_title": "Sen.",
  "sponsor": "Elizabeth Warren",
  "sponsor_id": "W000817",
  "sponsor_uri": "https://api.propublica.org/congress/v1/members/W000817.json",
  "sponsor_party": "D",
  "sponsor_state": "MA",
  "congressdotgov_url": "https://www.congress.gov/bill/116th-congress/senate-bill/693",
  "govtrack_url": "https://www.govtrack.us/congress/bills/116/s693",
  "introduced_date": "2019-03-07",
  "active": true,
  "house_passage": "2019-10-22",
  "senate_passage": "2019-05-02",
  "enacted": "2019-11-07",
  "cosponsors": 7,
  "cosponsors_by_party": {
    "R": 4,
    "D": 3,
    "I": 0
  },
  "withdrawn_cosponsors": 0,
  "primary_subject": "Government Operations and Politics",
  "committees": "House Judiciary Committee",
  "committee_codes": [
    "HSJU",
    "SSJU"
  ],
  "latest_major_action_date": "2019-11-07",
  "latest_major_action": "Signed by President.",
  "summary": "National POW/MIA Flag Act The bill changes the days on which the POW/MIA flag is required to be displayed at specified locations to all days on which the U.S. flag is displayed. (Current law requires the POW/MIA flag to be displayed only on Armed Forces Day, Memorial Day, Flag Day, Independence Day, National POW/MIA Recognition Day, and Veterans Day.) ",
  "summary_short": "National POW/MIA Flag Act The bill changes the days on which the POW/MIA flag is required to be displayed at specified locations to all days on which the U.S. flag is displayed. (Current law requires the POW/MIA flag to be displayed only on Armed Forces Day, Memorial Day, Flag Day, Independence Day, National POW/MIA Recognition Day, and Veterans Day.) "
}

As you can see there is no congress field in the returned JSON. Even though the request takes a congressional session ID itself, it would be really helpful for deserialization purposes to include this within the response.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions