@maschinenlesbar.org/bundeshaushalt-cli
    Preparing search index...

    Function lookupBudgetData

    • One budgetData answer, or why the API has none. A 404 or an empty element (the CLI's exit 4) means: for actual, the year's realised figures are not published yet (or the id doesn't exist then); for next year, the draft budget isn't out yet; for an id, no such element that year, in that grouping. Every other error (a bad parameter, the network, a 5xx) is thrown, and so is a 404 that can't be the portal's "nothing here" (a web page; the planned whole budget of a year from 2012 to now): a HaushaltApiError saying the endpoint may have moved.

      Parameters

      Returns Promise<BudgetLookup>