openapi: 3.0.1 info: title: CCTV Object Detection description: "CCTV API contains information on object detections taken from approximately 40 CCTV cameras throughout Glasgow. Detection data is available from 2021-10-18. CCTV images are translated into object counts using an algorithm. Objects counted include ‘person’, ‘car’, ‘bicycle’, ‘motorcycle’, ‘bus’ and ‘truck’.\n\nThe data is generated and owned by Glasgow City Council in conjunction with Urban Big Data Centre at the University of Glasgow. Copyright © Glasgow City Council 2022. This dataset is available for use under the Open Government Licence." version: v1 servers: - url: https://api.glasgow.gov.uk/cctv/v1 paths: /get_detection_summaries: get: tags: - cctv summary: get_detection_summaries description: Provides counts of object detections detected on CCTV cameras around Glasgow. operationId: get-get-detection-summaries parameters: - name: date in: query description: "A date that corresponds to the specified period. YYYY-MM-DD for year, month and day. Relative parameters are available, including \"yesterday\", \"X_months_ago\" and \"X_weeks_ago\", where X is an integer e.g. \"3_months_ago\".\n" schema: type: Date (yyyy-mm-dd) - name: startDate in: query description: "A start date that corresponds to the specified period. YYYY-MM-DD for year, month and day. Relative parameters are available, including \"yesterday\", \"X_months_ago\" and \"X_weeks_ago\", where X is an integer e.g. \"3_months_ago\". \n" schema: type: Date (yyyy-mm-dd) - name: endDate in: query description: "An end date that corresponds to the specified period. YYYY-MM-DD for year, month and day. Relative parameters are available, including \"yesterday\", \"X_months_ago\" and \"X_weeks_ago\", where X is an integer e.g. \"3_months_ago\".\n" schema: type: Date (yyyy-mm-dd) - name: page in: query description: "Page of results to return.\n" schema: type: int - name: limit in: query description: "Size of page to return.\n" schema: type: int - name: cameraName in: query description: "Filter results by given camera name, such as \"A33\".\n" schema: type: string responses: '200': description: /get_detections: get: tags: - cctv summary: get_detections description: Retrieves list of object detections from cameras operationId: get-get-detections parameters: - name: date in: query description: 'A date that corresponds to the specified period. YYYY-MM-DD for year, month and day. Relative parameters are available, including "yesterday", "X_months_ago" and "X_weeks_ago", where X is an integer e.g. "3_months_ago".' schema: type: Date (yyyy-mm-dd) - name: startDate in: query description: 'A start date that corresponds to the specified period. YYYY-MM-DD for year, month and day. Relative parameters are available, including "yesterday", "X_months_ago" and "X_weeks_ago", where X is an integer e.g. "3_months_ago". ' schema: type: Date (yyyy-mm-dd) - name: endDate in: query description: 'An end date that corresponds to the specified period. YYYY-MM-DD for year, month and day. Relative parameters are available, including "yesterday", "X_months_ago" and "X_weeks_ago", where X is an integer e.g. "3_months_ago".' schema: type: Date (yyyy-mm-dd) - name: cameraName in: query description: 'Filter results by given camera name, such as "A33".' schema: type: string - name: page in: query description: Page of results to return. schema: type: int - name: limit in: query description: Size of page to return. schema: type: int - name: objectName in: query description: Name of object detected schema: type: string responses: '200': description: components: securitySchemes: apiKeyHeader: type: apiKey name: Ocp-Apim-Subscription-Key in: header apiKeyQuery: type: apiKey name: subscription-key in: query security: - apiKeyHeader: [ ] - apiKeyQuery: [ ]