Giter Club home page Giter Club logo

Comments (1)

jonquandt avatar jonquandt commented on July 30, 2024

@phulin -- sorry for the delay in response. It sounds like the range doesn't necessarily correspond to a CFR part, correct?

Are you looking for a single file in a specific format that would cover that range, or would returning a json response with relevant granuleIDs and download links suffice?

Lastly, do you want this via the link service or via the API?

If going via the link service, it would seem that you could accomplish this functionality by building a service that would take the citation (e.g. 29 U.S.C. ยงยง 201-219) and then programmatically create link service links for all of those sections, inclusive, using the following pattern:
https://www.govinfo.gov/link/uscode/{title}/{section}

https://www.govinfo.gov/link/uscode/29/201
https://www.govinfo.gov/link/uscode/29/202
https://www.govinfo.gov/link/uscode/29/203
https://www.govinfo.gov/link/uscode/29/204
https://www.govinfo.gov/link/uscode/29/205
https://www.govinfo.gov/link/uscode/29/206
https://www.govinfo.gov/link/uscode/29/207
https://www.govinfo.gov/link/uscode/29/208
https://www.govinfo.gov/link/uscode/29/209
https://www.govinfo.gov/link/uscode/29/210
https://www.govinfo.gov/link/uscode/29/211
https://www.govinfo.gov/link/uscode/29/212
https://www.govinfo.gov/link/uscode/29/213
https://www.govinfo.gov/link/uscode/29/214
https://www.govinfo.gov/link/uscode/29/215
https://www.govinfo.gov/link/uscode/29/216
https://www.govinfo.gov/link/uscode/29/217
https://www.govinfo.gov/link/uscode/29/218
https://www.govinfo.gov/link/uscode/29/219

You could also specify different formats by appending a link-type, (default is pdf) e.g.:
https://www.govinfo.gov/link/uscode/29/201?link-type=html

If you don't specify a year, it will retrieve the most recent version available in the system.

I hope this is helpful.

from api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.