Skip to content
Last updated

Example: Most Recent Audit Run IDs

This example queries your most recent audit run IDs, for every audit in your account.

Request

POST to https://api.observepoint.com/v3/reports/grid/web-audit-runs
{
  // Request 2 columns: AUDIT_ID and AUDIT_RUN_ID
  "columns": [
    {"columnId": "AUDIT_ID"},
    {"columnId": "AUDIT_RUN_ID"}
  ],
  // Filter to only show the most recent audit run for each audit
  "filters": {
    "conditionMatchMode": "all",
    "conditions": [
      {
        "filteredColumn": {
          "columnId": "IS_MOST_RECENT_RUN"
        },
        "operator": "integer_in",
        "args": [1]
      }
    ]
  },
  "page": 0,
  "size": 10000
}

Example Response JSON

Grid API Response JSON
{
  "metadata": {
    "pagination": {
      "totalCount": 2401,
      "totalPageCount": 25,
      "pageSize": 100,
      "currentPageSize": 100,
      "currentPageNumber": 0
    }
  },
  "rows": [
    [
      1128247, // Audit ID
      6509769  // Run ID
    ],
    [
      1778406, // Audit ID
      6509905  // Run ID
    ],
    [
      1128275, // Audit ID
      6509770  // Run ID
    ],
    ... // more rows omitted for brevity
  ]
}