# Bonfire Procurement Scraper — Government Bids and RFPs (`s-r/bonfire-bids`) Actor

Collect public Bonfire bids and RFPs from US and Canadian procurement portals. Filter by keywords and closing dates, with buyer names, departments, UTC and local deadlines, statuses and opportunity links.

- **URL**: https://apify.com/s-r/bonfire-bids.md
- **Developed by:** [SR](https://apify.com/s-r) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 opportunity records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bonfire Procurement Scraper

Bonfire procurement scraper collects public procurement opportunities from Bonfire and Euna portals used by government agencies, cities, counties, universities and school districts in the United States and Canada. Give it the tenants you follow and receive a dataset with opportunity titles, buyer names, reference numbers, closing deadlines, departments and source links.

Use the results to maintain a government bids tracker, route relevant RFPs to a sales team, or compare public opportunities across several buyers. Each delivered row represents one public Bonfire project. The source project identifier and tenant hostname provide a stable pair for deduplication between scheduled collections. The actor follows continuation pages automatically and reports unavailable tenants or archives in its output warnings.

### Bonfire procurement scraper input

The required `tenants` array accepts tenant slugs, complete tenant hostnames, or HTTPS portal URLs. For example, `fortworthtexas`, `ubc.bonfirehub.ca`, and `https://dallascityhall.bonfirehub.com/portal/?tab=openOpportunities` are supported forms. A slug is checked on `bonfirehub.com` first and then on `bonfirehub.ca`. Supply the full hostname when you want to choose a region explicitly. Empty entries are removed, and duplicate resolved tenants contribute their projects once.

The following input collects public opportunities from two actual Bonfire portals:

```json
{
  "tenants": ["fortworthtexas", "ubc.bonfirehub.ca"],
  "max_items": 1000,
  "include_past": false
}
```

Use `keywords` to keep a project when its title or reference number contains any supplied term. Matching ignores case and respects word boundaries: the term `IT` does not match the middle of `Unit`. Multiple terms mean OR. Use `exclude_keywords` to remove unwanted projects; exclusions take precedence when a project matches both lists. These filters apply to the published title and reference number. A project description is not searched.

Use `closing_after` and `closing_before` for inclusive UTC calendar days in `YYYY-MM-DD` form. Both boundaries include the specified day. `closing_within_days` adds a rolling upper deadline, measured from the start of collection. All supplied date filters are intersected. Set an explicit lower date if you also include archives and want to exclude already closed projects. A zero-day rolling window is valid and selects deadlines no later than the starting instant.

Set `include_past` to collect public archived opportunities alongside the open list. Not every buyer publishes an archive. When an archive is unavailable, the actor keeps that buyer's open projects and reports a warning. `max_items` limits the total delivered dataset rows after filtering, from 1 to 10,000. A run can receive up to 500 tenant entries. The actor does not discover every Bonfire customer: supply the buyers you want to monitor.

### Output and dataset fields

Every row includes `source`, `fetched_at`, `portal`, `notice_id`, `project_id`, `portal_host`, `tenant`, `url`, `title`, `reference_number`, `buyer`, `buyer_name`, `buyer_id`, and `position`. The buyer name and organization ID come from the tenant's own portal metadata. The department is separate, in `department_id` and `department_name`. Many portals expose the department ID without a public name; the name then remains null.

`deadline` is the source closing instant in UTC. `deadline_local` represents the same instant in the portal's timezone, including its date-specific offset. `timezone` preserves that IANA timezone, and `days_left` measures the remaining days at retrieval time, rounded to one decimal. These fields can be null when the source omits the relevant information. Archived deadlines can have negative remaining days. Treat the source portal as authoritative for submission instructions and any last-minute changes.

`status` reports Bonfire's published project and substatus, including open, evaluating, completed, awarded and cancelled. `status_id` and `sub_status_id` retain the original codes. `stage` is tender for active or evaluating stages and award for an awarded project; other statuses may have a null stage. `is_public_award` preserves the source archive flag when present. A flag indicating a public award does not supply the award amount or winning supplier.

`country` is inferred from the tenant's published timezone when it identifies one country. Canadian hostnames can fall back to CA. A `.com` hostname alone does not establish that the buyer is in the United States. Use `portal_host` together with `notice_id` as the project identity because identifiers are not globally unique across Bonfire regions.

The final dataset is sorted by deadline, project ID and tenant hostname after the requested rows are selected. `position` is numbered from one. The OUTPUT record includes collection warnings, a partial flag and any continuation cursor left when collection stops early. Source lists can change during collection, so pagination is not a historical snapshot.

### Pricing

The actor charges the opportunity event once for each delivered dataset row. Archived and open opportunities use the same event. Empty searches deliver no opportunity rows and incur no opportunity event charge. Check the current Apify pricing panel for the applicable rate and any platform charges. Non-paying users receive at most ten delivered rows and ten input tenants per run. Set a smaller `max_items` if you need fewer results. Repeatedly collecting the same project in separate runs delivers and charges that project in each run.

### Coverage and limitations

This version collects the public opportunity lists and organization metadata. It does not provide project descriptions, contacts, documents, addenda, commodity codes, awarded amounts or supplier names. Public opportunity links are included so your team can inspect the full procurement process at its source. Unknown tenants, temporarily unavailable portals and missing public archives are reported clearly. When some tenants succeed, their rows remain available even if another tenant fails.

### FAQ

#### Can I collect Canadian Bonfire opportunities?

Yes. Supply a complete `.bonfirehub.ca` hostname, such as `ubc.bonfirehub.ca`, or a tenant slug. Canadian organizations can also use `.com` hostnames, so use the actual portal address when known.

#### Can I monitor only construction or technology bids?

Use `keywords` for terms present in project titles or reference numbers, and `exclude_keywords` for unwanted terms. There is no state, agency-type or commodity-code filter in this version. Choose the relevant tenants and combine title terms with a closing-date window.

#### Does the actor download tender documents or notices?

This version returns public list data and links to the opportunities. It does not download documents, notices or attachments. The portal remains the place to review submission requirements and access any material that requires additional steps.

#### Why is a department or country null?

A portal may omit a department name, timezone or other metadata needed to determine the field. Missing values stay null rather than being guessed from a project number or hostname. The original department identifier is retained when supplied.

#### Can I schedule repeated collections?

Yes. Schedule the actor with your tenant list and filters, then compare rows by `portal_host` and `notice_id`. Store each retrieval time if your tracker needs to follow status or deadline changes. The actor returns current source data and does not maintain a separate history for you.

# Actor input Schema

## `tenants` (type: `array`):

Bonfire slugs, tenant hostnames or HTTPS portal URLs. Slugs resolve on .com first, then .ca. Use a full hostname to choose a region explicitly. Blank entries and duplicate resolved hosts are ignored.

## `keywords` (type: `array`):

Keep titles or reference numbers containing any whole-word term, ignoring case. An empty list keeps all opportunities.

## `exclude_keywords` (type: `array`):

Exclude titles or references containing any whole-word term. Exclusions take precedence over keywords.

## `closing_after` (type: `string`):

Earliest closing day, inclusive, in UTC (YYYY-MM-DD).

## `closing_before` (type: `string`):

Latest closing day, inclusive, in UTC (YYYY-MM-DD).

## `closing_within_days` (type: `integer`):

Keep deadlines no later than this many days from the initial request time, intersected with date filters. Does not automatically exclude archived deadlines.

## `include_past` (type: `boolean`):

Also collect the public archive, where available. Unavailable archives produce a warning while retaining open opportunities.

## `max_items` (type: `integer`):

Maximum delivered rows per API page or per complete Apify run, after filtering. Follow next_cursor to continue a direct API request.

## `cursor` (type: `string`):

Opaque next_cursor from the preceding API page. Keep the same tenants and filters. Apify follows this automatically.

## Actor input object example

```json
{
  "tenants": [
    "fortworthtexas",
    "ubc.bonfirehub.ca"
  ],
  "keywords": [],
  "exclude_keywords": [],
  "include_past": false,
  "max_items": 1000
}
```

# Actor output Schema

## `results` (type: `string`):

One dataset row per delivered public opportunity.

## `output` (type: `string`):

Full output, warnings and collection status.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tenants": [
        "fortworthtexas",
        "ubc.bonfirehub.ca"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/bonfire-bids").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "tenants": [
        "fortworthtexas",
        "ubc.bonfirehub.ca",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("s-r/bonfire-bids").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tenants": [
    "fortworthtexas",
    "ubc.bonfirehub.ca"
  ]
}' |
apify call s-r/bonfire-bids --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,s-r/bonfire-bids"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/iW8IVlsgNAVZCKuEd/builds/atpJPTo6GJMO5rwEU/openapi.json
