{
  "openapi": "3.0.1",
  "info": {
    "title": "Los Angeles Open Data Scraper",
    "description": "Scrape any Los Angeles Open Data dataset via Socrata SODA API. Crime, business taxes, building permits, parking, 311 service requests and more. No API key required.",
    "version": "0.0",
    "x-build-id": "vEInjwggOBqA0Y6x2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parseforge~la-open-data-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parseforge-la-open-data-scraper",
        "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/parseforge~la-open-data-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parseforge-la-open-data-scraper",
        "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/parseforge~la-open-data-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parseforge-la-open-data-scraper",
        "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",
        "required": [
          "datasetId"
        ],
        "properties": {
          "datasetId": {
            "title": "Dataset ID (4x4)",
            "enum": [
              "nxs9-385f",
              "fw6y-ht9f",
              "u3bu-it6d",
              "f4qm-39q9",
              "bb9g-p6se",
              "cq4z-inke",
              "kkrh-b4e3",
              "m6qi-ifup",
              "9tzi-nz7g",
              "6ux4-qj74",
              "bpyg-ytsg",
              "txn4-36ky",
              "4ca8-mxuh",
              "kszm-sdw4",
              "ej2v-yd79",
              "2qdj-cyiz",
              "8cmr-fbcu",
              "qv4c-k9xz",
              "wjz9-h9np",
              "46an-wabg",
              "yru6-6re4",
              "amvf-fr72",
              "mbz9-j2zk",
              "f232-7zb7",
              "4qmh-sz39",
              "skve-7mzv",
              "ybqa-gmkn",
              "9r7y-tdse",
              "vygi-vxyg",
              "xzdy-vzez",
              "pwhu-m93q",
              "fc3u-86zh",
              "qer2-sxr5",
              "c4sv-pw36",
              "e67z-kt2n",
              "dyxf-7hc4",
              "pi9x-tg5x",
              "b6ii-mhed",
              "n3xg-rixm",
              "gwh9-jnip",
              "rken-a55j",
              "u82d-eh7z",
              "h8me-eag6",
              "yaaf-cyfa",
              "ysqd-apz7",
              "7ts7-nh4y",
              "9i2c-csvn",
              "9k3p-zrda",
              "mcip-sa6g",
              "5m3t-xjex",
              "67is-svtd",
              "vnau-u5ph",
              "bjvp-eqku",
              "9rag-xmmd",
              "q3ak-s5hy",
              "3f9m-afei",
              "bsvt-chkv",
              "8qjh-sbs9",
              "9w5z-rg2h",
              "8spw-3fhx",
              "j7mw-thyc",
              "5y5q-d9ew",
              "6qbs-9m8d",
              "snhr-fa63",
              "3aii-bde7",
              "pt99-74gb",
              "nbre-engz",
              "6inw-egb2",
              "b2qw-5tjn",
              "c9di-tijr",
              "e2zz-y53s",
              "kkqy-ryqv",
              "bdy2-fgym",
              "5aw2-jx4k",
              "wkek-kqw4",
              "kziq-k4au",
              "c8zs-6yn8",
              "ckea-5u87",
              "qwzb-77da",
              "6rvp-amz7",
              "ucyn-ru6w",
              "nwj3-ufba",
              "brvb-jr45",
              "m6g2-gc6c",
              "5mrt-4zhe",
              "br3a-db9a",
              "rwwd-gr2c",
              "4xuf-944h",
              "adam-59ei",
              "kcsj-s69p",
              "9z5d-hgrh",
              "sw3c-x2hx",
              "ee5q-u9aq",
              "4n9f-iihs",
              "jnwm-mx8g",
              "jyyg-7bst",
              "sq3x-ijwy",
              "63jg-8b9z",
              "2nrs-mtv8",
              "8sbu-dvfy",
              "vdjf-if28",
              "uj6a-ab47",
              "5h3p-n236",
              "az2u-ixwi",
              "tigc-6qke",
              "c8jn-ua56",
              "hnms-4szp",
              "ax8j-dhzm",
              "pnat-cnpj",
              "rjdk-rz7f",
              "5icv-hrai",
              "4wd4-uzr6",
              "8yaq-2fpu",
              "9hxb-dad7",
              "4g57-9wbx",
              "95j2-9tdv",
              "4a8d-4327",
              "diev-46hg",
              "u7aw-ramn",
              "wn65-h6pe",
              "xdjq-3qi6",
              "yhrt-wk8c",
              "4p38-zay2",
              "gr27-eza8",
              "hkig-2qjq",
              "tfsb-fwmw",
              "x9tj-p4jm",
              "rnxp-tz2v",
              "iz73-c344",
              "aeva-nfqz",
              "v5uj-jj3r",
              "h5ci-ugt3",
              "ce5i-q2bc",
              "i5g3-9vuz",
              "fhm9-882e",
              "qq5r-inr7",
              "secn-jf4e",
              "qpi4-ig3x",
              "a6cj-i5wu",
              "8m62-bye6",
              "acy8-72w9",
              "qqur-fdui",
              "9et4-6fpi",
              "7w5j-7jjp",
              "3kce-7yuf",
              "9yda-i4ya",
              "hi8w-jppr",
              "r3up-67wh",
              "6kqv-v7g7",
              "rnb4-daiw",
              "6s9d-et82",
              "e2fp-yzdz",
              "dw2y-59sj",
              "k4k6-bwwv",
              "qrkr-kfbh",
              "c3g2-yzgc",
              "m27g-4avd",
              "6yv9-t9gq",
              "pdbw-x3k8",
              "yqyr-2qgp",
              "29cn-rph9",
              "2in3-5b7t",
              "tsrc-szkh",
              "mkf9-fagf",
              "3gwn-arjr",
              "cd49-p4un",
              "9aw9-mn4p",
              "pxeu-7j74",
              "jsff-uc6b",
              "w9vh-pj9e",
              "895k-6zuw",
              "nekp-vn63",
              "63we-p3wv",
              "ftgd-xwi4",
              "822f-gjp4",
              "ni7t-83qi",
              "s49e-q6j2",
              "jp2s-nfz4",
              "e7h6-4a3e",
              "cj8s-ivry",
              "vt7b-3i5m",
              "94wu-3ps3",
              "s3st-6nwi",
              "4ftr-pfem",
              "hsmw-wwd6",
              "r95y-gwez",
              "t24g-hqix",
              "hmiy-sxh5",
              "2yrw-q8tw",
              "m5ec-bb8m",
              "p8nc-6hdi",
              "pzs3-fue3",
              "qyvz-diiw",
              "n44u-wxe4",
              "tnz4-ynvq",
              "mymu-zi3s",
              "2qnc-kq4g",
              "5nzp-isg9",
              "n9x9-zisb",
              "ds2y-sb5t",
              "2u8b-eyuu",
              "eagk-wq48",
              "vpax-89xu",
              "ci3m-f23k",
              "cr8f-uc4j",
              "ukgg-rgf9",
              "t6kt-2yic",
              "iy4q-t9vr",
              "4tmc-7r6g",
              "i7pm-cnmm",
              "urhh-yf63",
              "mgue-vbsx",
              "tss8-455b",
              "xwgr-xw5q",
              "ryvm-a59m",
              "nayp-w2tw",
              "r4ka-x5je",
              "84iq-i2r6",
              "cibt-wiru",
              "u6ri-98iw",
              "uq7m-rynj",
              "xjgu-z4ju",
              "y8y3-fqfu",
              "k7nn-b2ep",
              "gqf2-vm2j",
              "5gp9-8nrb",
              "bwdf-y5fe",
              "3d4k-crby",
              "t8kf-2y96",
              "97ra-aqza",
              "a4nt-4gca",
              "m4ev-cuzz",
              "utq2-nxpj",
              "6rrh-rzua",
              "r4uk-afju",
              "cu97-7vhd",
              "ptdy-3ivc",
              "jg4k-s4ud",
              "tp35-mfg9",
              "63kx-necw",
              "r8xf-vixa",
              "dik5-hwp6",
              "tx7r-x3hp",
              "ajiv-uc63",
              "d3a2-7j6v",
              "g3qu-7q2u",
              "j6u4-c4yh",
              "ubph-b4it",
              "7ecf-jj8x",
              "sii9-rjps",
              "j5g7-w4y7",
              "d7jk-ufat",
              "qf8m-dzta",
              "w7j2-5kjf",
              "s2f8-v3rp",
              "trxm-jn3c",
              "28qc-63jv",
              "fvye-93wd",
              "5242-pnmt",
              "ih6g-qkwz",
              "d4kt-8j3n",
              "qyra-qm2s",
              "4f5p-udkv",
              "abxc-9sg7",
              "4jt3-efvk",
              "gbbb-cs88",
              "3qv2-p4kj",
              "h6ky-vznd",
              "fdtv-2wce",
              "ruu2-p7fw",
              "bywz-284j",
              "k98w-s24w",
              "jdgw-bwcf",
              "v7gk-cxxi",
              "8yhj-2j8m",
              "du8q-hww5",
              "s5jy-jcce",
              "jmt8-y5rm",
              "2t3h-my34",
              "aiix-duyv",
              "geed-7eey",
              "i9rh-q5gx",
              "5a4i-e2zs",
              "38a8-tm7u",
              "b3i5-86hy",
              "xhx7-hr4h",
              "tsuv-4rgh",
              "v3my-p6u5",
              "gvpf-vb3s",
              "s2gq-nz3r",
              "46qe-t7np",
              "krk7-ayq2",
              "58cg-y94u",
              "8mwm-e4ge",
              "6n5x-dymz",
              "t7bh-zmwj",
              "im69-zvh3",
              "x3nt-5eea",
              "qwem-tyir",
              "s36s-5b6x",
              "jktk-4pit",
              "uawy-cgqg",
              "bkfc-yqhx",
              "vxhy-r447",
              "q3kc-wj3g",
              "a5vt-xsyi",
              "hf3r-utnq",
              "h8mw-iegk",
              "hc57-9a3j",
              "msv5-mj8x",
              "f4qc-fg29",
              "j4zm-9kqu",
              "xuce-e6ip",
              "t5zm-4d79",
              "29fd-3paw",
              "ckya-qgys",
              "s5e6-2pbm",
              "jqan-regh",
              "86ry-dcuc",
              "7dww-jq9x",
              "57hp-ynj6",
              "cy8h-q3bu",
              "rg5w-ui4c",
              "fgtv-xbci",
              "4hqz-rxff",
              "twzm-wihy",
              "4iim-t2y2",
              "5sak-hbiy",
              "hntu-mwxc",
              "vt5t-mscf",
              "avzn-825x",
              "argd-k3xu",
              "rckt-8prm",
              "svt7-r3ww",
              "d5tf-ez2w",
              "dhqa-6x54",
              "cbxc-q4bc",
              "njpj-42dm",
              "7yet-b6aj",
              "iv7a-6rrq",
              "rpp7-mevy",
              "ci25-wgt7",
              "45pp-x98f",
              "xe35-4wsy",
              "jz5f-87wj",
              "d3th-bqdk",
              "jx82-7rs5",
              "746u-cr6b",
              "si79-fpzd",
              "jxqs-eipk",
              "hwpe-qxka",
              "nsdh-74d5",
              "8qhs-wikn",
              "x5zv-ey8w",
              "u4wk-p2cm",
              "8pn8-5zdt",
              "ddvb-suge",
              "cuid-a8rp",
              "hfdw-5uq2",
              "ikdx-vgub",
              "jjxn-vhan"
            ],
            "type": "string",
            "description": "Socrata 4x4 ID of any dataset hosted on data.lacity.org. Find the ID in the dataset URL (e.g. '2nrs-mtv8' for crime data from 2020 to present, 'nbyu-2ha9' for building & safety permits, '7my7-7vrt' for MyLA311 service requests, 'pvwu-3di3' for parking citations, '6rrh-rzua' for traffic collisions)."
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000"
          },
          "where": {
            "title": "$where filter (SoQL)",
            "type": "string",
            "description": "Optional Socrata SoQL $where clause. Example: \"crm_cd_desc='BURGLARY' AND area_name='Central'\". See https://dev.socrata.com/docs/queries/where.html"
          },
          "select": {
            "title": "$select columns",
            "type": "string",
            "description": "Comma-separated list of columns to return. Default: all columns."
          },
          "order": {
            "title": "$order clause",
            "type": "string",
            "description": "Sort order. Example: 'date_occ DESC' or 'date_rptd ASC'"
          },
          "query": {
            "title": "$q full-text search",
            "type": "string",
            "description": "Free-text search across all string columns of the dataset"
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}