{
  "openapi": "3.0.1",
  "info": {
    "title": "Los Angeles Business Registrations Scraper - DataLA Leads",
    "description": "Scrape City of Los Angeles registered businesses from DataLA open data, no API key. Get business name, DBA, NAICS code and industry, full address, ZIP, council district, geo and registration date for LA local business leads, KYB and B2B prospecting. Export JSON, CSV, Excel.",
    "version": "0.2",
    "x-build-id": "PJFiDqHjPAwCYHyrT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapers_lat~la-business-registrations-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapers_lat-la-business-registrations-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/scrapers_lat~la-business-registrations-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapers_lat-la-business-registrations-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/scrapers_lat~la-business-registrations-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapers_lat-la-business-registrations-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",
        "properties": {
          "maxBusinesses": {
            "title": "Max Businesses",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of Los Angeles business registration records to collect. Optional (alias: maxItems). Results are returned newest registered first by default."
          },
          "query": {
            "title": "Business Name / Keyword",
            "type": "string",
            "description": "Match businesses whose name or DBA contains this text, for example COFFEE, DENTAL or PLUMBING (alias: businessName). Leave empty to return every active business (newest first)."
          },
          "naicsCode": {
            "title": "NAICS Code",
            "type": "string",
            "description": "Match a NAICS industry code (alias: naics). Accepts a full 6-digit code (for example 722110) or a prefix (for example 7225 for restaurants and eating places). Leave empty for all industries."
          },
          "industry": {
            "title": "Industry Keyword",
            "type": "string",
            "description": "Match the industry description, for example restaurant, real estate, construction or salon."
          },
          "zip": {
            "title": "ZIP Code",
            "type": "string",
            "description": "Match businesses by 5-digit ZIP code, for example 90012 (alias: zipCode)."
          },
          "councilDistrict": {
            "title": "Council District",
            "type": "string",
            "description": "Restrict to one Los Angeles City Council district, numbered 1 to 15 (alias: council)."
          },
          "activeOnly": {
            "title": "Active businesses only",
            "type": "boolean",
            "description": "Return only businesses with no location end date (currently active). This directory lists active businesses, so leaving it off returns the same records.",
            "default": false
          },
          "startedFrom": {
            "title": "Registered From",
            "type": "string",
            "description": "Only businesses whose location start date is on or after this date. Format YYYY-MM-DD, for example 2025-01-01 (alias: startDateAfter)."
          },
          "startedTo": {
            "title": "Registered To",
            "type": "string",
            "description": "Only businesses whose location start date is on or before this date. Format YYYY-MM-DD, for example 2026-06-30 (alias: startDateBefore)."
          },
          "sortBy": {
            "title": "Sort Order",
            "enum": [
              "newest",
              "oldest",
              "name"
            ],
            "type": "string",
            "description": "Order of the returned results.",
            "default": "newest"
          },
          "soqlWhere": {
            "title": "Raw SoQL filter (advanced)",
            "type": "string",
            "description": "Optional raw Socrata SoQL $where clause, combined with the other filters using AND. Column names include business_name, dba_name, naics, primary_naics_description, zip_code, council_district, location_start_date. Leave empty for normal use."
          },
          "sort": {
            "title": "Raw sort override (advanced)",
            "type": "string",
            "description": "Optional raw Socrata $order string, for example business_name ASC. Overrides Sort Order when set."
          },
          "appToken": {
            "title": "Socrata App Token",
            "type": "string",
            "description": "Optional. The Los Angeles open data source is keyless, but a free app token raises the rate limit for very large pulls. Leave empty unless you have one."
          },
          "withOwnerPortfolio": {
            "title": "Owner portfolio add-on (paid)",
            "type": "boolean",
            "description": "Off by default. When on, each record is enriched with how many registered locations share the same City taxpayer account (a multi-location / franchise signal): ownerTotalLocations, ownerIsMultiLocation and ownerPortfolioSummary. Requires a paid Apify plan. Billed per enriched record only when the count is resolved.",
            "default": false
          },
          "withAiCompanySummary": {
            "title": "AI company summary (paid add-on)",
            "type": "boolean",
            "description": "Off by default. When on, writes a one-line KYB/sales profile for each business (name, likely activity, location, registration date). Requires a paid Apify plan. Billed only when a summary is produced.",
            "default": false
          },
          "withAiIndustry": {
            "title": "AI industry classification (paid add-on)",
            "type": "boolean",
            "description": "Off by default. When on, classifies each business into a normalized sector, business type, B2B/B2C and tags from its name, DBA and NAICS. Requires a paid Apify plan. Billed only when a classification is produced.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}