{
  "openapi": "3.0.1",
  "info": {
    "title": "Bonfire Bids Scraper - Open & Awarded Public Procurement",
    "description": "Open bids, RFPs and tenders from Bonfire public procurement portals of US and Canadian agencies: one row per opportunity with agency, reference, status (open, reopened, awarded, cancelled), closing time in UTC and local time, days left. Filter by keyword, type, country. No login.",
    "version": "0.1",
    "x-build-id": "CJGoO9iaV4aJ8DLFo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~bonfire-bids-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-bonfire-bids-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/neverempty~bonfire-bids-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-bonfire-bids-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/neverempty~bonfire-bids-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-bonfire-bids-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": {
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Bonfire agency portals to read: the part before .bonfirehub.com (for example dallascityhall), the full host (athabascau.bonfirehub.ca) or a copied portal link. Leave empty and pick agency types or countries below to read every matching portal from the built-in directory. Leave everything empty to read the whole directory.",
            "items": {
              "type": "string"
            }
          },
          "agencyTypes": {
            "title": "Agency types (from the directory)",
            "type": "array",
            "description": "Adds every directory portal of these types to the agencies above. Empty = any type.",
            "items": {
              "type": "string",
              "enum": [
                "airport",
                "city",
                "county",
                "healthcare",
                "higher-ed",
                "housing",
                "k12",
                "other",
                "port",
                "state",
                "transit",
                "utility",
                "workforce"
              ],
              "enumTitles": [
                "Airports",
                "Cities and towns",
                "Counties and regions",
                "Health care",
                "Universities and colleges",
                "Housing authorities",
                "School districts (K-12)",
                "Other public bodies",
                "Ports",
                "State and provincial agencies",
                "Transit",
                "Utilities",
                "Workforce boards"
              ]
            }
          },
          "countries": {
            "title": "Countries (from the directory)",
            "type": "array",
            "description": "Adds every directory portal in these countries to the agencies above. Combined with agency types, a portal must match both. Empty = any country.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "CA",
                "BS",
                "BB",
                "KY",
                "HT",
                "SX"
              ],
              "enumTitles": [
                "United States",
                "Canada",
                "Bahamas",
                "Barbados",
                "Cayman Islands",
                "Haiti",
                "Sint Maarten"
              ]
            }
          },
          "include": {
            "title": "Lists",
            "type": "array",
            "description": "Which portal lists to read. Open is the bids accepting submissions now. Past holds every earlier bid, including reopened bids with a new deadline and publicly awarded ones. Empty = open only.",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "past"
              ],
              "enumTitles": [
                "Open opportunities",
                "Past opportunities (closed, evaluating, awarded, cancelled, reopened)"
              ]
            }
          },
          "statuses": {
            "title": "Bid statuses",
            "type": "array",
            "description": "Keep only rows with these statuses. Reopened, evaluating, closed, awarded and cancelled bids come from the past list, so add past to the lists for them. Empty = any status.",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "reopened",
                "evaluating",
                "closed",
                "awarded",
                "cancelled"
              ],
              "enumTitles": [
                "Open",
                "Reopened (new deadline)",
                "Evaluating",
                "Closed",
                "Awarded (published)",
                "Cancelled"
              ]
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep a bid when its title or reference number contains any of these words, as a whole word, ignoring case. End a word with * to match its beginning: pav* finds paving and pavement. Empty = every bid.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop a bid when its title or reference number contains any of these whole words, for example janitorial or uniforms.",
            "items": {
              "type": "string"
            }
          },
          "closingWithinDays": {
            "title": "Closing within (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Keep only bids whose deadline is between now and this many days from now, for example 7 for the coming week. Empty = any deadline."
          },
          "closedOnOrAfter": {
            "title": "Past list: closed on or after",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "YYYY-MM-DD (UTC). Past-list rows are kept only when their closing date is on or after this day, so you get recent awards instead of years of history. Open-list rows are not affected."
          },
          "maxResults": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "The most opportunity rows returned. You are charged per opportunity row, so this is your cost ceiling. Reason rows are free and do not count. Empty = 1000."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}