--- title: "Collection.GetViews - Web Scraping API - Mozenda" slug: "collectiongetviews" description: "Use the Collection.GetViews operation to return a list of views associated with an existing collection. " updated: 2024-05-14T14:22:35Z published: 2024-05-14T14:22:35Z canonical: "help.mozenda.com/collectiongetviews" --- > ## 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.GetViews ### Description Gets a list of **views** for a particular **collection**. ### URL parameters | Name | Required | Type | Description | | --- | --- | --- | --- | | `CollectionID` | True | string | Unique identifier of the **collection**. | ### Responses A list of the **views** that is currently in the system for a particular **collection**. | Name | Type | Description | | --- | --- | --- | | `Result` | string | `Success` if the operation was successful. | | `View` | [View](https://help.mozenda.com/docs/api-response-objects/#view) | Object representing a **view**. | ### Sample request ``` curl -X GET 'https://api.mozenda.com/rest?WebServiceKey=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&Service=Mozenda10&Operation=Collection.GetViews&CollectionID=1001' ``` ### Sample responses #### XML ``` Success 801 801 All ZipCodes All items in the ZipCodes collection. True False ``` #### JSON (add `&ResponseFormat=JSON`) ``` { "View": [ { "ViewID": 5490, "CollectionID": 5351, "Name": "Default", "Description": "Default view for the NewWorld agent.", "IsSystem": true, "IsAgentGroup": false }, { "ViewID": 5494, "CollectionID": 5354, "Name": "Default", "Description": "Default view for the Regions agent group.", "IsSystem": true, "IsAgentGroup": true } ], "JsonResult": { "Command": "Collection.GetViews", "AutoLoggedIn": false, "WebConsoleKey": "", "Result": "Success", "ErrorCode": "", "ErrorDescription": "", "ErrorList": [], "ExecutionTime": { "Ticks": 0, "Days": 0, "Hours": 0, "Milliseconds": 0, "Minutes": 0, "Seconds": 0, "TotalDays": 0, "TotalHours": 0, "TotalMilliseconds": 0, "TotalMinutes": 0, "TotalSeconds": 0 } } } ```