{
  "openapi": "3.0.1",
  "info": {
    "title": "Texas Business Scraper",
    "description": "Search 3.4M+ registered Texas businesses from the state franchise-tax open data: name, entity type, county, city, NAICS, SOS file number, charter date and status. Build a filtered B2B lead or KYB list, look up a company for its officers and registered agent, or monitor new registrations.",
    "version": "1.0",
    "x-build-id": "Cs33GViBqoCPoiEw1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/normdata~texas-business-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-normdata-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/normdata~texas-business-scraper/runs": {
      "post": {
        "operationId": "runs-sync-normdata-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/normdata~texas-business-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-normdata-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": {
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Caps how many rows this run writes. Starts at 10 for a quick sample; raise it for a full run."
          },
          "mode": {
            "title": "What to do",
            "enum": [
              "search",
              "lookup",
              "monitor"
            ],
            "type": "string",
            "description": "Search filters the 3.4M+ franchise-tax register into a list. Look up resolves exact identifiers or names and adds officers and the registered agent. Monitor returns businesses with a new franchise-tax responsibility or a new sales-tax permit since a date.",
            "default": "search"
          },
          "name": {
            "title": "Name contains (for Search)",
            "type": "string",
            "description": "Match businesses whose taxpayer (legal) name contains this text."
          },
          "entityCategory": {
            "title": "Entity category (for Search)",
            "uniqueItems": true,
            "type": "array",
            "description": "Coarse entity category, derived from the Comptroller organizational-type code.",
            "items": {
              "type": "string",
              "enum": [
                "llc",
                "corporation",
                "partnership",
                "association",
                "trust"
              ],
              "enumTitles": [
                "LLC",
                "Corporation",
                "Partnership",
                "Association",
                "Trust"
              ]
            }
          },
          "organizationalType": {
            "title": "Organizational type code(s) (for Search)",
            "type": "array",
            "description": "Advanced: exact two-letter Comptroller organizational-type codes (e.g. CL for a Texas LLC, CI for a Texas profit corporation).",
            "items": {
              "type": "string"
            }
          },
          "county": {
            "title": "County (for Search)",
            "type": "array",
            "description": "Texas county name(s) (e.g. Travis, Harris, Dallas) or numeric county code(s).",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City (for Search)",
            "type": "array",
            "description": "Taxpayer city, matched exactly (case-insensitive). Add several for an OR match.",
            "items": {
              "type": "string"
            }
          },
          "zip": {
            "title": "ZIP starts with (for Search)",
            "type": "array",
            "description": "One or more ZIP prefixes, e.g. 787 for the Austin area.",
            "items": {
              "type": "string"
            }
          },
          "naics": {
            "title": "NAICS prefix(es) (for Search)",
            "type": "array",
            "description": "Industry filter by NAICS code prefix, e.g. 23 for construction, 5416 for consulting, 722 for food service. NAICS is present on a subset of records.",
            "items": {
              "type": "string"
            }
          },
          "rightToTransact": {
            "title": "Right to transact business (for Search)",
            "enum": [
              "any",
              "active",
              "not_active"
            ],
            "type": "string",
            "description": "Filter by whether the entity currently has the right to transact business in Texas.",
            "default": "any"
          },
          "outOfStateOnly": {
            "title": "Out-of-state entities only (for Search)",
            "type": "boolean",
            "description": "Only entities whose taxpayer address is outside Texas.",
            "default": false
          },
          "hasSalesTaxPermit": {
            "title": "Has an active sales-tax permit (for Search)",
            "type": "boolean",
            "description": "Set true for entities that also hold an active Texas sales-tax permit (retail / taxable sales), or false for those that do not. Adds a lookup against the sales-tax-permit register."
          },
          "charteredAfter": {
            "title": "Chartered on or after (for Search)",
            "type": "string",
            "description": "ISO date (2026-01-01). Only entities whose SOS charter (formation) date is on or after this."
          },
          "charteredBefore": {
            "title": "Chartered on or before (for Search)",
            "type": "string",
            "description": "ISO date. Only entities chartered on or before this."
          },
          "responsibleAfter": {
            "title": "Franchise-tax responsible on or after (for Search)",
            "type": "string",
            "description": "ISO date. Only entities that became liable for franchise tax on or after this."
          },
          "responsibleBefore": {
            "title": "Franchise-tax responsible on or before (for Search)",
            "type": "string",
            "description": "ISO date."
          },
          "includeOfficers": {
            "title": "Include officers and registered agent",
            "type": "boolean",
            "description": "Add the officers/directors array, the registered agent, the mailing address and the SOS registration status for each row, from the Comptroller account-status service. One extra request per row. Billed as a separate event, only when officer data is found. Look up mode always includes this.",
            "default": false
          },
          "identifiers": {
            "title": "Taxpayer / EIN / SOS file numbers or names (for Look up)",
            "type": "array",
            "description": "11-digit Texas taxpayer numbers, 9-digit federal EIN/FEI numbers, SOS file numbers, or company names. Names may match several entities.",
            "items": {
              "type": "string"
            }
          },
          "since": {
            "title": "Registered since (for Monitor)",
            "type": "string",
            "description": "ISO date (2026-09-01) or a window like \"30 days\" / \"2 weeks\". Monitor returns entities with a matching change on or after this."
          },
          "events": {
            "title": "Change types to watch (for Monitor)",
            "uniqueItems": true,
            "type": "array",
            "description": "Which new-business signals to include. Leave empty for both.",
            "items": {
              "type": "string",
              "enum": [
                "new_franchise_taxpayer",
                "new_sales_tax_permit"
              ],
              "enumTitles": [
                "New franchise-tax registration",
                "New sales-tax permit"
              ]
            }
          },
          "appToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "A free data.texas.gov (Socrata) app token raises the shared rate limit. Only needed for very large runs."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}