Get started
01 / 01DocumentationCorpus · reference · markdown
DocumentationWeb APIs

Official data sources

Source

Discover, inspect schemas for, and run calls across 16 federal agency, financial, health, court, and security public registries with normalized JSON outputs and license metadata.

text
GET  /v1/sources
GET  /v1/sources/:provider
POST /v1/sources/find
POST /v1/sources/run

Sources are official data providers, federal agencies and registries with public APIs, that an application or agent can discover, read the contract of, and call with the same key as every other Web API. Each provider offers capabilities, and each capability publishes a contract: its input and output as JSON Schema, its price, and the terms its data comes under. Reading the list, a provider's contracts, or a find is free. A call through /v1/sources/run is metered once it has returned data.

Sources are off until the operator sets VITNA_WEB_SOURCES=true. GET /v1/status lists the enabled providers in capabilities.sources (empty while they are off), and every sources route answers sources_not_configured (503) until then.

ProviderCapabilitiesData
federal-registerdocuments/search, documents/getRules, proposed rules, notices and presidential documents, with agencies, dockets, comment deadlines and effective dates
ecfrsections/search, sections/textThe Code of Federal Regulations as in force today or on a past date, and a section's full text
usaspendingawards/search, agencies/listFederal contracts, grants and other awards, and each agency's budget authority and obligations
sec-edgarcompanies/lookup, filings/recent, filings/search, facts/conceptCompanies' CIKs, their recent EDGAR filings, full-text filing search, and XBRL financial facts
openfdadrugs/labels, drugs/reactions, recalls/search, devices/events, drugs/recalls, devices/recallsDrug labeling, adverse event counts, food/drug/device enforcement recalls, and MAUDE medical device events and CDRH recalls
clinicaltrialsstudies/search, studies/getRegistered clinical studies, their status, phase, eligibility and outcomes
cisa-kevcatalog/search, catalog/summaryCISA Known Exploited Vulnerabilities catalog search, ransomware campaign filter, and vendor summary
fredseries/observationsSt. Louis Fed FRED macroeconomic time series observations with period changes
finrashort-volume/ticker, short-volume/topDaily Reg SHO short sale volume by ticker and top shorted symbols
treasurydebt/daily, cash/tga, rates/averageTreasury Debt to the Penny, TGA operating cash balance, and average interest rates
nyfedrates/sofr, rates/effr, operations/rrpNew York Fed daily SOFR, EFFR reference rates, and overnight Reverse Repo operations
blsseries/observations, series/latestBureau of Labor Statistics CPI, unemployment, payroll, and price time series
courtlistenercourts/list, opinions/search, dockets/searchFree Law Project U.S. court directory, judicial opinions, and RECAP federal court dockets
fccfilings/search, proceedings/searchFCC ECFS telecommunications docket filings and rulemaking proceedings
eiaenergy/inventory, electricity/demandWeekly U.S. petroleum/natural gas inventories and hourly RTO electricity grid demand
dol-h1bemployers/approvals, lca/searchUSCIS H-1B Employer Data Hub approval/denial counts and DOL OFLC LCA wage filings

Find a capability

Describe what you need, and optionally narrow it to a category (government, finance, health or security) or a provider:

json
{ "query": "food recalls for listeria", "limit": 3 }

limit accepts 1 to 20 and defaults to 5. Each result is a whole contract, ranked by how well its title, keywords and description match the query, with its score:

json
{
  "query": "food recalls for listeria",
  "results": [
    {
      "score": 9,
      "provider": "openfda",
      "capability": "recalls/search",
      "title": "Search FDA recalls",
      "description": "Recall enforcement reports for drugs, foods or medical devices: ...",
      "input": { "type": "object", "properties": { "product": { "type": "string", "enum": ["drug", "food", "device"], "default": "food" } }, "required": [], "additionalProperties": false },
      "output": { "type": "object", "properties": { "total": { "type": "integer" } }, "required": ["total", "recalls"], "additionalProperties": false },
      "example": { "provider": "openfda", "capability": "recalls/search", "options": { "product": "food", "query": "listeria", "classification": "Class I", "limit": 5 } },
      "price": { "resource": "sourceRequests", "unit": "call", "microUsd": null, "discovery": "free" },
      "available": true,
      "terms": { "license": "CC0 1.0 Universal (public domain dedication)", "url": "https://open.fda.gov/license/", "attribution": "Source: openFDA, U.S. Food and Drug Administration.", "notices": ["Do not present this data as endorsed by the FDA."], "retrieved": "2026-10-07" }
    }
  ]
}

The schemas are shortened here. Without a query, find lists every capability in catalog order. GET /v1/sources lists the providers, and GET /v1/sources/:provider returns one provider with all of its contracts.

Contracts are closed: an option the input schema does not name is refused with invalid_options (400), and the message names the option and the rule it broke, such as options.title must be at most 50. Every object in an output schema is closed too, and a call whose mapped result does not match its output schema fails with source_contract (502) rather than reaching the caller in an undeclared shape.

Call a capability

Send the provider, the capability and its options. example in every contract is a body that works:

json
{ "provider": "ecfr", "capability": "sections/search", "options": { "query": "emergency exits", "title": 14, "limit": 5 } }
json
{
  "provider": "ecfr",
  "capability": "sections/search",
  "data": {
    "total": 101,
    "page": 1,
    "pages": 21,
    "sections": [
      {
        "citation": "14 CFR 25.807",
        "title": "14",
        "part": "25",
        "section": "25.807",
        "type": "Section",
        "heading": "Emergency exits.",
        "partHeading": "Airworthiness Standards: Transport Category Airplanes",
        "excerpt": "types of exits are defined as follows: (1) Type I. This type is a floor-level exit with a ...",
        "inForceFrom": "2016-12-30",
        "inForceUntil": null,
        "url": "https://www.ecfr.gov/current/title-14/section-25.807"
      }
    ]
  },
  "source": {
    "name": "Electronic Code of Federal Regulations",
    "publisher": "Office of the Federal Register (National Archives) and the U.S. Government Publishing Office",
    "url": "https://www.ecfr.gov/api/search/v1/results?query=emergency+exits&per_page=5&page=1&date=current&hierarchy%5Btitle%5D=14",
    "retrievedAt": "2026-10-07T05:00:00.000Z",
    "license": "U.S. Government work, not subject to copyright in the United States (17 U.S.C. 105)",
    "licenseUrl": "https://www.copyright.gov/title17/92chap1.html#105",
    "attribution": "Source: the Electronic Code of Federal Regulations (eCFR), Office of the Federal Register.",
    "notices": ["The eCFR is authoritative but unofficial. Legal research should be verified against the official annual CFR, the daily Federal Register and the List of CFR Sections Affected."],
    "modifications": "Vitna returns the fields this contract names, under its own field names, with markup removed. A text field is cut at a word boundary at the length its description states (4,000 characters unless it says otherwise)."
  }
}

Like every response it also carries meta. source.url is the upstream request the data came from, with any key removed. dataAsOf appears when the provider states how current its data is: openFDA's last update date, and ClinicalTrials.gov's processing timestamp exactly as its API writes it, with no time zone. Show attribution and notices wherever you display the data. ClinicalTrials.gov's terms ask redistributors to name it as the source, show the processing date, keep the data current and state modifications, which is what dataAsOf and modifications are for. Contact names, emails and phone numbers from study records are never returned.

Errors

CodeStatusMeaning
invalid_options400The options break the contract; the message names the option
source_not_found404No such provider or capability, or the provider has no such record
source_rejected400The provider refused the query, in its own words where it gives them
source_rate_limited429The provider is limiting requests; Retry-After says when to retry
source_capacity429Vitna has used the provider's daily allowance; it resets at 00:00 UTC
source_busy429Too many calls to that provider are already waiting
source_unavailable502 or 503The provider could not be reached or answered with an error (502), or it needs operator configuration (503)
source_response_too_large502The answer was over 2 MiB; narrow the request
source_contract502The provider answered in a shape that does not match the contract

Pace and allowances

Each provider has its own lane: its own concurrency, a minimum spacing between requests, and a daily ceiling where the provider publishes one. Vitna shares a provider's per-address allowance among all of its customers, so these are set below the providers' published limits (all read 2026-10-07):

  • SEC EDGAR allows 10 requests a second and requires every client to declare a user agent naming its operator and a contact address. Vitna sends 5 a second, and the provider is unavailable (source_unavailable, 503, with an unavailableReason in its contracts) until the operator sets VITNA_WEB_SOURCES_CONTACT.
  • openFDA allows 240 requests a minute and, without a key, 1,000 a day per address. Vitna keeps to 900 a day without a key, and 110,000 a day once the operator sets VITNA_WEB_SOURCES_OPENFDA_KEY, against openFDA's 120,000.
  • CourtListener allows keyless access to /courts/ (courts/list), while opinions/search and dockets/search use an API token supplied via VITNA_WEB_SOURCES_COURTLISTENER_KEY.
  • FCC ECFS and EIA v2 work out of the box with DEMO_KEY (900/day ceiling) and scale when VITNA_WEB_SOURCES_FCC_KEY or VITNA_WEB_SOURCES_EIA_KEY is set.
  • dol-h1b reads USCIS H-1B Data Hub employer CSVs directly for employers/approvals, and uses VITNA_WEB_SOURCES_DOL_KEY for DOL OFLC lca/search.
  • FederalRegister.gov and eCFR.gov allow automated access only through their APIs and publish no rate limit. Vitna sends 2 requests a second to each.
  • ClinicalTrials.gov publishes no rate limit. Vitna spaces its requests 1.2 seconds apart.
  • USAspending.gov publishes no rate limit for its search API. Vitna sends 4 requests a second, 2 at a time.

Requests identify themselves as VitnaWeb/0.1 (+https://vitna.ai/docs/web/overview), followed by the operator's contact address for SEC EDGAR. Reference lists (the SEC's ticker map, the eCFR title index, USAspending's agency list, ClinicalTrials.gov's processing date) are cached for an hour or a day once they load; a failed load is never cached.

Metering

GET /v1/sources, GET /v1/sources/:provider and POST /v1/sources/find are free. They count once against the request limits like any request. A POST /v1/sources/run that returns data adds one sourceRequests to usage and to an account's statement; a call that fails is not metered. The ledger rate is VITNA_WEB_BILLING_SOURCE_REQUEST_MICRO_USD, and every contract's price.microUsd shows it (null while it is unset). The operator estimate rate for static clients is VITNA_WEB_SOURCE_REQUEST_USD.

One call is one capability. Batches of calls, feedback that credits a call, and a terms acceptance step for providers whose terms need one are not yet available. None of the current providers asks for a separate acceptance step.