api.congress.gov icon indicating copy to clipboard operation
api.congress.gov copied to clipboard

Feature request: Link to corresponding page on Congress.gov frontend

Open sdxiang opened this issue 1 year ago • 0 comments
trafficstars

I'm working on an application that queries the API to answer user questions, and I would like it to return source URLs for the information retrieved. Returning the API call URL is not helpful because most users will not have API keys, so I was wondering if endpoints could include a link to the corresponding page on Congress.gov.

For example, the call https://api.congress.gov/v3/bill/117/hr/3076?api_key=[INSERT_KEY] would include a link to https://www.congress.gov/bill/117th-congress/house-bill/3076?s=4&r=1.

I've written a function that does this conversion for every endpoint where it's possible (happy to share if anyone's interested), but I think this would be a useful feature for the API to have.

sdxiang avatar Aug 06 '24 12:08 sdxiang