{
  "openapi": "3.0.1",
  "info": {
    "title": "Texas Metro Landscaping Leads: Permits + Bids",
    "description": "New home, pool, patio, fence, sitework, tree and irrigation permits from San Antonio, Austin, Dallas and Fort Worth open data, plus San Antonio area grounds and mowing bids, as one daily lead feed for landscapers and contractors.",
    "version": "0.4",
    "x-build-id": "0qVSuJ9IX9yIsotcD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/voracious_question~texas-metro-landscaping-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-voracious_question-texas-metro-landscaping-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/voracious_question~texas-metro-landscaping-leads/runs": {
      "post": {
        "operationId": "runs-sync-voracious_question-texas-metro-landscaping-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/voracious_question~texas-metro-landscaping-leads/run-sync": {
      "post": {
        "operationId": "run-sync-voracious_question-texas-metro-landscaping-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": {
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Any of: San Antonio, Austin, Dallas, Fort Worth. Empty = all four.",
            "items": {
              "type": "string"
            }
          },
          "daysBack": {
            "title": "Permits issued in the last N days",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "How far back to look for issued permits. Use 7 for a weekly schedule, 1 for daily.",
            "default": 7
          },
          "zipCodes": {
            "title": "ZIP codes (empty = every ZIP in the chosen cities)",
            "type": "array",
            "description": "Only return permits in these ZIP codes, e.g. 78249.",
            "items": {
              "type": "string"
            }
          },
          "permitTypes": {
            "title": "San Antonio permit types (empty = landscaping-related defaults)",
            "type": "array",
            "description": "Defaults: new residential and commercial buildings, sitework, shells, additions, ADUs, pools, patios, decks, fences, retaining walls, tree permits, demolition, irrigation.",
            "items": {
              "type": "string"
            }
          },
          "minValuation": {
            "title": "Minimum declared valuation (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Many permits have no valuation; a value above 0 drops them.",
            "default": 0
          },
          "maxPermits": {
            "title": "Max permits per city per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper limit on permits fetched from each city in one run.",
            "default": 1000
          },
          "includePermits": {
            "title": "Include permits",
            "type": "boolean",
            "description": "Return building permits from the chosen cities.",
            "default": true
          },
          "includeBids": {
            "title": "Include bids",
            "type": "boolean",
            "description": "Return open bids from the City of San Antonio, SAWS and South San Antonio ISD.",
            "default": true
          },
          "bidKeywords": {
            "title": "Bid keywords (empty = landscaping defaults)",
            "type": "array",
            "description": "Word-start match on the bid title, e.g. mowing, irrigation, tree, grounds, xeriscape.",
            "items": {
              "type": "string"
            }
          },
          "includeAllBids": {
            "title": "Return every open bid, not only matches",
            "type": "boolean",
            "description": "Turn on to see all open bids from the bid sources, not only landscaping matches.",
            "default": false
          },
          "extraIonwaveHosts": {
            "title": "Extra Ion Wave agencies",
            "type": "array",
            "description": "Subdomain of any agency's public Ion Wave bid page, e.g. \"arlington-tx\" for arlington-tx.ionwave.net. SAWS and South San ISD are always included.",
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only leads not delivered in earlier runs",
            "type": "boolean",
            "description": "Turn on for scheduled daily or weekly runs.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}