Department of the Treasury · API Governance Rules
Department of the Treasury API Rules
Spectral linting rules defining API design standards and conventions for Department of the Treasury.
0 Rules
Spectral Ruleset
x-name: Department of the Treasury API Rules
description: >-
Rules and constraints governing access to Treasury's public APIs (Fiscal
Data, OFAC Sanctions List Service, SAM.gov via api.data.gov).
rules:
- id: public-data-license
description: Datasets exposed via the Fiscal Data API are U.S. government works in the public domain; attribution to "U.S. Department of the Treasury, Bureau of the Fiscal Service" is recommended but not required.
appliesTo: ["fiscal-data-api"]
severity: should
- id: pagination-required-for-large-results
description: Fiscal Data datasets must be paged with page[number] and page[size]; consumers must follow the next link in the response when present.
appliesTo: ["fiscal-data-api"]
severity: must
- id: filter-syntax
description: Filter expressions follow the field:operator:value syntax (e.g. record_date:gte:2025-01-01); operators include eq, lt, lte, gt, gte, in.
appliesTo: ["fiscal-data-api"]
severity: must
- id: ofac-list-refresh
description: OFAC sanctions data must be refreshed at least daily; cached results older than 24 hours must not be used for compliance screening.
appliesTo: ["ofac-sdn-api"]
severity: must
- id: ofac-fuzzy-matching
description: Sanctions screening must include phonetic and aliasing variations (akas) and apply a documented minimum match score before action.
appliesTo: ["ofac-sdn-api"]
severity: should
- id: rate-limit-cache
description: Public consumers should cache responses where data does not change daily and respect documented rate limits (api.data.gov keys for SAM data).
appliesTo: ["*"]
severity: should
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for spectral rules
4 MCP tools reach this
find_rulesBrowse and filter every ruleset in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/treasury-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.