--- title: "Collection.GetFile - Web Scraping API - Mozenda" slug: "collectiongetfile" description: "Use Collection.GetFile to download a file stored in an existing collection. " updated: 2026-02-02T13:09:19Z published: 2026-02-02T13:09:19Z canonical: "help.mozenda.com/collectiongetfile" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.mozenda.com/llms.txt > Use this file to discover all available pages before exploring further. # Collection.GetFile ### Description Downloads a **file** stored in a **collection**. ### URL parameters URL parameter ordering The **URL parameters** below are listed in the order they should be entered in the API **URL**. (More performant) | Name | Required | Type | Description | | --- | --- | --- | --- | | `CollectionID` | True | numeric | Unique identifier of the **collection**. | | `FileHash` | True | numeric | Unique identifier of the **file**. | OR | Name | Required | Type | Description | | --- | --- | --- | --- | | `CollectionID` | True | numeric | Unique identifier of the **collection**. | | `ItemID` | True | numeric | Unique identifier of the **item**. | | `Field` | True | string | The **field** storing the **file**. | ### Responses Returns the raw bytes of the target **file**. ### Sample request ``` curl -GET 'https://api.mozenda.com/rest?WebServiceKey=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&Service=Mozenda10&Operation=Collection.GetFile&CollectionID=1001&ItemID=1002&Field=Picture' ``` ### Sample response `Collection.GetFile` does not return a standard response when successful. It will instead return the raw bytes of the target **file**. **Success Headers Example** ``` Status: HTTP/1.1 200 OK Cache-Control: private Content-Type: application/octet-stream Content-Disposition: attachment; filename=1002-Picture.png Date: Tue, 27 Jun 2017 19:52:40 GMT Connection: close Content-Length: 3330 ```