unitedstates / congress

Public domain data collectors for the work of Congress, including legislation, amendments, and votes.
https://github.com/unitedstates/congress/wiki
Creative Commons Zero v1.0 Universal
906 stars 197 forks source link

Bill cosponsors not showing up in the "cosponsors" field #209

Closed biajoeknee closed 7 years ago

biajoeknee commented 7 years ago

Here's my query:

https://congress.api.sunlightfoundation.com/bills/search?query="lgbtq"&order=introduced_on&fields=cosponsors_count,cosponsors

Here's the results:

 {
   "results": [
     {
       "bill_id": "hres772-114",
       "cosponsors_count": 15,
       "search": {
         "score": 3.3260274,
         "type": "bill"
       }
     },
     {
       "bill_id": "s2765-114",
       "cosponsors_count": 15,
       "search": {
         "score": 0.1978575,
         "type": "bill"
       }
     },
     {
       "bill_id": "sres399-114",
       "cosponsors_count": 2,
       "search": {
         "score": 0.29858115,
         "type": "bill"
       }
     },
     {
       "bill_id": "hres329-114",
       "cosponsors_count": 17,
       "search": {
         "score": 2.0582209,
         "type": "bill"
       }
     }
   ],
   "count": 4,
   "page": {
     "count": 4,
     "per_page": 20,
     "page": 1
   }
 }

Each bill has multiple cosponsors, yet, none of them are provided in the cosponsors field.

dwillis commented 7 years ago

This is actually an issue for the Sunlight API: https://github.com/propublica/congress-api-docs/issues/