All URIs are relative to https://www.govinfo.gov/link .
Method | HTTP request | Description |
---|---|---|
statuteTypeFetchUsingGET | GET /statute/{congress}/{lawtype}/{lawnum} | Query: congress, law type, law number |
statuteVolumeFetchUsingGET | GET /statute/{volume}/{page} | Query: volume, page number |
Object statuteTypeFetchUsingGET(congress, lawtype, lawnum, opts)
Query: congress, law type, law number
const { StatutesAtLarge } = require('govinfo-link-js')
const api = new StatutesAtLarge()
const congress = 56 // Number | This is the numerical Congress number. Sample value is 108.
const lawtype = 'lawtype_example' // String | This is the law type. Laws can either be public laws or private laws. Values are public, private.
const lawnum = 56 // Number | This is the numerical law number. Laws are numbered consecutively within each law type within a Congress. Sample value is 481.
const opts = {
linkType: 'linkType_example' // String | This is the format of the returned document. Default is pdf. Other values are html, mods, premis, details, context.
}
const callback = (error, data, response) => {
if (error) {
console.error(error)
} else {
console.log(`SUCCESS: ${JSON.stringify(response, null, 2)}`)
}
}
api.statuteTypeFetchUsingGET(congress, lawtype, lawnum, opts, callback)
Name | Type | Description | Notes |
---|---|---|---|
congress | Number | This is the numerical Congress number. Sample value is 108. | |
lawtype | String | This is the law type. Laws can either be public laws or private laws. Values are public, private. | |
lawnum | Number | This is the numerical law number. Laws are numbered consecutively within each law type within a Congress. Sample value is 481. | |
linkType | String | This is the format of the returned document. Default is pdf. Other values are html, mods, premis, details, context. | [optional] |
Object
No authorization required.
- Content-Type:
application/json
- Accept: /
Object statuteVolumeFetchUsingGET(volume, page, opts)
Query: volume, page number
const { StatutesAtLarge } = require('govinfo-link-js')
const api = new StatutesAtLarge()
const volume = 56 // Number | This is the numerical volume number. Sample value is 118.
const page = 56 // Number | This is the numerical page number. Statutes at Large pages are numbered consecutively within a volume. Note: when multiple granules are contained on a page, content and metadata for the last granule on the page will be returned. Recommend selecting PDF link-type to return content for all granules on a page. Sample value is 3910.
const opts = {
linkType: 'linkType_example' // String | This is the format of the returned document. Default is pdf. Other values are html, mods, premis, details, context.
}
const callback = (error, data, response) => {
if (error) {
console.error(error)
} else {
console.log(`SUCCESS: ${JSON.stringify(response, null, 2)}`)
}
}
api.statuteVolumeFetchUsingGET(volume, page, opts, callback)
Name | Type | Description | Notes |
---|---|---|---|
volume | Number | This is the numerical volume number. Sample value is 118. | |
page | Number | This is the numerical page number. Statutes at Large pages are numbered consecutively within a volume. Note: when multiple granules are contained on a page, content and metadata for the last granule on the page will be returned. Recommend selecting PDF link-type to return content for all granules on a page. Sample value is 3910. | |
linkType | String | This is the format of the returned document. Default is pdf. Other values are html, mods, premis, details, context. | [optional] |
Object
No authorization required.
- Content-Type:
application/json
- Accept: /