> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hawkings.education/llms.txt
> Use this file to discover all available pages before exploring further.

# Download a SCORM package

> Stream the zip. Signed URL valid for 24 hours.

## Path parameters

<ParamField path="id" type="string" required />

## Examples

<CodeGroup>
  ```ts TypeScript theme={null}
  import { createWriteStream } from "node:fs";

  const stream = await hk.scorm.download("pak_123");
  stream.pipe(createWriteStream("./course.zip"));
  ```

  ```php PHP theme={null}
  $stream = $hk->scorm->download('pak_123');

  $file = fopen('./course.zip', 'w');
  while (! $stream->eof()) {
      fwrite($file, $stream->read(8192));
  }
  fclose($file);
  ```
</CodeGroup>

In the browser:

```ts theme={null}
const stream = await hk.scorm.download("pak_123");
const blob = await stream.blob();
const url = URL.createObjectURL(blob);
```

## Returns

A `ReadableStream` of `application/zip`.

## See also

* [Export to SCORM](/guides/export-to-scorm) for the full workflow.
