{
  "openapi": "3.0.1",
  "info": {
    "title": "Texas Construction Project Leads (TDLR TABS) + AI Trade Tags",
    "description": "Returns new Texas commercial construction projects registered with TDLR (TABS): owner, architect, estimated cost, scope, square feet and location, plus AI tags for building type and the trades likely to bid. Filter by county, city, cost, trade or keyword. No API key or login needed.",
    "version": "0.1",
    "x-build-id": "zaAQbwMxau6X6c7mq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wickedome~tabs-project-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wickedome-tabs-project-leads",
        "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/wickedome~tabs-project-leads/runs": {
      "post": {
        "operationId": "runs-sync-wickedome-tabs-project-leads",
        "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/wickedome~tabs-project-leads/run-sync": {
      "post": {
        "operationId": "run-sync-wickedome-tabs-project-leads",
        "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": {
          "lookbackDays": {
            "title": "Lookback days",
            "minimum": 1,
            "maximum": 31,
            "type": "integer",
            "description": "How many days of new registrations to pull, counting back from today (Texas time). Ignored if Date from is set. For a daily schedule use 2-3 with \"Only new projects\" on.",
            "default": 7
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Optional start of the registration date range (YYYY-MM-DD). Use it for backfills: the range can cover up to 2 years and is read newest first, so Max projects stops the run at the most recent matches."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Optional end of the range (YYYY-MM-DD). Defaults to today."
          },
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "Only projects in these Texas counties, e.g. Harris, Dallas, Travis, Bexar, Tarrant. Leave empty for the whole state.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Only projects in these Texas cities, e.g. Houston, Austin, Frisco. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "minCost": {
            "title": "Minimum estimated cost (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip projects with a smaller estimated construction cost. TDLR registration is required from $50,000, so most projects start there.",
            "default": 0
          },
          "maxCost": {
            "title": "Maximum estimated cost (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional upper limit on estimated cost."
          },
          "workTypes": {
            "title": "Type of work",
            "type": "array",
            "description": "Leave empty for all work types.",
            "items": {
              "type": "string",
              "enum": [
                "new_construction",
                "renovation_alteration",
                "addition",
                "historic_preservation",
                "public_right_of_way"
              ],
              "enumTitles": [
                "New construction",
                "Renovation / alteration",
                "Addition to existing building",
                "Historic preservation",
                "Public right of way"
              ]
            }
          },
          "funding": {
            "title": "Funding",
            "enum": [
              "any",
              "public",
              "private"
            ],
            "type": "string",
            "description": "Public projects (cities, counties, school districts, state) or privately funded ones.",
            "default": "any"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep only projects where any keyword appears in the project name, facility, scope of work, owner, tenant or design firm, e.g. dental, H-E-B, warehouse.",
            "items": {
              "type": "string"
            }
          },
          "aiTags": {
            "title": "AI trade tags",
            "type": "boolean",
            "description": "Tag each project with its building type, the specialty trades likely to bid it and a one-sentence scope summary. Billed as a separate ai-tags event per project.",
            "default": true
          },
          "trades": {
            "title": "Only projects needing these trades",
            "type": "array",
            "description": "Keep projects whose AI tags include at least one of these trades. Needs AI trade tags on.",
            "items": {
              "type": "string",
              "enum": [
                "sitework_paving",
                "concrete",
                "structural_steel_metal_building",
                "roofing",
                "glazing_storefront",
                "framing_drywall_ceilings",
                "painting",
                "flooring",
                "millwork_casework",
                "doors_hardware",
                "hvac",
                "plumbing",
                "electrical_lighting",
                "fire_sprinkler",
                "fire_alarm",
                "low_voltage_data_security_av",
                "elevator",
                "kitchen_foodservice_equipment",
                "medical_gas_equipment",
                "signage",
                "landscaping_irrigation",
                "demolition",
                "furniture_ffe",
                "playground_athletic_surfaces"
              ],
              "enumTitles": [
                "Sitework & paving",
                "Concrete",
                "Structural steel / metal building",
                "Roofing",
                "Glazing & storefront",
                "Framing, drywall & ceilings",
                "Painting",
                "Flooring",
                "Millwork & casework",
                "Doors & hardware",
                "HVAC",
                "Plumbing",
                "Electrical & lighting",
                "Fire sprinkler",
                "Fire alarm",
                "Low voltage, data, security & AV",
                "Elevator",
                "Kitchen & foodservice equipment",
                "Medical gas & equipment",
                "Signage",
                "Landscaping & irrigation",
                "Demolition",
                "Furniture & FF&E",
                "Playground & athletic surfaces"
              ]
            }
          },
          "buildingTypes": {
            "title": "Only these building types",
            "type": "array",
            "description": "Keep projects whose AI building type is one of these. Needs AI trade tags on.",
            "items": {
              "type": "string",
              "enum": [
                "healthcare",
                "retail",
                "restaurant_food_service",
                "office",
                "industrial_warehouse",
                "education",
                "multifamily_residential",
                "hospitality_lodging",
                "government_civic",
                "religious",
                "recreation_fitness_entertainment",
                "automotive",
                "bank_financial",
                "data_center_telecom",
                "utility_infrastructure",
                "senior_living",
                "mixed_use",
                "other"
              ],
              "enumTitles": [
                "Healthcare / medical",
                "Retail",
                "Restaurant / food service",
                "Office",
                "Industrial / warehouse",
                "Education / schools",
                "Multifamily residential",
                "Hotel / lodging",
                "Government / civic",
                "Religious",
                "Recreation, fitness & entertainment",
                "Automotive",
                "Bank / financial",
                "Data center / telecom",
                "Utility / infrastructure",
                "Senior living",
                "Mixed use",
                "Other"
              ]
            }
          },
          "onlyNew": {
            "title": "Only new projects",
            "type": "boolean",
            "description": "Skip projects this monitor already returned in earlier runs. Turn on for scheduled daily or weekly runs.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Name for the \"Only new projects\" memory. Use a different ID for each saved search you schedule.",
            "default": "default"
          },
          "maxItems": {
            "title": "Max projects",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many projects. Each project is billed once. For large backfills, also raise the run timeout (Run options) so the run has time to finish.",
            "default": 100
          },
          "sendDiagnostics": {
            "title": "Send anonymous diagnostics",
            "type": "boolean",
            "description": "Send the Actor's author a short anonymous record of each run: status, duration, row count, error message, and which options were used (never their values). This helps find and fix failures. See Diagnostics in the README.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}