LibraryOfCongress / api.congress.gov

congress.gov API
642 stars 39 forks source link

/bills from January 1st returns 147k pagination count #131

Closed Gmanicus closed 1 year ago

Gmanicus commented 1 year ago

Hi there,

I am attempting to retrieve all bills starting from January 1st via the /bills endpoint with a fromDateTime of 2023-01-01T00:00:00Z with a limit of 250 for each request.

image

591 pages at 250 bills per page = ~147k bills. On Congress.gov, I see ~10k bills since January 1st.

This seems to return many results from many congresses as far back as 103 with the latest action being in 1993.

It seems to start only returning results from congress 118 starting from July 1st.

Are these updated dates correct? Potentially related to #111 and #112

The URL: https://api.congress.gov/v3/bill?fromDateTime=2023-01-01T00:00:00Z

mnewatloc commented 1 year ago

It looks like you're searching by update date. The Government Publishing Office recently reissued most bills and we reprocessed them, so that count is actually correct.

Gmanicus commented 1 year ago

Ah, I see. Thank you for the explanation!