{
  "openapi": "3.0.1",
  "info": {
    "title": "Texas Business Entity Search - Comptroller Franchise Tax Status",
    "description": "Texas business entity search on Comptroller franchise tax records. Look up by name, taxpayer number, EIN or SOS file number, or list new LLCs by formation date, city, county, ZIP or NAICS. Returns right to transact, SOS status, registered agent, officers and addresses. $2.50 per 1,000 records.",
    "version": "0.0",
    "x-build-id": "KdLUTFEngXYBfr83E"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~texas-business-entity-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-texas-business-entity-search",
        "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/memo23~texas-business-entity-search/runs": {
      "post": {
        "operationId": "runs-sync-memo23-texas-business-entity-search",
        "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/memo23~texas-business-entity-search/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-texas-business-entity-search",
        "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": {
          "companyNames": {
            "title": "Company names",
            "type": "array",
            "description": "Texas businesses to look up, one per line. Each name is searched on its own and capped by \"Records per name\". Leave empty to look up by number or to list entities by filter.",
            "items": {
              "type": "string"
            }
          },
          "matchMode": {
            "title": "How names must match",
            "enum": [
              "startsWith",
              "contains",
              "exact"
            ],
            "type": "string",
            "description": "\"Starts with\" works like the Comptroller's own search and covers every status, forfeited and ended accounts included. \"Contains\" adds names that hold your words anywhere. \"Exact\" keeps the name itself, ignoring LLC, Inc and similar endings.",
            "default": "startsWith"
          },
          "taxpayerNumbers": {
            "title": "Taxpayer numbers or EINs",
            "type": "array",
            "description": "11-digit Texas taxpayer numbers or 9-digit federal EINs, one per line. Dashes and spaces are fine.",
            "items": {
              "type": "string"
            }
          },
          "fileNumbers": {
            "title": "SOS file numbers",
            "type": "array",
            "description": "Texas Secretary of State file numbers, 6 to 10 digits, one per line.",
            "items": {
              "type": "string"
            }
          },
          "formedInLastDays": {
            "title": "Formed in the last N days",
            "minimum": 1,
            "maximum": 36500,
            "type": "integer",
            "description": "Lists entities chartered in the last N days, newest first. New entities reach the Comptroller's open file two to three weeks after their charter date, so use 45 or more, and turn on \"Only records not returned before\" for a feed. Ignored when \"Formed on or after\" is set."
          },
          "formedAfter": {
            "title": "Formed on or after",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Charter date, YYYY-MM-DD."
          },
          "formedBefore": {
            "title": "Formed on or before",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Charter date, YYYY-MM-DD."
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Mailing city, one per line, such as Austin or San Antonio.",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "Texas county name, such as Travis or Harris, or the Comptroller county code 1 to 254.",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "Mailing ZIP, or a prefix of 2 to 4 digits such as 787.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "NAICS code or prefix, 2 to 6 digits. 2361 matches every residential building code under it.",
            "items": {
              "type": "string"
            }
          },
          "entityTypes": {
            "title": "Entity types",
            "type": "array",
            "description": "LLC, corporation, nonprofit, limited partnership, general partnership, trust or association. A two-letter Comptroller code such as CL (Texas LLC) or CI (foreign LLC) also works.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Read each entity's full record",
            "type": "boolean",
            "description": "On: right to transact as worded by the Comptroller, SOS status, state of formation, EIN, DBA, registered agent with office address, and officers and directors with addresses. Off: the listing row only (name, numbers, type, NAICS, county, charter date, mailing address), which is faster.",
            "default": true
          },
          "activeOnly": {
            "title": "Active right to transact only",
            "type": "boolean",
            "description": "Keep only entities whose right to transact business in Texas is ACTIVE. Forfeited, ended and not-established accounts are skipped and not charged.",
            "default": false
          },
          "onlyNew": {
            "title": "Only records not returned before",
            "type": "boolean",
            "description": "Skips entities an earlier run with the same memory name already returned. Pair it with a schedule and \"Formed in the last N days\" (45 or more) for a feed of new Texas businesses.",
            "default": false
          },
          "monitorName": {
            "title": "Memory name",
            "type": "string",
            "description": "Names the memory used by \"Only records not returned before\". Use one name per feed. Empty shares one memory for this actor."
          },
          "maxItems": {
            "title": "Records in total",
            "minimum": 1,
            "type": "integer",
            "description": "The run stops after this many records. You are charged per record returned.",
            "default": 1000
          },
          "maxResultsPerName": {
            "title": "Records per name",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Most records returned for one company name.",
            "default": 25
          },
          "maxConcurrency": {
            "title": "Records read at once",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many records are read in parallel. Lower it if you see failed lookups.",
            "default": 5
          },
          "proxy": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Not needed for normal runs. Set one only if your network policy requires it.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}