--- title: "View.GetCriteria - Web Scraping API - Mozenda" slug: "viewgetcriteria" description: "The View.GetCriteria operation returns a list of criteria associated with the specified view. " updated: 2024-05-14T14:23:25Z published: 2024-05-14T14:23:25Z canonical: "help.mozenda.com/viewgetcriteria" --- > ## 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. # View.GetCriteria ### Description Returns a list of **criteria** currently specified on the **view**. ### URL parameters | Name | Required | Type | Description | | --- | --- | --- | --- | | `ViewID` | True | numeric | Unique identifier of the **view**. | ### Responses | Name | Type | Description | | --- | --- | --- | | `Result` | string | `Success` if the operation was successful. | | `Criteria` | [Criteria](https://help.mozenda.com/docs/api-response-objects/#view-criteria) | Object representing the **view criteria**. | ### Sample request ``` curl -X GET 'https://api.mozenda.com/rest?WebServiceKey=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&Service=Mozenda10&Operation=View.GetCriteria&ViewID=1103' ``` ### Sample responses #### XML ``` Success 91729 1381 1 Equals Africa Location 91723 1382 2 And Contains New Title ``` #### JSON (add `&ResponseFormat=JSON`) ``` { "Criteria": [ { "FieldID": 91729, "ViewCriteriaID": 1381, "ComparisonOrder": 1, "AndOr": "", "Operator": "Equals", "ComparisonValue": "Africa", "Name": "Location" }, { "FieldID": 91723, "ViewCriteriaID": 1382, "ComparisonOrder": 2, "AndOr": "And", "Operator": "Contains", "ComparisonValue": "New", "Name": "Title" } ], "JsonResult": { "Command": "View.GetCriteria", "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 } } } ```