File download (TCA-0201)
This service allows a user to download a sample from the Spectra Intelligence repository.
The download request requires the MD5/SHA1/SHA256 value of the sample to download, and receives a byte stream containing the requested sample.
Faster downloads are supported through multithreading. It is suggested to use at most 4 parallel threads. If there is a need for additional threads, please contact your sales representative.
This API is rate limited to 100 requests per minute.
Sample Download
This query returns the contents of a sample matching the requested hash. The contents are returned as a byte stream.
View OpenAPI SpecificationRequest
GET /api/spex/download/v2/query/{hash_type}/{hash_value}
Path parameters
- hash_type must be one of the following: md5, sha1, sha256
- hash_value must be a valid hash of the sample that should be downloaded
Sample Download Status
This query returns the file size of samples matching the requested hash values, but only if they are available for download.
If the requested samples are not available for download, their size in the response will be returned as -1. Sample download status requests don't count towards the API usage quota and can be sent as long as the sample download quota isn't exceeded.
Invalid and unknown hashes will be grouped into separate unknown_hashes and invalid_hashes objects in the report. unknown_hashes may include files that have been deleted.
Request
POST /api/spex/download/v2/status/bulk_query/{post_format}[?format={xml|json}]
Path parameters
post_format- Defines the request format (
xmlorjson)
- Defines the request format (
Query parameters
format- Defines the response format (
xmlorjson)
- Defines the response format (
Headers
- Headers must contain
Content-Type: application/octet-stream