Comments (8)
BILLSTATUS and ECFR content is now available via the API:
https://api.govinfo.gov/collections:
{
"collectionCode": "BILLSTATUS",
"collectionName": "Congressional Bill Status",
"packageCount": 5554,
"granuleCount": null
},
....
{
"collectionCode": "ECFR",
"collectionName": "Electronic Code of Federal Regulations",
"packageCount": 16,
"granuleCount": null
},
We are in the process of reindexing, so the numbers under packageCount will increase over the coming weeks.
You can use the collections and packages endpoints for these packages now.
from api.
I am currently working with the API on a project related to congressional bills. It would be great if I could use the same API to get full bill text in JSON format. It's just easier to work with than working with this type of XML: https://www.govinfo.gov/content/pkg/BILLS-115hr2740rfs/xml/BILLS-115hr2740rfs.xml
from api.
@cnizzardini - thanks for the feedback. As you mentioned, there is no official version of Congressional Bills in JSON format currently.
Have you considered using xml2json or a similar library for your language of choice (PHP, it looks like) to transform the XML into json? Of course, then you're not dealing directly with the official content, so it may require additional verification that the translated version meets your needs.
from api.
We are working on a project studying government documents, and it would be very helpful if we could directly download bulkdata through the API. Thanks!
from api.
@jonquandt Just out of curiosity, is there a way to download the whole corpus before you make the feature available? I know this can be done by downloading though API per file but wanted to make sure this follows your rate limit first :)
from api.
@yian-yin - when you say “whole corpus”, do you mean all of the files available through the bulk data repository, or the entire corpus of content available on govinfo?
The bulk data repository represents only a subset of documents available from govinfo - primarily XML content only.
Via the govinfo API, you can already access much of the xml content that exists on the bulk data repository- like XML of Congressional Bills and the Federal Register. Going via the API for those resources does also give the flexibility of getting other content formats and our MODS metadata records for that content, which provides a wealth of information that can be used to understand the content and link it to other Government publications.
There are a few collections that are available only via the bulk data site, currently. From current usage patterns, we would prioritize making Congressional Billstatus and ECFR data available via the API, though other types might make sense to include as well.
from api.
@jonquandt Thanks for your answer! I am actually interested in the entire corpus of content available on govinfo. As I understand, a large fraction of such information is currently unavailable through bulk data, that's why I ask if there's any rate limit in using API.
Also thanks for reminding me that some collections only exist in the bulk data site -- does this mean the API only includes a subset of what's available on govinfo? If so, would you mind letting me know the estimate of this fraction?
from api.
@yin-yang no rate limit at the moment, but we may impose one if we’re seeing an excessive number of requests - I don’t anticipate it being an issue at this time. Best to try to do larger updates overnight though.
Of the list of collections listed on www.govinfo.gov/bulkdata, the bulk data only collections are:
-Congressional Bill Status – 113th Congress to Present
-Congressional Bill Summaries – House Bill Summaries added in 2014, summaries for Senate Bills added in January 2015
-Electronic Code of Federal Regulations (current XML file for each of the titles in the eCFR)
-Supreme Court Decisions
All of the bulk data resources are available via our bulk data sitemaps or directly as xml or json endpoints.
The vast majority of content and metadata is available via the API.
from api.
Related Issues (20)
- Retrieve CREC documents which have the property "Congress Member Speaking" HOT 1
- Receive "HTTP Error 401: Unauthorized" after 100 scrapes HOT 1
- abdulrahmannabhan HOT 4
- Bulk data API back to 103rd Congress HOT 6
- Missing Bill Text for S3621 HOT 2
- What is the courtCode for Court of Federal Claims Opinions? HOT 4
- Why are the Related bills getting removed and getting added back very frequently HOT 5
- (`/related/*/BILLS`, `/packages/*/summary`): missing text versions HOT 5
- (`packages/CREC-*/granules/*/summary`): missing fields in `members` HOT 11
- readme "signup here" link is dead HOT 1
- (BillStatus): missing legislation HOT 2
- BillStatus missing for bills from congress sessions 107 and older HOT 1
- Packages for BILLS collection not available for congress sessions 102 and older HOT 1
- Search API for STATUTE collection returns different results than govinfo.gov UI HOT 3
- API request to access all congressional reports by the particular committee HOT 6
- Make BILLSUM collection available via API HOT 1
- packages - Add witnesses element for Congressional Hearings HOT 1
- Return 404 response for related service specific relationship where no related documents are available HOT 4
- Set bulkdata collections (BILLSTATUS/ECFR) xmlLinks to use the /xml endpoint instead of referencing bulkdata urls HOT 1
- (BillStatus API): missing `<title>` in S347 of 118th congress HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api.