{
  "openapi": "3.0.1",
  "info": {
    "title": "New Business Leads: Texas, Chicago, LA, San Francisco, Seattle",
    "description": "Businesses that just opened, from official license and tax records: Texas statewide (Austin, Houston, Dallas, San Antonio, Fort Worth), Chicago, Los Angeles, San Francisco and Seattle. Name, address, industry and start date. For B2B prospecting: insurance, payments, bookkeeping, cleaning, signs.",
    "version": "0.1",
    "x-build-id": "u1utPQZGVpX4GoCDP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/flecked_coffee~new-business-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-flecked_coffee-new-business-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/flecked_coffee~new-business-leads/runs": {
      "post": {
        "operationId": "runs-sync-flecked_coffee-new-business-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/flecked_coffee~new-business-leads/run-sync": {
      "post": {
        "operationId": "run-sync-flecked_coffee-new-business-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",
        "required": [
          "city"
        ],
        "properties": {
          "city": {
            "title": "City",
            "enum": [
              "austin",
              "houston",
              "dallas",
              "san-antonio",
              "fort-worth",
              "texas",
              "chicago",
              "los-angeles",
              "san-francisco",
              "seattle"
            ],
            "type": "string",
            "description": "Which city's new businesses to return. Each run reads one city; schedule one run per city to cover several. Texas cities come from the state's sales tax permit list, so they include every business that sells taxable goods or services.",
            "default": "austin"
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "How many days of new businesses to return, ending today. Los Angeles businesses often register weeks after they open, so its recent days fill in over time. Ignored if you set a start date.",
            "default": 7
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "Optional. First date to include (YYYY-MM-DD): the license issue date in Chicago, the permit issue date in Texas, and the business start date elsewhere."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Optional. Last date to include (YYYY-MM-DD). Defaults to today."
          },
          "industries": {
            "title": "Industries",
            "type": "array",
            "description": "Leave empty for all. Industries come from each business's NAICS code, or its license type in Chicago.",
            "items": {
              "type": "string",
              "enum": [
                "food",
                "retail",
                "construction",
                "home_services",
                "beauty",
                "health",
                "fitness",
                "childcare",
                "auto",
                "transport",
                "professional",
                "real_estate",
                "finance",
                "tech_media",
                "lodging",
                "manufacturing",
                "other"
              ],
              "enumTitles": [
                "Restaurants, bars & food",
                "Retail & shops",
                "Construction & trades",
                "Cleaning, repair & home services",
                "Salons, barbers & personal care",
                "Health & medical",
                "Fitness, arts & recreation",
                "Childcare & education",
                "Auto sales, repair & gas",
                "Trucking, delivery & logistics",
                "Offices & professional services",
                "Real estate & rentals",
                "Finance & insurance",
                "Tech, media & telecom",
                "Hotels & short-term rentals",
                "Manufacturing & wholesale",
                "Other"
              ]
            }
          },
          "towns": {
            "title": "Towns or neighborhoods",
            "type": "array",
            "description": "Leave empty for the whole city. Texas statewide: city names such as Round Rock, Plano, Katy. Chicago: neighborhoods such as West Loop, Logan Square, Lincoln Park. San Francisco: Mission, Financial District/South Beach, Sunset/Parkside.",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "Leave empty for all ZIP codes.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep businesses whose name or activity contains any of these words, e.g. taqueria, dental, roofing, salon.",
            "items": {
              "type": "string"
            }
          },
          "entitiesOnly": {
            "title": "Only LLCs and corporations",
            "type": "boolean",
            "description": "Skip sole proprietors. Uses the ownership type where the city publishes it (Texas, Seattle) and the legal name elsewhere.",
            "default": false
          },
          "includeEstablished": {
            "title": "Texas: include established businesses",
            "type": "boolean",
            "description": "Texas also issues permits to businesses that have been selling for a while (new outlet, new owner, catching up on paperwork). By default those are skipped when the first sale was more than 6 months before the permit.",
            "default": false
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many businesses. 0 means no limit.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}