v5

OpenAPI 3.1.0Proprietary2026-08-031,5423,1505.5 MB
Public Finance & Government

Download congress documents

Download public congress.gov / govinfo.gov document assets (bill / amendment text versions) and return their bytes - base64 for PDF, decoded text otherwise. Body: {"urls": [...]}. Keyless re the congress.gov API (the assets are public) but still behind the Sugra x-api-key. Only https congress.gov / govinfo.gov hosts are allowed.

post/api/v1/congress/documents/fetch

Request body

urlsstring[] required

congress.gov / govinfo.gov document asset URLs (PDF / HTML / XML).

Example request

{
  "urls": [
    "https://www.govinfo.gov/content/pkg/BILLS-119hr1ih/pdf/BILLS-119hr1ih.pdf"
  ]
}

Response

documents: list of {content, data_format} or {error_type, content, filename}.

dataStubData required

Response shape not yet documented; fields are returned as-is.

Example response

{
  "meta": {
    "endpoint": "/api/v1/fred/us/cpi",
    "data_time": "2026-04-16T14:30:00Z",
    "response_time": "2026-04-16T14:30:12Z",
    "provider": "Sugra API v1.0.1",
    "source": "sugra_crypto",
    "attribution": "Short interest and Reg SHO daily short volume data is owned by and sourced from FINRA (Financial Industry Regulatory Authority).",
    "fallback_chain": [
      "sugra_crypto",
      "sugra_finance"
    ]
  }
}