{
  "openapi": "3.0.1",
  "info": {
    "title": "Government Bids Scraper: RFPs from 500+ City Portals",
    "description": "Government bids scraper and RFP scraper for 500+ US city, county, school and utility portals on OpenGov Procurement. Open bids, RFQs, deadlines, buyer contacts, only-new bid alerts. No login. Export data, run via API, schedule and monitor runs, or integrate with other tools.",
    "version": "0.1",
    "x-build-id": "nMtAEIYAXfBxnxPC2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/chimey_forearm~opengov-bids-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-chimey_forearm-opengov-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/chimey_forearm~opengov-bids-scraper/runs": {
      "post": {
        "operationId": "runs-sync-chimey_forearm-opengov-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/chimey_forearm~opengov-bids-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-chimey_forearm-opengov-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": "Agency portals (codes or URLs)",
            "type": "array",
            "description": "One per line. The OpenGov portal code or URL, e.g. <code>pittsburghpa</code> or <code>https://procurement.opengov.com/portal/oceancounty</code>. A single bid URL (<code>.../portal/pittsburghpa/projects/285142</code>) returns just that bid with full details. Leave empty and use <b>States</b> to scan every OpenGov agency in a state.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "US states (scan every OpenGov agency there)",
            "type": "array",
            "description": "2-letter state codes, e.g. <code>FL</code>, <code>CA</code>, <code>TX</code>. Every active OpenGov Procurement agency in those states is scanned (California has 130+, Florida 95+). Combine with keywords to keep it focused.",
            "items": {
              "type": "string"
            }
          },
          "agencyNameContains": {
            "title": "Agency name contains",
            "type": "array",
            "description": "Keep only agencies whose name contains ANY of these, e.g. \"county\", \"school\", \"water\", \"airport\". Used with States, or alone to search all 550+ agencies by name.",
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "title": "Bid status",
            "type": "array",
            "description": "Which stages to return. <b>open</b> = accepting responses (default). <b>pending</b> = deadline passed, responses not opened yet. <b>evaluation</b>, <b>awardPending</b>, <b>closed</b>. Use <b>all</b> for everything, including past bids.",
            "default": [
              "open"
            ],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords (title, summary or reference #)",
            "type": "array",
            "description": "Keep bids whose title, summary or reference number contains ANY of these (case-insensitive), e.g. \"roof\", \"software\", \"janitorial\", \"paving\". Empty = all bids.",
            "items": {
              "type": "string"
            }
          },
          "keywordsInTitleOnly": {
            "title": "Match keywords in the title only",
            "type": "boolean",
            "description": "By default keywords also match the bid summary and reference number. Turn on for stricter matches (e.g. so \"cloud\" doesn't match \"St. Cloud\" in a summary).",
            "default": false
          },
          "excludeKeywords": {
            "title": "Exclude title keywords",
            "type": "array",
            "description": "Drop bids whose title contains any of these, e.g. \"pre-qualified\", \"PQ List\".",
            "items": {
              "type": "string"
            }
          },
          "solicitationTypes": {
            "title": "Solicitation type contains",
            "type": "array",
            "description": "Keep only these types, matched against the agency's label, e.g. \"Invitation for Bid\", \"Request for Proposal\", \"Request for Quote\", \"Qualifications\".",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only bids released in the last N days. 0 = any.",
            "default": 0
          },
          "dueWithinDays": {
            "title": "Due within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only bids whose deadline is in the next N days. 0 = any.",
            "default": 0
          },
          "includeDetails": {
            "title": "Include bid details",
            "type": "boolean",
            "description": "Adds the buyer contact (name, title, work email, phone), pre-bid meeting, questions deadline, sealed-bid flag, UNSPSC/NIGP category codes, addenda list, attachment names, timeline and evaluation criteria. One extra request per bid. Same price either way.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new bids (since the last run)",
            "type": "boolean",
            "description": "Remembers bids already delivered for this same input and returns only new ones. Schedule it daily to get a bid alert feed. Each record gets <code>changeType</code>.",
            "default": false
          },
          "alertOnNewAddenda": {
            "title": "Also re-send a bid when a new addendum is posted",
            "type": "boolean",
            "description": "With only-new on: a bid you already got comes back once with <code>changeType: \"new_addendum\"</code> when the agency posts an addendum or notice.",
            "default": true
          },
          "stateKey": {
            "title": "Only-new memory name (optional)",
            "type": "string",
            "description": "Name for the only-new memory. Leave empty to use one automatically per input (same agencies + states = same memory). Set it to share memory across tasks or to start fresh."
          },
          "maxBidsPerAgency": {
            "title": "Max bids per agency",
            "minimum": 0,
            "type": "integer",
            "description": "Newest first. 0 = no limit.",
            "default": 0
          },
          "listAgenciesOnly": {
            "title": "List agencies only (directory mode)",
            "type": "boolean",
            "description": "Instead of bids, return the agencies matching your states / names / codes with how many bids each has in the selected statuses. Useful to see which portals are active.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Agencies scanned in parallel",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "1–8. Default 4 keeps the load on OpenGov light.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}