{
  "openapi": "3.0.1",
  "info": {
    "title": "New Business Leads: City Business Licenses (6 US Cities)",
    "description": "New local businesses from official city license and business-tax records in Chicago, Los Angeles, NYC, San Francisco, Seattle and Orlando: name, activity, NAICS, start date, address, ZIP and phone where published. Daily only-new feeds. $3 per 1,000 businesses.",
    "version": "0.0",
    "x-build-id": "m78deYmacG0jjzs7g"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/classier_linear~city-business-license-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-classier_linear-city-business-license-leads",
        "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/classier_linear~city-business-license-leads/runs": {
      "post": {
        "operationId": "runs-sync-classier_linear-city-business-license-leads",
        "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/classier_linear~city-business-license-leads/run-sync": {
      "post": {
        "operationId": "run-sync-classier_linear-city-business-license-leads",
        "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": {
          "sources": {
            "title": "Cities",
            "type": "array",
            "description": "Which city registries to read. Leave empty for all six. New York City publishes with a lag of about 2-3 weeks, so use 30 days or more for it.",
            "items": {
              "type": "string",
              "enum": [
                "chicago",
                "la",
                "nyc",
                "sf",
                "seattle",
                "orlando"
              ],
              "enumTitles": [
                "Chicago, IL",
                "Los Angeles, CA",
                "New York City, NY",
                "San Francisco, CA",
                "Seattle, WA",
                "Orlando, FL"
              ]
            }
          },
          "daysBack": {
            "title": "Started in the last N days",
            "minimum": 1,
            "maximum": 3660,
            "type": "integer",
            "description": "Businesses whose license, registration or start date falls in the last N days, counting today. Ignored when Started from is set.",
            "default": 30
          },
          "dateFrom": {
            "title": "Started from (optional)",
            "type": "string",
            "description": "Start date (YYYY-MM-DD) for an exact window."
          },
          "dateTo": {
            "title": "Started to (optional)",
            "type": "string",
            "description": "End date (YYYY-MM-DD), inclusive. Defaults to today, so future-dated registrations are left out."
          },
          "keywords": {
            "title": "Keywords (any)",
            "type": "array",
            "description": "Keep businesses whose name, activity, license type, NAICS description, sector, address or neighborhood contains any of these, for example restaurant, salon, dental, construction, cafe.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop businesses that mention any of these, for example peddler, rideshare, taxi, pop up.",
            "items": {
              "type": "string"
            }
          },
          "types": {
            "title": "Activity, license type or NAICS contains",
            "type": "array",
            "description": "Keep businesses whose activity, license type, NAICS code, NAICS description or sector contains one of these, for example Construction, Accommodation and food services, Restaurant, 2382, Beauty Salons.",
            "items": {
              "type": "string"
            }
          },
          "zipPrefixes": {
            "title": "ZIP code prefixes",
            "type": "array",
            "description": "Keep only businesses whose ZIP starts with one of these, for example 606, 98101 or 112. Orlando records carry no ZIP and are dropped when this is set.",
            "items": {
              "type": "string"
            }
          },
          "businessOnly": {
            "title": "Companies only (skip sole proprietors)",
            "type": "boolean",
            "description": "Keep only registered companies (LLC, Inc, Corp, partnership, nonprofit...). Sole proprietors are skipped before export, so you are not charged for them.",
            "default": false
          },
          "requirePhone": {
            "title": "Only businesses with a phone",
            "type": "boolean",
            "description": "Seattle, New York City and Orlando publish phone numbers; Chicago, Los Angeles and San Francisco do not.",
            "default": false
          },
          "maxItemsPerSource": {
            "title": "Maximum businesses per city",
            "minimum": 1,
            "type": "integer",
            "description": "Stop each city after this many businesses. You pay only for businesses exported.",
            "default": 1000
          },
          "onlyNew": {
            "title": "Only new (for scheduled daily runs)",
            "type": "boolean",
            "description": "Export only businesses this task has not exported before. Schedule daily with this on for a clean lead feed and never pay twice.",
            "default": false
          },
          "stateKey": {
            "title": "Monitoring name",
            "type": "string",
            "description": "Separate only-new memory per list, for example chicago-restaurants. Letters, digits, - and _ only.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}