Closed patphongs closed 6 months ago
The structure
endpoint returns the nested structure of Title 11 for a given date:
/api/versioner/v1/structure:
download file
link where you can download a hash-named file.The results
endpoint returns works for text searches
/api/search/v1/results
The queiried string in the text search above is wrapped in a strong tag in the excerpt, which gives up potential to highlight.
The full
endpoint returns raw XML (without the hyplinked cross-references our Eregs content has):
/api/versioner/v1/full
Also see XML Users-Guide
Example API call for XML for 6.103:
Also the undocumented eCFR “renderer” endpoint can return html with hyperlinks added (This endpoint is not in swaggar docs so I dont know if it is actually a true endpoint: Exampe: https://www.ecfr.gov/api/renderer/v1/content/enhanced/2024-02-08/title-11?chapter=I&part=6§ion=6.103
Response body is not available to scripts (Reason: CORS Missing Allow Origin)
The xml includes a list of citations at the bottom of the xml inside the <cita>
tag.
/api/versioner/v1/full
Example:
<cita type="N">[45 FR 15104, Mar. 7, 1980, as amended at 50 FR 50778, Dec. 12, 1985; 54 FR 34109, Aug. 17, 1989; 54 FR 48580, Nov. 24, 1989; 58 FR 42173, Aug. 6, 1993; 65 FR 38422, June 21, 2000; 68 FR 3995, Jan. 27, 2003; 68 FR 64516, Nov. 14, 2003; 68 FR 67018, Dec. 1, 2003; 73 FR 79601, Dec. 30, 2008; 82 FR 60853, Dec. 26, 2017; 84 FR 18699, May 2, 2019; 84 FR 35007, July 22, 2019]
</cita>
summary
endpoint has these fields which could be used for point-in-time
comparison:
/api/search/v1/summary
date
last_modified_after
last_modified_on_or_after
last_modified_before
last_modified_on_or_beforeHere are some logical next steps that could be grouped into future issues.
Summary
What we're after: Need to research the following areas in eCFR:
eCFR API documentation: https://www.ecfr.gov/developers/documentation/api/v1#/Search%20Service/get_api_search_v1_results
Related issues
Completion criteria