{
  "openapi": "3.0.1",
  "info": {
    "title": "Texas Business Search: New LLCs, Officers & Agents",
    "description": "Find new Texas LLCs and corporations by formation date, county, city or industry, or look up any company by name. Get status, address, DBA names, store locations and NAICS industry, plus registered agent, officers and FEIN. Monitor changes.",
    "version": "1.0",
    "x-build-id": "W1hb3IO2YwkcIO6N5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datamole~texas-business-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datamole-texas-business-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/datamole~texas-business-scraper/runs": {
      "post": {
        "operationId": "runs-sync-datamole-texas-business-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/datamole~texas-business-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-datamole-texas-business-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "discover",
              "lookup"
            ],
            "type": "string",
            "description": "Discover = build a list of Texas entities from filters (new businesses, by county, by industry). Lookup = find specific companies by name, taxpayer number or Secretary of State file number.",
            "default": "discover"
          },
          "details": {
            "title": "Registered agent, officers & FEIN",
            "enum": [
              "lookup",
              "always",
              "never"
            ],
            "type": "string",
            "description": "Adds the Comptroller account status: registered agent and office, officers and directors (name, title, year, city), FEIN, state of formation and DBA. One extra request per entity, charged as \"entity details\".",
            "default": "lookup"
          },
          "includeOutlets": {
            "title": "Include store locations (sales tax outlets)",
            "type": "boolean",
            "description": "Adds each sales tax outlet: DBA name, physical address, NAICS industry, permit date and first sales date. Free, from Texas open data. Up to 25 outlets listed per entity; outletCount is always the real number.",
            "default": true
          },
          "formedFrom": {
            "title": "Formed from",
            "type": "string",
            "description": "Formation (charter) date at the Texas Secretary of State. YYYY-MM-DD or relative like \"30 days\", \"6 months\", \"1 year\". The state publishes new filings with about 1 to 2 weeks of delay."
          },
          "formedTo": {
            "title": "Formed to",
            "type": "string",
            "description": "YYYY-MM-DD or relative. Empty = up to today (and filings with a future effective date)."
          },
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "Texas county of the mailing address, e.g. Harris, Dallas, Travis, Bexar. Empty = all 254 counties.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Mailing city, e.g. Houston, Austin. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "5-digit ZIP or a prefix like 770 for every ZIP that starts with it.",
            "items": {
              "type": "string"
            }
          },
          "entityTypes": {
            "title": "Entity types",
            "type": "array",
            "description": "Empty = all types. Sole proprietors are never included.",
            "items": {
              "type": "string",
              "enum": [
                "llc",
                "corporation",
                "nonprofit",
                "professional",
                "partnership",
                "association",
                "trust",
                "financial",
                "government",
                "other"
              ],
              "enumTitles": [
                "LLC",
                "Corporation",
                "Nonprofit",
                "Professional corporation or association",
                "Partnership, LLP or joint venture",
                "Association",
                "Trust, REIT or estate",
                "Bank or credit union",
                "Government body",
                "Other"
              ]
            }
          },
          "formedIn": {
            "title": "Formed in",
            "enum": [
              "any",
              "texas",
              "outside"
            ],
            "type": "string",
            "description": "Texas = formed under Texas law. Outside Texas = foreign entities registered to do business in Texas (e.g. Delaware corporations).",
            "default": "any"
          },
          "industries": {
            "title": "Industries (NAICS)",
            "type": "array",
            "description": "NAICS codes (2 to 6 digits, e.g. 7225 restaurants, 2382 building contractors) or words like \"restaurant\", \"dental\", \"trucking\". Matched against the entity record and the industry of each sales tax outlet.",
            "items": {
              "type": "string"
            }
          },
          "nameContains": {
            "title": "Name contains",
            "type": "array",
            "description": "Words the entity name must contain, e.g. TACO, ROOFING, CAPITAL. Any of them matches.",
            "items": {
              "type": "string"
            }
          },
          "sosStatus": {
            "title": "Secretary of State status",
            "enum": [
              "any",
              "active",
              "forfeited"
            ],
            "type": "string",
            "description": "Active includes reinstated entities.",
            "default": "any"
          },
          "rightToTransact": {
            "title": "Right to transact business",
            "enum": [
              "any",
              "active",
              "forfeited",
              "notEstablished",
              "ended"
            ],
            "type": "string",
            "description": "Franchise tax standing. Forfeited = lost the right to do business in Texas (usually unpaid franchise tax or missing report).",
            "default": "any"
          },
          "taxExempt": {
            "title": "Tax exempt",
            "enum": [
              "any",
              "exempt",
              "notExempt"
            ],
            "type": "string",
            "description": "Exempt entities include 501(c)(3) charities, churches, HOAs and other nonprofits.",
            "default": "any"
          },
          "onlyWithSalesPermit": {
            "title": "Only entities with a sales tax permit",
            "type": "boolean",
            "description": "Keep only entities that hold an active Texas sales tax permit (they sell taxable goods or services from at least one location).",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "oldest",
              "name"
            ],
            "type": "string",
            "description": "Order of results.",
            "default": "newest"
          },
          "names": {
            "title": "Company names",
            "type": "array",
            "description": "Lookup mode. The Comptroller search matches names that START with the text, e.g. \"WAL-MART STORES\" finds \"WAL-MART STORES TEXAS, LLC\". 2 to 50 characters. Very short names that match thousands of entities are rejected by the state: add more words.",
            "items": {
              "type": "string"
            }
          },
          "taxpayerIds": {
            "title": "Taxpayer numbers",
            "type": "array",
            "description": "Lookup mode. 11-digit Texas taxpayer number or 9-digit FEIN.",
            "items": {
              "type": "string"
            }
          },
          "fileNumbers": {
            "title": "Secretary of State file numbers",
            "type": "array",
            "description": "Lookup mode. 6 to 10 digits, e.g. 0800834865.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many entities. Empty = all matches. Free plan: 10 results per run."
          },
          "monitorMode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Remembers entities between runs. Next runs return only new entities and entities whose name, status, right to transact, number of locations, registered agent or officers changed, with the previous values. The first run returns everything. Schedule it daily or weekly.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Same name = same memory across different inputs. Empty = identified by the filters."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}