{
  "openapi": "3.0.1",
  "info": {
    "title": "Local Business Owner Finder by City and Industry",
    "description": "Local business owners by city and industry: owners, founders and CEOs of small companies, one row per person with company, industry, size, location and profile URL. Free plan: 100 per run. Pay per owner, misses free. No login or cookies.",
    "version": "0.1",
    "x-build-id": "60dafEU7ies5Fblo3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/b2bdata~local-business-owners/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-b2bdata-local-business-owners",
        "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/b2bdata~local-business-owners/runs": {
      "post": {
        "operationId": "runs-sync-b2bdata-local-business-owners",
        "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/b2bdata~local-business-owners/run-sync": {
      "post": {
        "operationId": "run-sync-b2bdata-local-business-owners",
        "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": [
          "cities",
          "country"
        ],
        "properties": {
          "cities": {
            "title": "Which cities?",
            "type": "array",
            "description": "Cities or places to search, 3 to 64 characters each, up to 5. Matched as text inside the place on the person's profile (\"city, region, country\"), in any letter case: \"austin\" finds \"Austin, Texas, United States\" and \"Austin, Texas Metropolitan Area\"; \"portland, oregon\" keeps Portland, Maine out. A place shorter than 3 characters (\"la\", \"ny\") is refused. With several cities each gets an equal share of limit, in the order given.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Which country?",
            "type": "string",
            "description": "Two-letter country code of where the person is based, for example us, gb, ca, au or de. One country per run. People with no country on file never match."
          },
          "industries": {
            "title": "Which industries? (optional)",
            "type": "array",
            "description": "Industry of the person's company, up to 10, matched by name in any letter case: \"restaurants\", \"retail\", \"dentists\", \"construction\", \"real estate\". Plain words are read as the closest industry. A name the data does not know ends the run with a free notice. Leave empty for every industry. Only companies that have an industry on file match.",
            "items": {
              "type": "string"
            }
          },
          "minEmployees": {
            "title": "Smallest company (employees)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "The company must have at least this many employees. Default 1. Companies with no size on file never match.",
            "default": 1
          },
          "maxEmployees": {
            "title": "Largest company (employees)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "The company must have at most this many employees. Default 50 (small business). Maximum 500. Companies with no size on file never match.",
            "default": 50
          },
          "limit": {
            "title": "Max owners",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Most owners delivered in the run, which also caps what is charged. Default 25, maximum 1000. Free plan: 100 per run. A free count of how many people match is shown in the run status.",
            "default": 25
          },
          "includePhones": {
            "title": "Add phone numbers (add-on)",
            "type": "boolean",
            "description": "Adds a phone number to each person who has one on file, in phone and phones. Add-on price: $4.996 per 1,000 phone numbers found on the Free plan ($2.996 on Gold), charged once per person and only when a number is found. People without a phone cost nothing extra. Off by default.",
            "default": false
          },
          "includeEmails": {
            "title": "Add work emails (add-on)",
            "type": "boolean",
            "description": "Adds the current work email of each person who has one on file, in workEmail. Add-on price: $0.963 per 1,000 work emails found on the Free plan ($0.696 on Gold), charged once per person and only when an email is found. People without a work email cost nothing extra. Off by default.",
            "default": false
          },
          "includeAudit": {
            "title": "Include audit fields",
            "type": "boolean",
            "description": "Adds requestId, latencyMs and inputRaw to each row under audit. Omit for clean rows.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}