{
  "openapi": "3.0.1",
  "info": {
    "title": "Montgomery County MD Police Dispatch - Calls & Response Times",
    "description": "Every call Montgomery County, Maryland police responded to (public open data, 1.92M incidents, 2017-today): priority, call type as received and as closed, address and coordinates, police district and beat, and seven response-time intervals in seconds. Filter by type, district, city or response time.",
    "version": "0.0",
    "x-build-id": "NEGOyVfmWS7etzjSe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~md-moco-police/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-md-moco-police",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/j0401~md-moco-police/runs": {
      "post": {
        "operationId": "runs-sync-j0401-md-moco-police",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/j0401~md-moco-police/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-md-moco-police",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "address": {
            "title": "Address (contains)",
            "type": "string",
            "description": "Substring match on the incident address (block-level, e.g. '900 BLK N FREDERICK AVE'). Blank = any.",
            "default": ""
          },
          "city": {
            "title": "City (contains)",
            "type": "string",
            "description": "Substring match on the city, e.g. 'ROCKVILLE', 'BETHESDA', 'GAITHERSBURG'. 97 cities in total (plus an unattributed bucket). Blank = any.",
            "default": ""
          },
          "zip": {
            "title": "ZIP code (contains)",
            "type": "string",
            "description": "Substring match on the ZIP, e.g. '20852'. Blank = any.",
            "default": ""
          },
          "initialType": {
            "title": "Call type as received (contains)",
            "type": "string",
            "description": "Substring match on the call type as first received, e.g. 'TRAFFIC', 'DISTURBANCE', 'CHECK WELFARE', 'DOMESTIC'. 234 types in total. Blank = any.",
            "default": ""
          },
          "closeType": {
            "title": "Call type as closed (contains)",
            "type": "string",
            "description": "Substring match on the call type as finally closed, e.g. 'TRAFFIC', 'SUSPICIOUS'. 238 types in total. Blank = any.",
            "default": ""
          },
          "disposition": {
            "title": "Disposition (contains)",
            "type": "string",
            "description": "Substring match on the disposition, e.g. 'OTHERMISCELLANEOUS', 'DISORDERLYCONDUCT', 'FAMILYTROUBLE'. 495 dispositions in total (plus an unattributed bucket). Blank = any.",
            "default": ""
          },
          "beat": {
            "title": "Beat (contains)",
            "type": "string",
            "description": "Substring match on the police beat, e.g. 'G1', 'A3', 'I1'. 45 beats in total (plus an unattributed bucket). Blank = any.",
            "default": ""
          },
          "priority": {
            "title": "Priority",
            "enum": [
              "",
              "0",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Exact call priority. Priority 1 is the most urgent and is the largest group (~783,000 calls); priority 5 has only a handful. Blank = any.",
            "default": ""
          },
          "district": {
            "title": "Police district",
            "enum": [
              "",
              "1D",
              "2D",
              "3D",
              "4D",
              "5D",
              "6D",
              "OOC",
              "PCW",
              "TRU"
            ],
            "type": "string",
            "description": "Exact police district. Blank = any.",
            "default": ""
          },
          "startFrom": {
            "title": "Call made on or after",
            "type": "string",
            "description": "Earliest call start date/time, YYYY-MM-DD. Blank = any.",
            "default": ""
          },
          "startTo": {
            "title": "Call made on or before",
            "type": "string",
            "description": "Latest call start date/time, YYYY-MM-DD. Blank = any.",
            "default": ""
          },
          "minResponseSeconds": {
            "title": "Minimum response time (seconds)",
            "type": "number",
            "description": "Smallest dispatch-to-arrival time in SECONDS. Set 900 for calls a unit took over 15 minutes to reach. Note this only matches calls where a unit arrived; a missing arrival is excluded. Blank = no lower bound."
          },
          "maxResponseSeconds": {
            "title": "Maximum response time (seconds)",
            "type": "number",
            "description": "Largest dispatch-to-arrival time in SECONDS. Set 300 for a fast-response view. Blank = no upper bound."
          },
          "recentDays": {
            "title": "Call made within the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Only calls whose start time falls within the last N days. Ignored when 'Call made on or after' is set. 0 = off.",
            "default": 0
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "rows",
              "aggregate"
            ],
            "type": "string",
            "description": "rows = incidents matching your filters (default). aggregate = one count row per group (see groupBy).",
            "default": "rows"
          },
          "groupBy": {
            "title": "Aggregate by",
            "enum": [
              "",
              "priority",
              "district",
              "beat",
              "initialType",
              "closeType",
              "disposition",
              "city"
            ],
            "type": "string",
            "description": "Which dimension to aggregate over (mode=aggregate). Blank = priority. Every group is returned - aggregate mode is not cut off by maxResults.",
            "default": ""
          },
          "maxResults": {
            "title": "Max records",
            "minimum": 0,
            "type": "integer",
            "description": "Cap the number of records pushed in rows mode (0 = default 50; up to 2,000 per run). Each record is metered individually, so there is no per-run charge cap. Aggregate mode returns every group.",
            "default": 50
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}