{
  "openapi": "3.0.1",
  "info": {
    "title": "Texas Business Search 🤠 Registered Agent, Officers & Locations",
    "description": "Search Texas businesses by name, taxpayer number, EIN or Secretary of State file number, or build lead lists by type, status, registration date and place. Get the registered agent, officers and directors, franchise tax status and business locations.",
    "version": "0.0",
    "x-build-id": "EB3AWmhSS49l0jYxI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dz_omar~texas-business-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dz_omar-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/dz_omar~texas-business-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dz_omar-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/dz_omar~texas-business-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dz_omar-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": {
          "searchTerms": {
            "title": "🔎 Business names or numbers",
            "type": "array",
            "description": "Type <b>one per line</b>. Each line can be a <b>business name</b> (e.g. <code>Dell Inc</code>), a <b>Texas taxpayer number</b> (11 digits), an <b>EIN</b> (9 digits) or a <b>Texas Secretary of State file number</b> (6–10 digits). A name finds every business that <b>starts with</b> it, closed ones included — very common names are listed in parts automatically. A name needs 2–50 characters. Leave this empty if you only want a list from the filters below.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          "businessTypes": {
            "title": "🏢 Type of business",
            "type": "array",
            "description": "Pick one or more. Leave empty for all types. <b>Only used for lists</b> — ignored when this whole section is empty.",
            "items": {
              "type": "string",
              "enum": [
                "llc",
                "corporation",
                "nonprofit",
                "partnership",
                "professional",
                "other"
              ],
              "enumTitles": [
                "Limited liability companies (LLC)",
                "Corporations",
                "Nonprofit corporations",
                "Partnerships and joint ventures",
                "Professional corporations and associations",
                "Everything else (trusts, associations, government…)"
              ]
            }
          },
          "businessStatus": {
            "title": "✅ Status",
            "enum": [
              "active",
              "not_active",
              "all"
            ],
            "type": "string",
            "description": "<b>Active</b> = allowed to do business in Texas (the usual choice). Choose another option to see closed or forfeited businesses. Only used for lists.",
            "default": "active"
          },
          "registeredFrom": {
            "title": "📅 Registered in Texas from",
            "pattern": "^((\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])|(\\d{1,4})\\s*(day|week|month|year)s?)$",
            "type": "string",
            "description": "A date, or how far back to look, e.g. <code>30 days</code> for the newest businesses. Only used for lists."
          },
          "registeredTo": {
            "title": "📅 Registered in Texas until",
            "pattern": "^((\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])|(\\d{1,4})\\s*(day|week|month|year)s?)$",
            "type": "string",
            "description": "A date, or how far back, e.g. <code>7 days</code>. Leave empty for up to today. Only used for lists."
          },
          "city": {
            "title": "📍 City",
            "type": "string",
            "description": "Mailing city of the business, e.g. <code>Austin</code>. Only used for lists."
          },
          "zipCode": {
            "title": "📍 ZIP code",
            "pattern": "^\\d{1,5}$",
            "type": "string",
            "description": "A full ZIP code or its first digits, e.g. <code>78701</code> or <code>787</code>. Only used for lists."
          },
          "county": {
            "title": "📍 County",
            "type": "string",
            "description": "A Texas county, e.g. <code>Harris</code> or <code>Harris County</code>. Only used for lists."
          },
          "nameContains": {
            "title": "🏷️ Business name contains",
            "type": "string",
            "description": "A word that appears anywhere in the name, e.g. <code>plumbing</code>. Only used for lists."
          },
          "includeDetails": {
            "title": "👤 Add registered agent and officers",
            "type": "boolean",
            "description": "Adds the registered agent, the registered office address and the officers or directors (names, titles, addresses) to every business. Recommended. Turn off for a faster, cheaper list of names and addresses only.",
            "default": true
          },
          "includeLocations": {
            "title": "🏬 Add business locations",
            "type": "boolean",
            "description": "Adds the shops, offices and outlets that hold a Texas sales-tax permit (name, address, industry code, first-sales date). Only businesses that collect sales tax have locations.",
            "default": false
          },
          "maxResults": {
            "title": "🔢 Maximum businesses",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many businesses in total. <code>0</code> means no limit. Start small to see what you get.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}