usgpo / api

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

Is there a way to get cfrparts data via API? #68

Open anuraggulati opened 4 years ago

anuraggulati commented 4 years ago

Hello, The API allows us to query LSA and then download htm/pdf of all the CFR parts affected. This means if we want to see if anything was published in the FR that affects a CFR title we are interested in, we need to download all the LSAs for that time period, get the htms, and parse them.

This link https://www.govinfo.gov/app/cfrparts/publishdate%3Arange(,2020-08-20) seems to indicated that there is a data structure available where we can simply get the CFR parts affected in a more structured fashion as compared to parsing htm.

Is there a programmatic way to access data as presented in this link ?https://www.govinfo.gov/app/cfrparts/publishdate%3Arange(,2020-08-20)

Thanks

anuraggulati commented 3 years ago

Hi, Would someone be able to pick this up please?

Thanks, Anurag

jonquandt commented 3 years ago

@anuraggulati -- there is currently no way to access that information via the Public API.

I will add this as an item for us to explore making available.

anuraggulati commented 3 years ago

Many thanks Jon. This will be most useful. There are genuine cases where proposed rules in FR take a few years before coming into effect so are not included in the CFR. In such cases, to find the impacting FRs is quite cumbersome via the LSA+FR lookup.

PS: What's the best way to report an error in data served by the CFRParts link? Credit Risk Retention (+extension notice) does not affect title 17 part 43 but is shown here: https://www.govinfo.gov/app/cfrparts/publishdate%3Arange(,2020-08-20)

Believe this is a mistake and these should be included in Title 12....

jonquandt commented 3 years ago

Thanks for reporting this. We'll look into the issue you mentioned. I'm not sure how that is populating incorrectly at this point.

anuraggulati commented 3 years ago

Hi @jonquandt - Just wondering if there has been movement on this? Thanks

jonquandt commented 3 years ago

This is an item on the backlog. Looking to see if it can get into the next release. It did not make it into our September release.