{
  "openapi": "3.0.1",
  "info": {
    "title": "SLED Government Bids Scraper — Bonfire & OpenGov RFPs",
    "description": "Scrape open US state & local government bids and RFPs from Bonfire and OpenGov Procurement (570+ agencies). Filter by state, keyword, type, deadline. Daily new-bid alerts.",
    "version": "0.2",
    "x-build-id": "mtSvj8izdU7f9xgpy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/spotless_studios~sled-procurement-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-spotless_studios-sled-procurement-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/spotless_studios~sled-procurement-scraper/runs": {
      "post": {
        "operationId": "runs-sync-spotless_studios-sled-procurement-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/spotless_studios~sled-procurement-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-spotless_studios-sled-procurement-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": {
          "platforms": {
            "title": "Platforms",
            "type": "array",
            "description": "Which procurement platforms to scrape. Bonfire (Euna) and OpenGov Procurement together host thousands of US city, county, school district, and special district portals.",
            "items": {
              "type": "string",
              "enum": [
                "bonfire",
                "opengov"
              ],
              "enumTitles": [
                "Bonfire / Euna",
                "OpenGov Procurement"
              ]
            },
            "default": [
              "bonfire",
              "opengov"
            ]
          },
          "bonfirePortals": {
            "title": "Bonfire portal URLs",
            "type": "array",
            "description": "Bonfire portals, e.g. https://harriscountytx.bonfirehub.com. Find more by searching Google for site:bonfirehub.com.",
            "default": [
              "https://harriscountytx.bonfirehub.com",
              "https://fairfaxcounty.bonfirehub.com",
              "https://wake.bonfirehub.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "openGovAgencies": {
            "title": "OpenGov agency codes or portal URLs",
            "type": "array",
            "description": "Agency codes (e.g. alachuacounty) or portal URLs like https://procurement.opengov.com/portal/alachuacounty.",
            "default": [
              "alachuacounty",
              "1gpa"
            ],
            "items": {
              "type": "string"
            }
          },
          "openGovStates": {
            "title": "OpenGov: every agency in these states",
            "type": "array",
            "description": "Two-letter US state codes (e.g. TX, CA, FL). Adds every active OpenGov agency in those states from the public directory (570+ agencies nationwide).",
            "items": {
              "type": "string"
            }
          },
          "openGovAllAgencies": {
            "title": "OpenGov: scan every agency nationwide",
            "type": "boolean",
            "description": "Scan all 570+ active OpenGov agencies. Combine with keyword filters and 'Only new bids' for a nationwide bid alert.",
            "default": false
          },
          "statuses": {
            "title": "Bid statuses",
            "type": "array",
            "description": "OpenGov statuses to include: open, pending, evaluation, awardPending, closed — or 'all'. Bonfire always returns open bids.",
            "default": [
              "open"
            ],
            "items": {
              "type": "string"
            }
          },
          "solicitationTypes": {
            "title": "Solicitation types",
            "type": "array",
            "description": "Keep only these types, by code or name: RFP, RFQ, RFI, ITB, IFB, RFB, CSP, RFQU, SOQ, 'Construction'…",
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Departments contain",
            "type": "array",
            "description": "Keep bids whose department contains any of these words (e.g. Public Works, IT, Parks).",
            "items": {
              "type": "string"
            }
          },
          "minDaysUntilClose": {
            "title": "Min days until deadline",
            "minimum": 0,
            "type": "integer",
            "description": "Skip bids closing sooner than this — leaves time to prepare a response."
          },
          "maxDaysUntilClose": {
            "title": "Max days until deadline",
            "minimum": 0,
            "type": "integer",
            "description": "Skip bids closing later than this."
          },
          "postedWithinDays": {
            "title": "Posted within last N days",
            "minimum": 1,
            "type": "integer",
            "description": "Keep bids released in the last N days. Bids without a posting date are kept."
          },
          "excludeExpired": {
            "title": "Drop open bids whose deadline has passed",
            "type": "boolean",
            "description": "Some portals keep bids marked open after the deadline. Turn off to keep them.",
            "default": true
          },
          "portalUrls": {
            "title": "Direct portal URLs (auto-detected)",
            "type": "array",
            "description": "Paste any mix of Bonfire or OpenGov portal URLs; the scraper automatically detects the platform for each URL.",
            "items": {
              "type": "string"
            }
          },
          "includeKeywords": {
            "title": "Include keywords",
            "type": "array",
            "description": "Keep bids whose title, description, reference, department, or agency contains these words. Wrap in slashes for regex, e.g. /hvac|roofing/.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop bids containing any of these words or /regex/.",
            "items": {
              "type": "string"
            }
          },
          "keywordMatch": {
            "title": "Include keyword logic",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Require any or all include keywords.",
            "default": "any"
          },
          "onlyNewItems": {
            "title": "Only new bids (monitoring mode)",
            "type": "boolean",
            "description": "Remember bids from previous runs and save only new ones. Schedule daily for a bid alert feed — you pay only for new bids.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Separate memory per saved search, e.g. 'texas-it'. Runs with the same name share history.",
            "default": "default"
          },
          "maxResults": {
            "title": "Max bids",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after saving this many bids.",
            "default": 50
          },
          "includeDescriptions": {
            "title": "Include descriptions",
            "type": "boolean",
            "description": "Add solicitation descriptions (Bonfire RSS feed, OpenGov summary).",
            "default": true
          },
          "descriptionMaxLength": {
            "title": "Max description length",
            "minimum": 0,
            "type": "integer",
            "description": "Truncate descriptions to this many characters. 0 keeps full text.",
            "default": 0
          },
          "outputPreset": {
            "title": "Data preset",
            "enum": [
              "full",
              "lean",
              "contacts"
            ],
            "type": "string",
            "description": "Quickly choose how much data to save per record: full record, lean summary, or contact & social links only.",
            "default": "full"
          },
          "outputFields": {
            "title": "Output fields",
            "type": "array",
            "description": "Save only these fields, in this order (e.g. title, closingDate, organizationName, portalUrl). Supports nested dot-paths (e.g. makers.username). Empty keeps all fields from the selected preset.",
            "items": {
              "type": "string"
            }
          },
          "excludeFields": {
            "title": "Exclude fields",
            "type": "array",
            "description": "Remove specific fields (or nested dot-paths) from each saved record to keep datasets compact.",
            "items": {
              "type": "string"
            }
          },
          "includeEmptyFields": {
            "title": "Keep empty / null fields",
            "type": "boolean",
            "description": "When turned off, strips null, empty strings, empty arrays, and empty objects from every saved record.",
            "default": true
          },
          "requiredFields": {
            "title": "Required non-empty fields",
            "type": "array",
            "description": "Only save (and only pay for) records where every listed field or dot-path has a non-empty value (e.g. website, inquiryEmail).",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Portals fetched in parallel.",
            "default": 5
          },
          "maxRequestRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries with exponential backoff on timeouts, 429, and 5xx responses.",
            "default": 4
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 300,
            "type": "integer",
            "description": "Abort a request that takes longer than this.",
            "default": 45
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Both platforms work without a proxy. Enable one if you scan hundreds of agencies on a schedule.",
            "default": {
              "useApifyProxy": false
            }
          },
          "proxyEscalation": {
            "title": "Auto-escalate proxies when blocked",
            "type": "boolean",
            "description": "If the site blocks the run, automatically step up from a direct connection to Apify datacenter proxy, then residential proxy, only for the blocked site. Turn off to use exactly the proxy above.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}