fecgov / fec-eregs

The Federal Election Commission's web-based application that makes regulations easier to find, read and understand.
https://www.fec.gov/regulations/
Other
33 stars 13 forks source link

Research eCFR API and the capabilities #826

Closed patphongs closed 6 months ago

patphongs commented 7 months ago

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

johnnyporkchops commented 7 months ago

Navigation:

The structure endpoint returns the nested structure of Title 11 for a given date: /api/versioner/v1/structure:

Text search

The results endpoint returns works for text searches /api/search/v1/results

Highligthting:

The queiried string in the text search above is wrapped in a strong tag in the excerpt, which gives up potential to highlight.

Content:

The full endpoint returns raw XML (without the hyplinked cross-references our Eregs content has): /api/versioner/v1/full Also see XML Users-Guide

Citations:

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>

Comparison

Next Steps:

Here are some logical next steps that could be grouped into future issues.