TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Stream a large binary download without buffering it in memory

GEThttps://api.testingapis.com/api/files/largeSign in to see this endpoint's URL

Content-Length is sent up front and the body is written in 64 KB chunks, which is handy for testing progress bars and timeouts.

Parameters 1

NameTypeDescription
mbquery · integer (int32)Size in megabytes, 1–20, default 5. Default: 5.

Responses

200
Success.
400
mb is outside 1–20.

Example

Request
curl -X GET "https://api.testingapis.com/api/files/large?mb=1" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="large-1mb.bin"

<binary body: 1,048,576 bytes, application/octet-stream>

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.