get_facet_counts
Get document counts grouped by type, agency, topic, or time period.
Accepts the same filter conditions as search_documents. Returns
aggregated counts without individual document results.
Facets: type, agency, topic (categorical) plus daily, weekly, monthly,
quarterly, yearly (publication-date buckets, useful for trend lines).
Useful for understanding the volume of rulemaking by agency, type, or
over time within a date range before drilling into specific documents.
presidential_document_type (executive_order, proclamation, memorandum,
determination, notice, presidential_order, other) narrows to one kind
of presidential document, e.g. executive orders per month.
At least one filter (agencies, doc_types, term, pub_date_gte/lte, or
cfr_title) is required. An unfiltered facet query returns the entire
all-time aggregate.
FAR Council counts: facets cannot express "filed by DoD AND GSA AND
NASA", and no single agency slug covers FAR documents (OFPP only from
about mid-2025; 'federal-acquisition-regulation-system' holds 2 documents
ever). Count FAR rules with search_documents(far_council=True,
doc_types=[...], pub_date_gte/lte=...) and read its count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | No | ||
| facet | Yes | ||
| agencies | No | ||
| cfr_part | No | ||
| cfr_title | No | ||
| doc_types | No | ||
| pub_date_gte | No | ||
| pub_date_lte | No | ||
| presidential_document_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||