{
  "openapi": "3.0.1",
  "info": {
    "title": "Company Directory & Public Contact Scraper",
    "description": "Discover B2B companies in public directories and collect published phones, emails and named contacts with source evidence. Filter by country, city, industry and product. Export JSON/CSV with coverage notes. Profiles from $7.50/1,000; contacts from $18.75/1,000 by tier, plus $0.02/GB startup.",
    "version": "0.1",
    "x-build-id": "sMBxjTgk5whhI7oge"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tubetext~company-directory-contact-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tubetext-company-directory-contact-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/tubetext~company-directory-contact-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tubetext-company-directory-contact-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/tubetext~company-directory-contact-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tubetext-company-directory-contact-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": {
          "websiteSearchProvider": {
            "title": "External website search",
            "enum": [
              "none"
            ],
            "type": "string",
            "description": "Disabled for this release. Website enrichment follows published directory links or websites you supply. Missing websites remain unknown.",
            "default": "none"
          },
          "query": {
            "title": "Search description (optional)",
            "type": "string",
            "description": "Optional directory discovery keywords. Use structured filters below for mandatory conditions; general natural-language interpretation is not included."
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Optional cities, provinces or countries, such as Suzhou. No address is required. Australian capital-city filters can include metropolitan suburbs when exact reported locality, state and postcode match the bundled GeoNames/ABS geographic reference. This inference is labeled separately in output.",
            "items": {
              "type": "string"
            }
          },
          "industries": {
            "title": "Industries",
            "type": "array",
            "description": "Examples: manufacturing, automotive, medical devices. Industry tags do not prove manufacturing capability.",
            "items": {
              "type": "string"
            }
          },
          "products": {
            "title": "Products or components",
            "type": "array",
            "description": "Optional product conditions. Use the wording published by the source, such as precision gears or hydraulic pumps.",
            "items": {
              "type": "string"
            }
          },
          "roles": {
            "title": "Company roles",
            "type": "array",
            "description": "Choose acceptable business roles.",
            "items": {
              "type": "string",
              "enum": [
                "manufacturer",
                "distributor",
                "trading_company",
                "brand",
                "service_provider"
              ],
              "enumTitles": [
                "Manufacturer",
                "Distributor",
                "Trading company",
                "Brand",
                "Service provider"
              ]
            }
          },
          "materials": {
            "title": "Materials",
            "type": "array",
            "description": "Optional material conditions, for example aluminum alloy or stainless steel.",
            "items": {
              "type": "string"
            }
          },
          "processes": {
            "title": "Processes",
            "type": "array",
            "description": "Optional processes, for example CNC machining, die casting or injection molding.",
            "items": {
              "type": "string"
            }
          },
          "certifications": {
            "title": "Certifications",
            "type": "array",
            "description": "Find company statements about certifications; no certificate validity audit is performed.",
            "items": {
              "type": "string"
            }
          },
          "matchModes": {
            "title": "Any/all matching per group",
            "type": "object",
            "description": "Different groups are AND. Within each group the default is any. Example: {\"products\":\"all\",\"regions\":\"any\"}."
          },
          "excludedKeywords": {
            "title": "Exclude company capabilities",
            "type": "array",
            "description": "Explicit positive company statements containing these terms exclude a candidate. Absence or negated statements do not.",
            "items": {
              "type": "string"
            }
          },
          "locationRole": {
            "title": "Required site type",
            "enum": [
              "any",
              "factory",
              "headquarters",
              "warehouse",
              "store"
            ],
            "type": "string",
            "description": "Optional site type. Factory plus a region requires evidence of a factory in that region.",
            "default": "any"
          },
          "searchProvider": {
            "title": "Discovery source",
            "enum": [
              "directories",
              "go4worldbusiness",
              "exportersindia",
              "made_in_china",
              "seeds",
              "australian_exporters",
              "macraes",
              "find_the_needle",
              "kenyabizlist",
              "australian_manufacturing"
            ],
            "type": "string",
            "description": "Uses supplied URLs/CSV when present; otherwise discovers companies through public directories. Clear the sample CSV for a directory search."
          },
          "companyUrls": {
            "title": "Company website URLs",
            "type": "array",
            "description": "Public company website or contact-page URLs. No PDF, login or browser rendering. To include company names, use the CSV field. Maximum 500 URLs.",
            "items": {
              "type": "string"
            }
          },
          "companiesCsv": {
            "title": "Import companies as CSV",
            "type": "string",
            "description": "Header: website,name. Quoted CSV is supported. The sample supplies known websites; it does not demonstrate automatic website discovery. Clear this field for directory discovery."
          },
          "excludeDomains": {
            "title": "Exclude domains",
            "type": "array",
            "description": "Domains to omit from search discovery, in addition to common third-party directories.",
            "items": {
              "type": "string"
            }
          },
          "depth": {
            "title": "What to collect",
            "enum": [
              "contacts",
              "list"
            ],
            "type": "string",
            "description": "List: source-attributed directory profiles, $0.01 per qualifying company at Free tier. Contacts: profiles plus published phone/email contacts, $0.025 per qualifying company. The modes are not billed together. Startup applies separately.",
            "default": "contacts"
          },
          "aiEnabled": {
            "title": "AI research",
            "type": "boolean",
            "description": "Unavailable in this release; keep false.",
            "default": false
          },
          "includeUnknown": {
            "title": "Include unknown candidates in selection",
            "type": "boolean",
            "description": "All assessed companies remain in exports; this controls the selected flag.",
            "default": true
          },
          "maxCompanies": {
            "title": "Maximum companies",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum unique candidate groups assessed.",
            "default": 20
          },
          "maxSearchQueries": {
            "title": "Maximum discovery requests",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Bound on search requests or registry pages.",
            "default": 6
          },
          "maxPagesPerCompany": {
            "title": "HTML pages per company",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Maximum HTML pages read per candidate, including cached pages.",
            "default": 3
          },
          "maxDocumentsPerCompany": {
            "title": "PDF documents",
            "minimum": 0,
            "maximum": 0,
            "type": "integer",
            "description": "Unavailable in this release; keep 0.",
            "default": 0
          },
          "maxRequests": {
            "title": "Total HTTP requests",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Includes provider calls, robots checks and redirects.",
            "default": 80
          },
          "maxDownloadBytes": {
            "title": "Total download bytes",
            "minimum": 1024,
            "maximum": 500000000,
            "type": "integer",
            "description": "Wire-byte limit; responses are also limited after decompression.",
            "default": 40000000
          },
          "maxResponseBytes": {
            "title": "Maximum response bytes",
            "minimum": 1024,
            "maximum": 25000000,
            "type": "integer",
            "description": "Per-response limit, also applied after decompression.",
            "default": 10000000
          },
          "maxRunSeconds": {
            "title": "Research time limit (seconds)",
            "minimum": 1,
            "maximum": 3600,
            "type": "integer",
            "description": "Collection deadline; the runtime also reserves 60 seconds before the platform timeout for delivery and exports. Limits or source failures may produce partial results.",
            "default": 120
          },
          "maxDocumentChars": {
            "title": "Maximum text characters per document",
            "minimum": 1000,
            "maximum": 300000,
            "type": "integer",
            "description": "Truncated sources are explicitly labeled.",
            "default": 120000
          },
          "cacheMaxAgeHours": {
            "title": "Source cache age (hours)",
            "minimum": 0,
            "maximum": 720,
            "type": "number",
            "description": "Reuse successful source documents within this age. Set 0 to refresh. A continuation does not expand discovery; changing the candidate universe requires a new run.",
            "default": 24
          },
          "resumeFromStoreId": {
            "title": "Previous key-value store ID",
            "type": "string",
            "description": "Optional previous paid-run store from this Actor and account. Keep search criteria and depth identical; page/company limits may increase. Previously delivered companies have no repeated result fee. Each new run has its own startup fee. Unconfirmed billing must be resolved on the original run first."
          },
          "directoryKeywords": {
            "title": "Directory search terms (optional)",
            "type": "array",
            "description": "Optional discovery keywords in the source language, usually English. These do not add mandatory conditions. Use products, regions and other fields to screen results.",
            "items": {
              "type": "string"
            }
          },
          "maxDirectoryPages": {
            "title": "Maximum directory result pages",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Maximum directory listing and category pages across all chosen sources. Profile and robots requests also count toward maxRequests. Pagination may be incomplete at this cap.",
            "default": 3
          },
          "countries": {
            "title": "Countries (optional)",
            "type": "array",
            "description": "Country names or ISO two-letter codes, for example US, DE, IN or Australia. Combine with a city to disambiguate locations and improve directory filtering.",
            "items": {
              "type": "string"
            }
          },
          "directorySources": {
            "title": "Supplier directories",
            "maxItems": 8,
            "type": "array",
            "description": "Choose directory adapters. Access and coverage vary: MacRAE's live routes were blocked/time-limited in acceptance; Made-in-China search was blocked although a profile/contact example worked. See README for scope.",
            "items": {
              "type": "string",
              "enum": [
                "go4worldbusiness",
                "exportersindia",
                "made_in_china",
                "australian_exporters",
                "macraes",
                "find_the_needle",
                "kenyabizlist",
                "australian_manufacturing"
              ],
              "enumTitles": [
                "go4WorldBusiness (global)",
                "ExportersIndia (India and overseas)",
                "Made-in-China (China)",
                "Australian Exporters (Australia)",
                "MacRAE's Blue Book (US / Canada)",
                "Find The Needle (global / UK)",
                "KenyaBizList (Kenya)",
                "Australian Manufacturing (Australia)"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}