Download Status
/api/v2/download/statusThis route gets the current status of a download job.
Request
curl 'https://api.usaspending.gov/api/v2/download/status'Try it
Runs against the live API. Responses are real data.
/api/v2/download/statusResponse · 200
file_namestringRequiredIs the name of the zipfile containing CSVs that will be generated (file_name is timestamp followed by
_transactionsor_awards).messagestringRequiredNullableA human readable error message if the
statusisfailed, otherwise it isnull.seconds_elapsedstringRequiredNullableIs the time taken to genereate the file (if
statusisfinishedorfailed), or time taken so far (ifrunning).statusenum (string)RequiredA string representing the current state of the CSV generation request.
failedfinishedreadyrunning
total_columnsnumberRequiredNullableIs the number of columns in the CSV, or
nullif not finished.total_rowsnumberRequiredNullableIs the number of rows in the CSV, or
nullif not finished.total_sizenumberRequiredNullableIs the estimated file size of the CSV in kilobytes, or
nullif not finished.file_urlstringRequiredThe URL for the file.
{
"status": "finished",
"message": null,
"file_name": "012_PrimeTransactions_2020-01-13_H20M58S34486877.zip",
"file_url": "/usaspending-api/csv_downloads/012_PrimeTransactions_2020-01-13_H20M58S34486877.zip",
"total_size": 3.169,
"total_columns": 276,
"total_rows": 0,
"seconds_elapsed": "4.145662"
}Recent changes
Generated from contracts/v2/download/status.md in the USAspending API repo.